Hi all,
Need some help here. I am very new to Javascript and CSS.
I have a search page on my website for a bunch of HTML articles (documents saved as web pages).
The search is done and displayed as links in a DIV named 'Results' in the webpage.
Is there a way I can manage to click those result links and open them in the same Div?
If its not possible, can someone help me on what code should i use for opening the page as an iFrame in the DIV?
Thanks for your help!!!
Displaying HTML in a Div/iFramw
Page 1 of 11 Replies - 623 Views - Last Post: 26 September 2012 - 04:56 PM
Replies To: Displaying HTML in a Div/iFramw
#2
Re: Displaying HTML in a Div/iFramw
Posted 26 September 2012 - 04:56 PM
Hi,
To make it easier to explain I made a small example http://jsfiddle.net/Cb8Dm/4/
Basically you could use jQuery , which is a javascript library or kit, to do this if the html articles were stored local. It will update the div with an id="content" or #content without reloading the whole page. I commented in the example as well. I do recommend looking into jQuery and what ajax is . Good luck!
To make it easier to explain I made a small example http://jsfiddle.net/Cb8Dm/4/
Basically you could use jQuery , which is a javascript library or kit, to do this if the html articles were stored local. It will update the div with an id="content" or #content without reloading the whole page. I commented in the example as well. I do recommend looking into jQuery and what ajax is . Good luck!
This post has been edited by shezzy: 26 September 2012 - 05:05 PM
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote



|