Jump to content
  • 0
LD_FF

Background Picture.

Question

I find the source code tab in the cache description very useful for puzzles. It saves me getting the lap top out. It would be nice to be able to see the background image part of the code as well. I always seem to have a problem finding it.  

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 0

I don't think the API gives access to the full HTML of the page, just the user description so Cachly can't help. You reminded me I too struggle with this when solving puzzles. I hacked together a quick bookmarklet that should help. From Cachly description, use the View in Geocaching.com to open in Safari. Then tap this bookmarklet you will create and it will open the background image in a new tab. 

There are numerous "How to create Safari Bookmarklet pages on the web but here is one. http://www.ipadforums.net/threads/guide-creating-safari-bookmarklets.72353/

Here is the bookmarklet definition  

javascript:void(window.open(document.body.background))

Share this post


Link to post
Share on other sites
  • 0
19 hours ago, DerLakaiMS said:

Couldn't you make an entry like "open background image in safari" in the ... menu?

I could...but I have to decide if things like this will clutter up the menus with a feature that only a few people would use. 

I will for sure add it to my list to consider. :)

Share this post


Link to post
Share on other sites
  • 0
20 hours ago, DerLakaiMS said:

Nic,

Couldn't you make an entry like "open background image in safari" in the ... menu?

Thomas

I don't see how it can be done technically. The image link is in the <body> tag which is not accessible to Cachly without a separate load of the HTML (not via the API). If he kicks it over to the Safari app, he no longer has control to make Safari do something like open the background image. Maybe I'm missing something but I'm not seeing it. 

Share this post


Link to post
Share on other sites
  • 0
21 minutes ago, rragan said:

I don't see how it can be done technically. The image link is in the <body> tag which is not accessible to Cachly without a separate load of the HTML (not via the API). If he kicks it over to the Safari app, he no longer has control to make Safari do something like open the background image. Maybe I'm missing something but I'm not seeing it. 

I would likely have to screen scrape the URL which is against the API Terms of Service.

Share this post


Link to post
Share on other sites
  • 0

See earlier comments in the thread as to why menu link can't be done without violating the API terms of service. The thread does include way to work around it with a bookmarklet in Safari.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×