Does the xhttprequest object work in iBooks?

I created very simple Custom Widget in Dashcode that uses xhttprequest to grab an xml file on my website and displayed the contents in a text field. It works when I run it as a dashboard but when I drop the widget in the iBooks author, it doesn't complain about the widget but when I run it, it just doesn't work. Anyone?
thx
Ralph

You'll find everything you need about JSONP here.
If you're making an ajax call on http://www.francisthomas.fr/jsonp.php for example, jquery will append in the querystring : ?jsonp_callback=jQuery171002402425314941925_1327394323912
Then, on the server, you need to use this callback when outputting the json :
echo $_GET['jsonp_callback'] . '(' . $json . ');';
which produce :
jQuery171002402425314941925_1327394323912({"result":"Ca marche"});

Similar Messages

  • DOES THE APPLE REMOTE WORK WITH THE IPOD TOUCH..? WITHOUT A DOCK..

    HI
    DOES THE APPLE REMOTE WORK WITH THE IPOD TOUCH 5TH GEN..? WHITHOUT A DOCK..??
    THANKS ANYONE

    This Apple remote requires a dock since this remote uses IR and the iPod does not ha IR capibility,.
    Manufacturer Information
    Apple Remote with iPod and iPhone: Please note a Universal Dock is required in order to use the Apple Remote with your iPhone or iPod.
    http://store.apple.com/us/product/MC377LL/A/apple-remote?

  • Does the apple remote work with the ipod touch 4th gen?

    Does the apple remote work with the ipod touch 4th gen?

    Yes, but it also requires Apple's Universal Dock to go along with it.  Otherwise, it is useles.
    B-rock

  • HT201335 does the Ipod touch work with the airplay mirroring

    Does the Ipod touch work with airplay mirroring?

    No. Only iPhone 4S and iPad (2nd or 3rd Gen) as it requires more processing power. You can still use airplay with your device though.

  • Does the ipod video work with the original ihome?

    does the ipod video work with the original ihome?

    Welcome to Apple Discussions!
    If you mean this one...
    http://www.ihomeaudio.com/products.asp?productid=10015&deptid=1003
    Them yes. I am using one myself. You may want to purcahse these if it does not come with them (depending on how old it is)
    http://www.ihomeaudio.com/products.asp?productid=10016&deptid=1000
    btabz

  • Does the iPod Mini Work with Windows?

    I am thinking of buying an iPod mini but I don't have an Apple computer. Does the iPod mini work with Windows efficiently? Thanks....

    Hello Ian,
    Can you be really specific about the necessary Windows XP updates needed? I run XP Pro on a rather new computer and just got an IPOD mini. I'm ready to tear my hair out because iTunes seems to crash my computer every time I change one CD for another. iTunes runs REALLY, REALLY slow for me. Also read on the board that iTunes 6.0 and the mini don't work well together. True or not true?
    Thanks - Genevieve

  • Does the Ipod nano work with microsoft XP?

    Does the ipod nano work with MS windows XP? itunes will recognize my Nano 7G, therefor I cannot sync,

    Have you try putting your ipod into disk mode if you need help putting it in disk mode here's a page from apple
    of how to put your ipod nano into disk mode: http://support.apple.com/kb/ht1363

  • Does the new iPad work with adobe flash?

    Does the new Ipad work with a version of adobe flash?  I have read several articles, and I'm just more confused than when I started!  I'm a newer Mac user, and I'm interested in the new iPad, but I don't know if I want it if it doesn't support internet pages that use adobe flash.  Thanks for your help!!

    Adobe eliminated its "mobile Flash" department.  Android, Mobile Windows, IOS, WebOS ... everyone is out of luck.

  • How does the event structure work & ...

    How does the event structure work & and how to modify the case example if you want to change the name of the case? I haven't a look at the manual but nothing about event structure is mentioned.

    I know how it works.. =P

  • Does the ethernet port work when the using airport express in client mode?

    I am considering using an airport express to extend my existing wireless network to a room where I can't get a cable to.
    I will need to connect a at least 3 devices to the airport express.
    The questions are:
    - is an airport express the right answer to this problem?
    - if so, does the ethernet port work (AE on client mode) as a passthru into the main network?
    - can I plug a hub to it?
    Thanks
    RFSF

    Hi Tesserax,
    Really appreciate you taking time to respond.
    I stopped by the Apple store this weekend and one of their sales people ( not one of their genius bar people) told me NO to all questions.  I tend to believe more answers from people in this forum but just realize that I have not mentioned one possibly important point:
    the main AP to which I will be connecting the airport express is not an Airport Extreme/Express AP. 
    Thanks,
    Ricardo.

  • Why does the clone stamp work when I go from a darker colour to a lighter colour but not the other way around. How can I lighten up a dark area? Lasso tool takes from the wrong area too.

    Why does the clone stamp work when I go from a darker color to a lighter color but not the other way around? How can I lighted a dark area? The Lasso tool takes from the wrong area.

    c.pfaffenbichler wrote:
    Why do you use the Blend Modes Lighter and Darker at all in this case and not simply Normal?
    And what kept you from posting a screenshot?
    I borrowed the image below for an HDR workshop I ran at the 2010 PSNZ National Convention, to demonstrate a method of removing halos.  You'll remember that halos were a serious problem with early HDR, and while the halos in this image were caused by over sharpening, they are perfect for demonstrating this technique.
    It relies on the fact that halos so often tend to put a lighter tone between the two areas where sharpening is being applied. Whether that is the sky abutting a dark line of hills, or the rock and little tower as in this image.  I've uploaded it at the size it was supplied to me at (about 2700 pixels wide).  So
    Click to open the full image, right click and copy, and paste into Photoshop.
    Select the clone tool, and set its blend mode to Darken.
    Try to sample on a line horizontal to where you want to clone, to give the best tonal match, and start cloning.
    Because the sky is darker than the halo, it overwrites it. But the rock is darker than the sky, so it has no affect.
    It works even better if you clone on a new layer also set to Darken.  No masking, just Photoshop blend mode magic.
    You can also fix the little tower. Use a great big brush — just remember to sample horizontal to match the horizon.
    Back then I was using the same trick with CAs after forgetting to fix them in ACR, and having done too much work to start again after spotting the problem.

  • How does the notify() call work in Java?

    Hi!
    Can someone help me:
    How does the notify() call work in Java?
    H�var

    Java's Thread Tutorial
    JavaWorld: Introduction to Java threads
    IBM: Introduction to Java threads
    Google: java+threads+tutorial

  • How does the copy button work in safari for ipad (copy button under facebbok share button)?

    How does the copy button work in safari for ipad (copy button under facebbok share button)?

    On a website ...  
    Tap the Action icon bottom of that window. (white square with a right facing arrow) then tap Facebook.
    You should see the following depending on the what content the website can share.
    Copy / Mail / Message / Twitter / Print  / Bookmark

  • How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    How does the Passbook application work? How am I able to import my plane ticket, concert ticket etc into Passbook?

    Try the following to fix the iTunes Can't Connect issue that you are having:
    Open Settings.
    Open General.
    Open Date & Time.
    Switch the Set Automatically setting to Off.
    Open Set Date & Time.
    Set the date to a year ahead.
    Go back to the Home screen and open Passbook.
    Tap the App Store button. The App Store should load.
    Go back to Date & Time and turn on Set Automatically.
    Thanks to: https://discussions.apple.com/message/19622208#19622208

  • How does the newest Iphone work with Ford Sync?

    How does the new Iphone work with Ford Sync? I was thinking of purchasing the 4s but may go elsewhere if there is a better phone for the equipment in my vehicle.

    That would be a NO.. I should have done my homework before I switched to IPhone because the Bluetooth just does not want to sync with my Ford Truck. Its such an inconvience. But I see from other posts that Ford isn't the only car experiencing problems. So Hopefully Apple fixes this problem QUICKLY!

