Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i'm passing a querystring to a url on button click event where, when this event is triggered it should login to the url where i need to know how and where in javascript i can pass the credentials and login into the url :-( i hvae very less knowledge in java script :-(

What I have tried:

JavaScript
$(function () {
            $("#sendmessage").click(function () {
                var someValue = $('#message').val();
                var url = 'http://www.google.com?EmpId=' + someValue;
                window.open(url);
)};
Posted
Updated 28-Jun-16 0:00am
v2
Comments
Member 12599846 28-Jun-16 3:36am    
not much cleared..
Aarthi.33 28-Jun-16 3:42am    
i need to log into a URL on button click event in javascript i'm not sure where i can give the credentials.
Aarthi.33 28-Jun-16 3:43am    
so that the user don't know that credentials is being entered when they see another webpage on button click event
JayantaChatterjee 28-Jun-16 6:10am    
First of all, on the web credentials are used "Post" method other then "Get" method.
Credentials are suppose to be secret.
no web site are accept the Credentials through the QueryString..
Can you be more clear?
like, which web site do you want to login?
is that web site created by you or others?
Aarthi.33 28-Jun-16 6:56am    
Hi i'm using signalR to interact with other siebel application where in client code i use javascript to pass the employeeid value through a querystring through siebel URl when siebel URl is hit it needs to login to the page and show the data for the particular employeeid

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900