• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get textbox val at the time of url click

 
Sam Venkata
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to be able to send the value entered in a text box as a request parameter appended to the url is it possible.
I have done some thing like this please let me know what I am doing wrong here.


Please let me know if I could do it this way also please suggest me if there is another way, all I want to do is prepopulate the values entered in the login page in the registration page without the user having to enter the username again in the registration page.

Thanks,
Samanth.
 
Sam Venkata
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just realized I was not returning a value but I still do not get anything even after returning the value.

Thanks,
Samanth.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What made you think you could write script inside an href attribute? You'll need to establish a click handler to handle the click yourself. Why aren't you just submitting a form rather than trying to use a link?
 
Sam Venkata
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a quite new to javascript. I just wanted to know if that is possible at all. We have a submit button for login. since the webpage would be displayed on a mobile device we have thought of not having a submit for registration.
Just wanted to know if there is any other way of doing it using java script in you knowledge.

Thanks,
Samanth.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Samanth Marisetty:
I am a quite new to javascript. I just wanted to know if that is possible at all.
Of course it is. But first you've got to learn the where and how of scripting pages.

We have a submit button for login. since the webpage would be displayed on a mobile device we have thought of not having a submit for registration.
I'm not following that logic. Why is a submit ok for login, but not anything else? When submitting data, a form is easy becasue it handles the details of the data submission.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic