News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

David Müller:
Cross Domain AJAX Guide
December 10, 2012 @ 12:17:39

In his latest post David Müller covers some of the things to consider when working with cross-domain ajax requests including CORS and iframes.

As it is widely known, AJAX Requests are only possible if port, protocol and domain of sender and receiver are equal. [...] Having this cleared out, we will cover ways around this restriction.

He covers three main approaches to allowing these cross-domain requests (and some of the security implications that can come with them):

  • CORS (Cross Origin Resource Sharing)
  • JSONP (Javascript with a local domain callback)
  • Iframes

He also briefly mentions things like window.postMessage (HTML5) and the use of a backend script to proxy a request into your application's local code.

0 comments voice your opinion now!
crossdomain ajax cors iframe jsonp tutorial introduction


SocialDevelopers.net:
Facebook and the Zend Framework - Part 1 Iframe Authentication
February 04, 2011 @ 14:42:58

On the SocialDevelopers.net blog there's a new tutorial posted that helps Zend Framework developers connect their applications to Facebook. This article is the first in a series and talks about one of the simplest integration methods - the iframe.

We are proud to present our first ever tutorial, aimed at helping Zend Framework developers to integrate their iframe applications into Facebook using the new(ish) OAuth for Canvas authentication mechanism. This is the first part in a three part series aimed at building a fully working Facebook Iframe application using the Zend Framework.

The tutorial is posted in a downloadable PDF to you can take it anywhere your code goes for easier reference.

0 comments voice your opinion now!
facebook tutorial zendframework iframe authentication


Emran Hasan's Blog:
Quick start on new Facebook PHP SDK (IFrame based)
May 04, 2010 @ 10:39:05

If you're looking for a stripped down, bare-bones look at how to get started with interfacing your PHP script with Facebook, take a look at this quick guide from Emran Hasan.

The new Facebook API has already spread over the application developers and if you're like me, you've already got your hands dirty to see how this new thing works. If you have tried to follow the documentation to authorize/get session in your canvas application, it is likely you have already hit roadblocks. Well, I am no savior but I have glued together a few clues and got it working for myself.

He walks you through the three simple steps: getting the new API, setting ip a correct configuration file and creating a sample "main page" for your application that echoes out a "Hello World" sort of message to each visitor.

0 comments voice your opinion now!
facebook api iframe tutorial quickstart


AnyExample.com:
PHP AJAX example asynchronous file upload
December 05, 2006 @ 14:23:54

As mentioned by the Zend Developer Zone, there's a new tutorial over on the AnyExample.com website that shows how to get up and working with a PHP+Ajax connection in no time flat. The goal? To handle a file upload asynchronously from the user.

This article contains example application (trivial file-sharing service, like rapidshare, megaupload or yousendit) which uses embedded frames (IFRAME) to upload file. While file is uploaded to hidden frame, user can still access web-page and fill "file description" field.

They talk briefly about the PHP functions that will be used in the tutorial and the concept of using IFRAMEs to handle the content coming in (without reloading the page). The rest of the article is a code dump showing the pieces of (procedural) code to get the job done. There's some commenting, but if you're a new coder to PHP, you might want to check out the main PHP site for some more information on the functions used.

0 comments voice your opinion now!
ajax tutorial asynchronous file upload iframe ajax tutorial asynchronous file upload iframe



Community Events





Don't see your event here?
Let us know!


podcast framework laravel opinion update package release security introduction mvc version voicesoftheelephpant language composer series community interview tool library symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework