I've got here a sample of my function which is supposed to fade a
certain piece of text to another colour. This line is then located in a
for loop and it works pretty well in IE 6. However, in Firefox, and thus
I assume it will be the same in Netscape and Mozilla, it gives a problem
with the: getElementById('main_txt'). Due to that in setTimeout("",) it
requires the "" signes and thus I can not use the same ones in the
getElement part. IE has no problem with using '' in there, Firefox,
however, does. Can anyone think of how to get around this and make
firefox do this?
var SpnDisp = document.getElementById("SpnDisp");
var FName = TxtFName.value == "" ? "?" : TxtFName.value; var SName = TxtSName.value == "" ? "?" : TxtSName.value; var Age = TxtAge.value == "" ? "?" : TxtAge.value; var Loc = TxtLoc.value == "" ? "?" : TxtLoc.value;
SpnDisp.innerHTML = "Hello " + FName + " " + SName + ", " + "you are " + Age + " years old and " + "at the moment you live in " + Loc; } </script>
Using Firefox 3, trying to use a confirm box where it says ok or cancel. The box shows up to confirm ok or cancel but if I click cancel it doesnt seem to return false, it just goes to the link of the url set in href. Im including the js file in the page:
I wanna create a functionality where on clicking a (minus) button a div show slide up and and the image should change to (plus). Again on clicking the plus button. the content div should slide back out
i have a set of select fields, which when selected, send a value via ajax, to return a sub-selection for further choice. I have 3 levels of sub-categories like this. For some reason it works in FF only - not IE. [URl]..
it was working fine when i viewed it using my local host but when i uploaded it to the server it doesn't want to work anymore. i made sure all the files are in the proper folder and so on..still no progress. Then uploaded the original or "demo folder" i got from this site and it works, but my site doesnt. I combined 2 jquerys btw, one apycom jquery and one booklet jquery. Both works in local host but in my site, only the apycom works. pls help me out..[URL]...
Isnt it following two script is identical? but they seems to contradict in different browser.
I've tried swaping the order in the anchor tag (JS first, href second):
I have this jquery code that for a normal browser allows you to have a sticky header. So by default it shows the content of the header wherever you want then as you scroll that header will then stay with you as you scroll. The problem is it doesnt work for an iPad. Can someone look at the code and see if there is something I can change to make this work on an iPad?
Code: // Fixed control bar var controlBar = $('#control-bar'); if (controlBar.length > 0)[code]......
i had this written for my wifes ebay store a while back but after moving the images to our own hosting, the script doesnt work it just crashes our shop front?
ps. i do have three other images that were present on the site that were somehow referenced but there is no mention of them in the below code (footer.jpg | gallerylisting.jpg | navhead.jpg) i think its something to do with this first line but dont know how to decode it.[code]......
It works perfectly in Firefox and Chrome, but in IE 7/8 it doesnt do anything. In fact, in IE the inputs that I insert dinamically when I press the button " agregar" doesnt appear in the page, but they are there, because when then when i do the Insert I have all of that dinamyc inputs that I put. The problem is that they are not shown in the page.
I have an Ajax post that gets 100 records. That runs a callback function called Update(data.d) that loops through and populates a Div container with these records each in their own Div with numbered IDs. (It also removes old Divs so that there are never more than 100 n the container. During this loop I register the click event for each <a> called'Like':