| | |
IE problem - Something's wrong with this JS
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2006
Posts: 9
Reputation:
Solved Threads: 0
Good morning,
I paid many thousands of dollars to a company that created my photo community (xtremecamera.com). Problem is, the site does not work in IE, I get the "Operation Aborted".
With the help of a great poster in the PHP section of this forum it has been determined that a single javascript is the problem. On my index.php page there are several calls for javascripts, if I remove the call for xc_modules.js the site loads fine in IE (but that script keeps hundreds of items in check, it is vital to the site)...So, there is something wrong with the script. All the other, well tested, scripts work fine.
Would anyone on this forum please take a minute or two, download my script (attached) and see if something jumps out at you? I am not asking that anyone spend any amount of real time on it, just a glance, maybe find a reason why IE doesn't like this script...
I would be very much appreciative if you can. Many thanks!
John
xtremecamera
I paid many thousands of dollars to a company that created my photo community (xtremecamera.com). Problem is, the site does not work in IE, I get the "Operation Aborted".
With the help of a great poster in the PHP section of this forum it has been determined that a single javascript is the problem. On my index.php page there are several calls for javascripts, if I remove the call for xc_modules.js the site loads fine in IE (but that script keeps hundreds of items in check, it is vital to the site)...So, there is something wrong with the script. All the other, well tested, scripts work fine.
Would anyone on this forum please take a minute or two, download my script (attached) and see if something jumps out at you? I am not asking that anyone spend any amount of real time on it, just a glance, maybe find a reason why IE doesn't like this script...
I would be very much appreciative if you can. Many thanks!
John
xtremecamera
Make sure that you don't call functions to modify the DOM for elements that have not yet been finished. That is, minimize the use of inline calls to JavaScript functions that attempt to modify the document.
You should put all calls to functions that use code like document.createElement(); or [object].appendChild(); in the body onload event; otherwise the body doesn't exist yet.
The 'Operation Aborted' error in IE is in relation to that; do a Google search for
I imagine the problem is less about the code in that module than about the way you are using that code, I had a brief look, I see some cases where document.createElement is used. How are you calling the functions in that module from your PHP page?
You should put all calls to functions that use code like document.createElement(); or [object].appendChild(); in the body onload event; otherwise the body doesn't exist yet.
The 'Operation Aborted' error in IE is in relation to that; do a Google search for
javascript "Operation Aborted". I imagine the problem is less about the code in that module than about the way you are using that code, I had a brief look, I see some cases where document.createElement is used. How are you calling the functions in that module from your PHP page?
Plato forgot the nullahedron..
•
•
Join Date: Dec 2006
Posts: 9
Reputation:
Solved Threads: 0
Matt,
Just about everything you said went straight over my head (I think I have headache now):eek:
I've attached the following files to this post in case you have a second to take a look; the index.php file (the entire site is put together with this file), gallery.php file (so you can see a typical page), and sidebar_main.php (so you can see the other part of the page.
The site is modular, in that the index page will take the header, the drop down control panel, the sidebar, and the main content page and put them together.
Again, a huge thank you for responding. I think a lot of people don't realize that people like you cruise the site and out of the desire to help people will go through these posts looking for people like myself that need help. Its something you don't see much in the real world, so believe me I am very thankful for any assistance you can lend.
John
xtremecamera
Just about everything you said went straight over my head (I think I have headache now):eek:
I've attached the following files to this post in case you have a second to take a look; the index.php file (the entire site is put together with this file), gallery.php file (so you can see a typical page), and sidebar_main.php (so you can see the other part of the page.
The site is modular, in that the index page will take the header, the drop down control panel, the sidebar, and the main content page and put them together.
Again, a huge thank you for responding. I think a lot of people don't realize that people like you cruise the site and out of the desire to help people will go through these posts looking for people like myself that need help. Its something you don't see much in the real world, so believe me I am very thankful for any assistance you can lend.
John
xtremecamera
I can't test the PHP on a server/lhost at the moment, so this is based on source code analysis only, and given that the problem 'Operation Aborted' occurs as a result of the modification of incomplete elements.
----------------
On line 59 of xc_modules.js, is this statement:
Try commenting it out/removing it temporarily.
That appears to be the only line that modifies the DOM while loading is incomplete (SI.onbeforeload is called from an inline script at the very end of topnav.php)
It also seems like when you include includes/gallery.php into index.php that you load a page with a 'double' <html><body> element.... You can see that for real by viewing the source from the page index.php?section=gallery at your domain.
You could fix that problem by removing this from the top:
and this from the bottom:
of includes/gallery.php
whether that will cause stranger behaviour, I can't say without testing.
------------------------
I've gotta say, you paid too much to the wrong people for that implementation.. it's not very well done.
I will try and run a test of the files you attached tonight if I get some time...
----------------
On line 59 of xc_modules.js, is this statement:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
this.CSSattach();
Try commenting it out/removing it temporarily.
That appears to be the only line that modifies the DOM while loading is incomplete (SI.onbeforeload is called from an inline script at the very end of topnav.php)
It also seems like when you include includes/gallery.php into index.php that you load a page with a 'double' <html><body> element.... You can see that for real by viewing the source from the page index.php?section=gallery at your domain.
You could fix that problem by removing this from the top:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> </head>
and this from the bottom:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
</body> </html>
of includes/gallery.php
whether that will cause stranger behaviour, I can't say without testing.
------------------------
I've gotta say, you paid too much to the wrong people for that implementation.. it's not very well done.
I will try and run a test of the files you attached tonight if I get some time...
Plato forgot the nullahedron..
![]() |
Similar Threads
- laptop problem (Monitors, Displays and Video Cards)
- Technical Problem (Windows NT / 2000 / XP)
- Big Problem (Viruses, Spyware and other Nasties)
- Big Problem (Windows NT / 2000 / XP)
- Hey crunchie, RE: LOP problem (Viruses, Spyware and other Nasties)
- Classes Problem (C++)
- C++ pointers problem (C++)
- Problem using the UPDATE command in VBA (Visual Basic 4 / 5 / 6)
- XP cam problem with win 98 (Windows NT / 2000 / XP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Filling 2nd dropdown by choice in first
- Next Thread: Dani Webs Code?
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets api autoplay blackjack browser bug captchaformproblem checkbox child class close codes cookies createrange() cursor date debugger dependent developer disablefirebug dom dropdown editor element embed engine events explorer ext file flash form forms game getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jump libcurl maps math matrixcaptcha media mp3 mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming progressbar rated runtime safari scriptlets scroll search security session shopping size software star stars stretch synchronous tweet unicode variables web webkit webservice window wysiwyg \n






