My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Insert image fails in Netscape

Insert image fails in ActivEdit 3.0 applet


Solution:

Insert the following function in left.cfm and update the insert_image() function.

/*Added by Yegor Yenikeev 6-50 PM Sep 18 2002 */
function getFormObject( strForm ){

    var _info = navigator.userAgent;
    var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0)));
    var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
    var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
 var _mac = ( _info.indexOf("Mac") > -1 ) ? true : false;
 
 if( _ie == true )
  return eval( strForm )
 else   
  return eval( "document.forms." + strForm )
}
/*End of added by Yegor Yenikeev 6-50 PM Sep 18 2002 */

function insert_image() {
/*Changed by Yegor Yenikeev 6-50 PM Sep 18 2002 */
 //insert the image into the activedit control '#url.imageurl#'
 eval(parent).opener.onImage( parent.image_loc, '#url.imageurl#' ,
         getFormObject("imgfrm").bdr.value,
         getFormObject("imgfrm").algn.value,
         getFormObject("imgfrm").alt.value,
         #url.instance#);
/*End of changed by Yegor Yenikeev 6-50 PM Sep 18 2002 */         
 val = close();
}

Search Knowledge Base:
Sign up for our newsletter: | Subscribe with RSS: RSS
© ActivSoftware 1999 to 2005 | Privacy Statement