• 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

Writing HTML to IFrame - very urgent

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Look at the following code pieces from a JSP , say A.jsp
<sdrcWae:htmlgeneratortag presentation="sdrcButtonBarTopBean"/>
This is a custom tag . The output from this tag is stored in a variable called 'bodyOutput' which can be referenced in the rest of the JSP page .
Now I have an iframe . defined in this A.jsp .
My requirement is that the HTML contained in the variable 'bodyOutput' should be displayed in the iframe.
Any idea how to go abt this.
Regards,
Puneet
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is with you and I frames? Tell the person to use divs...lol...they can look the same!
you can document write to the iframe
parent.IframeName.document.write(YourVariable)
 
30 seconds to difuse a loaf of bread ... here, use 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