469,627 Members | 936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,627 developers. It's quick & easy.

Phantom vbscript error

I have a phantom script error that seems to only be appearing on certain work stations.

Its an Object Required Error. It works pefrectly for me, and a good portion of our users, but its giving one of our user's hell. Any Ideas would be appreciated.

Expand|Select|Wrap|Line Numbers
  1.                 <input type="button" value="Submit" name="submit_quiz" onClick="record_submitted()" class="buttons"> 
  2.                 <br> 
  3.                 <font color="#FF0000" size="1">ClICK SUMBIT ONLY ONCE</font> 
  4.         </center> 
  5.                 <SCRIPT language="VBScript"> 
  6.                 //If Answers were left unanswered display error messages and do not submit. 
  7.                         sub        record_submitted() 
  8.                                 needToConfirm = false 
  9.                                 submited = submited + 1 
  10.                                 incomplete = 0 
  11.                                 <%for i = 1 to question_cnt%> 
  12.                                         if quiz_form.<%="grad_" & i%>.value = "N" then 
  13.                                                         t = quiz_form.<%="sele_" & i%>.value 
  14.                                                 else 
  15.                                                         if quiz_form.<%="qtxt_" & i%>.value = "" Then 
  16.                                                                 t = 0 
  17.                                                         else 
  18.                                                                 t = 1 
  19.                                           end if 
  20.                                         end if 
  21.                                         if t = 0 then 
  22.                                                 quiz_form.<%="error_" & i%>.value = "Please select an answer!" 
  23.                                                 incomplete = 1 
  24.                                         else 
  25.                                                 quiz_form.<%="error_" & i%>.value = "" 
  26.                                         end if                                                 
  27.                                 <%Next%> 
  28.                                 if incomplete = 0 then 
  29.                                         quiz_form.submit() 
  30.                                 else 
  31.                                         error=msgbox("Not all Questions were answered, please answer all questions.", vbokonly, "WARNING REQUIRED FIELD MISSING!") 
  32.                                 end if 
  33.                         end sub 
  34.                 </script>
Oct 13 '08 #1
1 1395
jeffstl
432 Expert 256MB
The way this is written this code executes on the local level within the browser rather then a web server returning a page.

With that being the case check the users browser, the version, etc See if it is different from everyone else.

Settings could be causing things too. Hard to say since this code is written this way.
Oct 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

29 posts views Thread by Christopher Brandsdal | last post: by
16 posts views Thread by Mike Schinkel | last post: by
reply views Thread by Shaphe | last post: by
3 posts views Thread by memememe | last post: by
reply views Thread by Rod Billett | last post: by
9 posts views Thread by Dave | last post: by
9 posts views Thread by TB | last post: by
3 posts views Thread by Chuck Cobb | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.