Rewriter challenge!

[nobr]I challenge you!

I've been struggling with a specific page, but it seems impossible to rewrite the following construction. The Page I included below is put on a webserver to test things out. I have no access to the actual page being rewritten, so it is not easy to change the source.

All occurrences of "<img src" should be rewritten. The one near the bottom is rewritten just fine, but the one that is passed as an argument to function dbRecord is not.

My questions are:

- What is the best way to configure the rewriter for this?

- Is it possible (I assume this is a limitation of the current rewriter)?

- Does the source need to be changed?

Help will be greatly appreciated!

Regards, Robert

><!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

</head>

<body>

<br>

<script language="javascript1.1">

var db =new Array();

db[1] =new dbRecord ("<img src=/images/right.gif></img>");

function dbRecord (display){

this.display = display

returnthis

}

document.write("display=", db[1].display,".<BR>");

</script>

should display=

<img src=/images/right.gif></img>

.<BR>

</body>

</html>

[/nobr]

[1763 byte] By [RobertWielinga] at [2007-11-25 10:38:57]
# 1
Fixed it. Tried it yesterday, but was too quick to let the gateway get used to the new ruleset... Function type DHTML fixed the problem.
Robert Wielinga at 2007-7-1 21:29:52 > top of Java-index,Web & Directory Servers,Portal Servers...