Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onload a javascript function

Status
Not open for further replies.

999000333

Programmer
Nov 20, 2006
39
Hello I have a function in my html webpage written in javascript called createListRegions, this function is inside the <head> tag. Now I call this function in my html page as follow:

<body class="site_homepage" style="background-color: #dddb10" onLoad=" createListRegions();">


my problem is when I use Mozilla firefox the functions is loaded in my html page properly, this is I see the list of the regions I have created. But when I use Microsoft Explorer the list CANNOT BE SEEN, nothing is loaded.

Can any one know how to solve this problem.

Thank you.
Paola
 
This sounds more like a Javascript question to me (see forum216).

However, it sounds like you need to debug your createListRegions. I would suggest, at the very least, you output the values of variables at various points in your code to check that they contain the values you expect them to contain (i.e. not a null!).

If you're still stuck after that, post the relevant code in the Javascript forum.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
If you are using Firefox you can also check the Javascript errors to see if there are any, which may be why IE wouldn't work.
 
Hello all of you, I did actually passed this question to javascript forum, but I tried also this forum just in case.

Can you please explain to me how this can happen?
"
Could it be that a rendering issue in IE is 'hiding' the info?"

I'm just starting programming so please go gentle.
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top