<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1016884" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1016884</link>
    <description></description>
    <language>en</language>
          <item>
    <title>WooHoo!!</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098151</link>
    <description> &lt;p&gt;From &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt; --&amp;gt; &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; &lt;/p&gt;
&lt;p&gt;It works!!!&lt;/p&gt;
&lt;p&gt;Thank you to all who have helped. Taff, your code works for me ... and I understand what it means (well, sort of). This sure has been one learning experience for me. I found a tutorial I liked and helped explain things very simply - monosyllabic words and the like - and so at least I am not completly turned off by this scripting language.&lt;/p&gt;
&lt;p&gt;And I want to muck about with forms a lot more too.  Oh no, I hear you cringe ... she will be back.  Yep, but hopefully not with an impossible deadline.  &lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Annette&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 20:50:56 +0000</pubDate>
 <dc:creator>Annette35</dc:creator>
 <guid isPermaLink="false">comment 1098151 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098146</link>
    <description> &lt;p&gt;Annette,&lt;/p&gt;
&lt;p&gt;Here is the code I&#039;m using (stripped of extraneous stuff and pared down to 3 questions)&lt;/p&gt;
&lt;p&gt;*****************************&lt;/p&gt;
&lt;p&gt;&amp;lt;script LANGUAGE=&quot;JavaScript&quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;*****************************&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 13:10:52 +0000</pubDate>
 <dc:creator>taff</dc:creator>
 <guid isPermaLink="false">comment 1098146 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098145</link>
    <description> &lt;p&gt;A couple more things ... &lt;/p&gt;
&lt;p&gt;(1) RE: You&#039;re referring to this: &amp;lt;script&amp;gt;? If yes, then the answer to your questions is yes it is advisable. eg: &amp;lt;script language=&quot;text/javascript&quot;&amp;gt; &lt;/p&gt;
&lt;p&gt;Okay, but what do I put inside the script tags?&lt;/p&gt;
&lt;p&gt;As far as my non-programming brain can work out, the onClick tag should provide the answer.  But sorry, we are talking computers here, so can&#039;t possible be as simple as that ... as (3) shows.&lt;/p&gt;
&lt;p&gt;(2) Yes, still getting NaN&lt;/p&gt;
&lt;p&gt;(3) Thanks ... was looking for what the window.alert code ... so simple.&lt;/p&gt;
&lt;p&gt;Going back to the solution Taff found in the post titled Assigning numerical values to radio buttons -&lt;br /&gt;
&lt;a href=&quot;http://www.webmaster-forums.com/showthread.php?s=&amp;amp;threadid=16882&quot; class=&quot;bb-url&quot;&gt;http://www.webmaster-forums.com/showthread.php?s=&amp;amp;threadid=16882&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Solutions -&lt;br /&gt;
______________________________________________________&lt;/p&gt;
&lt;p&gt;1) multiply each variable by 1 to make it numeric. &lt;/p&gt;
&lt;p&gt;2) But then, it still wouldn&#039;t work. I suspect that a Radio button&#039;s value must be boolean. So I added a hidden field for each question (a1,a2,etc) and assigned the value to it using an onClick event &lt;/p&gt;
&lt;p&gt;form.a1.value*1 + form.a2.value*1 + etc&lt;br /&gt;
_______________________________________________________&lt;/p&gt;
&lt;p&gt;hidden field????   Does this mean I change my radio button tags to read - &lt;/p&gt;
&lt;p&gt;and so on&lt;/p&gt;
&lt;p&gt;instead of -  ...&lt;/p&gt;
&lt;p&gt;and then in the onClick tag put in&lt;/p&gt;
&lt;p&gt;onclick=&quot;window.alert(quiz.1.value + quiz.2.value + quiz.3.value + ...&lt;/p&gt;
&lt;p&gt;Anyway ... moot point because I did all this - nada ... then changed the quiz.1.value to form.1.value - nada ... No popup box pops up anymore either ...&lt;/p&gt;
&lt;p&gt;So then changed it to form.1.value - nyet&lt;/p&gt;
&lt;p&gt;then  &lt;/p&gt;
&lt;p&gt;form.1a.value - NO.&lt;/p&gt;
&lt;p&gt;WHAT do I have to do to get this thing to work ... &lt;/p&gt;
&lt;p&gt;Okay - the weather is getting to me as well.  It is 9.00 pm and still VERY hot ... My brain is fried ... and I think the computer chip may well be too!&lt;/p&gt;
&lt;p&gt;Please help ... &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/confused.png&quot; title=&quot;Confused&quot; alt=&quot;Confused&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Annette&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 11:08:27 +0000</pubDate>
 <dc:creator>Annette35</dc:creator>
 <guid isPermaLink="false">comment 1098145 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098144</link>
    <description> &lt;p&gt;No laughing here. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;1) You&#039;re referring to this: &amp;lt;script&amp;gt;? If yes, then the answer to your questions is yes it is advisable. eg: &amp;lt;script language=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
I forget what the new XML standard was but I think it varies from this. Anybody else know (too lazy to check &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;)?&lt;/p&gt;
&lt;p&gt;2) Yes, if you have problems with it.&lt;/p&gt;
&lt;p&gt;3) &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4) See previous.&lt;/p&gt;
&lt;p&gt;5) What you put in the action doesn&#039;t matter at this stage (using the code in this post) because it pops up in a message box.&lt;/p&gt;
&lt;p&gt;6) GET uses the querystring when submitting info to another page/script so the involved data is visible in the browser address bar (appended to the address). POST hides that. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
GET eg: &lt;a href=&quot;http://www.xyz.com&quot; class=&quot;bb-url&quot;&gt;http://www.xyz.com&lt;/a&gt;?x=1&amp;amp;y=2&lt;/p&gt;
&lt;p&gt;Additionally,  can become .&lt;br /&gt;
That just clears the form when clicked.&lt;/p&gt;
&lt;p&gt;Remove  from your  section.&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 09:40:14 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1098144 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098143</link>
    <description> &lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Okay, I have checked out the suggested scripts, poked and prodded, checked most of the previous posts here, checked out irt.org as previously recommended by Suzanne, and again checked other javascript sites&lt;/p&gt;
&lt;p&gt;All seem to assume a basic knowledge of js.&lt;/p&gt;
&lt;p&gt;I have tried a few variations ... each time I get either NaN or nothing or error on page.&lt;/p&gt;
&lt;p&gt;I KNOW this is incredibly simple ... &lt;/p&gt;
&lt;p&gt;... but I don&#039;t know how to get the page to add up the scores and display them.&lt;/p&gt;
&lt;p&gt;Suzanne - I think you may be way ahead of me with your answer ... (but then again, it is most likely me who just doesn&#039;t understand ...).  &lt;/p&gt;
&lt;p&gt;At this stage I am happy with just a total number to pop up (ie q_1 value + q_2 value + ... = &lt;strong&gt;26&lt;/strong&gt; with 26 being the number popping up for example), and the person using a text link to the explanation of results page.&lt;/p&gt;
&lt;p&gt;Please don&#039;t laugh at my silly questions &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt; --&amp;gt; &lt;/p&gt;
&lt;p&gt;(1) Do I need a javascript message in the head tags?&lt;/p&gt;
&lt;p&gt;(2) Do I need to change things as per Taff&#039;s previous post - adding *1 and so on - I&#039;m sorry but it is all double dutch to me (not enough information given as to the solution for a js newbie like me).&lt;/p&gt;
&lt;p&gt;(3) How do I write the onClick tag so it shows up the total amount?  &lt;/p&gt;
&lt;p&gt;(4) Where do put the &quot;form.field[1].value + form.field[2].value&quot; stuff that Suzanne talks about. In the onClick tag?  Oh, and what is field[1]?  Is that q_1? Or do I just write form.field[1]?&lt;/p&gt;
&lt;p&gt;(5) What do I put in action=&quot;&quot;? - I had the URL I want the results to show up on but this doesn&#039;t do anything.  And as I said above, I&#039;m happy with just a pop up answer at this stage.&lt;/p&gt;
&lt;p&gt;(6) What is the difference between method=&quot;post&quot;/=&quot;get&quot;?  And which one do I need?  I&#039;m interested in the difference as well as the answer to which one I need as I often use mailto forms and want to venture further with forms.&lt;/p&gt;
&lt;p&gt;I would really like to spend more time on learning JavaScript but have spent all day today (and time previous to today) on just this quiz page and have way more to do before deadline arrives (Monday).  I am at stage where I will gladly pay for a fully working script for this simple quiz.  Anyone know where I can post to request a script? ... need it this weekend. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Please help!&lt;/p&gt;
&lt;p&gt;Annette  :confused&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 09:07:22 +0000</pubDate>
 <dc:creator>Annette35</dc:creator>
 <guid isPermaLink="false">comment 1098143 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098142</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: Sorry ... clear as mud to me.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;lol, sorry! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You have your radio &amp;amp; check boxes, right?&lt;/p&gt;
&lt;p&gt;And you get all your values, right?&lt;/p&gt;
&lt;p&gt;And you know that a score of 1-10 is this answer, and 11-20 is this other answer and 21-30 is the other answer (for example, like a Cosmo quiz).&lt;/p&gt;
&lt;p&gt;So when you get your value  -- which is form.field[1].value + form.field[2].value, et cetera -- you just do a simple conditional statement.&lt;/p&gt;
&lt;p&gt;IF (0 &amp;lt;= sum &amp;lt;= 10) {&lt;br /&gt;
var Answer = answera;&lt;br /&gt;
document.write whatever;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;else if (11&amp;lt;= sum &amp;lt;=20) {&lt;br /&gt;
var Answer = answerb;&lt;br /&gt;
document.write whatever;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;else {&lt;br /&gt;
var Answer = answerc;&lt;br /&gt;
document.write whatever;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;This is &lt;em&gt;just the logic&lt;/em&gt;, mind you, to illustrate. If the sum is between 0 and 10, then it&#039;s this answer, write it. If the sum is between 11 and 20, this it&#039;s this other answer, write it. If the sum isn&#039;t either of those, it must be this third option, write it.&lt;/p&gt;
&lt;p&gt;You can even write it to a text area if you want people to be able to cut &#039;n&#039; paste it into their pages, like in Bloggerville.&lt;/p&gt;
&lt;p&gt;Hopefully it will help you see how to approach it. I haven&#039;t the time to work out the syntax, I apologize.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; Suzanne&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 08:35:37 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1098142 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098135</link>
    <description> &lt;p&gt;Hey guys thanks.  I am looking at the code for each quiz example to unravel what I can use / change for my stuff ... but thought more info may help you to understand what I need.&lt;/p&gt;
&lt;p&gt;Here is the mock up of the quiz I need the script for.  There are no right or wrong answers - just need a total.  Think of a Cosmo or Cleo magazine quiz ... &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.seriousexcuses.com/quiz.html&quot; class=&quot;bb-url&quot;&gt;http://www.seriousexcuses.com/quiz.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please ... no comments about lack of design on page (all that will change) or actual quiz itself ... &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;ALSO, can I please get you guys to check my code when I do it up.  No doubt I will make a few mistakes, particularly given my ignorance.  Would be most appreciated.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;Annette&lt;/p&gt;
&lt;p&gt;... This is paying me back for having put off learning JavaScript &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; ...&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 03:19:02 +0000</pubDate>
 <dc:creator>Annette35</dc:creator>
 <guid isPermaLink="false">comment 1098135 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098133</link>
    <description> &lt;p&gt;Dunno how much of help this will be but heres a script I made for a competition I entered.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://schools.netguide.co.nz/lynfield/content.html?quizzes.html&quot; class=&quot;bb-url&quot;&gt;http://schools.netguide.co.nz/lynfield/content.html?quizzes.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It basically has all the answers stored in an array, and it loops through the user answers and compares to the correct answers. It also keeps a count of all the correct and wrong answers as it loops through. Then it passes all of the numbers as a string to a new window where another script dissects the string to create the results in a tabular format. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The only problem is that it doesn&#039;t detect blank answers so the results go a little out of whack in that case. But hey, I had to make it in under 12 hours. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
If you feel up to the challenge of fixing that and customising the code, you may. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 02:50:46 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1098133 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098131</link>
    <description> &lt;p&gt;here is a javascript quiz for you&lt;br /&gt;
&lt;a href=&quot;http://members.home.net/garygrewal/jscripts/quiz.htm&quot; class=&quot;bb-url&quot;&gt;http://members.home.net/garygrewal/jscripts/quiz.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;its all explained pretty well for the non scripter to change to suit&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 02:27:11 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1098131 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-quiz#comment-1098127</link>
    <description> &lt;p&gt;Sorry ... clear as mud to me.  &lt;/p&gt;
&lt;p&gt;I will stick with JavaScript at this stage (Major time contraints).  Later I can refine it and do it in PHP or Perl if this is better.&lt;/p&gt;
&lt;p&gt;Annette&lt;/p&gt;
 </description>
     <pubDate>Sat, 12 Jan 2002 00:40:07 +0000</pubDate>
 <dc:creator>Annette35</dc:creator>
 <guid isPermaLink="false">comment 1098127 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
