|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP Echoed in Ajax
I have built a site in PHP for radio station, and the daily schedule is displayed dynamically using PHP script.
I have added links to view different days but when it loads up its just loading up a new page. I can't quite remember how I done it but I'd like it to be in ajax if that's possible. I have no knowledge of what I need to do so any help to tutorials would be great. Thanks in Advance |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Have a look at JQuery, it simplifies ajax a lot. Here is a code snippet that shows, how to update a div in a document with a page fragment loaded with ajax Code:
$.ajax ({
type : "get",
url : "/ajax/url/to/get/contents.html",
context : "body",
success : function(data)
{
$("#mydiv").html(data);
// do maybe some more tasks
}
}); |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
AJAX also loads pages -- it has to get the data somehow. It just does so in javascript with an xmlquery..
|
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| execution of a string being echoed in bash | ida1215 | Shell Programming and Scripting | 1 | 12-15-2011 01:08 PM |
| Putting echoed text into a new file | likelylad | UNIX for Dummies Questions & Answers | 7 | 01-27-2009 05:55 PM |
| echoed prompt not appearing until after read command. | simonb | Shell Programming and Scripting | 2 | 03-19-2006 10:15 AM |
|
|