Results 1 to 3 of 3

Thread: Looking to extract url from an html tag

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Looking to extract url from an html tag

    Hi guys...I've got a problem here, I'm trying this new eBay listing program and it presets how it places the images...it uses [PICTUREx] type tags to link to the attribute of where the pictures are stored on their server.

    My problem is that I need to be able to resize them with just the basic width id in the html IMG tag to scale them. The problem is, there is no set way to extract the url to the pictures from [PICTUREx].

    So I figured the best way was to use client side javascript to extract the url so then I can reinsert it into an html IMG tag so I can set the correct parameters. Unfortunately, every script I find has to be in the HEAD of the the document. And that's just not possible with an eBay listing.

    This would work the same way that the simple ASP command TrimHTML() works, but from what I can tell, there is no simple way to do that with Javascript.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The [PICTUREx] tag (whatever that may be) would be converted into an HTML <img> tag before being sent to the browser anyway.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes...but it would be converted into an entire <img src="http://img" width="too big" height="too big"> that's what I need to change.

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
  •