It would be much easier to generate a json response instead of html
and use .getJSON and then the DOM insertion functions to generate the
html you need on the page.
On Apr 23, 1:41 am, Colonel wrote:
> This isn't entirely correct, and not quite what I had. For example I
> have a lots of divs in
This isn't entirely correct, and not quite what I had. For example I
have a lots of divs in temp.php (after work with DB). And in the end
of $.ajax I have msg. How I can manipulate with this and find divs and
p and so on ?
On 23 апр, 05:08, Shane Riley wrote:
> Typically you'd only echo the data
Typically you'd only echo the data back that you want instead of
having to weed through a string of HTML data to extract what you need.
>From what it looks like, you're needing a specific element from
another page while still being able to access the other page
(temp.php) in its entirety. The easi
I know it. But how I can get content from remote file by $.ajax?
For example I have some file temp.php:
Test file
Some text in div header
id =" . $id . "";
echo "number = " . $number . "";
?>
Some text in header2 ...
and Am using $.ajax:
$.ajax({url: 'temp.php',
cache:
You can use a number of Ajax functions built in to JQuery depending on
your specific needs. Check them out at http://docs.jquery.com/Ajax. If
all you're looking to do is insert one file into another, load is
normally the way to go, unless you're looking to place the loaded file
before, after, or i
5 matches
Mail list logo