Hi everybody,
My colleague has this function
However, I switched later to user controls, so the my control names are now different. (They would include the UserControl name, I guess).
So, is there a way to search for an object inside particular div tag but without knowing its full name, only know part of the name?
Thanks in advance.
My colleague has this function
Code:
function openCreateID(pid){
var pid=document.getElementById(pid).firstChild.id;
var _ids=new Array();
_ids=pid.split("_");
var _id="";
for (i=0;i<_ids.length-1;i++){
_id+=_ids[i]+"_";
}
_id=_id.substring(0,_id.length-1);
var qNames=new Array("Address1","Address2","City","State","Zip","Email","ScreenName","HomePhone","CellPhone");
var q="?ptype=N&perid=0&pid="+pid;
for (i=0;i<qNames.length;i++) {
q+="&"+qNames[i]+"=" + document.getElementById(_id+"_"+qNames[i]).value;
}
etc.
However, I switched later to user controls, so the my control names are now different. (They would include the UserControl name, I guess).
So, is there a way to search for an object inside particular div tag but without knowing its full name, only know part of the name?
Thanks in advance.