[jQuery] Re: How to use a custom ajax code in page that was loaded with .load()?

2008-10-13 Thread ricardobeat
Use the jQuery 'ready' event, $(document).ready(function(){ // all that function's code goes here }); You can pass as many functions to ready() as you want, if the DOM is already loaded they will execute immediately. - ricardo On Oct 13, 3:17 pm, ivframes <[EMAIL PROTECTED]> wrote: > That work

[jQuery] Re: How to use a custom ajax code in page that was loaded with .load()?

2008-10-13 Thread ivframes
That works now, but I have some issues with other functions. Apparently, the problem is not in loading the external javascript files as I previously thought, they load correctly just with .load() function. Problem is in "window.onload" function. This part of the script is causing the problem: wi

[jQuery] Re: How to use a custom ajax code in page that was loaded with .load()?

2008-10-13 Thread joel boonstra
On Oct 12, 5:41 pm, ivframes <[EMAIL PROTECTED]> wrote: > I have a page that loads with jquery's .load() function. > However, that page is a form with two custom JS files attached. > When I load it separately, the JS code works. However, when used > with .load(), it does not. > > What I'm missing

[jQuery] Re: How to use a custom ajax code in page that was loaded with .load()?

2008-10-13 Thread ricardobeat
A quick search for 'load javascript ajax' should bring you the answer, here or on google. http://groups.google.com/group/jquery-en/browse_thread/thread/8a8f6c139c9b7ade cheers, - ricardo On Oct 12, 7:41 pm, ivframes <[EMAIL PROTECTED]> wrote: > I have a page that loads with jquery's .load() fun