Program Specific issue (Slow response)
Opened this issue · 0 comments
Shrutichhatbar commented
Example
<div class="form-group">
<label class="col-sm-3">Quiz Title</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="QuizTitle" placeholder="Quiz Title" autocomplete="off">
</div>
<label class="col-sm-3">Quiz Description</label>
<div class="col-sm-9">
<textarea class="form-control" name="QuizDescription" placeholder="Quiz Description" autocomplete="off" rows="3"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3">Quiz Picture</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="picture" placeholder="Enter an image's URL to see magic"
autocomplete="off">
<img class="img-responsive" way-data="formData.picture"
way-default="http://creditworksusa.com/wp-content/uploads/2014/03/facebook-default-profile-photo.jpg">
</div>
</div>
<div class="single_result_wrapper" way-repeat="formData.Results" style="padding: 0px;">
<label>Results</label>
<div>
<div class="item-entry">
<input type="text" class="form-control" placeholder="Result Title"
way-data="title" way-persistent>
</div>
<div class="single_result_inner">
<div class="result_image">
<div class="upload_icon"></div>
<div class="upload_text">Click to add Photo/Video</div>
</div>
</div>
<a href="#" way-action-remove="formData.Results.$$key" way-persistent>Remove</a>
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
<a href="#" way-action-push="formData.Results" style="position: relative; top: 5px; left: 12px;">Add a Result</a>
</div>
</div>
<div class="form-group">
<label class="col-sm-3">Questions</label>
<div class="col-sm-9">
<a href="#" way-action-push="formData.Questions" style="position: relative; top: 5px; left: 12px;">Add Questions</a>
</div>
</div>
<div class="form-group" way-repeat="formData.Questions" style="padding: 0px;">
<label class="col-sm-3"></label>
<div class="col-sm-9">
<div class="item-entry">
<input type="text" class="form-control" placeholder="Question Title"
way-data="title" way-persistent>
</div>
<label class="col-sm-3">Answers</label>
<div class="col-sm-9">
<a href="#" way-action-push="formData.Answers" style="position: relative; top: 5px; left: 12px;">Add an Answer</a>
</div>
<div way-repeat="formData.Answers" style="padding: 0px;">
<label class="col-sm-3"></label>
<div class="col-sm-9">
<div class="item-entry">
<input type="text" class="form-control" placeholder="Answer Title"
way-data="title" way-persistent>
<div way-scope-break="true" style="padding: 8px 0px 0px 8px; border-top: rgba(0, 0, 0, .1) solid thin; margin-top: 8px;">
<div way-repeat="formData.Results">
<span way-data="title"></span>
</div>
</div>
<div way-repeat="formData.Results">
<span style="margin-left: 10px; font-weight: bold;">Weightage</span>
<label>
<input type="radio" way-data="level" value="0" checked="checked">0
</label>
<label>
<input type="radio" way-data="level" value=".25">.25
</label>
<label>
<input type="radio" way-data="level" value=".5">.5
</label>
<label>
<input type="radio" way-data="level" value=".75">.75
</label>
<label>
<input type="radio" way-data="level" value="1">1
</label>
</div>
</div>
</div>
<a href="#" way-action-remove="formData.Answers.$$key" way-persistent>Remove</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-fixed">
<div class="alert bg-warning">
This is the data stored in way.js
<div class="btn btn-sm btn-default pull-right" style="position: relative; top: -5px;" way-clear way-persistent>
Clear data
</div>
</div>
<pre way-data="__all__" way-json="true" way-default="{}"></pre>
</div>
</div>
So this is code I am using in body tag so when I add new answer in Question it takes so much time. No idea why? Page become unresponsive sometimes.