Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

encoding issue..........

This is a discussion on encoding issue.......... within the JavaScript forums, part of the Web Development category; Hi Frnds, I am passing a user name as a URL queryString. The user name has a back slash which is getting escaped. Please help. Code : js fn - ...

Go Back   Geeks Talk > Web Development > JavaScript
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-18-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 984
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
encoding issue..........

Hi Frnds,



I am passing a user name as a URL queryString.

The user name has a back slash which is getting escaped.
Please help.
Code :

js fn -
var reassignTo = '<%=request.getAttribute("reassignTo") %>'; // user name is 'NIH\ADAMSBR'
function reassignOwnership(){
window.opener.showProcessingSpan();
var url = '<%= sServletBaseHREF %>admin/manageUserItem.reassignOwnership.grs?itemType=' + itemType + '&owned=' + owned +'&<%=ManageUserItemController.ITEM_REASSIGN_TO_OWNER_TOKEN%>=' + reassignTo;
alert(url);
window.opener.document.location = url;
window.close();
}

When I alert the URL, 'NIH\ADAMSBR' comes as 'NIHADAMBR'.


Plz guide me to correct this problem .........


Thanks in advance.......
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Web Development > JavaScript

« servelts | servelts »
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 On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Hi all, i have an issue :(( Bubus LoadRunner 2 11-18-2008 06:50 AM
Issue nageshkota SQL Server 5 09-09-2008 04:52 AM
database issue deevali Oracle 1 07-03-2008 04:47 AM
Testing issue sakshi_2801 Testing Issues 3 01-21-2008 02:33 AM
ADF table issue.. psuresh1982 Oracle 1 07-19-2007 04:04 AM


All times are GMT -4. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved