Re: Popup page



Shelly wrote:
> I would like to have a popup page. In case of errors, I would like
> to have a separate page (of small size) pop up with the error
> message. How can I make this happen? It would make life much easier.
>

Seperate page:

if ($error) {
header("Location: http://yoursite.com/errorpage.php?error=1";);
exit;
}

Popup page:

if ($error) {
$url = "http://yoursite.com/errorpage.php?error=1";;
print "<script>window.onload = function () {
window.open('$url');}</script>";
}

The Seperate page solution should be included at the top of each page
(before anything else has been outputted); the Popup page solution should be
between the <head /> tags of each page. The error parameter gets translated
into an appropriate message on errorpage.php

It's up to you to decide if this really makes life easier.


JW



.



Relevant Pages

  • Popup page
    ... I would like to have a popup page. ... a separate page pop up with the error message. ... It would make life much easier. ... Prev by Date: ...
    (comp.lang.php)
  • Re: Problem with Popup menus in Access
    ... I must say I hadn't realised there were separate ... classes of popup menu, those attached to menubars and freestanding ...
    (microsoft.public.access.formscoding)
  • Re: Popups used more than once
    ... However, if you have miultiple users, the very strongly recommended ... approach is for each user to have his own separate copy of a front-end ... "call the same popup at the same time" can never happen. ... Steve Schapel, Microsoft Access MVP ...
    (microsoft.public.access.forms)
  • Re: Popups used more than once
    ... However, if you have miultiple users, the very strongly recommended approach is for each user to have his own separate copy of a front-end application file, linking to the core data tables in a shared backend file. ... Robert wrote: ... I have a customers popup that I need to call on more than one form. ...
    (microsoft.public.access.forms)
  • VBOkCancel coding
    ... a message box popup that tells the user that the field they just tabbed out ... or if they click the CANCEL button move on to the next field. ... Thanks in anticipation to who ever answers me. ... Prev by Date: ...
    (microsoft.public.access.forms)