Article View: adobe.golive.dynamic.content
Article #81Re: Open Window Action and PHP
From: Jeremy_M._Cox
Date: Sun, 18 Jul 2004 03:23
Date: Sun, 18 Jul 2004 03:23
23 lines
2431 bytes
2431 bytes
Ok folks. I am still new to this coding thing. When I get java script I am afraid to use it because I don't know where to put it. However I know that nothing that is attempted is going to be so devistating if its wrong that I won't be able to fix it.
So I found this code. I created a new javascript object in the head. Into which I put the following.
// function Start(page) {
// OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=470,height=400");
// }
I then hilighted the link (image or text) and used the fetch URL tool in the inspector to point to my pop up page. I then re-hilighted the link and went to split source view. The image or text link is hilighted in the source. After the a href= I put this:
// javascript:Start('URL')
in place of the URL I copied and pasted the original link. (btw I used the pageParameter technique used by Jerry in his "List/Details/Edit tutorial)
The url would look similar to this:
// ftc_pop_up.php?showme=<?php echo $ftc_list->Value("ftc_id") ?>
so the total link looks like this.
// <?php echo $ftc_list->Value("ftc_id") ?>')>
I surely hope this helps someone. But hey I might be the last person who need to know this and everyone else knew it already. But if there is someone out there that needs to know how to do this then here it is.
PS In your pop up window doc make sure you have the same content sources from your original page. The easiest way to assure this is by either copy and pasting the content sources or simply dragging from one head section to the other. <javascript:Start(ftc_pop_up.php?showme=>
Technical Details
Message-ID:
<3bb5130a.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<3bb5130a.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 11ffd2,d978a61246f99004 X-Google-Attributes: gid11ffd2,public X-Google-Language: ENGLISH,ASCII-7-bit From: Jeremy_M._Cox@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.golive.dynamic.content Subject: Re: Open Window Action and PHP Message-ID: <3bb5130a.0@webx.la2eafNXanI> Date: Sat, 17 Jul 2004 20:23:53 -0700 References: <3bb5130a.-1@webx.la2eafNXanI> Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit