Share Coding

Tutorials, Problems, Stuffs …

Tag Archives: cross domain

How to Build a Photobucket Album Viewer Extension of Chrome

To start building the viewer (View all Photos by one click), we should learn how to build a simple extension first.
A tutorial has already made by Google: http://code.google.com/chrome/extensions/getstarted.html
As you can see, the viewer extension’s layout is similar to the tutorial of Google.
Chrome Extension Tutorial by Google

 
Read more of this post

Cross Domain Request on GWT without RPC

Since RequestBuilder do not support cross domain on GWT, the other option will be JsonpRequestBuilder
Here is an example between client and server (PHP).

 
Client.java

JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.requestObject(URL.encode("http://serverurl/Server.php?callback=test_clbk"), new AsyncCallback() {
	public void onFailure(Throwable throwable) {
		System.out.println(throwable.getMessage());
	}
	public void onSuccess(JSONreceiver result) {
		System.out.println(result.getResult());
	}
});

 
Read more of this post