Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 27th, 2007, 04:55 PM
amoo3 amoo3 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 366 amoo3 User rank is Private First Class (20 - 50 Reputation Level)amoo3 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 3 h 16 m 51 sec
Reputation Power: 9
Creating multiple text fields based on user input

Hi,

Is it possible to ask a user how many methods, for example, he has in his class (which he is uploading) and based on that number create x amounts of Method number x descriptions?

If so, how?

Thanks
-Amir
__________________
I have summoned you here for a purpose

Reply With Quote
  #2  
Old June 28th, 2007, 02:11 PM
sumityadav's Avatar
sumityadav sumityadav is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2006
Location: Chandigarh, India
Posts: 311 sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)sumityadav User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 37512 Folding Title: Starter FolderFolding Points: 37512 Folding Title: Starter Folder
Time spent in forums: 6 Days 12 h 9 m 50 sec
Reputation Power: 365
Send a message via MSN to sumityadav Send a message via Yahoo to sumityadav Send a message via Google Talk to sumityadav Send a message via Skype to sumityadav
MySpace Orkut
Yes, you can create this by the getting a user to input the number of text boxes element. Then based on the click of a link you call an AJAX function that would replace the another <div> with the render_partial() function.
Just give it a try or else i'll post a sample code here tomorrow.
Quote:
Originally Posted by amoo3
Hi,

Is it possible to ask a user how many methods, for example, he has in his class (which he is uploading) and based on that number create x amounts of Method number x descriptions?

If so, how?

Thanks
-Amir
__________________
.: TechSumit :.


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Creating multiple text fields based on user input

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap