on 11-12-2007 9:51 AM
Hi Experts,
in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok button the values should pass to parent window dropdownlistboxes
can any body suggest how i will get the popup window values
thanks in advance,
ramani.
Hi Ramani,
You can use getElementById property. Pass this value to and from Paretn<->child.
Maintain same name in both windows.
This is specific to HTML. If it is something in other language, Please let me know.
regards
-Kedar
reward points if useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In JSPDynp u can use Session Beans very effectively for storing values.
try something like:
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
store using:
request.getComponentSession().putValue("sometext",
"session ctxt");
and to retrieve:
request.getComponentSession().getValue("sometext");
as u said u r using JSP u can try something like this:
to store :
<%
componentRequest.getComponentSession().putValue("sometext",
"text from JSP");
%>
for retrieve:
<%
componentRequest.getComponentSession().getValue("sometext").toString(); %>
I guess this helps.
regards
-Kedar
reward points if useful..
Hi,
actually my popup window jsp belongs to one component and the parent window belongs to another component so i need the data of popup component to my parent component and
also can u suggest me to how to call jsp in a Link.
in the Link in onClick it is not allowing me to call jsp alone thats why i developed another component.
thanks and regards.
ramani.
Hi Ramani,
I can provide few inputs on how can we control JSP 2 from JSP1.
Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.
here it is:
JSP 1.
<h1>Page One</h1>
<br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>
<br><br><br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>
<br><br><br>
<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>
JSP 2.
<h1>Page Two</h1>
<br>
<a name="part1">
<h3>Part 1</h3>
</a>
<a name="part2">
<h3>Part 2</h3>
</a>
<a name="part3">
<h3>Part 3</h3>
</a>
This way you can move from one JSP to other.
regards
-Kedar Kulkarni
reward points if useful.
Message was edited by:
Kedar Kulkarni
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.