Gossamer Forum
Home : Products : DBMan SQL : Discussion :

TheStone Question?

Quote Reply
TheStone Question?
I really need this fix today for my client. Can you please tell if what is wrong with this code:

> </script>
> <script language='javascript'>
> function create_url(nsw) {
> document.myform.Nsw.value = nsw;
> document.myform.submit();
> }
>
> function getNsw(frm){
> var obj = document.myform.Nsw;
> var type = '';
> for (var i=0; i < obj.length; i++)
>
> if (obj.checked) {
> type = obj.value;
> break;
> }
> }
> frm.Nsw.value = type;
> }
> </script>
>
> <script>
> function mapArea(frm) {
> var selObj = frm.area;
> var area = selObj.options[selObj.selectedIndex].value;
> var url;
> switch (area) {
> case 'mapSydney' :
> url =
>
'http://www.mydomain.com/cgi-bin/dbsql/db.cgi?db=Sample&do=search_form&
> dsn=11&mp=1';
> break;
> case 'mapCanberra' :
> url =
>
'http://www.mydomain.com/cgi-bin/dbsql/db.cgi?db=Sample&do=search_form&
> dsn=111&mp=1';
> break;
> }
> if (url) {
> window.location = url
> return false;
> }
> }
> </script>