Wednesday, July 16, 2008

jQuery Cross Domain Ajax Query

I have been quite interested in jQuery nowsday. Before, I use Prototype framework and Scriptaculous framework to do my work. But now, it seems jQuery is more powerful than Prototype. There are conflicts between IE and Prototype framework. I realize some IE on some computer cannot load pages that has loaded Prototype code. I don't know what wrong with that. I try to ask people in the forum, no one can answers this question.

Now, it comes to jQuery 1.2. It includes one of the nicest feature. It allows you to transfer JSON data across multiple domains. Have a look on this:
http://docs.jquery.com/Release:jQuery_1.2/Ajax

jQuery now supports JSONP natively - if you attempt to load JSON (via $.getJSON or $.ajax) from a remote URL then an extra callback will be provided for the server to interpret. Additionally, if the server requires a special field for specifying your own callback name you can provide it by having a "=?" in your query string.

50 comments:

getify said...

You might want to consider flXHRproxy, which is a jQuery (and Prototype) plugin for flXHR (http://flxhr.flensed.com) that allows easy cross-domain Ajax. The plugins make it super simple, and the rest of your Ajax code doesn't need any changes at all.

chamnap said...

It uses flash. I think most people will need to install flash in order to make site work well.

getify said...

Yes, flXHR uses flash. But, more than 99% of computers worldwide have Flash installed. And flXHR includes code logic that helps detect the flash player installed and upgrade it if necessary. So having Flash installed is not really that big of a problem.

Anonymous said...

What about iPad/iPhone?

Anonymous said...

Nice post. I was checking continuously this blog and I'm impressed! Very helpful information particularly the last part :) I care for such information a lot. I was looking for this particular info for a long time. Thank you and good luck.

Here is my blog post; http://vinddennyeipad3.dk

Anonymous said...

It's a shame you don't have a donate button!
I'd without a doubt donate to this brilliant blog! I suppose for now i'll settle for
book-marking and adding your RSS feed to my Google account.
I look forward to new updates and will talk about this site with my
Facebook group. Chat soon!

My blog - waist to hip ratio chart

Anonymous said...

What's up, its nice piece of writing on the topic of media print, we all understand media is a enormous source of facts.

My web site: best registry cleaners

Anonymous said...

Genuinely when someone doesn't know afterward its up to other visitors that they will help, so here it takes place.

Also visit my webpage ... home generators

Anonymous said...

Nice post. I was checking continuously this weblog and I'm inspired! Very helpful info specifically the ultimate phase :) I deal with such information a lot. I was looking for this particular information for a very long time. Thank you and best of luck.

Look into my web site ... who makes the best gps

Anonymous said...

Thank you for the good writeup. It in fact was a leisure account it.
Look complex to more introduced agreeable from you! By the way,
how can we keep in touch?

Take a look at my homepage top golf gps 2012 **

Anonymous said...

Way cool! Some very valid points! I appreciate you penning this poost and the rest of the site iis extremely good.


Loook inbto my blog post - thrombosed external hemorrhoids burst

Anonymous said...

Great beat ! I wish to apprentice at the same time as you amend your site, how could i subscribe for
a weblog website? The account aided me a acceptable deal.
I have been a little bit familiar of this
your broadcast offered shiny clear concept

Feel free to surf to my web-site ... gottman couples therapy principles

Anonymous said...

After exploring a few of the blog articles on your website,
I seriously like your way of blogging. I saved as a favorite it
to my bookmark website list and will be checking back in the near future.
Please visit my website as well and let me know your opinion.

Here is my webpage where to buy garcinia cambogia extract (http://www.heartonline.eu/cy56f)

Anonymous said...

Unfortunately something went missing during the move, and if you aren't
aware of Worms to begin with then this one won't win you over.

The touch sensitivity does have a very slight delay when you slide your
finger across it, but after awhile you get used to it.
I am acquiring my whole house carried out section by section as I
can afford it.

Here is my site: Flappy Bird cheat download

Anonymous said...

With havin so much written content do you ever run into any issues of plagorism or copyright
violation? My site has a lot of exclusive content I've either
created myself or outsourced but it looks like a lot of it is popping it up all over the web without my permission. Do you know any techniques to help reduce content from being stolen? I'd really appreciate
it.

My website :: obat diet alami

Anonymous said...

Quality posts is the key to attract the people to pay a visit the
site, that's what this site is providing.

My weblog ... king bedroom set

Anonymous said...

What'sup it's me, I am also visiting this site on a regular
basis, this web site is in fact nice and
the visitors are actually sharing pleasanht thoughts.


my site ... storm damage varies

Anonymous said...

This post is worth everyone's attention. How can I find out
more?

Take a look at my web-site :: electronic cigarette comparison

Anonymous said...

You actually make it appear really easy along with your presentation however I in finding this matter to be really one thing that I believe I would never understand.
It kind of feels too complex and very wide for me.
I'm having a look ahead to your subsequent put up, I will attempt
to get the dangle of it!

My website: rent a range rover sport

Anonymous said...

Chwilówka owe ogromnie atrakcyjny produkt kredytowy.
Nie powinno nas to dziwić. W ciągu jej wsparciem jest dozwolone jakkolwiek utrzymywać się szybką pożyczkę w przypadku, jak
ta jest nam w największym stopniu pozytywna. Pisząc o chwilówkach, wypada chociaż wprowadzić
mistrzowskie dyferencjacja pojęciowe. Chwilówka
w potocznym docenieniu owe dług krótkoterminowa udzielana na mocy instytucję
pozabankową. Jest pani jakieś rodzaju ekwiwalentem kredytu krótkoterminowej.
Odróżnia ją chociaż podejście zabezpieczenia, wymagania zespolone z jej przyznaniem, jak i
również koszty, które są najczęściej dużo wyższe aniżeli w kredytach uzyskiwanych w banku.
W drugim sensie jako chwilówkę można
obejść się pożyczkę na łysek. W tym miejscu od tego czasu odmalować się mają możliwość palety
pochodzące spośród agencji bankowych czy SKOK-ów,
które dodatkowo podlegają nadzorowi KNF.

My weblog www (bignecessity7374.tumblr.com)

Karsalagu said...


now many good browsers, enjoy

Download Lagu Troye

big dogs leadership said...

I have been quite interested jQuery nowsday. Before, I used the Prototype Framework and Scriptaculous framework to do my job. But now, it seems stronger than Prototype jQuery. There is a conflict between the IE and the Prototype framework. I realize some of IE on some computers can not load a page that has been loaded Prototype code. I do not know what's wrong with it. I tried to ask people on the forum, no one can answer this question.

daway pratama said...

nic post. thank you

wapmusik.co

Indrakun said...

Tkjmp3
Suaramp3
download lagu
mp3 terbaru

mandolin slicer said...

Nice share post article, great to help me know more information, thanks

Admin said...

es, flXHR uses flash. But, more than 99% of computers worldwide have Flash installed. And flXHR includes code logic that helps detect the flash player installed and upgrade it if necessary. So having Flash installed is not really that big of a problem.
berita teknologi
Informasi pendaftaran cpns
tips seo
jual tahu asli

Admin said...

es, flXHR uses flash. But, more than 99% of computers worldwide have Flash installed. And flXHR includes code logic that helps detect the flash player installed and upgrade it if necessary. So having Flash installed is not really that big of a problem.
perkembangan teknologi
info lowongan kerja
tutorial seo untuk blog
jual tahu
play pokemon go online

Anonymous said...

nice article.. thanks

Masukan Trader Pemula

Putar Musik said...

Nice Post, Thanks

Putar Musik

Rahmat said...

thanks your information

Budi Santoso said...

thanks for shring

download lagu kpop

Budi Santoso said...

Banklagu Gratis download lagu

Cari lirik lagu indonesia dan kpop

Miss Travell said...

good article llook nice good travel destination books

Anonymous said...

Nice article.. thanks for your sharing


Forex indonesia terpercaya

bankmusic said...

lirik kpop

Nursidik said...

Mantap blognya.

neko-anime22 said...

good posting

Ikhsan said...

Nice information. Thanks for the information.

please visit my blog Contoh Surat Permohonan Mutasi Kerja

techzane said...

Good post, i like that and allow me be share this post.

Anonymous said...

Hi to every body, it's my first pay a quick visit of this website; this blog consists of amazing
and really fine stuff designed for visitors.
here my website....Good acne Cure

Tutorialmu69 said...

niche artikel
Cara Flash Android Sendiri

Cara menghemat baterai android

Cara mencegah virus di android

Penyebeb android cepat panas

Cara Menghilangkan Iklan Di Android

Mempercepat Kinerja Android

Mempercepat koneksi internet di android

Cara Root Abdroid

MMSA said...

This is Legendary Articel,i search in all web i cant doit because its Very cool :)

Cara Menambahkan Ribuan Like Instagram

Unknown said...


Very useful once this article makes my insight so knowledgeable to know
Don't forget visit my web Showtv21

Unknown said...

Thanks for sharing,

Link to my blog BandarQ Agen Sakong Judi AduQ Capsa Bandar Poker BdDomino

Tyan Aditya said...

i like this post
Here i have some great tips for your phones
How to Flash all Xiaomi
How to Flash all Samsung
How to Flash all Sony Xperia
How to Flash all Lenovo
How to Flash all CoolPad
How to Flash all Oppo

Anonymous said...

nice post
http://onmusician.com
http://tipscara.xyz
http://tipstrick.xyz

Adeline said...

Thank you for the information is very useful for us all ..
not only I need, but many people are looking for information about all this.
=========================
[+] Beauty Tricks
=========================
[+] best makeup transformation 2018

Miss Travell said...

nice uniqe information Bali Garden Designs Pictures Gallery

Adeline said...

Thanks for sharing superb informations. Your website is very cool. I’m impressed by the details that you have on this web site.
Jav Uncensored & Jav Online

cara buat rekening BRI said...

nice
cara daftar rekening bri
syarat dan rukun wudhu

Subscribe in a Reader