[TYPO3-dev] From JavaScript variable as PHP-variable
Tapio Markula
tapio.markula at atwebteam.com
Fri Sep 22 13:28:33 CEST 2006
Hi
The script below is JavaScript
and it fetch information about
the URL of the page in certain frame.
function getContentURL() {
var message=top.content.location.href;
if (top.content && message.indexOf("/typo3")==-1) {
if(message.indexOf("#")!=-1) {
var indexValue = message.indexOf("#");
message=message.substr(0,indexValue);
}
document.urlform.navurl.value=message;
}
document.urlform.navurl.value=message;
';
$thisJSCode.='
}
window.onload=getContentURL
}
Is there any idea, howt I could get the JavaScript variable
as PHP-variable in order to use with PHP-scripts.
More information about the TYPO3-dev
mailing list