The moose likes HTML, CSS and JavaScript and the fly likes url details in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "url details in javascript" Watch "url details in javascript" New topic
Author

url details in javascript

joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
'


hello

how to encode the url in javascript .

my url is http://trainee-systems:7001/mydir/main.jsp?T1=002205&T2=password
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Have you looked into: encodeURIComponent()

Eric
joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
Originally posted by Eric Pascarello:
Have you looked into: encodeURIComponent()

Eric

hello joe here

can you say what is the exact syntax for encodeURIComponent

thanks
joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
Originally posted by joseph prabhu:

hello joe here

can you say what is the exact syntax for encodeURIComponent

thanks


joe here
when i click one hyperlink i am passing one value to the page

which is to be open. that value is appended as ?002966&password

how to change the url when i open the page through hyperlink
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
I am not sure what you are talking about. The hyperlink uses the href to change the page location.

Eric
joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
Originally posted by Eric Pascarello:
I am not sure what you are talking about. The hyperlink uses the href to change the page location.

Eric


hi joe here



when i click this link my page have the url as

[URL= http://webserver:7001/sales/main.jsp?T1=002205&T2=password] http://webserver:7001/sales/main.jsp?T1=002205&T2=password[/url]


my need is url should not have T1=002205&T2=password

what can be done in javascript. is it possible
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

Originally posted by joseph prabhu:
my need is url should not have T1=002205&T2=password
Then don't put it there. Really, what you are asking is not clear at all.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: url details in javascript
 
Similar Threads
Stucked in group by !!
Thread communication
join() start() run()
tell me the difference.thanks.
Doubt in overriding hashcode ...