trinadh_t
February 6th, 2008, 05:50 AM
Hi,
I have an image control which renders the image perfectly on IE, a mehod SetParams is called to set the properties for control to start function. This works well in IE but throws error firefox stating 'SetParams is not a funtion'.
Can any body help me out, i need to fix this as soon as possible.
Here is the sample code
function ViewDocumentImage()
{
var strURL = "http://localhost//customer_data//images//Assessor_2081210_1.tif";
var nPageCount = 1;
var strDescription = "";
alert( "Inside View Document IMage");
if(window.ActiveXObject){
window.document.objImageViewer.SetParams(strURL, nPageCount, strDescription);
}else{
alert(" Inside FireFox");
alert( strURL);
window.document.objImageViewer.SetParams(strURL, nPageCount, strDescription)
document.getElementById('objImageViewer').SetParams(strURL, nPageCount, strDescription);
}
}
</Script>
<BODY>
<object id = "objImageViewer" classid = "CLSID:EAC4DA12-B6EA-4A51-B455-1B506043C718" style = "width:80%;height:80%">
<EMBED
src="params.ini"
border="0"
width="500"
height="250"
name="objImageViewer"
TYPE = "application/x-fobs-activex-plugin"
/>
</object>
<a href="javascript:ViewDocumentImage(document.objImageViewer);">Click Here</a><br>
Please respond its very urgent for me
Regards
Trinadh
I have an image control which renders the image perfectly on IE, a mehod SetParams is called to set the properties for control to start function. This works well in IE but throws error firefox stating 'SetParams is not a funtion'.
Can any body help me out, i need to fix this as soon as possible.
Here is the sample code
function ViewDocumentImage()
{
var strURL = "http://localhost//customer_data//images//Assessor_2081210_1.tif";
var nPageCount = 1;
var strDescription = "";
alert( "Inside View Document IMage");
if(window.ActiveXObject){
window.document.objImageViewer.SetParams(strURL, nPageCount, strDescription);
}else{
alert(" Inside FireFox");
alert( strURL);
window.document.objImageViewer.SetParams(strURL, nPageCount, strDescription)
document.getElementById('objImageViewer').SetParams(strURL, nPageCount, strDescription);
}
}
</Script>
<BODY>
<object id = "objImageViewer" classid = "CLSID:EAC4DA12-B6EA-4A51-B455-1B506043C718" style = "width:80%;height:80%">
<EMBED
src="params.ini"
border="0"
width="500"
height="250"
name="objImageViewer"
TYPE = "application/x-fobs-activex-plugin"
/>
</object>
<a href="javascript:ViewDocumentImage(document.objImageViewer);">Click Here</a><br>
Please respond its very urgent for me
Regards
Trinadh