Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 29, 2012 05:47 PM by Afzaal.Ahmad.Zeeshan
None
0 Points
19 Posts
Nov 29, 2012 02:34 PM|LINK
Hello.
How to create a textbox that will appear after i click a button/hyperlink? And how to create an autherization from the textbox that need some unique ID?
I need to apply some security on my web based system while edit a data.
Thank you.
Participant
1687 Points
471 Posts
Nov 29, 2012 03:41 PM|LINK
Here's a start:
<input type="button" value="click me" onclick="showTextbox()" /> <input type="text" id="txtName" style="display: none" /> <script type="text/javascript"> function showTextbox() { document.getElementById('txtName').style.display = ''; } </script>
Contributor
2661 Points
1040 Posts
Nov 29, 2012 05:47 PM|LINK
Simple use jQury for this. That when a click happens on a div a textbox (use div for this too) shows up.
And for the form you can use Validation like
Validation.RequireField("Name", "Please enter name.");
Than you will have to use if(IsPost && Validation.IsValid)
khairiez
None
0 Points
19 Posts
Textbox Authorization
Nov 29, 2012 02:34 PM|LINK
Hello.
How to create a textbox that will appear after i click a button/hyperlink?
And how to create an autherization from the textbox that need some unique ID?
I need to apply some security on my web based system while edit a data.
Thank you.
javedwahid
Participant
1687 Points
471 Posts
Re: Textbox Authorization
Nov 29, 2012 03:41 PM|LINK
Here's a start:
<input type="button" value="click me" onclick="showTextbox()" /> <input type="text" id="txtName" style="display: none" /> <script type="text/javascript"> function showTextbox() { document.getElementById('txtName').style.display = ''; } </script>Afzaal.Ahmad...
Contributor
2661 Points
1040 Posts
Re: Textbox Authorization
Nov 29, 2012 05:47 PM|LINK
Simple use jQury for this. That when a click happens on a div a textbox (use div for this too) shows up.
And for the form you can use Validation like
Validation.RequireField("Name", "Please enter name.");Than you will have to use if(IsPost && Validation.IsValid)
~~! FIREWALL !~~