NOVELL FORUMS

 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 14-Jul-2008, 12:40 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
yuengrace1 is on a distinguished road
Default 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!
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 02:46 AM.


© 2007 Novell, Inc. All Rights Reserved.

SEO by vBSEO 3.1.0