custom izing the blaisei s xslt stylesheets and asp
play

Custom izing the BlaiseI S XSLT Stylesheets and ASP Scripts Edwin - PowerPoint PPT Presentation

Custom izing the BlaiseI S XSLT Stylesheets and ASP Scripts Edwin de Vet & Arnaud Wijnant CentERdata 10/ 17/ 2013 Blaise I S: How does it w ork? 3 10/ 17/ 2013 Blaise I S: How does it w ork? ( 2 ) Request Blaise sends Blaise Send


  1. Custom izing the BlaiseI S XSLT Stylesheets and ASP Scripts Edwin de Vet & Arnaud Wijnant CentERdata 10/ 17/ 2013

  2. Blaise I S: How does it w ork? 3 10/ 17/ 2013

  3. Blaise I S: How does it w ork? ( 2 ) Request Blaise sends Blaise Send input to question generates Blaise properties to questions IIS HTML page is IIS transforms sent to properties to respondent HTML page 4 Output 10/ 17/ 2013

  4. Modifying XSLT style sheets • Modify look and feel of webpages • Add extra functionality to meet demands of our customers 5 10/ 17/ 2013

  5. Clickable texts by m odifying XSLT style sheets • Added id to input elements • Modified template RichTextElement to add label with “for” attribute <input name="qu1fpala" id="qu1fpala1" value="1" type="radio"> <label for="qu1fpala1">Option A</label> <input name="qu1fpala" id="qu1fpala2" value="2" type="radio"> <label for="qu1fpala2">Option B</label> 6 10/ 17/ 2013

  6. Slider using jQuery-UI ( 1 ) Blaise source file (.bla) <div id=""slider2""></div> <script type=""text/javascript""> $(function() { createSlider(2); }); </script> XSLT style sheet • Includes links to jQuery libraries • Includes JavaScript function createSlider() 7 10/ 17/ 2013

  7. Slider using jQuery-UI ( 2 ) •Creates slider on document load •Fills input field when slider is moved function createSlider(id) { var element = document.getElementById("qu" + id + "_id"); element.style.display = 'none'; var val = 550; if (element.value != '') { val = parseInt(element.value); } else { element.value = val; } var sliderOpts = { min: 100, max: 1000, value: val, slide: function(e, ui) { element.value = ui.value; } }; $("#slider" + id).slider(sliderOpts); 8 } 10/ 17/ 2013

  8. Slider using jQuery-UI ( 3 ) 9 10/ 17/ 2013

  9. Table Styling •Header row gets css class “HeaderRow” •Other rows alternating css classes “OddRow” and “EvenRow” •Styling (for instance coloring) can be set with standard css 10 10/ 17/ 2013

  10. Trigram search/ encode question ( 1 ) • Automatic look-up and encode question • Question uses a database that contains descriptions • Very similar to a Google search suggestion box • Code is written in Classic ASP and uses an Access database 11 10/ 17/ 2013

  11. Trigram search/ encode question ( 2 ) 12 10/ 17/ 2013

  12. Previously presented m odifications • Simple Style Sheet (Arnaud Wijnant & Edwin de Vet) – IBUC 2012 • Mobile style sheet based on the Simple Style Sheet and jQuery mobile (Alerk Amin) – IBUC 2012 • C3B – incorporating external webpages into the Blaise questionnaire (Arnaud Wijnant) – IBUC 2010 13 10/ 17/ 2013

  13. Modifying asp scripts - logging • Modification of BiPagHan.asp • Logging to plain text file • Name of the questionnaire, timestamp (date and time), key value of the respondent, question name and given answer • Analysis of time intervals between questions • Are respondents going back in the questionnaire? 14 10/ 17/ 2013

  14. Security enhancem ent BlaiseI S server Respondents portal Recalculate hash KeyValue= 1237 HashValue= sha1( HashValue= sha1( SALT.KeyValue) SALT.”1237”) <form action="blaiseISserver/biInterviewStarter.asp"> <input type="hidden" name="KeyValue" value=“1237" /> <input type="hidden" name=“HashValue" •First question value=“dd054b0a2f3b8b66f6611910" /> < form •Missing KeyValue <input type=“Submit” value=“Start Questionnaire” /> •Incorrect hashvalue 15 </form> 10/ 17/ 2013

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend