Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-30-2011, 08:55 PM   PM User | #1
latoyale
New to the CF scene

 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
latoyale is an unknown quantity at this point
Unhappy Loading external html into a div

Good day,
I am trying to load a div from one page, into a div on another page.

On the webpage I am loading the new div to I put:

<script> $("#activity").load("/master-module.html #module2");</script>

The place where the info is going is:

<div id="activity" class="buildBoxes-dreamit">
<h2 class="subTitle">Sports Activity |</h2><
<img src="images/mod1.jpg" width="236" height="116" />
<h3 class="buildH3"><br />
HELLO PEOPLE.</h3>
<h4 class="afterH4">Test text <br />
You may also like:</h3><br/>
<h3 class="buildH5"><img src="images/learnArrow.gif" width="3" height="5" /> Trailer Hitch Plug<br />
</div>



On my page called master-module.html I have nine modules. I am trying to pull in:


<div id="module2">
<div class="buildBoxes-dreamit">
<h2 class="subTitle">Sports Activity
<h3 class="buildH3"><br />
HELLO LITTLE ONE.</h3>
<h4 class="afterH4">TEST NEW MODULE<br />
</h4>

</div>
</div>


Why doesn't this work right? It looks right to me... what am i missing??
latoyale is offline   Reply With Quote
Old 01-31-2011, 07:22 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Can we have a link to your page?
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Old 01-31-2011, 02:17 PM   PM User | #3
harbingerOTV
Senior Coder

 
Join Date: Jan 2005
Location: Memphis, TN
Posts: 1,765
Thanks: 8
Thanked 123 Times in 121 Posts
harbingerOTV will become famous soon enough
Are you actually loading jQuery? Your script looks fine so that's my first guess.
__________________
Stop making things so hard on yourself.
i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis
harbingerOTV is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:32 AM.


Advertisement
Log in to turn off these ads.