[Typo3] getting .js variable to TS?

T.Joga email at welho.com
Thu Dec 22 10:26:49 CET 2005


How about if I check flash version with javascript on the index.php if 
there is no variable set for flashversion - set it and continue. It 
would be great if this variable would be carried after this everywhere 
in url-line. Is this possible without a serious hacking of typo? Is 
there possible to set in the url your own variables?

if(flash.version >= 6)
{
parent.location.href="index.php?id=1&F=1"
}else{
parent.location.href="index.php?id=1&F=0"
}


> I can't think of a way this would be possible, as the .js is executed in the browser after the whole webpage is sent from the server, and this is a bit late to do anything with typoscript.
> Perhaps you could do something like AJAX, if the javascript finds flash missing it sends a request to the server for an alternative menu etc.
> 
> Best Regards/MVH
> Allan Jacobsen
> Infrastruktur, Dansk Tipstjeneste A/S
> Korsdalsvej 135, 2605 Brøndby
> 
> -----Oprindelig meddelelse-----
> Fra: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] På vegne af T.Joga
> Sendt: 21. december 2005 16:31
> Til: typo3-english at lists.netfielders.de
> Emne: [Typo3] getting .js variable to TS?
> 
> I would like to add flash-navigation menu on the page, but I also want 
> to check if user have proper flash version -> if not -> add text-based menu.
> I can check flash version, but dont know how to use this info:
> page.5000.wrap = <scrip!>document.write(flash.version);</script>
> 
> is it possible to get that "flash.version" variable in use when 
> constructing template:
> [if flash.version >= 6]
> subparts.navigation < temp.flashmenu
> [else]
> subparts.navigation < temp.textmenu
> [end]
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list