PDA

View Full Version : Call Lookup with HamIsland - an alternative



N1LAF
01-22-2011, 07:54 PM
I put together some html code that will give a header consisting a US Call Lookup, DXPacket window, and solar conditions, while viewing HamIsland forums. Nothing magical, but I remember all those that want a lookup while on HamIsland, and this will get you there.

Create a text file, call it something like "hamisland.html", and copy the following into it. Same to your hard drive. Make sure the filename has '.html' at the end, as some programs think they are smarter than you and stick .txt at the end (Microsoft Notepad comes to mind...., Wordpad will not double guess you, only ask if you are sure via dialog box)



<html>
<head>
<title>HamIsland Frame</title>
</head>
<body style="border: 0px; margin: 0px;">

<table style="border: 0px; margin: 0px;">
<tr>
<td align="center" valign="top" nowrap="nowrap">

<iframe name="I0" src="http://callook.info/mobile/" width="240" height="150">
</iframe>

<iframe name="I1" src="http://dxcluster.ham-radio.ch/top_50_ALL.html" width="480" height="150">
</iframe>

<iframe name="I2" src="http://www.hamqsl.com/solar101pic.php" width="480" height="150">
</iframe>

</td>
</tr>
</table>

<table style="border: 0px; margin: 0px;" width="100%" height="80%"><tr><td width="100%">
<iframe name="I3" src="http://forums.hamisland.net/" width="100%" height="100%">
</iframe>
</td></tr></table>

</body>
</html>

NQ6U
01-22-2011, 08:00 PM
I'm just getting a blank page when I open the file in my browser (Safari 5.0.3 for OS X). Am I doing something wrong?

N1LAF
01-22-2011, 08:02 PM
I'm just getting a blank page when I open the file in my browser (Safari 5.0.3 for OS X). Am I doing something wrong?

Can you view the page source in Safari? Check that all in the source matches what is posted here.
I added an attachment of a screen shot to see what is expected.

NQ6U
01-22-2011, 08:06 PM
Okay, good call! When I viewed the source, it was NOT what it should have been. I will try again.

NQ6U
01-22-2011, 08:11 PM
Bingo--I copied and pasted into different text editor this time. It appears that Apple's TextEdit is like WordPad in that it tried to outsmart me by inserting a bunch of metadata in place of what I'd actually pasted into the file. I used Text Wrangler and now it's working as it should. Nice job!

N1LAF
01-22-2011, 08:12 PM
This will put the tools at the bottom of the browser window



<html>
<head>
<title>HamIsland Frame</title>
</head>
<body style="border: 0px; margin: 0px;">

<table style="border: 0px; margin: 0px;" width="100%" height="80%"><tr><td width="100%">
<iframe name=I3 src="http://forums.hamisland.net/" width="100%" height="100%">
</iframe>
</td></tr></table>

<table style="border: 0px; margin: 0px;">
<tr>
<td align="center" valign="top" nowrap="nowrap">

<iframe name="I0" src="http://callook.info/mobile/" width="240" height="150">
</iframe>

<iframe name="I1" src="http://dxcluster.ham-radio.ch/top_50_ALL.html" width="480" height="150">
</iframe>

<iframe name="I2" src="http://www.hamqsl.com/solar101pic.php" width="480" height="150">
</iframe>

</td>
</tr>
</table>

</body>
</html>

N1LAF
01-22-2011, 08:13 PM
Bingo--I copied and pasted into different text editor this time. It appears that Apple's TextEdit is like WordPad in that it tried to outsmart me by inserting a bunch of metadata in place of what I'd actually pasted into the file. I used Text Wrangler and now it's working as it should. Nice job!

Try the Call lookup, see if that works well with this setup

NQ6U
01-22-2011, 08:16 PM
Try the Call lookup, see if that works well with this setup


Type: PERSON
Callsign: N1LAF
Class: EXTRA
Previous Class: GENERAL
Name + Address:
PAUL A FELGATE
XXXXXXXXXXXXXX
GALES FERRY, CT 06335
Location:
Latitude: 41.425824
Longitude: -72.064842
Grid Square: FN31xk
Other License Information:
Effective: 12/11/2001
Expires: 01/07/2012
Last Action: 08/21/2002
FRN: 0005189634

It's not working right--it says you're a person when I know for a fact that you're a Republican... ;)

N1LAF
01-22-2011, 08:18 PM
It's not working right--it says you're a person when I know for a fact that you're a Republican... ;)

Funny!

Do you like this piece of code? I will post other 'configurations', try them if you like, make files like 'hamisland2.html, hamisland3.html,' etc..

NQ6U
01-22-2011, 08:25 PM
Yes, it's good. I'm going to play with the HTML on my copy a bit and if I come up with anything worthwhile, I'll post my code here.

N1LAF
01-22-2011, 08:27 PM
Yes, it's good. I'm going to play with the HTML on my copy a bit and if I come up with anything worthwhile, I'll post my code here.

Site worth looking at:

http://www.hamqsl.com/solar.html

NQ6U
01-22-2011, 08:30 PM
Site worth looking at:

http://www.hamqsl.com/solar.html

Yeah, I have a little applet that lets me check out the data from there just by hitting an F key. Looks like 40 and 80 are going to be good tonight--I'll have to try playing around with some 80m PSK31 again. I did that the other night and it was fun.

