• 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

doubt in frames

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
my requirement is when i click a link on the top frame, a jsp must be loaded on the left pane and another different jsp has to be loaded on the right pane for the same event.

is this possible? Please suggest how to do it?
with regards,
Arjun.
 
author
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

You'd need to have the hyperlink point to a JavaScript snippet that sets the src attyributye of each frame, I guess.

Better yet, don't use frames. Load the content into DOM elements within your page using Ajax. Libraries like Prototype or jkQuery make this very easy to do.

Prototype's Ajax.Updater documented here:

http://www.prototypejs.org/api/ajax/updater

jQuery's load() method here:
http://docs.jquery.com/Ajax#load.28_url.2C_params.2C_callback_.29


HTH

Dave
 
reply
    Bookmark Topic Watch Topic
  • New Topic