Amateur Radio VK callsign lookup

With a friends (thx darkrose) help last night you’ll have noticed that there is a ‘VK callsign lookup‘ search bar widget to the right. All it does is to make looking up callsigns from the ACMA websign little faster and lot less confusing. Anyways here is a copy of the code if you like to add it to your site.

HTML version:
With the HTML version you can type in the url bar for example search.html?callsign

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
<!--
function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=480,width=800,toolbar=no,statusbar=no,scrollbars=yes');
myform.target=windowname;
return true;
}
//-->
</script>
</head>
<body>
<form action="http://web.acma.gov.au/pls/radcom/register_search.search_dispatcher" onSubmit="popupform(this, 'join')" method="POST">
	<input type="hidden" name="pSEARCH_TYPE" value="Licences" />
	<input type="text" name="pQRY" id="pQRY" />
	<input type="submit" value="Search" />
</form>
<script type="application/x-javascript">
window.onload = function() {
	var l = window.location.toString();
	var v = l.indexOf('?');
	if (v < 0)
		return;
	l = l.substr(v+1);
	if (l && l.length) {
		var v = document.getElementById('pQRY');
		v.value = l;
		v.parentNode.submit();
	}
}
</script>
</form>
</body>
</html>

WordPress version:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
<!--
function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=480,width=800,toolbar=no,statusbar=no,scrollbars=yes');
myform.target=windowname;
return true;
}
//-->
</script>
</head>
<body>
<form action="http://web.acma.gov.au/pls/radcom/register_search.search_dispatcher" onSubmit="popupform(this, 'join')" method="get">
        <input type="hidden" name="pSEARCH_TYPE" value="Licences" />
        <input type="text" name="pQRY" id="pQRY" />
	<input type="submit" value="Search" />
</form>
</body>
</html>

Leave a Reply