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
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
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
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
4 matches
Mail list logo