• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pop Up

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am making a modal dialog Box from my Form...

window.showModalDialog("file.htm",window.self,"");
window.self...will give me the reference of the page....from which the popup opens....so I can access its contents....

The problem is when I am submitting the form after the popup opens...it opens up another window...

How can I get the popup to submit to the same form......and not open another popup???


ANybody faced a similar situation.....(I am building spellcheck ...!)
 
Animesh Saxena
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just found the solution....I guess somebody may face a similar scenario...so I am postin it here...


for the popup file.....
window.name = "AnyName"

In ur Form change the target to TARGET="AnyName"

so when u type document.formname.submit it will submit to this popup only

and won't open a new Window!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic