Then your page just needs to check if the $_GET['facebox'] is set and
if it is true.
The second one uses php so it may not be applicable to your case, but
you can do something like this:
if('XMLHttpRequest' == @$_SERVER['HTTP_X_REQUESTED_WITH'])
{
// show facebox
}
else
{
// show full page
}
the XMLHttpRequest is assigned for all ajax based calls. Since facebox
requests the page via xmlhttp this var will be assigned. Keep in mind
that any ajax request will assign it, not only facebox.
Hope this helps.
wakey
unread,
Jul 3, 2009, 3:32:32 AM7/3/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to facebox
Hi Jade,
Thank you for your help, I will give one of those a try. Much
appreciated :)