Richard Korts
asked on
Jquery Include?
Please look at http://rkassoc.org/Davis/index9.htm. The solid blue background area in the center, right is supposed to have a menu in it.
See attached files; index9.htm and b.html.
Based on info I researched on the web, the Jquery
$(function(){
$("#includedContent").load ("b.html") ;
});
is supposed to load b.html into the specified location; of course, there is nothing there.
What's wrong? Do I somehow have to force execution of that Jquery with a body "onLoad" function?
Note I only tried this in FireFox, not Chrome or other.
Thanks
index9.htm
b.html
See attached files; index9.htm and b.html.
Based on info I researched on the web, the Jquery
$(function(){
$("#includedContent").load
});
is supposed to load b.html into the specified location; of course, there is nothing there.
What's wrong? Do I somehow have to force execution of that Jquery with a body "onLoad" function?
Note I only tried this in FireFox, not Chrome or other.
Thanks
index9.htm
b.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're calling the load before the element exists - which you are dynamically loading later in the page.
a bit of CSS, if that can help :
<style>
#includedContent {
position: absolute;
top: -236px;
left: -75px;
}
</style>
ASKER
Excellent; thanks so much!
I have another one on this same page shortly.
Thanks!
I have another one on this same page shortly.
Thanks!