+Mr'D Posted January 24, 2005 Share Posted January 24, 2005 Some time ago I downloaded a small script that gave me a 'streetmap' tag on the toolbar. I could click this, paste co-ords in and hey presto, goto page required in streetmap. Following a PC crash I lost the script. Can anyone oblige? Thanks, Jon Quote Link to comment
+CuplaKiwis Posted January 24, 2005 Share Posted January 24, 2005 make a new shortcut in your links folder edit properties to contain following: javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime())) drag link to your toolbar. highlight coords on page, click button on toolbar. Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime())) Thanks CuplaKiwis, but this is not the script I was looking for. When looking at a cache page, sometimes parking co-ords are given in the description for example. Rather than open another browser window, go to streetmap.co.uk and enter the co-ords, the script enabled me to copy the co-ords with the mouse, then open the script on the favourites toolbar. A pop-up window would appear into which I pasted the co-ords, and the appropiate streetmap map page would appear in a new window. A small but handy little application. I hope I have described this well enough for someone to recognize what I am talking about?.... Jon Quote Link to comment
+CuplaKiwis Posted January 25, 2005 Share Posted January 25, 2005 (edited) this one kinda works the other way around - you highlight the coordinates first, then click the button = it then opens a windows at the location in streemap. Just as functional. Edited January 25, 2005 by CuplaKiwis Quote Link to comment
NickPick Posted January 25, 2005 Share Posted January 25, 2005 I think that the script the Kiwis mentioned is better than the one you mentioned. I believe it uses the same script, but is extended so that it does the copy-paste automatically, so you don't have to. You can highlight any co-ordinate on the page, click the button and it spawns a new streetmap window with those co-ordinates. I think it's brilliant, and thanks to Gary & Jane for posting it in the UK Resources thread. Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 Wow, this is cool! It even drops the surplus bits and pieces in the co-ords (eg. the degree sign) Thanks guys. Jon Quote Link to comment
+civilised Posted January 25, 2005 Share Posted January 25, 2005 make a new shortcut in your links folder edit properties to contain following: javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime())) drag link to your toolbar. highlight coords on page, click button on toolbar. Hi This sounds excellent - but could you be really kind and walk me through the process ? I've tried it once with no success - think I need the Dummy's guide Thanks in advance civilised Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 I did it by creating a new shortcut and naming it 'Streetmap'. Then, instead of inputting an HTTP reference, paste in the javascript exactly as shown. Now all you have to do is highlight a co-ordinate on a cache page (like parking co-ords etc), and click the 'Streetmap' shortcut you just created. It'll take you straight to the relevant page on Streetmap in a new window. It's a great snippet and it takes the chore out of typing out the co-ords into Streetmap. Jon Quote Link to comment
+Fangsy Posted January 25, 2005 Share Posted January 25, 2005 This works very well. It would not let me create a new shortcut item with the script instead of url, but I just edited the properties of an existing one re hotmail or something like that and renamed it. Works perfectly on WGS84 co-ord format, doesnt take the OS grid refs though. Is there a way of havig this work in Mozilla too? Quote Link to comment
+Mad H@ter Posted January 25, 2005 Share Posted January 25, 2005 (edited) I to had problems getting it to work and none of the above would work. In the end I pasted the script into the address box in ie6, then dragged the contents (by clicking on the e icon) to Links and then renamed the resultant new link. Works a treat, thanks. Edited January 25, 2005 by Phillimore Clan Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 This works very well. It would not let me create a new shortcut item with the script instead of url, but I just edited the properties of an existing one re hotmail or something like that and renamed it. If truth be know, that's how I did it too! Jon Quote Link to comment
+rutson Posted January 25, 2005 Share Posted January 25, 2005 This works very well. It would not let me create a new shortcut item with the script instead of url, but I just edited the properties of an existing one re hotmail or something like that and renamed it.Works perfectly on WGS84 co-ord format, doesnt take the OS grid refs though. Is there a way of havig this work in Mozilla too? javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(window.getSelection()),'w'+bmsorguk.getTime())) Sorta works it does a pop-under Quote Link to comment
+Nellies Knackers Posted January 25, 2005 Share Posted January 25, 2005 If its of any use I have a form on a webpage I did for a hitch-hiker that brings up a section of os map, it's at www.pingusjourney.co.uk and is helped by benchmarks.org and streetmap. Therres also one that makes a map link for cache pages. Quote Link to comment
+Nellies Knackers Posted January 25, 2005 Share Posted January 25, 2005 Does anyone know how to get that javascript link to work in firefox? It's pretty dadgum good. Quote Link to comment
+Windsocker Posted January 25, 2005 Share Posted January 25, 2005 yep that is really cool got it to work in seconds well done that man Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 Does anyone know how to get that javascript link to work in firefox? It's pretty dadgum good. I used Firefox for a while. Can you not use the same method? If you can't actually 'create from new', try amending an existing favourite link in it's properties (ie. delete the favourite's URL and insert the java? Jon Quote Link to comment
+Gary & Jane Posted January 25, 2005 Share Posted January 25, 2005 (edited) Sorta works it does a pop-under Apparently this is a bug in Firefox but luckily there's a work around for it . The following code produces a pop-up window as expected with my copy of Firefox 1.0. javascript:void(setTimeout("bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))",10)); Gary Edited January 26, 2005 by Gary & Jane Quote Link to comment
+Algy Posted January 25, 2005 Share Posted January 25, 2005 Kiwis Thanks for the tip, How did I manage without it? Ta. Alan Quote Link to comment
+Nellies Knackers Posted January 25, 2005 Share Posted January 25, 2005 Thanks Gary & Jane, tis bloody good init! Now to make it 5 x 5 squares! Quote Link to comment
+Nellies Knackers Posted January 25, 2005 Share Posted January 25, 2005 5x5 squares works if you add size=5& after map.php? and before c='+escape Does this make sense?????? Quote Link to comment
+Gary & Jane Posted January 25, 2005 Share Posted January 25, 2005 Thanks Gary & Jane, tis bloody good init!Now to make it 5 x 5 squares! No problem - just add "size=5&" to the code. To summarise the previous posts here's the code for each browser and required map sizes: 5 x 5 square version for Firefox javascript:void(setTimeout("bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?size=5&c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))",10)); 3 x 3 square version for Firefox javascript:void(setTimeout("bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(window.getSelection()),'w'+bmsorguk.getTime()))",10)); 5 x 5 square version for IE javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?size=5&c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime())) 3 x 3 square version for IE javascript:bmsorguk=new Date();void(window.open('http://benchmarks.org.uk/map.php?c='+escape(document.selection.createRange().text),'w'+bmsorguk.getTime())) Gary Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 5 x 5 square version for IE Works a treat! Thanks again. I just tried it as a 4 x 4 version (as 5 x 5 brings up scroll bars on my PC), but it reverts to 3 x 3 ? Not fussed, just an observation. Jon Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 I also just tried to print a 5 x 5 out in landscape. Got 4 pages, a 5 x 1 , a 5 x 3 and another 5 x 1. Going back to 3 x 3! Jon Quote Link to comment
+CuplaKiwis Posted January 25, 2005 Share Posted January 25, 2005 I also just tried to print a 5 x 5 out in landscape. Got 4 pages, a 5 x 1 , a 5 x 3 and another 5 x 1. Going back to 3 x 3! Jon You could try using the "scale to fit" function if your printer driver has it. Quote Link to comment
+Mr'D Posted January 25, 2005 Author Share Posted January 25, 2005 You could try using the "scale to fit" function if your printer driver has it. I'm looking... but not hopeful... Jon Quote Link to comment
+one4zorro Posted January 25, 2005 Share Posted January 25, 2005 Thanks to everyone for their help on this, got it working in Firefox - well impressed! Quote Link to comment
+Pharisee Posted January 26, 2005 Share Posted January 26, 2005 If I paste that script into the URL field, all I get is a dialogue box that says:- The protcol "Javascript" does not have a registered program. Do you want to keep this target anyway? Quote Link to comment
+Mr'D Posted January 26, 2005 Author Share Posted January 26, 2005 If I paste that script into the URL field, all I get is a dialogue box that says:- The protcol "Javascript" does not have a registered program. Do you want to keep this target anyway? Save it anyway. You will get another prompt the same, then say yes and close. I think it's just a security prompt. Jon Quote Link to comment
+one4zorro Posted January 26, 2005 Share Posted January 26, 2005 Does anyone know if you can bring up the bookmarks tool bar in Firefox with a key command? I have the scripts above in the tool bar but don't want it to be visible always (it takes up too much room). I would like to just hit a key to bring it up when I am surfing on GC cache pages. Cheers Martin Quote Link to comment
+Nellies Knackers Posted January 26, 2005 Share Posted January 26, 2005 Try here Firefox tips Quote Link to comment
+Madyokel Posted January 9, 2006 Share Posted January 9, 2006 (edited) Many thanks for the info here... I was searching for the answer to this on google and here it was all the time. Guess if the forum searchengine worked I would have got here quicker. Many thanks. Edited January 9, 2006 by Madyokel Quote Link to comment
+Longfram Kev Posted January 10, 2006 Share Posted January 10, 2006 When I created the shortcut and tried it , it brought me back to this page ?? Quote Link to comment
+Team Ballibeg Posted January 10, 2006 Share Posted January 10, 2006 Its not getting through my pop-up blockers. Dave Quote Link to comment
+tonycollins Posted January 11, 2006 Share Posted January 11, 2006 With my pop up blocker (IE) i hold the control key while clicking, and that allows the pop up. Most blockers have a similar workround. Quote Link to comment
+Team Ballibeg Posted January 11, 2006 Share Posted January 11, 2006 Thats a top tip! Thanks, Dave Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.