In javascript, how can I uniquely identify one browser window from another which are under the same cookiedbased sessionId

you could set your own window name, the exact syntax escapes me right now, but you can use the current time and session id to create a unique id on window load, then use that id This would be done the same way you set a name in the javascript window.open() function, (but you can … Read more

HTTP Cookies and Ajax requests over HTTPS

Ok, found the solution to the cookie problem. See XHR specs, jQuery docs and StackOverflow. The solution to have the cookies sent when switching protocol and/or subdomain is to set the withCredentials property to true. E.g. (using jQuery) $.ajax( { /* Setup the call */ xhrFields: { withCredentials: true } });

List of events

You might want to look at “JavaScript HTML DOM Events” for a general overview of events: http://www.w3schools.com/jsref/dom_obj_event.asp PrimeFaces is built on jQuery, so here’s jQuery’s “Events” documentation: http://api.jquery.com/category/events/ http://api.jquery.com/category/events/form-events/ http://api.jquery.com/category/events/keyboard-events/ http://api.jquery.com/category/events/mouse-events/ http://api.jquery.com/category/events/browser-events/ Below, I’ve listed some of the more common events, with comments about where they can be used (taken from jQuery documentation). Mouse Events … Read more

Does Vue.JS work with AJAX http calls?

It is probably happening because your this is not pointing to correct scope, scope of this changes inside an $.ajax call, so you just have to do something like following: methods: { onLogin: function() { //this.$set(loginSubmit, ‘Logging In…’); var data = { email: $(‘#email’).val(), password: $(‘#password’).val(), }; var that = this $.ajax({ url: ‘/api/login’, data: … Read more

Multiple Ajax requests for same URL

Necko’s cache can only handle one writer per cache entry. So if you make multiple requests for the same URL, the first one will open the cache entry for writing and the later ones will block on the cache entry open until the first one finishes. There’s work ongoing to rearchitect the cache to remove … Read more

Ajax Cross Domain Calls

Different port means different domain for the browser. So you will hit the cross-domain barrier. Like Stuart said, you could try using JSONP. If you are using jQuery, I’d recommend http://code.google.com/p/jquery-jsonp/ if you want it to be as painless as possible.

tech