Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. want my form submission to open a new window

want my form submission to open a new window

Scheduled Pinned Locked Moved ASP.NET
javascripthtmlhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Asad Hussain
    wrote on last edited by
    #1

    I have a form (in plain HTML) that opens up a new window when I submit the form

    The problem is that I want the popup window to be chromeless. I have a javascript function "OpenChromeless(url);" that opens up a chromeless window that takes the URL of the web page that you want to open in chromeless. The problem is how can I combine the two to get open the submitted form in a chromeless window.

    B 1 Reply Last reply
    0
    • A Asad Hussain

      I have a form (in plain HTML) that opens up a new window when I submit the form

      The problem is that I want the popup window to be chromeless. I have a javascript function "OpenChromeless(url);" that opens up a chromeless window that takes the URL of the web page that you want to open in chromeless. The problem is how can I combine the two to get open the submitted form in a chromeless window.

      B Offline
      B Offline
      Blake Coverett
      wrote on last edited by
      #2

      Change your OpenChromeless function to take the window name as a parameter as well and be sure it returns true so the form submit is not cancelled. Then you can use something like: <form action='foo.aspx' method='get' onsubmit='OpenChromeless("about:blank", "MyFormResults")' target='MyFormResults'> -Blake

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups