[B]This is javascript file (Addr.js) file:
function Address(){}
Address.prototype.addForm=function(map) {
[B] var Address = unescape(params[“Address”]);
var City = unescape(params[“City”]);
var State = unescape(params[“State”]);
var Zip_Code = unescape(params[“Zip_Code”]);
this.frm=map.ownerDocument.createElement(‘div’);
this.frm.m = this;
this.frm.id = ‘AddressFormDiv’;
this.frm.style.position=’relative’;
this.frm.style.backgroundColor=’#7996B0′;
this.frm.style.zIndex=35501;
this.frm.style.visibility=”visible”;
this.frm.innerHTML = ‘<span style=”color:red; font-size:12px;” id=”AddressError”></span><br/><br/><a href=”#” style=”position:absolute;right:0px;top:0px;” onclick=”this.parentNode.m.showhide()”>[View]</a><br/><b>Enter Full Address</b><br/><form id=”AddressFormUs” onSubmit=”this.parentNode.m.callvalue(this.addr.value); return false”>[B]<input name=”addr” size=”50″ value = “”+ Address + City + State + Zip_Code”” />[/B]<br/><input type=”Submit” value=”Get Location”/></form>’;
this.setOpacity(this.frm,100);
add.div.parentNode.appendChild(this.frm);
}
[B]It should do the following…..
-It should assign retrieved values “Address, City State, Zip_Code” values to my <input> addr field.
var Address = unescape(params[“Address”]);
var City = unescape(params[“City”]);
var State = unescape(params[“State”]);
var Zip_Code = unescape(params[“Zip_Code”]);
<input name=”addr” size=”50″ value = “”+ Address + City + State + Zip_Code”” />
[B]
-The user shouldn’t be able to edit the <input> addr, they should only be able click submit button to pass the values.
It’s not passing any values… can someone please help me with this.
thank you