Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teachers would like a web browser based interface #39

Open
chrqls opened this issue Feb 15, 2014 · 14 comments
Open

Teachers would like a web browser based interface #39

chrqls opened this issue Feb 15, 2014 · 14 comments
Assignees

Comments

@chrqls
Copy link

chrqls commented Feb 15, 2014

Relative issue: SMILEConsortium#20

@chrqls
Copy link
Author

chrqls commented Feb 15, 2014

screen shot 2014-02-15 at 03 12 47

truedat101 added a commit that referenced this issue Mar 20, 2014
* origin/master:
  refs #47 Clean up the main readme.md
  refs #47 Bump release version to 0.3.2 and tag release.
  refs #26, #39 Fix the question layout, use <p> instead of <h4> which is block visibility.  I may change this later because it looks nicer, but need to deal with the case where lines wrap past the end.  Shouldn't happen in practice.
  refs #26, #39 Fix a number of new foundation 4 and general layout problems.  Add reveal.js as this actually handles semi-normal layout. I'm a bit confused at how we are treating the data in #iq-area, but can work it out later.
  refs #26, #39 Was missing a div needed to display the "waiting to start making questions".  Clean up some harmless js.
  refs #26, #39, #38 Undo the lint fixes ....
  refs #26, #39, #38 Take care of the majority of the lint errors, we'll leave the redefs and comma errors.
  refs #26, #39 Fix login state transition, all a result of foundation 4 getting rid of "tabs" in favor of html5 flavored sections.
  refs #26 #39 Add updated blockui version, add section.js from foundation, and fixed smilestudent.js issues with the tab handling.  Also, get tabs working.
  refs #26 Fix the columns, use <size>-# .  Not <# spelled out>.
  refs #26 Initial upgrade to foundation 4.3.2.
@truedat101
Copy link
Member

@chrqls We should prioritize this one next. We've got a lot of requests for teacher web app.

@chrqls
Copy link
Author

chrqls commented Apr 16, 2014

Do we need to use a specific technology for this web application? or it doesn't matter?

chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 17, 2014
chrqls added a commit that referenced this issue Apr 17, 2014
[#39] Birth of a web app for teachers (session values page)
@truedat101
Copy link
Member

I'd like this to follow same tech in terms of technology: foundation + ko.js and jquery.As for design, up to you.   Sent from my BlackBerry 10 smartphone. From: Charles QuelosSent: Thursday, April 17, 2014 5:27 AMTo: RazortoothRTC/node-smile-serverReply To: RazortoothRTC/node-smile-serverCc: truedat101Subject: Re: [node-smile-server] Teachers would like a web browser based interface (#39)Do we need to use a specific technology for this web application? or it doesn't matter?

—Reply to this email directly or view it on GitHub.

chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 18, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 18, 2014
chrqls added a commit that referenced this issue Apr 18, 2014
[#39] Updating web client for teacher
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 19, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 21, 2014
chrqls added a commit that referenced this issue Apr 21, 2014
[#39] Updating web client for teacher
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 22, 2014
chrqls added a commit that referenced this issue Apr 22, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 25, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 25, 2014
chrqls added a commit that referenced this issue Apr 25, 2014
[#39] Updating web client for teacher (preview iqset in progress)
@chrqls
Copy link
Author

chrqls commented Apr 25, 2014

@truedat101 , I need your opinion about the JQuery issue I have here.

screen shot 2014-04-26 at 00 51 05

I don't know why but when I click on a button "more", it does not display the id of the iqset.
However, the generated HTML code contains my value twice! (once in the input hidden, the other one directly into the 'a' tag.

The view

screen shot 2014-04-26 at 00 53 31

The JS code

And the method previewIQSet looks pretty simple:

function previewIQSet() {

    smileAlert('#globalstatus', '1st attempt='+$(this).attr('name'), 'blue', 10000); // should display the string 'id'
    smileAlert('#globalstatus', '2nd attempt='+$(this).attr('value'), 'blue', 10000); // should display a very long id
    smileAlert('#globalstatus', '3rd attempt='+$(this).parent().find('input[type=hidden]').attr('name'), 'blue', 10000); // should display a very long id
}

Have you any idea why the values do not appear ?
I lost several hours on that, and I can't progress until I find a way to get the id of the selected IQSet.

@truedat101
Copy link
Member

I'll have a look at this.

On Sat, Apr 26, 2014 at 8:05 AM, Charles Quelos [email protected]:

@truedat101 https://github.com/truedat101 , I need your opinion about
the JQuery issue I have here.

[image: screen shot 2014-04-26 at 00 51 05]https://cloud.githubusercontent.com/assets/3521208/2806556/366ed6ce-cccc-11e3-9bb7-7049b4d5e1c4.png

I don't know why but when I click on a button "more", it does not display
the id of the iqset.
However, the generated HTML code contains my value twice! (once in the
input hidden, the other one directly into the tag.
The view

[image: screen shot 2014-04-26 at 00 53 31]https://cloud.githubusercontent.com/assets/3521208/2806570/b2481ef4-cccc-11e3-86ff-438331e9ce03.png
The JS code

And the method previewIQSet looks pretty simple:

function previewIQSet() {

smileAlert('#globalstatus', '1st attempt='+$(this).attr('name'), 'blue', 10000); // should display the string 'id'
smileAlert('#globalstatus', '2nd attempt='+$(this).attr('value'), 'blue', 10000); // should display a very long id
smileAlert('#globalstatus', '3rd attempt='+$(this).parent().find('input[type=hidden]').attr('name'), 'blue', 10000); // should display a very long id}

Have you any idea why the values do not appear ?
I lost several hours on that, and I can't progress until I find a way to
get the id of the selected IQSet.


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-41447716
.

@truedat101
Copy link
Member

So take a look at onclick and the event object in any of the html DOM docs online. This one is particularly annoying, because, if you work from the HTML/js side of things, and try to mix in jquery, you need to remember that the $(this) object is implicit in the jquery context. In your function, previewIQSet, it takes no argument. $(this) is bound to what? The onclick receives an event

https://developer.mozilla.org/en-US/docs/Web/API/Event?redirectlocale=en-US&redirectslug=DOM%2Fevent

So make sure in your onclick that you pass the event object into previewIQSet(event), and in your previewIQSet function def, you have some argument, say, "e", which is the target event of the click. Alternatively, you can bind a click to '#globalstatus', but you'll want to look at the jquery docs or the existing code for how we do this already.

So in the code you've got now, you'd have $(e.target.id) and then whatever jquery methods chained on there. Give that a try.

@chrqls
Copy link
Author

chrqls commented Apr 27, 2014

screen shot 2014-04-27 at 23 19 08

Your were right... JQuery recreate the DOM on its side. If you don't use JQuery, it does not update its DOM. Thanks!

chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 29, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Apr 29, 2014
chrqls added a commit that referenced this issue Jun 4, 2014
[#39] Updating web client for teacher (0.7.4)
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 9, 2014
chrqls added a commit that referenced this issue Jun 9, 2014
[#39] Updating web client for teacher (0.8.1) and student (1.1.0)
@truedat101
Copy link
Member

I'll verify tonight

@chrqls
Copy link
Author

chrqls commented Jun 10, 2014

Don't be surprised if you notice that the review of right&wrong answers (on student app) is broken. It is already fixed on my laptop (and it is even better). I will push this version maybe in 24h :)

chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 11, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 11, 2014
…for each student, and green light color when student finished answering
chrqls added a commit that referenced this issue Jun 11, 2014
[#39] Updating web client for teacher (0.8.3)
@truedat101
Copy link
Member

Teacher app looks very cool. We might want to make a list of the things left to do to make this feature/equivalent with the Teacher Android app.

[ ] - retake
[ ] - restart
[ ] - quit === logout ?
[ ] - Student list can scroll off the screen if larger than available space
[ ] - Question list can scroll off the screen if larger than available space
[ ] - Questions show images
[ ] - Realtime stats on screen
[ ] - Mobile Friendly buttons to open Question detail
[ ] - Student Details available on click of student
[ ] - Displays final results
[ ] - Button to send results by email
[ ] - Button to file bug

chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 13, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 13, 2014
…or each students operational, best score in gold
chrqls added a commit that referenced this issue Jun 13, 2014
[#39] Updating web client for teacher (0.8.4) and a timer in webapp for student
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 14, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 14, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 14, 2014
…reduced decimal size to 1 number for results in student table
chrqls added a commit to chrqls/node-smile-server that referenced this issue Jun 14, 2014
chrqls added a commit that referenced this issue Jun 14, 2014
[#39] Updating web client for teacher (0.8.7)
@chrqls
Copy link
Author

chrqls commented Jun 14, 2014

[X] - retake
[?] - restart
> not already the case ? ( logout+login? directly click on retake?)
[X] - quit === logout ?
[?] - Student list can scroll off the screen if larger than available space
> not already the case ?
[?] - Question list can scroll off the screen if larger than available space
> not already the case ?
[?] - Questions show images
> we need a call
[X] - Realtime stats on screen
[?] - Mobile Friendly buttons to open Question detail
> not already the case ?
[ ] - Student Details available on click of student
[X] - Displays final results
[ ] - Button to send results by email
[ ] - Button to file bug

@truedat101 truedat101 assigned truedat101 and unassigned chrqls Aug 21, 2014
chrqls added a commit to chrqls/node-smile-server that referenced this issue Aug 2, 2015
chrqls added a commit to chrqls/node-smile-server that referenced this issue Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants