• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

on click hyperlink, display content under the hyperlink

 
Greenhorn
Posts: 13
Hibernate Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends i am having medium knowledge to html css,

my problem is if i click the html hyper link page will displayed next page i used Html _Blank,_top,_parent,_self attributes.

I want to display html hyperlink and below hyper link i want display the href content page . like menu bar if click services those services will be displayed under the services in main area,

Please help me that sample code to achieve the task.

Thanks
krishna
 
author & internet detective
Posts: 41083
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like you might be describing an iframe. That's when you display another page inside a part of your page.
 
krishnamurthy durgam
Greenhorn
Posts: 13
Hibernate Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks replaying jeanne, but..

I have knowledge on frames,framesets and how to use target frames.

with out using frames how can i display the content under the anchor or hyperlink to display the content in the same page only.
please help me

Thanks
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean like a floating div?

 
krishnamurthy durgam
Greenhorn
Posts: 13
Hibernate Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Jayesh,

if i click my menu bar SERVICES button or link i want to display the content under the menu bar to display the set of services i offerd.

thank
Krsihna
 
Sheriff
Posts: 67637
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
Sounds like you need Ajax to fetch the page fragment from the server, and then you'd insert the fragment into the DOM.

With jQuery (which you should use for this), you'd simply use a the .load() method which will handle both tasks.
 
krishnamurthy durgam
Greenhorn
Posts: 13
Hibernate Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi bibeault,

you are not getting i think so i need help, alternatives for html frames. i want to know how to did that task with help of CSS and JavaScript,
 
Bear Bibeault
Sheriff
Posts: 67637
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

krishnamurthy durgam wrote:hi bibeault,


A point of etiquette: you should address me as either "Bear" or "Mr. Bibeault". In western culture, using just the last name is considered somewhat rude.

you are not getting i think so i need help, alternatives for html frames


What am I not getting? Nowhere did I mention frames.

i want to know how to did that task with help of CSS and JavaScript,


That is exactly what I have given you. When someone posts an approach to take, please do some research before dismissing it out of hand.

To give you another prod forward, here is some example code:
That will replace the contents of the container element with the page fragment returned as the response. jQuery must be loaded onto the page.
 
krishnamurthy durgam
Greenhorn
Posts: 13
Hibernate Java ME Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ho! sorry bear,

thank to helping me
 
I knew that guy would be trouble! Thanks tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic