• 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

Loading iframes

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic