DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Form Input Arrays

  1. #1
    Join Date
    Feb 2007
    Posts
    79

    Form Input Arrays

    Im using this Calendar, http://www.calendarxp.net/, on my page. It works great as exampled on the site. My problem comes in when i use the calendar in a form textfield that is an array. I think my *document.this_form.example[]* call is incorrect, but my novice JS knowledge is preventing me from getting it right.

    Please explain how i can get the calendar to work in the following example. The first textfield call works since it is not in an array.

    Thanks much.

    Code:
    <form method="POST" action="example.php" name="this_form">
    	<input type="text" id="example_working" name="example_working" onfocus="if(self.gfPop)gfPop.fPopCalendar(document.this_form.example_working);return false;">
    	<input type="text" id="example[]" name="example[]" onfocus="if(self.gfPop)gfPop.fPopCalendar(document.this_form.example[]);return false;">
    	<input type="text" id="example[]" name="example[]" onfocus="if(self.gfPop)gfPop.fPopCalendar(document.this_form.example[]);return false;">
    	<input type="text" id="example[]" name="example[]" onfocus="if(self.gfPop)gfPop.fPopCalendar(document.this_form.example[]);return false;">
    	<input type="text" id="example[]" name="example[]" onfocus="if(self.gfPop)gfPop.fPopCalendar(document.this_form.example[]);return false;">
    	<input type="text" id="example[]" name="example[]" onfocus="if(self.gfPop)gfPop.fPopCalendar(document.this_form.example[]);return false;">
    </form>

  2. #2
    Join Date
    Feb 2007
    Posts
    79

Similar Threads

  1. Validating input from a form against a database
    By Geoffrey in forum Database
    Replies: 1
    Last Post: 09-10-2002, 07:55 AM
  2. Replies: 2
    Last Post: 01-26-2001, 11:42 AM
  3. Setting form as MDIChild form at runtime
    By Setya in forum VB Classic
    Replies: 0
    Last Post: 01-08-2001, 06:53 AM
  4. Replies: 0
    Last Post: 05-01-2000, 12:02 PM
  5. I am helpless - Edit Info form
    By Dan in forum VB Classic
    Replies: 0
    Last Post: 03-17-2000, 06:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center