[CLOSED] ext:ImageButton, open URL in parent window

  1. #1

    [CLOSED] ext:ImageButton, open URL in parent window



    Hi
    Im using a <ext:ImageButton, this button is in a page that exists in a ext:panel Iframe. When I click the button it load the "Next.aspx" in the sam Iframe ofcourse. But I need it to be opened in the parent window, like this javascript would do "parent.window.location = "Next.aspx"". Is there anyway to tweak the imagebutton to do this?

    <ext:ImageButton ID="btnImage" PostBackUrl="~/Next.aspx" AutoPostBack="true" runat="server" ImageUrl="Images/Buttons/NextStep.png" />
    /Mikael
  2. #2

    RE: [CLOSED] ext:ImageButton, open URL in parent window

    Hi Mikael,

    Maybe using the <Click> listener would do the trick.

    Example

    <ext:ImageButton runat="server" ImageUrl="Images/Buttons/NextStep.png">
        <Listeners>
            <Click Handler="parent.window.location='Next.aspx'" />
        </Listeners>
    </ext:ImageButton>
    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] ext:ImageButton, open URL in parent window



    No I dont think so, because I need the AutoPostback behaviour, I need to post some fields to the next page. Maybe thats not supported...

    /Mikael
  4. #4

    RE: [CLOSED] ext:ImageButton, open URL in parent window

    What do you think about this one, is it possible? or should I find another way around it?

    /Mikael
  5. #5

    RE: [CLOSED] ext:ImageButton, open URL in parent window

    Hi Mikale,

    Just for form for page (I mean page which inside iframe and contains ImageButton) target="_parent"*


    <form id="form1" runat="server" target="_parent">



  6. #6

    RE: [CLOSED] ext:ImageButton, open URL in parent window

    Yes of course!
    Thank you very much.

    /Mikael

Similar Threads

  1. [CLOSED] open window out of its parent
    By imaa in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 26, 2011, 6:07 AM
  2. Open window out the parent
    By Egale in forum 1.x Help
    Replies: 8
    Last Post: Jun 22, 2011, 11:45 AM
  3. [CLOSED] Open window in a parent container
    By edigital in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 18, 2011, 5:21 PM
  4. [CLOSED] Open window in parent
    By paulc in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 16, 2010, 9:54 AM
  5. [CLOSED] Open a Window in a parent page
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 07, 2009, 4:10 AM

Posting Permissions