HELP - HTML Rewrite
<HTML Rewriter Question>
I had created a Path-based Multi-Homing path "test" <https://DNS_NAME/test> and a HTML rewriter WORD profile list "test",
HTML rewriter setting as:
If Requested URL Is=> DNS_NAME/test/*
Enable Rewriter Actions=> Enable
variable or Attribute Name=>onmouseover and onmourseout
String to Search for Is=> Search: /* Replace With: $path/*
case 1:
Original HTML coding:
<a href="/test.html" target="aa" onMouseOver="document.aa.src='/images/aa_over.gif';" onMouseOut="document.aa.src='/images/aa_out.gif';">
<img name="aa" src="/images/aa.gif"></a>
Expected HTML coding:
<a href="/test/test.html" target="aa" onMouseOver="document.aa.src='/test/images/aa_over.gif';" onMouseOut="document.aa.src='/test/images/aa_out.gif';">
<img name="aa" src="/test/images/aa.gif"></a>
But the Result HTML codeing:
<a href="/test/test.html" target="aa" onMouseOver="document.aa.src='/images/aa_over.gif';" onMouseOut="document.aa.src='/images/aa_out.gif';">
<img name="aa" src="/test/images/aa.gif"></a>
How can the repplacement apply on onMouseOver attribute?
Case 2:
Original HTML coding:
function open_popup() {
popup = window.open("/test.html", "test", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=yes, width=600, height=370")
popup.moveTo(0,0);
}
Expected HTML coding:
function open_popup() {
popup = window.open("/test/test.html", "test", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=yes, width=600, height=370")
popup.moveTo(0,0);
}
But the Result HTML coding:
function open_popup() {
popup = window.open("/test.html", "test", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=yes, width=600, height=370")
popup.moveTo(0,0);
}
How can the repplacement apply on javascript window.open function?
Case 3:
Original HTML coding:
submenu['menu1'][0] = menuItem('Javascript Menu1','/test.html','_self');
Expected HTML coding:
submenu['menu1'][0] = menuItem('Javascript Menu1','/test/test.html','_self');
But the Result HTML coding:
submenu['menu1'][0] = menuItem('Javascript Menu1','/test.html','_self');
How can the repplacement apply on javascript menu function?
Many thanks!
|