You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Henri Dupre <he...@gmail.com> on 2006/10/06 07:37:33 UTC

How to include "broken" javascript?

We have several partners that require us to include some javascript like
that:
<script type="text/javascript">
<!--
xtnv = document;
xtsd = "... <http://logi12/>";
xtsite = "...";
xtn2 = "";
xtpage = ".";
roimt = "";
roitest = false;
visiteciblee = false;
xtprm = "";
//-->
</script>
<script type="text/javascript" src="
http://www.actualis.com/xtroi.js"></script<http://www.actualis.com/xtroi.js%22%3E%3C/script>
>
This seems to me currently impossible with Tapestry because all the script
includes are processed *before* any other javascript.
I currently wrote a simple component that does some writer.printRaw in order
to produce this stuff exactly but that's not very satisfactory, I'd rather
like to benefit from Tapestry's javascript facilities.
Any suggestions?

Thanks

-- 
Henri Dupre
Actualis Center

Re: How to include "broken" javascript?

Posted by Andreas Andreou <an...@di.uoa.gr>.
Why can't you include those exact scripts directly in your page or 
component?

Henri Dupre wrote:
> We have several partners that require us to include some javascript like
> that:
> <script type="text/javascript">
> <!--
> xtnv = document;
> xtsd = "... <http://logi12/>";
> xtsite = "...";
> xtn2 = "";
> xtpage = ".";
> roimt = "";
> roitest = false;
> visiteciblee = false;
> xtprm = "";
> //-->
> </script>
> <script type="text/javascript" src="
> http://www.actualis.com/xtroi.js"></script<http://www.actualis.com/xtroi.js%22%3E%3C/script> 
>
>>
> This seems to me currently impossible with Tapestry because all the 
> script
> includes are processed *before* any other javascript.
> I currently wrote a simple component that does some writer.printRaw in 
> order
> to produce this stuff exactly but that's not very satisfactory, I'd 
> rather
> like to benefit from Tapestry's javascript facilities.
> Any suggestions?
>
> Thanks
>

-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: How to include "broken" javascript?

Posted by Norbert Sándor <de...@erinors.com>.
Isn't Shell's "delegate" parameter (and functionality) appropriate for you?
By using "delegate" you can include the scripts in the <head> of the page.

Regards,
Norbi

Henri Dupre wrote:
> We have several partners that require us to include some javascript like
> that:
> <script type="text/javascript">
> <!--
> xtnv = document;
> xtsd = "... <http://logi12/>";
> xtsite = "...";
> xtn2 = "";
> xtpage = ".";
> roimt = "";
> roitest = false;
> visiteciblee = false;
> xtprm = "";
> //-->
> </script>
> <script type="text/javascript" src="
> http://www.actualis.com/xtroi.js"></script<http://www.actualis.com/xtroi.js%22%3E%3C/script> 
>
>>
> This seems to me currently impossible with Tapestry because all the 
> script
> includes are processed *before* any other javascript.
> I currently wrote a simple component that does some writer.printRaw in 
> order
> to produce this stuff exactly but that's not very satisfactory, I'd 
> rather
> like to benefit from Tapestry's javascript facilities.
> Any suggestions?
>
> Thanks
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.407 / Virus Database: 268.12.13/463 - Release Date: 2006.10.04.
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org