How to call a PHP page from jquery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chanshaw
    New Member
    • Nov 2008
    • 67

    How to call a PHP page from jquery

    Hey I've been searching on the web for a decent hello world example. Basically I would just like to know how to call a php page that just echo's out "hello world" from jquery . If someone could help out it would be apprecieated.
  • chanshaw
    New Member
    • Nov 2008
    • 67

    #2
    Thanks but figured it out

    Code:
    $(document).ready(function()
    {
    	$('links_component').eq(0).ready(function()
    	{
    		$.ajax({
    		  url: "links_component.php?ACT='GETLINKS'",
    		  success: function(data) {
    			$('#links_component').html(data);
    			alert('Load was performed.');
    		  }
    		});
    	});
    });

    Comment

    Working...