Package widget for syndication

Registered by Tim Black

Package widget in Javascript for syndication. Initially the widget should just display one federation's data. In the future it would be nice to move per-user/per-site & federation config options into the widget, rather than keeping them in the server-side program alone.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
Accepted for couchapp-backbone
Implementation:
Unknown
Milestone target:
milestone icon 0.7

Related branches

Sprints

Whiteboard

Here's an overview of third-party JavaScript widgets: http://www.manning.com/vinegar/TPJS_meap_ch01.pdf

Here is how to work around the browser's same-domain-origin policy on AJAX requests to enable user interaction:
 - JSONP - in jQuery 1.5+? - $.get() using this syntax:

$.get(
                "http://domain.com/json.php?callback=?",
                function(data, textStatus){
                    $.each(data,
                        function(index, user){
                                $("#ulUsers").append($("<li></li>").text(user.name + " is " + user.age + " years old"));
                        }
                    );
                },
                "json"
);
- - JSONP requires the remote server to respond wrapping the JSON in a function call named after the "callback" URL parameter, like "function_name(JSON)". If the URL contains callback=?, jQuery creates an arbitrary callback function name, (injects a script tag to load the remote JSON,) executes the callback to get the data, (then removes the injected script tag.)

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.