View Full Version : view code in new window
hantz
10-18-2007, 05:42 PM
i want part of my code from the main page(the same page where the link will be)
will be shown in a new window...
for example i got index.htm with 10 lines+link and 4 more lines that will be open in a new window when you will click on the link...
:confused:
boogyman
10-18-2007, 05:48 PM
<a href="/path/to/new/page" target="_blank">Link Title</a>
is that what you were talking about?
hantz
10-18-2007, 06:34 PM
i don't need another page to open in the new window...
i need the lines that will apear in the new window be on the same page...using only one page
boogyman
10-18-2007, 06:42 PM
so you want to open a page on a different part of the page?
like in an frame? if so you jsut change the value of target to the name of the frame
<iframe name="something" src="defaultPage.htm>
if that is still not what you are looking for can you post a url to an example?
hantz
10-18-2007, 06:52 PM
no i frames...
i got to inject some how 5 lines into a new window...
i got to enter some lines into a new window...no frames i need to use only javascript...
boogyman
10-18-2007, 07:28 PM
a new window implies that you have a new instance of the browser. if you are talking about populating a portion of the existing page well that is AJAX, and there are many tutorials out there on the basics of connecting, grabbing, populating data.
for starters look at http://www.dynamicdrive.com/forums/showthread.php?t=19247
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.