On Jan 7, 5:21 am, sickpres <[email protected]> wrote:
> Hi,
>
> I need to lunch
>
> <a id="a_link" runat="server" href="control_manage.aspx"
> rel="gb_page_center[400, 600]">test</a>
>
> after this event:
>
> Public Sub txt_enterKeyPress(ByVal sender As Object, ByVal e As
> System.EventArgs)
>
> ScriptManager.RegisterStartupScript(Page, GetType(String),
> "MyScript", "document.getElementById('a_link').click();", True)
>
> End Sub
>
> I want to use only one link in the page and change href parameters
> from code.
>
> If I click on the link "test" it works, but if I try to lunch it with
> document.getElementById('a_link').click() function it open the page in
> the window and not in greybox.
>
> Regards
> Mauro Cattaneo
Instead of using rel, which is fraught with issues, use the advanced
documentation (http://orangoo.com/labs/greybox/advance_usage.html) to
set onclick to a greybox function call (from the advanced docs:
"GB_showCenter(caption, url, /* optional */ height, width,
callback_fn)"). Then your onclick code should work as well.
--
Tyler Style
http://malthusian-solutions.com
http://nirdvana.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---