House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  JQuery

Need to find/ replace() in an entire DOM

  << Previous Post |  RSS |  Subscribe to this Group Next >> 

Need to find/ replace() in an entire DOM

Hey, Will Tomlinson 02/15/2010 03:50 PM

02/15/2010 03:50 PM
Author: Will Tomlinson Short Link: http://www.houseoffusion.com/groups/jquery/thread.cfm/threadid:2055#6270 Hey, I need to traverse an entire DOM, find a match for a pattern like this: someController.somemapping And I need to replace that text with this: someController.somemapping&someURLVar=someValue This pattern could be located ANYwhere in the document - a form action, an onclick, etc. Here's what I've built so far, but it doesn't work. Any ideas would be appreciated: $(document).ready(function() {   var regexp = /([a-zA-Z]+\.[a-zA-Z]+)/;   $(this).html().replace(regexp,$1 + "&someURLVar=someValue"); }); Thanks, Will
<< Previous Thread Today's Threads Next Thread >>

Search jquery

May 25, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference