File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes posting a form in a new window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "posting a form in a new window" Watch "posting a form in a new window" New topic
Author

posting a form in a new window

pendse anagha
Ranch Hand

Joined: Mar 09, 2005
Posts: 44
Hello ,
I am trying to create a form with two buttons
The buttons I am naming as - "Create" and "Preview"

When I click on - "Create" - I would like the form to be submitted in the same window ( as we normally do )

However - when I click on - "preview" - I want to submit the form - in a new window( I want to use POST -
I do not want to use query string to pass data )

Can someone please point me to some code examples as to how I can achieve this ?

Is this possible ?

Thanks in advance ,
-anagha
[ May 19, 2005: Message edited by: pendse anagha ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_21067228.html

Eric
pendse anagha
Ranch Hand

Joined: Mar 09, 2005
Posts: 44
Hello Eric ,
The site that you have been so kind to point to me is a paid preview site
I am kinda poor to afford the money that it needs
So I am shamelessly looking for some free help !!

Thanks ,
-anagha
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You need to scroll down the page, ignore the sign up stuff...
pendse anagha
Ranch Hand

Joined: Mar 09, 2005
Posts: 44
Hello Eric ,
Thanks !
I guess I was hasty in my reply - and once again thanks for your patience .

I am not good in Javascript and hence dont seem to like it !

Ok - here is what I got from the message trail and it worked for me
Thanks !

Here is what I have in my code :


I hope this is helpful to other ranchers too.
Thanks ,
-anagha
 
GeeCON Prague 2014
 
subject: posting a form in a new window