Tyler,

Thanks for the response. I posted this and then started looking at the
messages and wondered if any one was actually useing this group
anymore. The amount of spam on here is incredible.

I forgot to mention that I am a beginner with JavaScript also,
therefore your reference to the JavaScript API is not much help to me.
I looked over the advanced usage page but it doesn't make much sense
to me either. I am also trying to figure out how to do a href from
within a JavaScript function. If I am approaching this all wrong them
give me an idea of how I should do it.

My current function is:
function updemailinfo() {
  var rel_action = document.getElementById('Release_Action').value;
  if (rel_action == 'RV') {
    window.open("/Magic94Scripts/mgrqispi94.dll?
APPNAME=Web_Dev_Procurement&PRGNAME=update_email_info&ARGUMENTS=-N<!
$MG_ORDER_NO>", "Email_Information",
'Scrollbars=yes,menubar=no,toolbar=no,TOP=50,LEFT=50,HEIGHT=360,WIDTH=924');
    } else {
    if (rel_action == 'CV') {
      window.open("/Magic94Scripts/mgrqispi94.dll?
APPNAME=Web_Dev_Procurement&PRGNAME=update_email_info&ARGUMENTS=-N<!
$MG_ORDER_NO>", "Email_Information",
'Scrollbars=yes,menubar=no,toolbar=no,TOP=50,LEFT=50,HEIGHT=360,WIDTH=924');
       }
    }
}

As you can tell this is invoking a different application to generate
the new window. It is almost as simple as just calling a different
page.

If you can give me pointers on this it would be appreciated.

On Apr 21, 10:10 pm, Logos <[email protected]> wrote:
> If you look at advanced usage, you'll find the naked javascript API.
>
> You can call the greybox functions from anywhere you can have
> javascript.  I regularly call them in onclicks and other functions.
> If you're calling from an iframe or the like, make sure you add "top."
> to the front of your greybox calls so that they open in the main page.
>
> --
> Tyler Stylehttp://malthusian-solutions.comhttp://nirdvana.com
>
>
>
> Tom wrote:
> > I think I can figure out how to do the onclick but I am not sure how I
> > would use this with an onchange event. My current onchange is of
> > course in a select tag and looks like onchange="updateaction
> > (this);updemailinfol();". One of those functions currently invokes a
> > window.open and I am wanting to replace that with GreyBox.
>
> > If I understand GreyBox it primarily works off of an anchor tag. Can
> > it work in an onchange? How would I modify my current code to get this
> > to work?
>
> > Any and all help is appreciated. :D- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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