• 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

javascript and JSP

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JSP that access a bean method. In this JSP, I want to
access a bean method to get some value in a javascript function.
This javascript function will be called like this
<html>
<body onLoad="return showDrrValues">
</body>
/html>
In the Javascript function, I am using the following to get the value from bean
function showDrrValues() {
var p = <%= item.getProposedCredit() %>;
//once I get this value, I want to store it in a Frame form element
window.parent.lframe.credits.network_drr.value = p;
}
The browser window has two frames, top frame (tframe) and botom
frame (lframe). The value from function has to be stored in
the bottom frame. The javascript function is in the top frame (tframe). Now initially when in the top frame, when the HTMl page is loaded, the values in the bottom frames are stored. Now if leave the top frame html and then come back, the botom frames values are not loaded again. I have to press browser reload button to reload the values in the bottom frame. Can somebody tell me what I am doing wrong. I hope my question is clear.
Thanks
rajesh
 
Every plan is a little cooler if you have a blimp. And a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic