webdbm has javascript-errors with mozilla 1.4 on linux

"Christoph Grimm" <[email protected]>
Newsgroups gmane.comp.db.sapdb.general
Message-ID <[email protected]>
webdbm has javascript-errors with mozilla 1.4 on linux

sapdb release 7.4.03

it may be that this problem also occurs with other browsers / versions / platforms

problem description:
the reason for the javascript-errors is the backurl that is given as a parameter to some of the menu options.
e.g. the edit-action when choose a user from th user-list in the DBMUsers.htm page.

it is the "&" character inside the back parameter that results in webdmb truncating the backurl value that is put in the subsequent page
 ( in our example DBMUser.htm )
therefore the ok / cancel buttons in the user detail screen do not work any more.


solution:
the "&" character in the back-parameter must be encoded as "%26"

to do this i applied the following changes to the web-pages:

in DBFrame.htm i added the following function:

      function EncodeRef( ref ) {
        var sRef = ref;
        sRef = ref.replace( "&", "%26" );
        return sRef;
      }

in
- DBMDevspaces.htm
- DBMMedia.htm
- DBMParams.htm
- DBMRecovery.htm
- DBMUsers.htm
- DBMWizard.htm

i have changed all occurences of

+ "&Back=\"" + this.location.href +

into

+ "&Back=\"" + parent.EncodeRef( this.location.href )

to make sure, that the back value contains the encoded version of the "&" character

additionally i changed the backurl instantiation in line 94 of DBMWizard.htm
and also replaced all occurences of "&" into "%26":

    backurl = parent.CreateWebDBMURL("Event=WIZARD%26Action=VIEW%26Step=" + step + "%26Group=" + paramgroup);



--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.