Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

popup windows using div

Status
Not open for further replies.

bcardona

Programmer
May 10, 2001
103
US
how can i have a new window open in a div tag, i.e. i want test.asp to open in a new window, i can get am image to display but not a page, i have included the code. i dont think i have the syntax right.

<DIV TITLE="header=[] body=[<link='/test.asp'><br><img src='/images/image.gif'> fade=[on] windowlock=[on] fadespeed=[0.25] cssbody=[bogopopup] csstitle=[bogopopuptitle]"><img src="/images/testimages.jpg"></DIV>
 
do u want a new window or a div containing another page? I think maybe u need an iframe.
 
i cant use an iframe, so i need a new window that displays another page.
 
i cant use an iframe

Why not? Don't get me wrong, I'm all for not using frames, but in this instance it's the easiest solution. Your other option would be AJAX, but if you're asking this question you probably don't know anything about AJAX - so I'd use the iframe if I were you.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B> bites again.[/small]
 
DIV's don't work that way. DIV's are static html elements, that help in grouping other html elements for layout. They don't display html like an iframe would.


If you want content from say test.asp file displayed in the DIV, then use ASP to display it.

Something like an include, or require statement from ASP will let you do what you want.
But of course this falls out of the scope of this forum.

I suggest asking in forum333 for how to include a file in another file. Then just use that to include test.asp inside the div.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top