CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Ajax and Design (http://www.codingforums.com/forumdisplay.php?f=55)
-   -   Getting posted parameter from headers (http://www.codingforums.com/showthread.php?t=160741)

Lleoun 03-09-2009 12:19 PM

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 03-09-2009 02:09 PM

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>



All times are GMT +1. The time now is 12:41 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.