473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

Hi!

If page has the link, let say page has following hyperlink
<a href="javascript:editUser('<c:out value="${users.id}"/>')"><c:out
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/en...de-decode.html

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

Any help would be appreciated.

THanks,

Anil G

Jan 20 '07 #1
1 1842
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:out value="${users.id}"/>')"><c:out
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......

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jan 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Terri | last post by:
I want to send emails that would include a link to an asp page. The link would look like http://10.0.0.10/ContactDetails.asp?ID=18484 How can I prevent someone from simply typing in a...
2
by: ViperDK | last post by:
What is the best way for that? I store all Data in the original form in the Database. To prevent output fields (especially the fields everyone can use) to do bad things like killing the...
2
by: Miles Keaton | last post by:
still doing my switch from MySQL to PgSQL, and can't figure out what the comparable function would be for this: In MySQL, to store a big secret (like a credit card number) in the database that I...
7
by: jtfaulk | last post by:
I need to encode some information on the server side using ASP.NET with C#; sending via HTTP to a client side application, that needs to be decoded in an MFC C++ application. I'm not sure if I...
10
by: Trammel | last post by:
Hi, Im just about to start developing a new website for personal / friend use that may be accessed by other people all over the web. I was sitting thinking through designs for the pages, etc when...
6
by: Aneesh P | last post by:
Hi All, I need to encrypt some fields esp password key values in configuration file while installting the application using .Net installer project and decrypt those values from my...
4
by: justabeginner | last post by:
First of all, let me say I've had very little training in html and probably know just enough to be dangerous. I designed a website for my alumni association last summer using XHTML Transitional and...
4
by: J Peyret | last post by:
Well, as usual I am confused by unicode encoding errors. I have a string with problematic characters in it which I'd like to put into a postgresql table. That results in a postgresql error so I...
5
by: vegetable21 | last post by:
Hi All, (I originally posted this in the .NET Programming Languages, but i realised the fact that i'm using C# is irrelevant as i think the problem i'm having is with DHTML / JavaScript.) So...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.