• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Loading iframes  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !

If i have a jsp page where i have a selectbox where i kan choose som templates. to tthe rigth of this selectbox i want a Iframe where i can got a preview of the selected template. So when i choose a template and push the uppdate button under my iframe, i just want to call the servlet and update the template value and only uppdate the iframe window not the entire page. Does anyone now how to do this i will be grateful

Regards Janne
[ December 21, 2004: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67257
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the HTML/Javascript forum as this is entirely client-side activity.

P.S. I also changed the topic title to something more on-topic.
[ December 21, 2004: Message edited by: Bear Bibeault ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can update the iframe location with adding an onclick handler in the button tag.

onclick="parent.iframeName.src=document.FormName.SelectName.options[document.FormName.SelectName.selectedIndex].value"

Eric
 
This will take every ounce of my mental strength! All for a tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!