View Full Version : HOW TO? -- puting a bunch of info into a popup from parent page?????
10-19-2005, 07:21 PM
I have a LOT of info that I am 'hiding' on a page. I am hiding this info via a div tag.
Okay, I want to let a user click a 'popup' link, and then have that information put into a popup window.
The problem is, the amount of information is not so little to do a simple document.write and reference back to some variable.
I have ALOT of info that I am 'hiding' on the parent page. Basically, I only want to hit the server one time for this page, thus I give back the html page all information. The user then selects a link, and the popup shows the "rest of the info".
Is there a way to do this without a bunch of document.writes and such in the popup.
Can I somehow reference the contents of a div tag and display it in the popup? Whole tables and content and such?
10-19-2005, 07:48 PM
how much information in KB mate? Also, does it require manipulation before putting into the popup?
10-19-2005, 08:04 PM
well, I am gonna be formatting it on the parent page....
so, the proper tables and headers and everything is in there...ala..
all the info here...complicated table structure showing
pricing figures and such. There could like 4 of these tables but with
much more data.
The amount of the KB for the popup, hmmm. I would imagine about, actually I don't know.
A fair amount. Like 3 fairly large tables with pricing/seating/product info..
10-19-2005, 11:12 PM
Here is one way.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
newwin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\n');
<a href="index.html" onclick="openWin(this.href,'somediv');return false">Open win</a>
There might be a better way.
10-20-2005, 01:51 AM
awesome...this is exaclty what I was looking for...
Perfect! ---> thanks alot, I totally appreciate it.
11-28-2005, 08:01 PM
Okay, I have a little problem.
The popup page will actually be dynamically created WITH THE html/body/title etc... already in it...
SO, how would I make this work..????
<title>some title </title>
SOME OTHER INFO DYNAMICALLY GENERATED FROM THE SERVER/APP
---> NEED THE DIV INFO HERE <---
11-28-2005, 08:55 PM
You could try using:
in the popup window...
11-28-2005, 09:07 PM
I gotta laugh..that works - I just have to check it across different browsers...but that is so simple...hahaa, I tend to think too complicated....
I really appreciate it..thanks.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.