> I have popup windows on my site that display large product 
> photos that have been indexed by search engines. The thing 
> is, when a customer is refered by a search engine by one of 
> these indexed popup windows pages, the page does not 'render' 
> like a pop up window if the customer was already browsing my 
> site. It renders like a regular HTML page with a 'close 
> window' button. The user cannot click anywhere and if he/she 
> clicks the 'close window' button, I've lost the user from my site.
> 
> How can I determine where the user comes from? The 
> CGI.HTTP_REFERER variable works for Firefox, but not always 
> from IE (basically, the CGI.HTTP_REFERER sometimes has no 
> value using IE).
> 
> Is there logic that can determine whether a page is rendered 
> as a Javascript popup window (with no page controls) vs. a 
> regular html page? Perhaps that would work???

Using JavaScript, you can determine whether the window was opened by another
window - if you used window.open() to create the window, you can use
window.opener within the child window to identify the parent. With that
information, you could control the display of the contents, or force the
creation of the parent window and subsequently trigger the redisplay of the
child window.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265818
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to