SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member 8army's Avatar
    Join Date
    Feb 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question fetch content in JS

    Hi all. I need some help since I'm new at JavaScript,
    and I can't find what I'm looking for.

    How can I fetch content from one site, parse it with reg.exp.,
    and use that info on other site? I don't need to know everything,
    not regex, just what I must use to fetch content.

    Simple example:

    Site 1 has text:
    <html>
    ...
    item 1 : prize.
    item 2 : prize.
    ...
    item 234 : prize.
    ...
    </html>

    How do I display list of item 1-50 on site 2 ?

    Any help is ok. Thanx.

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,424
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    This isn't something you use JavaScript for. You'll need a server-side language for this.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •