Is there a class to extract information from the url of the current
frame/window?
I'm currently using a few functions (you can see them at the bottom) and
would like to replace them to minimize the dependancy to script other
then qooxdoo...
Lorenzo
PS: If there's nothing similar and you developers thinks they could be
useful, feel free to include them in the next release (I would be honored!)
getSiteUrl = function()
{
var result;
var params;
var index;
result = document.location.protocol + "//" + document.location.host
+ document.location.pathname;
while (result.charAt(result.length - 1) != "/")
{
result = result.substring(0, result.length - 1);
}
result = result.substring(0, result.length - 1);
return result;
};
getParam = function(name, alternativeUrl)
{
var params;
var index;
var result;
if ((endodedUrl === undefined) || (endodedUrl === null))
{
params = document.location.search.substring(1,
document.location.search.length);
}
else
{
params = alternativeUrl.split("?")[1];
}
params = params.split("&");
result = "";
for (index = 0; index < params.length; index++)
{
var parts;
parts = params[index].split("=");
if (parts[0] == name)
{
result = parts[1];
break;
}
}
return result;
};
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel