Connecting Tech Pros Worldwide Help | Site Map

creating inputbox

  #1  
Old September 3rd, 2008, 06:58 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86
hi
sorry again,
how to create an input box in javascript



thanks in advans
chel-1

Last edited by chelvan; September 3rd, 2008 at 07:18 AM. Reason: remove
  #2  
Old September 3rd, 2008, 07:19 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86

re: creating inputbox


hi
all
thanks.
i got it
chel-1
  #3  
Old September 3rd, 2008, 11:11 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,521
Provided Answers: 12

re: creating inputbox


Rather than just post that you solved it, you should also post how you managed to solve it. I assume you used document.createElement("input")?

Anyway, pleased that you did manage to solve it by yourself.
  #4  
Old September 3rd, 2008, 01:42 PM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86

re: creating inputbox


Quote:
Originally Posted by acoder
Rather than just post that you solved it, you should also post how you managed to solve it. I assume you used document.createElement("input")?

Anyway, pleased that you did manage to solve it by yourself.

ya....
i found it very simple

the code below

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript">
  2. <!--
  3.  
  4. var code = prompt ("Enter The Administative Code", "DEFAULT");
  5. if(code=="guest@tropic"){
  6. document.write("<input type='button' name='b1' value='Click To Edit'/>");
  7. }
  8.  
  9. // -->
  10. </script>
  11.  
regards
chel-1

Last edited by acoder; September 3rd, 2008 at 03:20 PM. Reason: Added [code] tags
  #5  
Old September 3rd, 2008, 03:22 PM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,521
Provided Answers: 12

re: creating inputbox


If you want to create it after the page has loaded, you can't use document.write().

PS. please use code tags when posting code. Thanks.
  #6  
Old September 4th, 2008, 04:33 AM
chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 86

re: creating inputbox


Quote:
Originally Posted by acoder
If you want to create it after the page has loaded, you can't use document.write().

PS. please use code tags when posting code. Thanks.
on javascript. i have a input dialogbox. is it able to read the inputs in hidden format

thanks.
chel-1
  #7  
Old September 4th, 2008, 11:30 AM
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,521
Provided Answers: 12

re: creating inputbox


You mean the prompt()? No. You could create your own version of an input prompt making use of the password field.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with new window in InputBox Kubo answers 19 March 22nd, 2007 11:55 PM
Input of "Inputbox" Les answers 3 March 13th, 2006 05:15 PM
array from inputbox portroe answers 7 November 20th, 2005 11:06 AM
creating a folder on each drive jenny answers 13 July 17th, 2005 08:54 PM