W4P-Note Function update customform

Function updating the CustomForm in Web4print Server

<div style="display:none;">
<!-- bg -->
<input type="text" name="upload_1"/>
<input type="text" name="XSave_1" class="imgstore" value="http://...">
<!-- ribbon -->
<input type="text" name="upload_21" id="ribbon_graphic_go"/>
<input type="text" name="XSave_21" class="imgstore" id="ribbon_graphic"/>
</div>

<script>
setthumbs();
function update_custom() {
	//check if any flash text and update the value of background graphic input
	//also set it like this: $("input[name=upload_1]").val( [put correct path here] );
	
	myheading = $("[name=text_201]").val();
	if($("#flash_text").val() == "") {
		//do something
	myheading = "&#10;<st_10>" + myheading; //this one sets it for no flash
	$("input[name=upload_1]").val("http://...")
	} else {
		myheading = "&#10;<st_9>" + myheading; //this one sets it for with flash
		$("input[name=upload_1]").val("http://...")
	}
	$("[name=text_201]").val(myheading);
}

</script>

Leave a Reply

Your email address will not be published. Required fields are marked *