FlyerTalk Forums - View Single Post - Trouble posting a non-standard "url"
View Single Post
Old Jul 19, 2007 | 3:14 pm
  #1  
FBKSan
 
Join Date: May 2007
Location: WAS
Programs: UA 1K, AS MPVG
Posts: 482
Trouble posting a non-standard "url"

I've created a small browser tool to help calculate the milage between cities, and I'm trying to create a thread about it in the MR Discussion forum. However, try as I might I can't get the link to work correctly. Specifically, I'd like to post a link to a short piece of javascript, so that users can drag it into the "links" section of their browser. When I try to use the [url] tool, the parser (1) adds "http://" to the front end of the url and (2) adds "<b></b>" (no quotes) after the word "javascript". Although it's frustrating, I understand the reasoning behind (1), but (2) baffles me.

In any case, I'm trying to post the following code:
Code:
javascript:{void(term=prompt('Enter itinerary (3 letter codes separated by -)',''))}if(term)location.href='http://www.milecalc.com/schmutzig/?paths='+escape(term)
And here's what I'm getting:

Milecalc

Obviously, I could just post the bare code, but it would be so much easier for other FT'ers to just be able to drag a link with their mouse, rather than having to manually create a new button. Any workaround for this?
FBKSan is offline