Maybe you are looking for

  • 1099 Misc- RFIDYWWT program not selecting by clearing date

    Hello, I am trying to run the transaction S_P00_07000134 - Generic Withholding Tax Reporting for 1099 Misc forms in ECC6.0.  It is not pulling the vendor line items by the clearing date like the old 4.6 1099 program did (RFW1099M).  For example, an i

  • How to change the width of a field?

    Hi all, I would like to decrease the width of a field on my report. But I can't do it in the Property palette. I am not able to change the width property. The width of the database column is varchar2(255). I do not want to decrease the length of the

  • [DW-8]Hacer encuesta

    Hola a todos: Tengo el siguiente codigo para hacer encuestas //recibo el voto $voto = $_POST["voto"]; //recibo el id de la encuesta $encid = $_POST["encid"]; $servidor="localhost"; $usuario="root"; $password=""; $base="bd"; $SQLid = mysql_connect($se

  • Validate org.w3c.dom.Element against xsd

    I need to validate a org.w3c.dom.Element against an xsd. DOMParser dp = new DOMParser(); URL xmlurl = new URL("file:\\test.xml"); XSDBuilder builder = new XSDBuilder(); URL xsdurl = new URL("file:\\test.xsd"); XMLSchema schemadoc = (XMLSchema)builder

  • Collect hw counters

    I am running collect on a Niagara system and trying to get harware counter information, but all the counts are assigned to <Unknown>. For example I have run: collect -p on -h +dcm/0,hi program I get the routine timing information but all the d-cache