6.0.0-alpha14
6/24/25

[#6811] JavaScript code for embedding any API gallery view
Summary JavaScript code for embedding any API gallery view
Queue Ansel
Type Enhancement
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester chuck (at) horde (dot) org
Created 06/01/2008 (6232 days ago)
Due
Updated 07/04/2008 (6199 days ago)
Assigned
Resolved 07/04/2008 (6199 days ago)
Milestone 1
Patch No

History
07/04/2008 08:14:25 PM Michael Rubinsky Comment #6
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
This is now fully functional, although I plan on adding a few more 
"nice-to-haves" such a a embedded slideshow and carousel...
07/02/2008 08:13:50 PM Michael Rubinsky Comment #4 Reply to this comment
For safe keeping, a summary of some IRC discussion:



This will be provided as some sort of pre-made widget that provides 
some HTML on the caller side, and a <!--a75c305b1c0a6022--><script> 
tag that would fetch JSON data representing the gallery from the Ansel 
server (image src, caption text, links for each image etc..). The 
returned javascript would also contain an onload event handler that 
would populate the "caller side HTML".
06/30/2008 01:51:59 PM Michael Rubinsky Milestone ⇒ 1
 
06/01/2008 01:38:45 PM Chuck Hagenbuch Comment #3 Reply to this comment
It might be possible I guess, I haven't tried. :) Re paging, yes - not 
only avoiding API calls, but avoiding having to rewrite the pager 
links inside javascript.
06/01/2008 12:07:26 PM Michael Rubinsky Comment #2 Reply to this comment
Use the json-rpc backend to allow embedding the HTML of any gallery
view in an external page.
Isn't this already possible?
Having gallery views that used javascript (with fallback of course)
for the pager would mean the embedding code wouldn't have to do
anything special about pages.
Do you mean having the pager trigger an Ajax call on the page to load 
the next gallery page, thus saving more api calls?
06/01/2008 03:31:32 AM Chuck Hagenbuch Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ JavaScript code for embedding any API gallery view
Queue ⇒ Ansel
Milestone ⇒
Patch ⇒ No
State ⇒ Accepted
Reply to this comment
Use the json-rpc backend to allow embedding the HTML of any gallery 
view in an external page.



Having gallery views that used javascript (with fallback of course) 
for the pager would mean the embedding code wouldn't have to do 
anything special about pages.

Saved Queries