[#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 Michael Rubinsky <mrubinsk (at) horde (dot) org>
Requester Chuck Hagenbuch <chuck (at) horde (dot) org>
Created 05/31/08 (656 days ago)
Due
Updated 07/04/08 (622 days ago)
Assigned
Resolved 07/04/08 (622 days ago)
Attachments
Milestone 1.0
Patch No

History
07/04/08 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/04/08 CVS Commit Comment #5 Reply to this comment
07/02/08 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 <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/08 Michael Rubinsky Milestone ⇒ 1.0
 
06/01/08 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/08 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?
05/31/08 Chuck Hagenbuch Comment #1
State ⇒ Accepted
Patch ⇒
Milestone ⇒
Queue ⇒ Ansel
Summary ⇒ JavaScript code for embedding any API gallery view
Type ⇒ Enhancement
Priority ⇒ 1. Low
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.