Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [TheStone] What is the URL?

Quote Reply
Re: [TheStone] What is the URL? In reply to
Thanks I think I am nearly there. When I run it it does not work. Is this code complete:
<a href="javascript:create_url()">

You said I should put this in the map.

Also here is the code for the page:

<html>
<head>
<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=Accom&field_of_type=" + type window.location = url
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#0000FF" vlink="#0000FF" alink="#0000FF">
<div id="Layer5" style="position:absolute; width:744px; height:74px; z-index:6; left: 94px; top: 72px">
<form name=myform method=post>
<p>Select State:</p>
<p>.......
<input type=radio name=State value='NSW'>
NSW
<input type=radio name=State value='Victoria'>
VIC
<input type=radio name=State value='Northern Territory'>
NT .... </p>
<p><font size="2"><img src="Mapsa.gif" width="337" height="350" border="0" usemap="#sa"></font>
</p>
</form>

</div>
<map name="sa">
<area shape="rect" coords="2,0,329,188" href="&lt;a href=&quot;javascript:create_url()&quot;&gt; ">
</map>
</body>

</html>
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 3727 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 3709 Mar 12, 2002, 2:50 PM
Post Re: TheStone - Can you help?
needsupport 3689 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 3675 Mar 12, 2002, 4:02 PM
Thread Re: [needsupport] What is the URL?
604 3663 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 3677 Mar 12, 2002, 4:24 PM
Post Re: [TheStone] What is the URL?
needsupport 3645 Mar 12, 2002, 4:36 PM