On Sunday, April 12, 2015 at 3:00:43 PM UTC-7, Mat wrote:
>
> On Sunday, April 12, 2015 at 10:50:51 PM UTC+2, Jed Carty wrote:
>>
>> The two parts of that that I am unsure of are including the image search 
>> and just having a single <<img>> macro. Both should be doable, but they 
>> would be the hard part. The image search I have no idea how to do, 
>>
>
> Hm, the way I imagine is simply(?) just to have an iframed google image 
> search page. Pretty much this 
> <https://www.google.se/imghp?hl=en&tab=wi&ei=E-UqVb_pLsTPygPewYAo&ved=0CBAQqi4oAg>
>  
> exact page. What you enter the search words into is the actual google image 
> search field, just like showin in the first image. And when clicking an 
> image there, google opens a "black area" showing the image that contains 
> the "View image" button mentioned. Really nothing we woudl have to do at 
> all (or?).
>

One problem with iframing the google image search is that you would still 
need to get the selected URL from the iframe.  I think the better approach 
would be to develop an actual widget that uses the official Google API for 
image searches:

https://developers.google.com/image-search/v1/devguide

This would not be trivial, but would give us complete control over the 
interaction and presentation of the search, as well as programmatic access 
to the URLs of the search results, which could then be used with some kind 
of widget (e.g. <$google>...</$google>), that would cycle through the 
search results and use the widget content to generate output (or perform 
other actions, like setting tiddler fields) using 'search results' 
variables set by the widget (e.g., $url$, $imgurl$, $width$, $height$, 
etc.).

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c81c45d-6f5c-4177-9df1-33b581a31c87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to