Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

jQuery match ashx file with a querystring

Options
  • 10-02-2010 2:51pm
    #1
    Registered Users 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 Posts: 11,980 ✭✭✭✭Giblet


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


  • Registered Users Posts: 872 ✭✭✭grahamor


    Excellent, thanks for the info


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


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


Advertisement