encode or encrypt the links on displayed on web browser bottom section.

A

Anil G

Hi!

If page has the link, let say page has following hyperlink
<a href="javascript:editUser('<c:eek:ut value="${users.id}"/>')"><c:eek:ut
value="${users.username}"/></a>

Now, on web browser, bottom section at runtime, following will be
displayed:

javascript:editUser('457592-11783');

Due to security reasons, i would like that link to be encoded or
encrypted. and browser bottom pane should show some encrypted text
instead of my javascript function.

How to accomplish this? i had tryed following:
http://scriptasylum.com/tutorials/encdec/encode-decode.html

But above thing works on action, not at render time?

Any help would be appreciated.

THanks,

Anil G
 
R

Randy Webb

Anil G said the following on 1/19/2007 8:28 PM:
Hi!

If page has the link, let say page has following hyperlink
<a href="javascript:editUser('<c:eek:ut value="${users.id}"/>')"><c:eek:ut
value="${users.username}"/></a>

Then the author made a very poor choice of an HREF attribute.

Now, on web browser, bottom section at runtime, following will be
displayed:

javascript:editUser('457592-11783');

Yes, that is what the status bar is for.
Due to security reasons, i would like that link to be encoded or
encrypted. and browser bottom pane should show some encrypted text
instead of my javascript function.

Then change your link. Either point at a server file using a hash to
look up the true ID of the user or simply point the HREF attribute
somewhere else and use the onclick event handler of the link.

<a href="ThisWillShowInTheStatusBar.html"
onclick="editUser('Joe Blow');return false">
Edit User Joe Blow</a>

An even better quasi-solution would be to use a button instead:

<button onclick="editUser('Joe Blow')" type="button">
This one wont change the status bar at all
</button>

Right Click>View Source......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top