KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to use the jQuery POST function but it is handling the request in AJAX style. I mean it's not actually going to the page I am telling it to go. $("#see_comments").click(function() { $.post( "comments.php", {aid: imgnum}, function (data) { } ); }); This function should go to comments.php page with the aid value in hand. It's posting fine but not redirecting to comments.php . @Doug Neiner Clarification: I have 15 links (images). I click on a link and it loads my JavaScript. The script knows what imgnum I opened. This imgnum I want in the comments.php . I have to use this JavaScript and no other means can do the trick. The JavaScript is mandatory Your method successfully POSTs the aid value. But in the comments.php when I try to echo that value, it displays nothing. I am using Firebug. In the Console, it shows the echo REQUEST I made in Step (2) successfully.
Tags (comma-separated)
Save Edits
Cancel