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 02-19-2009, 10:07 PM   PM User | #1
Qua Sar
New Coder

 
Join Date: Feb 2009
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Qua Sar is an unknown quantity at this point
Help with Jquery (to replace PHP Includes)

Hello,
I have a site here ecgamersguild.yakkel.com and i am moving it to my college's webspace but they do not have a php server, so someone suggested jquery.

Now i looked up a tutorial on how to include and i ended up putting in....

<script type=”text/javascript” src=”jquery-1.3.1.min.js”></script>
<script type=”text/javascript”>
$(document).ready(function(){
$(function () {
$(”#nav").load(”navigation.html”);
});
});
</script>

Then where i had the php include i put <div id="nav"></div>

Can someone explain to me what's wrong with this. I am intrigued by jquery but i do not have time to learn it inside out at the moment as i need just this simple include of .html files to work.

Thanks so much for your help!
Qua Sar is offline   Reply With Quote
Old 02-20-2009, 04:11 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Try this instead:
Code:
$(document).ready(function() {
	$('#nav').load('navigation.html');
});
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana 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 04:14 AM.


Advertisement
Log in to turn off these ads.