|
Hai,
I have used windows color picker (dlghelper object) through javascript function. It is working fine in some server and the same code is not working for some other server.The code is
<OBJECT id="dlgHelper" height="0" width="0" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b"<br />
VIEWASTEXT><br />
</OBJECT><br />
</P><br />
<P><br />
<script language="javascript"><br />
<br />
function test(objName,objLabel)<br />
{<br />
<br />
var sColor=window.document.dlgHelper.ChooseColorDlg();<br />
document.getElementById(objName).value=sColor;<br />
document.getElementById(objLabel).style.backgroundColor=sColor;<br />
return false;<br />
<br />
}
But in that server where this color picker is not working all ther javascript functions are working.So I don't think that it is a problem of disabled javascript or popup window. I am very confused, why this is happening.Please help me to find the reason and show me a right way. Thanks much.
Thank You,
Rahul.P.Menon.
SoftwareDeveloper(.NET)
|
|
|
|
|
It is very unlikely that the problem has anything at all to do with the server. The javascript is run entirely in the browser.
The only way there might be a difference depending on the server, is if the security settings in the browser is different for the servers. Still, this is a setting in the browser, and has nothing to do with the server itself.
---
b { font-weight: normal; }
|
|
|
|