Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [needsupport] What is the URL?

Quote Reply
Re: [needsupport] What is the URL? In reply to
Hi,

In this case, you have to use javascript to creare url for the map. Follow step-by-step instructions below to try it out:

- Add the javascript into html file:

<script language='javascript'>
function create_url () {
var obj = document.frmname.rtype;
var type;
for (var i=0; i < obj.length; i++) {
if (obj.checked) type = obj.value;
}

var url = window.location.protocol + '//' + window.location.hostname + window.location.pathname + "?db=<%db%>&do=search_results&uid=default&dp=1&State=State_ID&field_of_type=" + type
window.location = url
}
</script>

<form name=frmname method=post>
.......
<input type=radio name=rtype value='single'>Single
<input type=radio name=rtype value='couple'>Couple
<input type=radio name=rtype value='family'>Family
....
</form>

- The link on the map should be:
<a href="javascript:create_url()">


Hope that helps.

TheStone.

B.
Subject Author Views Date
Thread What is the URL? needsupport 3756 Mar 11, 2002, 8:57 PM
Post Re: [needsupport] What is the URL?
Paul 3726 Mar 12, 2002, 2:18 AM
Thread Re: [needsupport] What is the URL?
604 3725 Mar 12, 2002, 9:04 AM
Thread Re: [TheStone] What is the URL?
needsupport 3708 Mar 12, 2002, 2:50 PM
Post Re: TheStone - Can you help?
needsupport 3688 Mar 12, 2002, 3:40 PM
Thread Re: [needsupport] What is the URL?
604 3707 Mar 12, 2002, 3:43 PM
Thread Re: [TheStone] What is the URL?
needsupport 3674 Mar 12, 2002, 4:02 PM
Thread Re: [needsupport] What is the URL?
604 3662 Mar 12, 2002, 4:08 PM
Thread Re: [TheStone] What is the URL?
needsupport 3685 Mar 12, 2002, 4:14 PM
Thread Re: [needsupport] What is the URL?
604 3676 Mar 12, 2002, 4:24 PM
Post Re: [TheStone] What is the URL?
needsupport 3645 Mar 12, 2002, 4:36 PM