On Thu, Jan 12, 2012 at 9:51 AM, Davide Prati <lastex...@gmail.com> wrote: > That was the error in chrome. in Firefox i've got this: "uncaught > exception: Error in Actionscript. Use a try/catch block to find error."
thanks, I'll check the json response. Another question, can I use the same example with an xml files? dataType: "xml" and then read an external xml file?
On Thu, Jan 12, 2012 at 1:09 PM, Davide Prati <lastex...@gmail.com> wrote: > thanks, I'll check the json response. > Another question, can I use the same example with an xml files? > dataType: "xml" > and then read an external xml file?
To clarify: that "dataType" param is part of jQuery's $.ajax function, which I believe handles xml, but might require some massaging.
I think your JSON issues might be caused because your JSON is not JSONP, which requires a ?callback=foobar parameter. jQuery is hiding some of this magic:
The "Error calling method on NPObject" was an exception from the VHX megaplaya, but like Casey pointed out it was caused by the malformed JSON. We'll add more informative debugging to the player.
> You can use any format you'd like as long as the end result is an array of objects containing a "url" attribute that gets passed to the video player.
> On Thu, Jan 12, 2012 at 1:09 PM, Davide Prati <lastex...@gmail.com> wrote: > thanks, I'll check the json response. > Another question, can I use the same example with an xml files? > dataType: "xml" > and then read an external xml file?
On Thursday, January 12, 2012 7:32:31 PM UTC+1, Jamie Wilkinson wrote:
> To clarify: that "dataType" param is part of jQuery's $.ajax function, > which I believe handles xml, but might require some massaging.
Yes, probably some massaging. I've written a script that parse the youtube api and generates a static file. Probably for this purpose an XML file it's better than a JSON file.The generated file is something like this http://www.iocose.org/files/videos.xml but it doesn't work. I will work it out tomorrow, thanks for your answer
> I think your JSON issues might be caused because your JSON is not JSONP, > which requires a ?callback=foobar parameter. jQuery is hiding some of this > magic:
> The "Error calling method on NPObject" was an exception from the VHX > megaplaya, but like Casey pointed out it was caused by the malformed JSON. > We'll add more informative debugging to the player.
> You can use any format you'd like as long as the end result is an array of > objects containing a "url" attribute that gets passed to the video player.
> On Thu, Jan 12, 2012 at 1:09 PM, Davide Prati <last...@gmail.com> wrote:
>> thanks, I'll check the json response. >> Another question, can I use the same example with an xml files? >> dataType: "xml" >> and then read an external xml file?