Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

jQuery match ashx file with a querystring

  • 10-02-2010 02:51PM
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    I am using a jQuery IE6 pngfix on my page. The images outputted from the CMS i am using sometimes come out like image.ashx?w=50&h=100 etc.

    In the pngfix function it searches for images like

    jQuery(this).find("img[src$=.png])")

    so i added in ashx files too

    jQuery(this).find("img[src$=.png],img[src$=.ashx]")

    Somehow i need to ignore everything after the ashx extension (so ?w=50&h=100 is ignored)

    Do i need to insert a regex character after the ashx extension or something like that ?

    Thanks in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    $= is ends with, you need the wildcard *=


  • Registered Users, Registered Users 2 Posts: 872 ✭✭✭grahamor


    Excellent, thanks for the info


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Alternatively you could just drop support for IE6 if that is feasible at all.


Advertisement