K
Kerberos
When I deliver a page as text/html, the javascripts work, but if delivered
as application/xhtml+xml, the javascripts don't work:
function OpenBrWindow(theURL,winName,features, myWidth, myHeight,
isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function Glaydon() {
var uservar = "vendas";
var servidor = "cpedobrasil";
var ext = ".com.br";
document.write("<a href=" + "mail" + "to:" + uservar + "@" + servidor+ ext
+ ">" + uservar + "@" + servidor + ext + "</a>");
}
I'm desperate. I include the javascripts this way:
<script type="text/javascript" src="javascript.js"></script>
Is there a way to have them to work?
I just saw that document.write(); doesn't work under XHTML. Is there a way
to have a similar feature ?
Thanks,
--
Kerberos.
http://www.opera.com
http://www.freebsd.org
http://www.osresources.com
http://exodus.jabberstudio.org
as application/xhtml+xml, the javascripts don't work:
function OpenBrWindow(theURL,winName,features, myWidth, myHeight,
isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2;
var myTop = (screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
}
window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function Glaydon() {
var uservar = "vendas";
var servidor = "cpedobrasil";
var ext = ".com.br";
document.write("<a href=" + "mail" + "to:" + uservar + "@" + servidor+ ext
+ ">" + uservar + "@" + servidor + ext + "</a>");
}
I'm desperate. I include the javascripts this way:
<script type="text/javascript" src="javascript.js"></script>
Is there a way to have them to work?
I just saw that document.write(); doesn't work under XHTML. Is there a way
to have a similar feature ?
Thanks,
--
Kerberos.
http://www.opera.com
http://www.freebsd.org
http://www.osresources.com
http://exodus.jabberstudio.org