Two Laptop Bag*
The moose likes JSP and the fly likes exernal file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "exernal file " Watch "exernal file " New topic
Author

exernal file

Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
Hi guys
I need the exernal file .js o html that contain this code :
<script >
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=1234567;type=abcde123;cat=fghij456;u1=[friendlyname1];u2=[friendlyname2];ord='+cookie_registrazione+'?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>

that is called from a jsp that is include with tiles in other jsp.
a problem that i don't know i include this page i try to use the <!--#include of apache but i can't use it.
I don't use velocity
someone can suggest me a solution?

Dora Di donato
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

You say Apache instead of Tomcat. Is this even a java JSP application and do you know how to do a javascript include such as
Dora Di Donato
Ranch Hand

Joined: Nov 27, 2009
Posts: 85
I try but it don't function, I explain you

the frist page that include another with a tiles compare this :

<script language="JavaScript" type="text/javascript" src="/alfresco/get_Cookie.js"></script>


ok! when i click on this script i see this code : getCookie.js

<script >
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=1234567;type=abcde123;cat=fghij456;u1=[friendlyname1];u2=[friendlyname2];ord='+cookie_registrazione+'?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>
but i interest that this code see the cookie but it don't function.

Why

Thank you

Dora Di Donato

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Can you give more information?

What is the expected result and what is the actual result that you see? Does an IFrame appear? Can you use a debugger such as firebug to look at the source of the IFrame as it is rendered?

If I was having this trouble, I'd make it simpler by, just for now, not using javascript to render the IFrame and see if you can get that to work with a hard-coded value for cookie_registrazione,

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exernal file