NQ6U
01-22-2011, 09:09 PM
Paul, I've noticed some odd behavior--with the frame on the top, whenever I load a page, it will jitter up and down for a second or two after it loads. It doesn't happen with the frame on the bottom, however. It could be specific to my browser, of course.

N7RJD
01-22-2011, 09:11 PM
The only major problem I have found is that it claims me to be a person also.
The wife is in the other room arguing with it right now.

N1LAF
01-22-2011, 09:14 PM
Paul, I've noticed some odd behavior--with the frame on the top, whenever I load a page, it will jitter up and down for a second or two after it loads. It doesn't happen with the frame on the bottom, however. It could be specific to my browser, of course.

Maybe it's a location thing with the DX Cluster that refreshes frequently. If iframe named "I1" was commented out, that may stop the jitter, maybe...

W4GPL
01-22-2011, 09:40 PM
Because Bookmarks are so inconvenient.

kb2crk
01-22-2011, 09:46 PM
is there something i am missing here? i dont see anything new.

N1LAF
01-22-2011, 10:00 PM
Because Bookmarks are so inconvenient.

Why are bookmarks inconvenient? I have lots of bookmarks myself.

NQ6U
01-22-2011, 10:01 PM
is there something i am missing here? i dont see anything new.

Take this file:
3865

expand it and open it with your browser.

N1LAF
01-22-2011, 10:07 PM
is there something i am missing here? i dont see anything new.

What you may be missing are the requests I have been getting about call sign lookup. As a courtesy to those asking for this, I took time to find a method to satisfy those requests. This method is non-invasive to the site. The call lookup stays in one place. To complete the space on the bottom (or top) of the header that the call lookup is placed, I threw in a couple other things that may come handy. Granted, that tabs make flipping back and forth between forums with call lookup and those without, some do have 1. The preference not to have to switch back and forth and 2. not to have to visit a site that they may not want to revisit.

Overall, no harm done. Try it, you might like it...

N1LAF
01-22-2011, 10:12 PM
Take this file:
3865

expand it and open it with your browser.


(FYI) Carl, I took a quick look at your file, it is missing the "<" in <html>,
the first character in the file

NQ6U
01-22-2011, 10:13 PM
You're right. It's still working okay, though. Weird.

NQ6U
01-22-2011, 10:20 PM
Okay, try this one instead:

N1LAF
01-22-2011, 10:21 PM
You're right. It's still working okay, though. Weird.

I got a line at top of page... do you have other candidates to use in the header? If there are more, I can add the capability of switching them in the page...

N1LAF
01-22-2011, 10:23 PM
Okay, try this one instead:

That works fine.

n6hcm
01-23-2011, 02:20 AM
works fine for me in chrome for windows. i've not seen any significant differences among chrome versions for the platforms i use.

N2NH
01-23-2011, 08:05 AM
Working fine in Safari on a Mac.

Thanks Paul and Carl. Great app. Too bad I can't adjust the location as I did on the ZED.

Over there on the map, my pointer is at Fox News on 6th Ave. Looks great on the satellite view. :snicker:

kb2crk
01-23-2011, 09:39 AM
tried it out and it looks good. my screen is a little small so it will be one of those things i use when needed. great addition though. works good with the chrome.

KC2UGV
01-23-2011, 10:05 AM
This looks/works great on Chrome and Firefox. If you're on IE, I dunno. Thanks Paul for this :)

NQ6U
01-23-2011, 01:14 PM
Working fine in Safari on a Mac.

Thanks Paul and Carl.

Paul deserves all the credit. I just happened to be the first one to try it out.

N7RJD
01-23-2011, 02:05 PM
Make sure the filename has '.html' at the end, as some programs think they are smarter than you and stick .txt at the end (Microsoft Notepad comes to mind...., Wordpad will not double guess you, only ask if you are sure via dialog box)


Actually an easy around that even in Notepad is to change the dropdown box in the save window to "All Files" prior to typing the html extension and saving it. Then it doesn't append it's own extension to the end of what you name it.

NQ6U
01-23-2011, 10:11 PM
A very minor modification of Paul's HTML: I adjusted the "height" parameter down to 125 to better fit the Solar Data panel and save a few pixels. I generally view TIOMH on my laptop so every vertical pixel is precious.

N1LAF
01-24-2011, 05:53 PM
Heard you, Carl.... try this one....



<html>
<head>
<title>HamIsland For Laptops</title>
</head>
<body style="border: 0px; margin: 0px;">

<table style="border: 0px; margin: 0px;" width="100%" height="100%">
<tr>
<td align="left" valign="top" nowrap="nowrap" width="220">

<iframe name="I0" src="http://callook.info/mobile/" width="220" height="150">
</iframe>

<img src="http://www.spaceweather.com/images2011/24jan11/hmi200.gif" width="220">

<iframe name="I2" src="http://www.hamqsl.com/solar100sc.php" width="220" height="250">
</iframe>

<iframe name="I1" src="http://dxcluster.ham-radio.ch/top_50_ALL.html" width="220" height="300">
</iframe>

</td>

<td width="100%">
<iframe name=I3 src="http://forums.hamisland.net/" width="100%" height="100%">
</iframe>
</td>

</tr>
</table>

</body>
</html>

NQ6U
01-24-2011, 05:56 PM
Excellent!

n2ize
01-24-2011, 06:00 PM
I wrote a Perl program a while back to provide this sort on the server side...back when i still had a ham radio website. You could run it as a CGI scrip Apache/mod-perl. You can probably set something similar up via PhP.