Tag Archives: ajax

Opening window into tab with window.open() in Chrome

Use this method when you need to open a new window into a tab and not into a popup window through javascript. This should work in most browsers if settings have not been altered. function open_in_tab(url) { var win = window.open(url, ‘_blank’); win.focus(); } Opening window into tab after Ajax Call window.open() will only open […]

HTTP Requests Using Curl and Decoding JSON Responses in PHP

You can do http requests using the Curl library and decode the JSON result with json_decode() function. PHP 5.2 and above comes with the JSON library functions. The following example will send a request to brightcove’s api using curl and extract some video thumbnail image links. The result will be a list of links in […]