Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2007, 09:08 AM
Member
 
Join Date: Apr 2007
Posts: 3
Rep Power: 0
vicky is on a distinguished road
Smile passing values from main page to pop up window
Hello All,

How to pass values from main jsp pages to pop up wondow.

Thanks in advance,
Vicky
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 06-29-2007, 01:27 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Rep Power: 0
Peter is on a distinguished road
Default
You can do with GET METHOD:
Code:
http://www.example.com/index.jsp?
name=John+Sinclair&OK=1
URL:
Code:
    GET /index.jsp?name=John+Sinclair&OK=1
or check this link
Java Pop-up window from GridView Row Selection - ASP.NET Forums

Last edited by Peter; 06-29-2007 at 01:40 PM.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 11:24 AM
Member
 
Join Date: Jan 2008
Location: Singpore
Posts: 3
Rep Power: 0
urssanj00 is on a distinguished road
Send a message via Yahoo to urssanj00 Send a message via Skype™ to urssanj00
Default
In case you dont want to submit and pass the value using javascript only, then

in popup window following code can be used,

var a = window.parent.opener.document.getElementById("myte xt").value;
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-29-2008, 02:42 PM
Member
 
Join Date: Dec 2008
Posts: 2
Rep Power: 0
helpful is on a distinguished road
Default
Hi,

var a = window.parent.opener.document.getElementById("myte xt").value;

here, is "myte xt" name of the field in main page we want to refer?

Could anyone ans fast pls? its bit urgent..

Many thanks in advance!!
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 12-29-2008, 03:06 PM
Member
 
Join Date: Dec 2008
Posts: 2
Rep Power: 0
helpful is on a distinguished road
Default
Hi,

I have got it.

tnx..
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

« plz help | jsp IDE? »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
have to make the bookisbn column values as hyperlink to a page name bookinfo.jsp whi koushika New To Java 0 04-01-2008 04:14 PM
unable to update MYSQL with values from jsp page koushika JavaServer Pages (JSP) and JSTL 0 03-27-2008 01:35 AM
passing dynamically generated values abhiN Advanced Java 1 01-20-2008 03:21 AM
main window & print dialog roo7 Advanced Java 3 01-02-2008 06:50 AM
Passing the Values Lagarto Database 1 07-16-2007 03:03 AM


All times are GMT +2. The time now is 09:27 PM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org