page that gets loaded doesn't include head

have you tried $.getScript? or you can insert script in body of page being loaded

http://docs.jquery.com/Ajax/jQuery.getScript#urlcallback

Jojje wrote:
Hi!

I have a question regarding ajax.

In my script i have a lot of css rules set with jquery. And when i use
the .load ajax function the page gets loaded but the css rules from
the script doesnt, or the script does not get loaded, so i have to
refresh the page. Is there a way to get the script loaded as well
without putting a link to the script in the page that is to get
loaded? Or is that how you are supposed to do it?

Regards

George

  

Reply via email to