csim
10-01-2007, 05:06 PM
1) Script Title:
DHTML Window Widget
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
My title isn't correctly encoded.
I want to be sure where to look at the problem, so I 've modified the page demo.htm from the script :
<p>Play around with Window 3 (Ajax content)</p>
<script type="text/javascript">
function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/external.htm", "Envoyer à un(e) ami(e)", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close window 3?")} //Run custom code when window is about to be closed
}
openmypage();
</script>
<ul>
<li><b><a href="#" onClick="openmypage(); return false">Create/ Open Window 3</a> (in IE, this Ajax demo must be run online!)</b></li>
<li><a href="#" onClick="ajaxwin.moveTo('middle', 'middle'); return false">Center Window 3</a></li>
<li><a href="#" onClick="ajaxwin.load('ajax', 'windowfiles/external2.htm', 'Envoyer à un(e) ami(e)'); return false">Load another page's content in Window 3</a></li>
<li><a href="#" onClick="ajaxwin.show(); return false">Show Window 3</a></li>
</ul>
The result is the same as in my page. The title from the page (Create / Open Window 3) isn't correct. The title from the page Load another page's content in Window 3 is correct.
Have you got an idea?
Thanks
Regards
DHTML Window Widget
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
My title isn't correctly encoded.
I want to be sure where to look at the problem, so I 've modified the page demo.htm from the script :
<p>Play around with Window 3 (Ajax content)</p>
<script type="text/javascript">
function openmypage(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "windowfiles/external.htm", "Envoyer à un(e) ami(e)", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close window 3?")} //Run custom code when window is about to be closed
}
openmypage();
</script>
<ul>
<li><b><a href="#" onClick="openmypage(); return false">Create/ Open Window 3</a> (in IE, this Ajax demo must be run online!)</b></li>
<li><a href="#" onClick="ajaxwin.moveTo('middle', 'middle'); return false">Center Window 3</a></li>
<li><a href="#" onClick="ajaxwin.load('ajax', 'windowfiles/external2.htm', 'Envoyer à un(e) ami(e)'); return false">Load another page's content in Window 3</a></li>
<li><a href="#" onClick="ajaxwin.show(); return false">Show Window 3</a></li>
</ul>
The result is the same as in my page. The title from the page (Create / Open Window 3) isn't correct. The title from the page Load another page's content in Window 3 is correct.
Have you got an idea?
Thanks
Regards