Current location: Hot Scripts Forums » General Web Coding » JavaScript » Getting links to open in a <div>


Getting links to open in a <div>

Reply
  #1 (permalink)  
Old 08-17-05, 05:36 PM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Getting links to open in a <div>

Is it possible, to get a link to open in a <div>

Like

Code:
<html>
<head>

</head>
<body>
<a href="page.html">Link</a>
<div id="main">

</div>
</body>
</html>
how, do I get page.html to load in the div? like frames but I dont want to use frames as they 'stick' on the page, there always in focus..
Reply With Quote
  #2 (permalink)  
Old 08-17-05, 06:32 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
I guess this can be only done with server side's help.
meaning you'd have to use XMLHttpRequest to send a request to the server to post back the contents of the file you want and then change the innerHTML of that DIV to those contents..
a long story and IMHO overdone.
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need a cycle links script free or paid charley45 Script Requests 0 08-17-05 05:17 AM
How can I open links in original window? GS300 JavaScript 3 05-30-04 08:37 AM
Making all links open in a new window. floydboy58 JavaScript 2 05-02-04 08:09 AM
Form vairable to open file(PERL) Sebastien1239 Perl 9 12-08-03 11:39 AM
Targeting links using javascript Greg JavaScript 4 06-30-03 04:06 PM


All times are GMT -5. The time now is 10:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.