Search the web
Sign In
New User? Sign Up
ycarousel · Bill Scott's Carousel Component
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Ajax example without the yahoo api   Message List  
Reply | Forward Message #474 of 505 |
Re: Ajax example without the yahoo api

Have you tried using the yahoo api with output=xml so that you get an
xml response? Then you could get your code working with xml that you
know is correct first, then move on to generating your own xml from
the PHP.

You will need to set the header correctly in your PHP so that it is
returned as XML.

Something like:
header('Content-type: application/xml; charset="utf-8"',true);

Then have your PHP spit out XML.

Beyond that I can't help much more since this is kind of outside the
scope of this group and is a broader PHP/XML/Javascript question.

--
Bill


--- In ycarousel@yahoogroups.com, "ruben.horemans"
<ruben.horemans@...> wrote:
>
> Hi,
>
> I'm trying for a week now to get this thing working with my own xml-
> file. The pictures just don't show up. Tried converting XML to JSON,
> PHP to JSON, it just doesn't work, although it outputs the same JSON in
> Firebug. My head is just spinning from all the JSON information on the
> internet.
>
> Is it possible to post a simple example with an xml-file that isn't
> generated through the yahoo api? The yahoo api generates the JSON just
> by adding a parameter, but how do you do this with a customized xml-
> file on your own webserver?
>
> And please don't send me links to JSON sites, because I've seen them
> all, mysql2json, xml2json, php2json,... The JSON it generates is not
> accepted by the ajax carousel example.
>
> An complete example would be great!
> Thanks in advance!
>





Wed Dec 3, 2008 9:36 pm

billwaynescott
Offline Offline
Send Email Send Email

Forward
Message #474 of 505 |
Expand Messages Author Sort by Date

Hi, I'm trying for a week now to get this thing working with my own xml- file. The pictures just don't show up. Tried converting XML to JSON, PHP to JSON, it...
ruben.horemans
Offline Send Email
Dec 2, 2008
10:54 am

Have you tried using the yahoo api with output=xml so that you get an xml response? Then you could get your code working with xml that you know is correct...
billwaynescott
Offline Send Email
Dec 3, 2008
9:36 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help