Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exernal file

 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic