I'm building a hybrid registration and software configuration tool with APMS 5.0 and part of the application needs to run off a webserver -- therefore, I'm using the WEB OBJECT to allow this to happen from within the APMS project/application.
Ok. this javascript web page code works fine when loaded HEAD of the HTML page loaded in the web object on APMS 5.0:
*However*, the following auto-tab code will not work in APMS web object -- yet it works fine in IE and Netscape...Code:function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'titlebar=1,toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300');"); }
Incidentally, this is called in the page like...Code:var phone_field_length=0; function TabNext(obj,event,len,next_field) { if (event == "down") { phone_field_length=obj.value.length; } else if (event == "up") { if (obj.value.length != phone_field_length) { phone_field_length=obj.value.length; if (phone_field_length == len) { next_field.focus(); } } } }
Occasionally, I even get a system message:Code:<input type=text name="Phone_1" size=3 maxlength=3 nKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form.Phone_2)"> - <input type=text name="Phone_2" size=3 maxlength=3 onKeyDown="TabNext(this,'down',3)" onKeyUp="TabNext(this,'up',3,this.form.Phone_3)"> - <input type=text name="Phone_3" size=4 maxlength=4>
"AutoPlay Application has encountered a problem and needs to close. We are sorry for the inconvenience" with all the attendant windows information...
Any ideas?
~Blake

