I want my users to see the page even when they do not have javascript
enabled. So I created a openWin script that will add ?popup=true to the
URL before opening the window. So when user doesn't have javascript enabled
he is sent to the regular #self##XFA.helpPage#/page/privacy/ page, but if
he has JS, he's sent to #self##XFA.helpPage#/page/privacy/?popup=true and
then I look for popup attribute and use different layout files.

Here's an example link:

<a href="#self##XFA.helpPage#/page/privacy/" onclick="return openWin(this.href);">

And here's my openWin function (stripped down a bit):

/* Window opener */
function openWin(windowURL, windowWidth, windowHeight, windowName, windowFeatures) {
  // Add popup querystring
  windowURL = windowURL + "?popup=true";
  ...
  // Open and focus
  popupWindow = window.open(windowURL, windowName, windowFeatures +
                ',width=' + windowWidth + ',height=' + windowHeight);
  popupWindow.focus();

  return false;
} 

.erki

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 8:54 PM
Subject: different layout for my openwindow()


> The link below will open up a window.  But I don't want the same layout 
> as the application.  Is there a way where this window stands in it's own 
> in term of page layout.
> 
> <a href="" 
> #request.CFRoot#/search/index.cfm?fuseaction=savemycriteria&#URLToken#', 
> 500, 400); return false">Save My Criteria</b></font></a>
> 

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to