FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

javascript huge problem

 


alalex
hi, i have a page that was working perfectly a few days ago. but right now all the javascript code stopped working, even if i write at the top alert("hi"); it wont work... Confused
is there any kind of usual error that makes such errors? by the way, the web is in php, so it wont let you see the javascript code.
its really a huge piece of code, so i wont post it unless necesary. tell me if you need to see the code. Sad
i already checked through it, but i just cant see any error in the javascript code!
chennai
alalex wrote:
hi, i have a page that was working perfectly a few days ago. but right now all the javascript code stopped working, even if i write at the top alert("hi"); it wont work... Confused
is there any kind of usual error that makes such errors? by the way, the web is in php, so it wont let you see the javascript code.
its really a huge piece of code, so i wont post it unless necesary. tell me if you need to see the code. Sad
i already checked through it, but i just cant see any error in the javascript code!


Do you expect us to imagine an error ourselve and provide you the solution.?
If its too big to post,then upload the .php file somewhere and give us the link
alalex
Sad i just thought that there mught have been a common error or mething related to the server or something... i dont know.
i will post the code into a txt file then: open .js file
i think its the javasript because even the window.defautStatus isnt working...
could it be that some kind of html problem stops javascript from reading?
chennai
have u enabled javascript in your browser?
badai
javascript is client side. nothing wrong with server. it's either your browser, or your script.
joevennix
Your script seems alright (I'm not an expert at Javascript though), and it's Javascript, which is executed by the JVM in your browser, so it's not the server's fault. Try viewing it in a different browser.
alalex
i found the problem!!!! Very Happy Very Happy
it was something like this:
Code:
if (document.images) {
      empty_1 = new Image();
      empty_2 = new Image();
      empty_3 = new Image();
....

it should be without the ';' at the end!!!
thanks anyways, i was getting really mad. I just realized that i changed it because i thought it was better with ';'. well, now i know!
Very Happy thanks
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.