Re: mb_eregi_replace



I've a possible solution. You can use some javascript code to replace
all the occurrences with something like this:

myRe2 = new RegExp('à bon chat', 'gi');
document.getElementById('only_context').innerHTML = new
String(document.getElementById('only_context').innerHTML).replace(myRe2
,'<b>$&</b>');

You must include the text, that you wanna replace into a div called
'only_context' or whatever.

.



Relevant Pages

  • Re: IE pops up Cant Open Site, Operation Aborted error
    ... IE doesn't like the javascript code to be placed inside of a table or ... tag. ... The problem is described in #2 under potential pitfalls on this page: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Resize a DIV to fill entire height of page? Please help
    ... but I need javascript code that will resize the DIV to the ... I dynamically add stuff inside a div. ... Where "container" has a repeating image in the background. ... Setting body to a pixel size doesnt work. ...
    (comp.lang.javascript)
  • Re: Control Lifecycle and Stuff
    ... Thanks Yuan... ... The DIV concept may work for me. ... If I make a control that detects clicks on several elements, ... In the JavaScript code, ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • JavaScript Problem
    ... I am having a problem with some JavaScript code which is being most ... Basically the code displays or hides a div in response to an onclick ...
    (microsoft.public.sharepoint.portalserver)