...
<a href="" src=""
alt="edit" border="0"></a>
<CFIF isDefined("url.edit")>
<!--- here is the _javascript_ code I need to generate a popup with the
passed parameter which corresponds to the record. --->
function getArgs() {
var args = new Object();
var query = location.search.substring(1);
var pairs = query.split("&");
for (var i = 0; i < pairs.length; i++) {
var pos = pairs[i].indexOf('=');
if (pos == -1) continue;
var argname = pairs[i].substring(0,pos);
var value = pairs[i].substring(pos+1);
args[argname] = unescape(value);
}
return args;
}
</CFIF>
-mike
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

