Pretty easily.  This is an ugly off the cuff solution.

* In your javascript, add a variable called isLoaded and set it to
false.
* In your body's onload, add "isLoaded =true".
* Create a wrapper function for your button's onclick greybox call (if
you're using rel, you'll need to switch to onclick - see the advanced
usage).  In the function, check if isLoaded is true.  If it is, open
the greybox.  If it isn't let the user know why you didn't open the
greybox (eg, an alert message saying "Please wait for this page to
finish loading).  Make sure you function return false.

Voila.

--
Tyler Style
http://malthusian-solutions.com
http://nirdvana.com

On Jan 25, 9:45 am, "[email protected]"
<[email protected]> wrote:
> Hi, I have a page which is still under construction
>
> i am using greybox as to load a page in which users will be able to
> send a message in and do other things.
>
> the only problem i am finding is that if a user clicks on the send
> message link before the page has loaded the Greybox script will not
> run and will open the send message page in a new window ( Not in a
> greybox pop up )
>
> how can i prevent this from happening please?
>
> thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GreyBox" 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/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to