Sam Collett wrote:
> page1.php could be used to check the request header, but sometimes it
> is easier to do another page than change an existing one.
>
Hmm, ok, can't see how it would be easier but I don't know the way your
site works so will give you the benefit of the doubt. What about
creating a page dedicated to dispatching requests? i.e. dispatch.php:
if($_SERVER["X-Requested-With"] == "XMLHttpRequest")
{
.... load page1_ajax.php
} else {
.... load page1.php
}
Would this not be simpler?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---