• 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

Post data to new window?

 
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to post an array of elements (orderSelectedID) to a new window (window.open). In the solution below it opens the window mySillyWindow, if I call the function submitOne(), but I got this error:

405 POST not supported

How can I post an array of elements (orderSelectedID) to a new window (mySillyWindow), when I hit the link submitOne? P.S. I still need to use the function submitTwo() which I don�t want to open a new window!

 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does you submitTwo work ?
 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes submitTwo() works fine, but because I have the form attribute target="mySillyWindow" it opens a new window, which I don�t want it to when I push the link submitTwo()!

I only want a new window to open when I push the link submitOne(). That�s why I try to call the function createSillyWindow()... But I also need to remove the form attribute target="mySillyWindow"... Is it possible to write something like:



The problem is that if I use the code above, then the same window (as shows my links) is opening in the new window?
[ February 10, 2006: Message edited by: Jeppe Fjord ]
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic