Pink Poogle Toy Forum

The official community of Pink Poogle Toy
Main Site
NeoDex
It is currently Fri Nov 22, 2024 12:52 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 
PPT God
PPT God
User avatar

Posts: 1702
Joined: Sun Jun 13, 2004 5:26 am
Location: Right here, and loving it the whole way
Gender: Male
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
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 1:32 am 
PPT Toddler
PPT Toddler
User avatar

Posts: 102
Joined: Sun Jan 07, 2007 10:37 pm
Location: in a cup
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
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 1:44 am 
PPT God
PPT God
User avatar

Posts: 1702
Joined: Sun Jun 13, 2004 5:26 am
Location: Right here, and loving it the whole way
Gender: Male
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
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 1:51 am 
PPT Toddler
PPT Toddler
User avatar

Posts: 102
Joined: Sun Jan 07, 2007 10:37 pm
Location: in a cup
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
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 1:54 am 
PPT God
PPT God
User avatar

Posts: 1702
Joined: Sun Jun 13, 2004 5:26 am
Location: Right here, and loving it the whole way
Gender: Male
What do you mean? The programming language?

I can make the forms with HTML.


(Steal the rhythm while you can.)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 2:28 am 
PPT Toddler
PPT Toddler
User avatar

Posts: 102
Joined: Sun Jan 07, 2007 10:37 pm
Location: in a cup
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
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 3:09 am 
PPT Trainee
PPT Trainee
User avatar

Posts: 657
Joined: Tue Jun 01, 2004 4:35 am
Location: Australia
Gender: Female
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
 Profile  
 
 Post subject:
PostPosted: Thu Feb 08, 2007 3:54 am 
PPT God
PPT God
User avatar

Posts: 1702
Joined: Sun Jun 13, 2004 5:26 am
Location: Right here, and loving it the whole way
Gender: Male
Thanks for the advice, everybody. I'll try to use it.


(Steal the rhythm while you can.)


Top
 Profile  
 
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


Who is online

Users browsing this forum: No registered users and 10 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group