[jQuery] Outputting data from another page
[CODE]<head><script type="text/javascript"> $(document).ready(function
() { var alink = $("a[name]"); var itemid = 45 ; alink.click
(function() { $.get("test.php",{id: itemid}, function(data){ alert
("Data Loaded: " + data); }); }); }); </script> </head> <body> <a
href="#" name="test">Hello</a> </body> </html>[/CODE]
in test.php:
[PHP]<?php
$getid = $_GET['id'];
echo $getid;
?>[/PHP]
Anyway how i can make it, so when i click on the link Hello that i get
a dialog box that says Data Loaded: 45. Right now, all it is doing is
just displaying all of the php code
PS: I am running an local xampp server