Pink Poogle Toy Forum

The official community of Pink Poogle Toy. Bear with me while I tweak everything
It is currently Tue Sep 15, 2026 12:02 am

All times are UTC




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Programming Question
PostPosted: Thu Feb 08, 2007 1:13 am 
Offline
PPT God (1702)
PPT God
Ok. My teacher doesn't care how it's done, but he wants me to program a test for him. I was thinking a submit form with right or wrong answers. Any way I do it, is it possible?

_________________
(Steal the rhythm while you can.)


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 1:32 am 
Offline
PPT Toddler (102)
PPT Toddler
1. What kind of test form?

2. What kind of comp. language

xD

_________________
<img src="http://i24.photobucket.com/albums/c11/wisseh/maplesig.gif">
-=-=-=I'm so proud of WIS!=-=-=-
Full of <img src="http://icons.iconator.com/229/ICONATOR_4e29a1143ebe86f70d6a6c159082baf1.gif">


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 1:44 am 
Offline
PPT God (1702)
PPT God
I don't really know the specifics yet, but I think like maybe multiple choice, fill in the blank,

and if it's possible, html or javascript. I don't want the code, even though it'd be convenient, I just want to know if it's even possible.

_________________
(Steal the rhythm while you can.)


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 1:51 am 
Offline
PPT Toddler (102)
PPT Toddler
of course it's possible xD what do you think those forms are made out of? eh?

_________________
<img src="http://i24.photobucket.com/albums/c11/wisseh/maplesig.gif">
-=-=-=I'm so proud of WIS!=-=-=-
Full of <img src="http://icons.iconator.com/229/ICONATOR_4e29a1143ebe86f70d6a6c159082baf1.gif">


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 1:54 am 
Offline
PPT God (1702)
PPT God
What do you mean? The programming language?

I can make the forms with HTML.

_________________
(Steal the rhythm while you can.)


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 2:28 am 
Offline
PPT Toddler (102)
PPT Toddler
So you answered your own question ^^ try and make it now xD

_________________
<img src="http://i24.photobucket.com/albums/c11/wisseh/maplesig.gif">
-=-=-=I'm so proud of WIS!=-=-=-
Full of <img src="http://icons.iconator.com/229/ICONATOR_4e29a1143ebe86f70d6a6c159082baf1.gif">


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 3:09 am 
Offline
PPT Trainee (657)
PPT Trainee
Yep! A form with a javascript hooked up to it would work well :)

Amongst other things, you'd need something like:

Code:
<form id="form1" onsubmit="checkAnswers()">
   <label for="name">Name:</label>
   <input id="name" name="name" type="text" />
   <input type="submit" name="submit" value="Go!" />
</form>

When this form is submitted (when you press the submit button), it will call a javascript function called "checkAnswers()", and you can do various spiffy calculations there.

For instance, this will take the name that's been inputted in the textfield, and display an alert:
Code:
<script language="javascript" type="text/javascript">
   function checkAnswers()
   {
      var name = document.getElementById("name").value;
      alert("Hello "+name);
   }
</script>


(you can try just copying and pasting those into a webpage... probably in the opposite order though (script and then form)).

The w3schools website has a good section on javascript too, incase you need to read up on it: http://www.w3schools.com/js/default.asp :)

_________________
Image
Nyum nyum nyum...


Top
 
   
 Post subject:
PostPosted: Thu Feb 08, 2007 3:54 am 
Offline
PPT God (1702)
PPT God
Thanks for the advice, everybody. I'll try to use it.

_________________
(Steal the rhythm while you can.)


Top
 
   
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited