[Isis-users] ABCD Print - Preview gives empty screen if CENTRAL_EDPFT is not permitted

fred train fred_train at xs4all.nl
Thu Sep 21 22:07:01 CEST 2017


An HTML attachment was scrubbed...
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20170921/50dcd8fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Print_option_without_CENTRAL_EDPFT.jpg
Type: image/jpeg
Size: 46216 bytes
Desc: not available
URL: <http://lists.iccisis.org/pipermail/isis-users/attachments/20170921/50dcd8fd/attachment.jpg>
-------------- next part --------------
function EnviarForma(vp){
	// Code moved to the end of the file: code here mask error pop-ups
	//if (vp=="P") {
	//	document.forma1.vp.value="S"
	//	document.forma1.target="VistaPrevia"
	//	msgwin=window.open("","VistaPrevia","resizable, status, scrollbars")
	//}else{
	//	document.forma1.vp.value=vp
	//	document.forma1.target=""
	//}
	de=Trim(document.forma1.Mfn.value)
  	a=Trim(document.forma1.to.value)
  	if (de!="" || a!="") {
	  	document.forma1.Opcion.value="rango"
  		Se=""
		var strValidChars = "0123456789";
		blnResult=true
   	//  test strString consists of valid characters listed above
   		for (i = 0; i < de.length; i++){
    		strChar = de.charAt(i);
    		if (strValidChars.indexOf(strChar) == -1){
    			alert("<?php echo $msgstr["especificarvaln"]?>")
	    		return
    		}
    	}
    	for (i = 0; i < a.length; i++){
    		strChar = a.charAt(i);
    		if (strValidChars.indexOf(strChar) == -1){
    			alert("<?php echo $msgstr["especificarvaln"]?>")
	    		return
    		}
    	}
    	de=Number(de)
    	a=Number(a)
    	if (de<=0 || a<=0 || de>a ||a>top.maxmfn){
	    	alert("<?php echo $msgstr["numfr"]?>")
	    	return
		}
	}

	// Code replaced by try-catch construction to cope Undefined type exceptions
	//if (Trim(document.forma1.pft.value)=="" && document.forma1.fgen.selectedIndex<1 && Trim(document.forma1.pft.value)==""  ){
	//  	alert("<?php echo $msgstr["r_selgen"]?>")
	//  	return
	//}
	// code copes with possibly undefined variable document.forma1.pft.value
	if (document.forma1.fgen.selectedIndex<1 ){
		try { typeof document.forma1.pft.value}
		catch (err) {
			alert("<?php echo $msgstr["r_selgen"]?>") 
			return
		}
		if (Trim(document.forma1.pft.value)==""  ){
			alert("<?php echo $msgstr["r_selgen"]?>")
			return
		}
	}

	if (Trim(document.forma1.Expresion.value)=="" && (Trim(document.forma1.Mfn.value)=="" )){
		alert("<?php echo $msgstr["r_selreg"]?>")
		return
	}
	// Code moved from top to here to show results only if no errors occurred.
	// Open the window if all checks are done
	if (vp=="P") {
		document.forma1.vp.value="S"
		document.forma1.target="VistaPrevia"
		msgwin=window.open("","VistaPrevia","resizable, status, scrollbars")
	}else{
		document.forma1.vp.value=vp
		document.forma1.target=""
	}

  	document.forma1.submit()
  	msgwin.focus()
}


More information about the isis-users mailing list