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 5784 Mar 11, 2002, 8:57 PM
Post Re: [needsupport] What is the URL?
Paul 5689 Mar 12, 2002, 2:18 AM
Thread Re: [needsupport] What is the URL?
604 5685 Mar 12, 2002, 9:04 AM
Thread Re: [TheStone] What is the URL?
needsupport 5687 Mar 12, 2002, 2:50 PM
Post Re: TheStone - Can you help?
needsupport 5642 Mar 12, 2002, 3:40 PM
Thread Re: [needsupport] What is the URL?
604 5665 Mar 12, 2002, 3:43 PM
Thread Re: [TheStone] What is the URL?
needsupport 5643 Mar 12, 2002, 4:02 PM
Thread Re: [needsupport] What is the URL?
604 5622 Mar 12, 2002, 4:08 PM
Thread Re: [TheStone] What is the URL?
needsupport 5635 Mar 12, 2002, 4:14 PM
Thread Re: [needsupport] What is the URL?
604 5637 Mar 12, 2002, 4:24 PM
Post Re: [TheStone] What is the URL?
needsupport 5601 Mar 12, 2002, 4:36 PM