[jQuery] Super Easy Ajax requests jQuery PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Brice,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>From what I can see in your code you are echoing
out the result of getSomething in the actual PHP.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What jQueryPHP does is make the function and result
available from javascript, so you can for instance</FONT></DIV>
<DIV><FONT face=Arial size=2>fill a table with new data or generate a new
calendar or add items to the calendar without having to refresh</FONT></DIV>
<DIV><FONT face=Arial size=2>the page etc.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><input type="button"
value="Next" onclick="getSomething(month,year,function (returneddata) {
$('cal1').innerHTML = returneddata; }" /></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This example could perhaps get a persons calendar
events for 'month' in 'year', and would then set the calendars content to the
new html.</FONT></DIV>
<DIV><FONT face=Arial size=2>The PHP function would be a function that returns
the HTML for the persons calendar. Makes it so you don't have to know much
javascript</FONT></DIV>
<DIV><FONT face=Arial size=2>at all.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>your Example from what I can tell has no ajax/ahah.
so the entire page is still static.</FONT></DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/