Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2008
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!!

  • #2
    New Coder
    Join Date
    Feb 2008
    Posts
    97
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •