Fill in the blank generator |
Fill in the blank generator |
richardja |
Nov 13 2020, 10:07 AM
Post
#1
|
Group: Members Posts: 2 Joined: 13-November 20 Member No.: 27,636 |
Hi. I am trying to create a fill-in-the-blank paragraph using HTML.
For example: This is a ____ sentence. The ____ needs to be a text box that viewers can write in. Once they submit it, I want it to draw from a list of words that I have embedded into the HTML. So, some people might end up with, "This is a good sentence," while others will end up with "This is a bad sentence." Do you have any tips or code to help me create this? |
Christian J |
Nov 13 2020, 11:45 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,650 Joined: 10-August 06 Member No.: 7 |
What determines the kind of reply each user gets?
Are you going to save the contributions? Then you need server-side scripting (say PHP), and maybe a database. Or are they just meant to be seen by each user? Then it's enough to use javascript. |
richardja |
Nov 13 2020, 11:52 AM
Post
#3
|
Group: Members Posts: 2 Joined: 13-November 20 Member No.: 27,636 |
I am not going to save the contributions; they are just for each user to see. I am not sure if I can use javascript. It is going into an online classroom on a platform that is increasingly making it more difficult to use Javascript (Canvas).
As far as what determines each reply, I am not totally sure what options exist. If synonyms were possible, I could do that. But then would I have to list every possible synonym somewhere in the code? What determines the kind of reply each user gets? Are you going to save the contributions? Then you need server-side scripting (say PHP), and maybe a database. Or are they just meant to be seen by each user? Then it's enough to use javascript. |
Christian J |
Nov 13 2020, 02:07 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,650 Joined: 10-August 06 Member No.: 7 |
I am not going to save the contributions; they are just for each user to see. I am not sure if I can use javascript. It is going into an online classroom on a platform that is increasingly making it more difficult to use Javascript (Canvas). Canvas is something different. Otherwise javascript is used on virtually the whole web nowadays. That said, server-side (e.g. PHP) is more robust, but it requires a server that lets you run server-side scripts. QUOTE As far as what determines each reply, I am not totally sure what options exist. If synonyms were possible, I could do that. But then would I have to list every possible synonym somewhere in the code? Yes I suppose so. |
Lo-Fi Version | Time is now: 17th April 2024 - 09:15 PM |