Dear all.

I have solved it and its thanks to Michael, I know that the HTML is not clean and perfect thats another story but the thing that fixed it is:

$(loadTree);

thanks again hope this will help other ppl with the same problem.

Thanks
Angelo

Michael Geary wrote:
Roger on the login problem. One thing you could possibly do if we don't get
it figured out: Do a View Source of the page with the problem, save that to
a static .html file, strip it of any proprietary information, and then post
the resulting page where we can look at it.

In the meantime, one thought comes to mind... jQuery used to overwrite the
window.onload function, which would indeed step on the <body
onload="loadGrid()"> code. But it was changed quite some time ago to leave
window.onload alone and use DOM event binding instead. It's a long shot, but
you don't happen to be using a really old version of jQuery, do you?

If not, and if your onload code is not being called, then you could remove
the onload attribute from the body tag, and instead add this JavaScript code
after you load jquery.js and after the loadGrid function is defined:

   $(loadGrid);

That will cause jQuery to execute the loadGrid function after the page is
loaded.

If you've renamed $ as something else, use that name, or use:

   jQuery(loadGrid);

-Mike

From: Angelo Zanetti

Its very difficult for me to give you a link because you have to unfortunately login to the system. Maybe I can expain clearly what the script does.

In the <head> I include the jqeuery js script and also the other scripts used to do the other js actiivities which in this case is drag and drop. However there are also other js functions in the head of the page that do various things. The first thing is to load a grid with some info. So in the body tag i have <body onload="loadGrid()"> now when I dont include the jquery.js file it works fine. However when I include the jquery.js file it doesn't get to that function at all. So im assuming jquery is overwriting that funcionality of it has to be rewritten to comply with jquery library?

Does this make more sense? do you have any idea at what i can look at to start trying to find a solution?





--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------

*Telephone:* +27 (021) 469 1052
*Mobile:*       +27 (0) 72 441 3355
*Fax:*            +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

Reply via email to