Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

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 03-09-2009, 12:19 PM   PM User | #1
Lleoun
New Coder

 
Join Date: Feb 2008
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Lleoun is an unknown quantity at this point
Getting posted parameter from headers

Hi all,

Firebug's console is showing when visiting my test.html page Headers, Post and Response.
In the Post tab it is showing: "id 9"

I need to create a new page and get that 9 in it so I can use it. I don't mind jQuery, Ajax or Javascript but I need that 9.

I know that with php I just need $_REQUEST["id"]; but I cannot use php.

Thanks a lot in advance!!
Lleoun is offline   Reply With Quote
Old 03-09-2009, 02:09 PM   PM User | #2
Lleoun
New Coder

 
Join Date: Feb 2008
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Lleoun is an unknown quantity at this point
Just a note: I'm not passing anything through the url.
My test.html is passing the 9 like the code below shows.
final.html needs to catch this 9 in a variable.
Thanks again!



Code:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var page = "9";
var theurl = "final.html";
$("#sidebar").load(theurl,{"id":page}); 
});
</script>
Lleoun 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:07 AM.


Advertisement
Log in to turn off these ads.