I didn't get any response on the jquery list, so I'm reposting this here. 

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 inside the body of 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 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330839
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to