0

Question with html

Hey,

I have a question to do you.

I want obtain a jpeg image from a html document.
I know how to use a xml document for obtain this image, but I have a html document now and I don't know how to do this.

Any idea?

Thanks,

3 Replies
  • QUOTE (pabloch87 @ Jun 29 2010, 01:24 AM) <{POST_SNAPBACK}>
    Hey,

    I have a question to do you.

    I want obtain a jpeg image from a html document.
    I know how to use a xml document for obtain this image, but I have a html document now and I don't know how to do this.

    Any idea?

    Thanks,

    Hi,

    Do you mean that the server response is html? You could you use a regular expression.

    If you have control over the server have it return json. That is the most efficient data transfer format.

    - Ben
    0
  • QUOTE (Benjamin Toll @ Jun 29 2010, 04:20 PM) <{POST_SNAPBACK}>
    Hi,

    Do you mean that the server response is html? You could you use a regular expression.

    If you have control over the server have it return json. That is the most efficient data transfer format.

    - Ben



    Yes, the page is http://www.marca.com/multimedia/primeras/10/06/0630.html, and I want to obtain the front of newspaper, but... in this html page I can't to use .getElementsById or .getElementsByTag,.... and I don't know how obtain it..

    Thanks
    0
  • QUOTE (pabloch87 @ Jun 29 2010, 11:12 PM) <{POST_SNAPBACK}>
    Yes, the page is http://www.marca.com/multimedia/primeras/10/06/0630.html, and I want to obtain the front of newspaper, but... in this html page I can't to use .getElementsById or .getElementsByTag,.... and I don't know how obtain it..


    Parsing an HTML page using an XML parser is going to be problematic. I would suggest you look into the documentation on Yahoo! Pipes (http://pipes.yahoo.com) and use it to parse the page and return back the URL in a JSON packet to your widget. I apologize, I can't offer much help on how to do that in Pipes, but I know it's possible and hopefully the docs will have a good example.

    -Jeremy
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets