javascript

Problem with jQuery live and IE

I'm having some trouble with jQuery and IE. I've narrowed it down to this: jQuery("#missionDashboardRoleFilter").live("change", function(){ alert("called"); }); <select id="missionDashboardRoleFilter"> ... This is working fine in Firefox, Chrome, Opera... but (obviously) not in IE6. I'm not sure what to do... any idea? ...

Executing function located in code behind from JavaScript?

I am using ASP.NET 3.5. In my code behind i have this code that i want to execute from my JavaScript. Private Sub CreateName() Dim Name as String Name = txtName.text End Sub And this is my JavaScript Function <script type="text/javascript"> function doSomething() { document.elqFormName.action = 'http://now.eloqua.c...

can we use rowspan and colspan in displaytag?

i have to create a table, whose structure is like this |--------------------------------| |col1|col2| col3 |col4| | | | col3.1 | col3.2 | | |----|----|--------|--------|----| |----|----|--------|--------|----| Is it possible to create such structure using display tag? ...

iPhone Web App disable cache

Hi, I have an built an iPhone webapp using PHP. The main (and only) page includes the apple-mobile-web-app-capable and apple-touch-fullscreen meta tags so that it can run fullscreen once added the the homescreen. However, it seems every time I launch the app from the homescreen, the cache version of the page is used instead of refreshin...

Is it possible to use canvas functionality from a worker in FF 3.6 ?

I'm currently migrating my image uploader from Gears to Firefox 3.6/HTMLv5. I used a Gears Worker in conjunction with Gears Canvas to scale down the selected photos before upload. By doing this, I kept the browser window responsive and avoided the "Do you want to stop this script"-warnings. However, this doesn't seem to be feasible in H...

Toggle effect problem when using for-loop in IE7

I'm a webdesigner that's trying to get the hang of JavaScript and jQuery, and I want to learn how to write shorter, more concise code - to avoid being ridiculed by the developers at work ;) I have this snippet: // toggle divs when checkbox is checked $('.product-optional-checkbox1').click(function () { $('.product-optional-toggle1'...

Javascript Window.open Issue IE7 / IE8

Hi, I have created a simple JQuery script that loops through an array of urls and opens multiple windows. This is working fine on the majority of platforms. However, in IE7 and IE8 on a client's machine the browser is only opening a single window. No javascript errors are present. I have the same versions on my laptop and it works fi...

How to use anyother map like google maps in UIWebView in iphone?

I have done google map in UIWebView and it works perfectly with routing stuff and all. But now i want to load some other map into the WebView and get all the features that i get from google maps. How can i do it? For eg: I want to load this one to the UIWebView. http://stage.discoveritalia.it/conbipel/ .This is an italian map. I want to...

Continuous Image Marquee in HTML

Hi, I need Continuous Image marquee in HTML in horizontal direction. I got the code for text marquee it is working , but not for images. Thanks in advance. Continuous text marquee link: http://www.dynamicdrive.com/forums/showthread.php?t=28742 ...

Is this the right way to preload images ?

Is this below the right way to preload images? I have a table which changes background once a 'select option' is changed. In the body of my page, I have this: <body onload="preload();"> And in my Form on the same page I have: <select onchange="swap();"><option bla bla></select> And the js: function preload(){ pic = new image(...

Getting a <td>'s height and a <p>'s font size with JavaScript

How can I get and set a <td>'s height and a <p>'s CSS property font-size with JavaScript? ...

flagging duplicates in an array

After requesting some user pictures, I end up with an array like this: [ { label: "portrait", owner: "Jon" }, { label: "house", owner: "Jim" }, { label: "portrait", owner: "Jim" }, { label: "portrait", owner: "Jane" }, { label: "cat", owner: "Jane" } ] I need to highlight items whose label occurs multiple times in ...

How to move OpenLayers Vector programmatically?

The API documentation for OpenLayers.Feature.Vector says that Vector itself has no methods at all. I know how to let user move the Vector by adding OpenLayers.Control.DragFeature control to map. So if the user can move the Vector then there has to ba a way to move it programmatically too. But I can't figure out how to do it. ...

Javascript Div remote server cross domain populating

hello, i'd like to put in html pages around a javascript that call a remote javascript file in my server, elaborate datas by give content back to the html page where the javascript will populate a div by id with the given data. what's a possible way to perform it? the data will be calculated in php. ...

how validate file size using HTML and Javascript on client side

Hi All, how can i validate the file size on the client side using javascript i am using type=file for selecting the file Regards, hemant ...

Telerik RadComboBox javascript API problem

Hi all, I've been having a problem using the javascript API of the RadComboBox from Telerik. And no I don't have the power to switch over from Telerik to jQuery or another framework.. Suffice to say I have hardly any hair left on my head now :P In a nutshell I want to grab the selected index of one RadComboBox, and update another RadCom...

javascript canvas putImageData not writing modified data

I'm attempting to desaturate an image. I'm currently loading it, parsing the image data, but I can't get it to write back to the canvas. I've followed all of the directions to do context.putImageData(imagedata,0,0); I do this, but the image data doesn't change. "ctx" is the context of the image that is previously loaded that is bein...

Why does the whole page refresh when I use jQuery to increase or decrease the font size?

I have a HTML page where I want one button to increase the font size and the same button to decrease the font size when clicked. I am using jQuery like so: $("p").css("font-size","20") However, when I do that the font size increases for maybe 2 seconds and then goes back to normal. It appears that the page is refreshing after I click...

Javascript Session Data Storage

Does anyone know of a reliable way to store data to use across pages of a site?... Here is what I've found so far: Cookies - Not enough capacity to store what I need atm. URL hash - Same as above Frames - Not a method I would use atm. HTML 5 document.localStorage and document.sessionStorage - Not fully supported yet Google Gears - The ...

i need script in jquery that make the page as your default home page website in the browser

i need script in jquery / javascript that make the specific site as the homepage in the browser, i need it compatible for all browsers , if that possible . i dont mean it should be done automatically , thanks. ...