HighDots Forums  

Page inside of another

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Page inside of another in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Panther
 
Posts: n/a

Default Page inside of another - 01-25-2007 , 01:09 PM






I am trying to load one page inside of another without using frames. For
example: page1.html(main page) in the html code is a table, in this table i
want to load/show page2.php or the "output" of it.



Reply With Quote
  #2  
Old   
Une Bévue
 
Posts: n/a

Default Re: Page inside of another - 01-25-2007 , 01:35 PM






Panther <pantherhawk (AT) comcast (DOT) net> wrote:

Quote:
I am trying to load one page inside of another without using frames. For
example: page1.html(main page) in the html code is a table, in this table i
want to load/show page2.php or the "output" of it.
make use of <object /> see an example here :

<http://www.yvon-thoraval.com/DOM/xpath_svg_test_case.xhtml>

the the syntaxically highlighted source of the page is in an <object />
in the page itself (line # 103/109).
--
Artaban de Médée


Reply With Quote
  #3  
Old   
David Golightly
 
Posts: n/a

Default Re: Page inside of another - 01-30-2007 , 12:21 AM



On Jan 25, 11:09 am, "Panther" <pantherh... (AT) comcast (DOT) net> wrote:
Quote:
I am trying to load one page inside of another without using frames. For
example: page1.html(main page) in the html code is a table, in this table i
want to load/show page2.php or the "output" of it.
This really depends on what your goal is and what page2.php looks
like. If you really want the whole page embedded in a table, use an
object or an iframe (almost the same thing, from the browser's
perspective - a new instantiation of the browser control inside a
running page). If, however, all you want is to retrieve a string or
bit of information and display it in a table without reloading your
main page, you should consider using XMLHttpRequest (aka Ajax). It
looks a little more complex on the surface but once you get the hang
of it it's quicker and much more versatile than simply loading another
page within a table cell.

David



Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.