Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    windows Modal Dialog redirect itself without opening new window

    Hello I am newbie on javascript and now I need help on my project to redirect my dialog window to another dialog.
    So I mean dialog1.aspx has a link that redirect itself to dialog2.aspx. I already try and it always open a new windows.
    Or maybe someone has some workaround about this?

    Thanks,
    Sumardi

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,732
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Your visitor is supposed to be the one deciding what opens where - that's why the target attribute was made obsolete in 1997. It was only valid in HTML 3.2.
    Most people don't want new browser windows opening any more and prefer either to have them open in a new tab or as an overlay on the current page.
    There never has been any way to specify a new tab in HTML or JavaScript since tabbed browsers were introduced long after 1997.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry for my bad explaination before.
    What I've done before are like this :

    1. main.aspx
    call window.showModalDialog("dialog1.aspx");

    2. dialog1.aspx
    <asp:button id="button1" onClick="function_click"></asp:button>

    protected void function_click(object sender, EventArgs e)
    {

    Response.redirect("dialog2.aspx");

    }

    Is there any ways that I can redirect this modal dialog to other url.
    And I don't know if I post this question to right forum or not. If it is not allowed here just delete it.


    Thanks,
    Sumardi

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    This is definitely the wrong forum as it is in the Java forum. I'm just not sure if the asp forum makes more sense than the JS forum, but given the interactive nature I'd say the JS forum makes more sense.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •