Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript XML HTML XSLT
i am working on a implemented project about "ONLINE MOCK TEST" and its designed in html,java script ,and the question file is designed in xml and xslt .
i want to make changes in that file to learn how it is designed but i found an problem while i make any changes in the xslt functions ,only alert box is working ,and if i make any changes to it or add new code its affect the whole project
 
function fnSubmit(action)
                {
 
                    for(i=0;i<document.QuizForm.question.length;i++)
                    {
                        if(document.QuizForm.question[i].checked==true)
                        {
 
                            selectedAnswer=document.QuizForm.question[i].value;
                          break;
                        }
 
                    }
 

 
                    if(action!='SUBMIT')
                    {
 
                        window.parent.frames[0].save(selectedAnswer, action);
                        document.QuizForm.submit();
 
                    }
                    else
                    {
 
                        //window.parent.frames[0].save(selectedAnswer, action);
                        location.href = 'FeedBack.html';
 
                    }
                }
        function hi()
        {
 
          for(i=0;i<document.QuizForm.question.length;i++)
                    {
                        if(document.QuizForm.question[i].checked==true)
                        {
                            selectedAnswer=document.QuizForm.question[i].value;
 

              document.write("ans is : " +selectedAnswer);
              break;
                        }
                    }
 
        }
this is the sample code where i make changes
Posted 11-Mar-13 4:30am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Kornfeld Eliyahu Peter 169
1 Zoltán Zörgő 139
2 George Jonsson 135
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100