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:

  1. 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.

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

    ReplyDelete
  3. 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.

    ReplyDelete
  4. What about iPad/iPhone?

    ReplyDelete
  5. 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

    ReplyDelete
  6. 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

    ReplyDelete
  7. 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

    ReplyDelete
  8. 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

    ReplyDelete
  9. 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

    ReplyDelete
  10. 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 **

    ReplyDelete
  11. 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

    ReplyDelete
  12. 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

    ReplyDelete
  13. 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)

    ReplyDelete
  14. 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

    ReplyDelete
  15. 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

    ReplyDelete
  16. 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

    ReplyDelete
  17. 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

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

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

    ReplyDelete
  19. 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

    ReplyDelete
  20. 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)

    ReplyDelete

  21. now many good browsers, enjoy

    Download Lagu Troye

    ReplyDelete
  22. 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.

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

    ReplyDelete
  24. 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

    ReplyDelete
  25. 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

    ReplyDelete
  26. Nice article.. thanks for your sharing


    Forex indonesia terpercaya

    ReplyDelete
  27. Nice information. Thanks for the information.

    please visit my blog Contoh Surat Permohonan Mutasi Kerja

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

    ReplyDelete
  29. 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

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

    Cara Menambahkan Ribuan Like Instagram

    ReplyDelete

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

    ReplyDelete
  32. 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

    ReplyDelete
  33. 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

    ReplyDelete