I have to call it with an http call and full path 127.0.0.1/js/print.php then it works fine If I call it from a static link http://127.0.0.1/js/print.php it's fine. but from same directory print.php it doesn't
If there's no basic mistake in the code I guessing it's my environment == nightmare. On Oct 25, 2:20 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > That doesn't sound like something jQuery would have any control over. > > What do you get if you open print.php directly in a browser? > > > From: jsnewbie > > > Newbie here. Thanks for any help. > > Serving php 4.4.7 locally from Apache / mac 10.3.9 > > jQuery1.2.1 - php's running so I don't *think* it's an > > Apache/php issue. > > > I'm trying to load dynamic variables from php but so far I > > get the whole script: > > $(document).ready(function(){ > > $("a").click(function() { > > $.get('print.php', { name: this.name, id: this.id }, > > function(data){ > > alert("Data Loaded: " + data); > > }); > > return false; > > }); > > }); > > Alerts: > > <?php > > print ("hello world"); > > ?> > > Instead of the hoped for 'hello world'