Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19302

Pass username to a new html file

From "Tony" <tony.johansson@inport.com>
Newsgroups comp.lang.javascript
Subject Pass username to a new html file
Date 2013-04-17 13:49 +0200
Organization A noiseless patient Spider
Message-ID <kkm23m$2ah$1@dont-email.me> (permalink)

Show all headers | View raw


I use function GotrisLogin in Login.html to display a page with username and 
password.
If succsessful login I display a new page by  using window.location.href = 
"Obstacle.html";
This works good.
Now in the new html page "Obstacle.html"  I need the entered username from 
login.html.

How can I pass the entered username from login.html to Obstacle.html ?

function GotrisLogin()
        {
            gotris_login($('#txtUserName').val(), $('#txtPassWord').val(), 
function (data, textStatus, jqXHR)
            {
                //If successful login set cookie and switch html page
                if (IsOkMessageShort(data.dsError))
                {
                  window.location.href = "Hinder.html";
                }
            });
        }

//Tony 

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Pass username to a new html file "Tony" <tony.johansson@inport.com> - 2013-04-17 13:49 +0200
  Re: Pass username to a new html file Stefan Weiss <krewecherl@gmail.com> - 2013-04-18 00:57 +0200
  Re: Pass username to a new html file Bart Van der Donck <bart@nijlen.com> - 2013-04-18 02:48 -0700

csiph-web