DOM Code Not Working In IE, Tested And Working In FF?
Feb 23, 2009
I have a website that lists the movies I have on my computer and then when you click on a link for that movie, it retrieves information from IMDB. The code is in testing but for the most part it works.I was wondering if anyone knew why the following JavaScript would work on Firefox but not in IE. I develop on Linux, and I know there are IEs available for Linux, and I have used them before. I will be sure to track down the issue later, but from the resources I've been using, this should work in both major browser types (standards compliant and microsoft).The code is very dirty, and I have started an object oriented rewrite, but if I don't have the proper DOM skills for IE in this spaghetti code then I doubt anything is going to change putting it all into Objects.
I am trying to create 3 boxes with 2nd select box content to be uploaded on the basis of value selected in first box and third box list should be uploaded on the basis of value selected in 2nd box.i have written coding for that as below but it is not working .
The simple test code below validates a few fields successfully when tested using Safari, Opera, Firefox and ChromeDatepicker does not work in IE, although the validations do work as expected. Is there an issue with datepicker and IE? Is there a condition in my code that inhibits IE?
//// page code follows //// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve this problem. or any other way to get the co-ordinates of browser close button( code for both IE and Firefox).
code follows
function CloseWin(e,frm) { //frm required for my program var bButtonClicked = false;
It works just fine when I open the file from my desktop, but when I upload it and try to use it, the javascript stops working. This is the file: [URL] You can try it out there, or you can download it. I can't get it to work at all for some reason...
This code works inside my coffee cup test browser but when i test in other browsers it doesnt work at all. none of the features work, drag and drop, highlight text on focus, and cursor change on mouse over.heres a simple code i put together.
<html> <head> <title>sample</title> <script type="text/javascript"> function handleMouseMove(oEvent) {
i have a item switcher i have made in php and java script but for some reason it works in google chrome but not in firefox. The switcher lets the user pick 1 item and make it there active item so they can do things with it.
I inherited a website where the previous web designer installed a slideshow javascript code to "feature" products. It works fine in all browsers and IE8 and lower.
However, IE9 and up, it's not working at all. I don't know anything about JS so I'm at a loss as to what the problem is or what could be causing it. I tried contacting the original creator of the JS code at CoolWebDeveloper, but his last post was in 2009 so I'm not expecting much back on that.
The owners of the site use IE9, and IE exclusively for that matter, so they think that the slideshow isn't working ever for anyone coming to the site and are very anxious to get it fixed. I've read that IE9 reads and interprets Java differently than older browsers but with my non-JS knowledge, that doesn't help me much.
I don't want to post the entire code, as guidelines suggested I not, but I don't know what part of or where in the code the problem is coming from. The site is:[URL].
i want to postload javscript from another javascript. This works fine in firefox and IE6 for macIE i can use an Iframe to load the code and inject it with insertAdjacentHTML The problems arise with safari and opera. Both load the new code with XMLHttpRequest, but the code is no 'executable'
To make this possible on IE i had to use the magic 'DEFER' attribute. (Sync or Async ist not the issue)
This code has been working in jQuery 1.2.3: var country = jQuery("select[@name='country']").get(0).value; now in jQuery 1.3.2, I got this error: [Exception... "'Syntax error, unrecognized expression: [@name='country']' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] Line 0
The window is supposed to automatically scroll and move but it isn't working. (It was taken from a discontinued book called javascript in 24hrs) The javascript:
var pos=100; function Scroll(){ if (!document.getElementById ) return; obj=document.getElementById("thetext"); pos -=1; if(pos < 0-obj.offsetHeight + 130) return; obj.style.top=pos; [Code]...
I have attached some files in a zip file. The idea of the code is to click on a textbox in the right frame and a copy is produced in the left frame which can then be dragged around. The code works fine in Firefox however does not work in IE. Can someone help me. The file to run is aspCreateForm.html . I am using a library called dom-drag for the dragging. a copy of this is in the attached zip file.
I am working on my site and I am finding trouble getting my thumbnails to open the larger images when clicked. It only seems to work with the first thumbnail, but I can't figure out why.Here is the code I am working with:
I have given a snippet of code where I am deleting rows which having index more than 11. Its working fine even it in IE(means at least giving result). But it giving error in error console of Mozilla & "Error on Page in IE".
<code> if(single_record != ''){ var record_data = single_record.split("#*#");var no_of_rows1 = document.getElementById(table_id).rows.length; var x = document.getElementById(table_id).insertRow(0); x.style.backgroundColor = tr_Color;// TR bgcolor is set var no_of_rows = document.getElementById(table_id).rows.length;// To find total no. of rows
var g0=x.insertCell(0); g0.align = "center"; var g1= x.insertCell(1);g1.align = "center"; var g2=x.insertCell(2);g2.align = "center"; var g3=x.insertCell(3);g3.align = "center"; g0.innerHTML = '<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color = "#000000" >'+record_data[0]+'</font>'; g1.innerHTML= '<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color = "#000000" >'+record_data[1]+'</font>'; g2.innerHTML= '<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color = "#000000" >'+record_data[2]+'</font>'; g3.innerHTML='<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color = "#000000" >'+record_data[3]+'</font>'; if(no_of_rows > 11){ for(var m = 10;m<no_of_rows;m++){ document.getElementById(table_id).deleteRow(m);// HERE MIGHT B THE ERROR }}} </code>