aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes model dailogbox in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "model dailogbox in javascript" Watch "model dailogbox in javascript" New topic
Author

model dailogbox in javascript

kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
hello all
I have a model dialog box which i have use for user login
I have a code given below .

javascript function



Htmal code given below for dailog content



And css is


In this case how can i retrieve value of emailid and password
from dailog.

Thanks in advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

By getting the input elements IDs and looking at their values?
kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
But i am try to get value with



But i cant get anything.

I was also call a function from submit button
and try to get value in it but i cant.
Sean Clark
Rancher

Joined: Jul 15, 2009
Posts: 377

kavita vala wrote:But i am try to get value with



But i cant get anything.

I was also call a function from submit button
and try to get value in it but i cant.


Hey,

Perhaps you should try looking for id_email and id_pass as these are the id's that you have on the inputs...

Sean


I love this place!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's not its id, for one thing.

Oops, too late; forgot to hit send!
Eswar Nec
Ranch Hand

Joined: May 02, 2010
Posts: 105
There are so many way to get the value.


Then the corresponding javascript is :


What will you see the output after use the above script


Wake up! Don't let your smile be snatched away by anybody!
Regards, Eswar
 
Don't get me started about those stupid light bulbs.
 
subject: model dailogbox in javascript