![]() |
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)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? |
You can't use JavaScript in a post, if you were able to this would be security problem. You will have to create a page on your side that you link to (a standard url link) and you can execute your JavaScript on your side. Thanks,
|
Originally Posted by Tim at WebFlyer
(Post 8086468)
You can't use JavaScript in a post, if you were able to this would be security problem. You will have to create a page on your side that you link to (a standard url link) and you can execute your JavaScript on your side.
|
Understood, we didn't think that you were trying to do anything malicious, but we cannot allow javascript to be used within a post. You could of course still use the method I suggested to set up a page that would show people how to set that up as well. Thanks,
|
| All times are GMT -6. The time now is 9:42 am. |
This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.