View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsd/searches
In directory usw-pr-cvs1:/tmp/cvs-serv19056
Modified Files:
ups.xml
Log Message:
Fixed to zero out old search values from the form and edit out non-alphanumerics
(since value was used in eval, single quotes could cause JS errors)
Index: ups.xml
===================================================================
RCS file: /cvsroot/dqsd/dqsd/searches/ups.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ups.xml 20 Jul 2002 00:07:40 -0000 1.4
--- ups.xml 12 Aug 2002 18:07:51 -0000 1.5
***************
*** 45,52 ****
if (result = q.split( /\s*,+\s*/ ) )
{
! for ( var i = 1; i <= result.length && i <= 20; i++ )
! eval( "document.upsf.InquiryNumber" + i + ".value='" + result[i - 1] +
"';" );
! document.upsf.tracknums_displayed.value = (i - 1);
submitForm(upsf);
}
--- 45,59 ----
if (result = q.split( /\s*,+\s*/ ) )
{
! for ( var i = 1; i <= 20; i++ ) {
! if (i <= result.length) {
! track = result[i - 1];
! } else {
! track = "";
! }
! track = track.replace(/\W/g,"");
! eval( "document.upsf.InquiryNumber" + i + ".value='" + track + "';" );
! }
! document.upsf.tracknums_displayed.value = result.length;
submitForm(upsf);
}
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/