James Hancock
asked on
Web experts ! HTML ! Javascript project for medical MRI sharing
Hi
I'm embarrassed! Enough with the tiny questions of small components of my project.
Here is the entire thing. Some suggestions would be welcome.
The doctors want a system where MRI images can be dragged into the browser by the patients or whoever onto the pic of the doctor the MRI's are meant to go to (do it in email?)
Their bloody MRI machine doesn't have advanced networking etc, it prints the MRI on to a CD.
So, I want the patients to be able to drag the MRI file onto a pic, or box for the doctor it is supposed to go to.
I do not care about hooligans dropping 10,000 MRI's to a doctor. It will only need to happen once.
I thought each patient could have an integer associated with them, so they go to doctorMRI.com/1234 and drop it there once?
Is that a plan?
I also don't see how java script is run on the web?
When I run html with javascript on my website, it just lists the code. I have a godaddy space.
Thanks
I'm embarrassed! Enough with the tiny questions of small components of my project.
Here is the entire thing. Some suggestions would be welcome.
The doctors want a system where MRI images can be dragged into the browser by the patients or whoever onto the pic of the doctor the MRI's are meant to go to (do it in email?)
Their bloody MRI machine doesn't have advanced networking etc, it prints the MRI on to a CD.
So, I want the patients to be able to drag the MRI file onto a pic, or box for the doctor it is supposed to go to.
I do not care about hooligans dropping 10,000 MRI's to a doctor. It will only need to happen once.
I thought each patient could have an integer associated with them, so they go to doctorMRI.com/1234 and drop it there once?
Is that a plan?
I also don't see how java script is run on the web?
When I run html with javascript on my website, it just lists the code. I have a godaddy space.
Thanks
ASKER
Thanks ALOT
They considered using dropbox, but the patients can't be expected to do anything technical
Ideas?
TY
They considered using dropbox, but the patients can't be expected to do anything technical
Ideas?
TY
Dropbox.... yeah, let's not and say we did. If you rely on external systems outside of your control, your software comes grinding to a halt when that 3rd party system changes. We'll not consider the size limitations of dropbox either...
Anyway, if the MRI produces a CD, I imagine that the operator takes the disc out and must do something with it. I would imagine they send it to the doctor or the patient via the post? How does the image on the disc currently get to the doctor? Let's start with that process.
Anyway, if the MRI produces a CD, I imagine that the operator takes the disc out and must do something with it. I would imagine they send it to the doctor or the patient via the post? How does the image on the disc currently get to the doctor? Let's start with that process.
For javascript to run it must be inside <script> tags. It runs in the browser so has nothing to do with your ISP
My recommendation
1. Patient logs on - that gives you the patient ID also limits the hooligan scenario
2. Use a library like DropZone.js (http://www.dropzonejs.com/) to handle the drop and upload functionality
3. Sever side script records
- logged on patient
- incoming file
- zone (doctor) the file was dropped on
Does not need to be elaborate - most of the code is out there already - just a case of binding it together with your favourite backend scripting solution.
<script>alert('Hi There!');</script>
My recommendation
1. Patient logs on - that gives you the patient ID also limits the hooligan scenario
2. Use a library like DropZone.js (http://www.dropzonejs.com/) to handle the drop and upload functionality
3. Sever side script records
- logged on patient
- incoming file
- zone (doctor) the file was dropped on
Does not need to be elaborate - most of the code is out there already - just a case of binding it together with your favourite backend scripting solution.
Nice. Never seen dropzonjs before. I like that!
ASKER
She's not awake/answering. They are mailing MRI's now, I think, or handing in some cases, but it is frustrating, i suppose, if a tech solution is imaginable.
I think she's hoping for a system where there is a web page and anyone can drop the file on whomever hey want it to go to. They want it so that potentially clueless patients can handle it. Her opinion was that a file dialog might be too complicated for some vs drag and drop. They tried dropbox, but people couldn't set it up.
Thanks
I think she's hoping for a system where there is a web page and anyone can drop the file on whomever hey want it to go to. They want it so that potentially clueless patients can handle it. Her opinion was that a file dialog might be too complicated for some vs drag and drop. They tried dropbox, but people couldn't set it up.
Thanks
What are you still needing on this question?
ASKER
Lee,
If I put this file's code in my web-directory, it only lists the html on the browser, it doesn't run the script..
tested here: http://jamescomp.com/beed/ medic/domi nique.htm
Thanks
If I put this file's code in my web-directory, it only lists the html on the browser, it doesn't run the script..
<!DOCTYPE html>
<meta charset="utf-8">
<title>Dropzone simple example</title>
<!--
DO NOT SIMPLY COPY THOSE LINES. Download the JS and CSS files from the
latest release (https://github.com/enyo/dropzone/releases/latest), and
host them yourself!
-->
<script src="https://rawgit.com/enyo/dropzone/master/dist/dropzone.js"></script>
<link rel="stylesheet" href="https://rawgit.com/enyo/dropzone/master/dist/dropzone.css">
<p>
This is the most minimal example of Dropzone. The upload in this example
doesn't work, because there is no actual server to handle the file upload.
</p>
<!-- Change /upload-target to your upload address -->
<form action="/upload-target" class="dropzone"></form>
tested here: http://jamescomp.com/beed/
Thanks
A couple of things
1. There are some funny chars in the script you posted
2. Your document is not well formed - html boilerplate looks like this
Create a file test.html and paste this into it
Also, check your console (F12) to see if there are any errors reported there.
EDIT
Funny chars are Unicode line space characters E280A8
1. There are some funny chars in the script you posted
2. Your document is not well formed - html boilerplate looks like this
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Title here</title>
</head>
<body>
</body>
</html>
This code (cleaned up version of yours) works for me<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dropzone simple example</title>
<!--
DO NOT SIMPLY COPY THOSE LINES. Download the JS and CSS files from the
latest release (https://github.com/enyo/dropzone/releases/latest), and
host them yourself!
-->
<script src="https://rawgit.com/enyo/dropzone/master/dist/dropzone.js"></script>
<link rel="stylesheet" href="https://rawgit.com/enyo/dropzone/master/dist/dropzone.css">
</head>
<body>
<p>
This is the most minimal example of Dropzone. The upload in this example
doesn't work, because there is no actual server to handle the file upload.
</p>
<!-- Change /upload-target to your upload address -->
<form action="/upload-target" class="dropzone"></form>
</body>
</html>
If JavaScript is not running make sure you have not disabled it in your browser. Test with this applicationCreate a file test.html and paste this into it
<script>
document.write("Hello World!")
</script>
<noscript>Your browser does not support JavaScript!</noscript>
Load into your browser to see if JavaScript is enabled.Also, check your console (F12) to see if there are any errors reported there.
EDIT
Funny chars are Unicode line space characters E280A8
ASKER
It still just dumps the page code on the browser
http://jamescomp.com/beed/ medic/domi nique.htm
Thanks
http://jamescomp.com/beed/
Thanks
ASKER
Julien
Thanks
She doesn't want login, just drag and drop onto the face of the doctor!
Thanks
She doesn't want login, just drag and drop onto the face of the doctor!
If no login then how do you know who the image came from?
Look at the page source for http://jamescomp.com/beed/medic/dominique.htm
This page has been through some sort of pre-processor that has converted it. Look at these lines as an example
This page has been through some sort of pre-processor that has converted it. Look at these lines as an example
<tr>
<td valign="top" class="td2">
<p class="p3"><span class="s1"></span><br></p>
</td>
<td valign="top" class="td1">
<p class="p6"><span class="s2"><</span><span class="s3">script</span><span class="s2"> </span><span class="s5">src</span><span class="s2">=</span><span class="s1">"https://rawgit.com/enyo/dropzone/master/dist/dropzone.js"</span><span class="s2">></</span><span class="s3">script</span><span class="s2">></span></p>
</td>
</tr>
See what has been done with the <script> tags - changed to <</span><span class="s3">script...
Where did this page come from originally?
ASKER
I can't find the source page.
She says she's too busy to think, she is an MD, but I might convince her that if she doesn't want the ordeal for her patients of setting up dropbox,
they'll obviously need an integer ID or character ID
Can PHP handle large files?
I assume that Since the machine pops out CDs that they are what, 200 , 300, Megs, or more
It might be ideal for PHP to do the uploads in a php-dropbox.Possible?
For an MRI, what do you suspect the format and size would be produced to need a CD burning?
Ideas?
Thanks
She says she's too busy to think, she is an MD, but I might convince her that if she doesn't want the ordeal for her patients of setting up dropbox,
they'll obviously need an integer ID or character ID
Can PHP handle large files?
I assume that Since the machine pops out CDs that they are what, 200 , 300, Megs, or more
It might be ideal for PHP to do the uploads in a php-dropbox.Possible?
For an MRI, what do you suspect the format and size would be produced to need a CD burning?
Ideas?
Thanks
The upload size can be adjusted but the thing is the bigger the upload the more chance it fails and you have to do it again. With dropbox - the process is more robust. Question is - how often is one person likely to do an upload?
ASKER
One upload
ASKER
Since it is one upload, can't there be a solid browser dropbox php solution? Where the patient enters just their ID number
and behind the scenes, our username and password is stated in code for the uploading?
Thanks
and behind the scenes, our username and password is stated in code for the uploading?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Shizen on a shizen stick
She just texted me this
The surgeons don't want to deal with logging into Dropbox, using another company subjects them to Dropbox rules etc and they don't want that incumbrance. Also the problem is then viewing the images without software.
How should I handle this?
Thanks
She just texted me this
The surgeons don't want to deal with logging into Dropbox, using another company subjects them to Dropbox rules etc and they don't want that incumbrance. Also the problem is then viewing the images without software.
How should I handle this?
Thanks
Also the problem is then viewing the images without software.Not following you?
Why would the surgeons even need to know dropbox is there?
ASKER
That's what she texted me, so your guess is mine. Does dropbox care what is dropped? They seem to think there may be oversight? That would be absurd, considering how much is dropped worldwide, and if they are dropping MRI's, it is laughable to expect anyone to care?
Are their legal concerns valid? I would be furious if someone in Sweden looked at my MRI
And
If it is a hidden aspect of PHP, the login to my DB done unseen behind the scenes, they won't ever see dropbox, right? neither will the patients.
Thanks
Are their legal concerns valid? I would be furious if someone in Sweden looked at my MRI
And
If it is a hidden aspect of PHP, the login to my DB done unseen behind the scenes, they won't ever see dropbox, right? neither will the patients.
Thanks
I am not able to answer to your legal concerns - regarding your last question - yes that is hidden.
ASKER
Thanks
You are welcome.
First issue. The MRI goes onto a CD. Where does the CD go from there? How does the patient get it?
The second issue is how you drag and drop, or upload. They might be asking too much, so why not provide an upload? The requirement is that the doctors get the image. The "how" is your problem to solve, not theirs.
So, I would have a simple form that has an input/browse box and uploads to a server side page. The user chooses the file to upload from their local PC and click upload. The ID of the upload box can easily be picked up by the form post and you can use that as an ID for the target doctor. Then you can email although it'll probably be a huge file as MRI images are very high res, so you may wish to upload and do something like FTP to a storage area and then send the doctor a link to it.
Worry about how to prevent people blindly sending anything once you can actually send something.
Javascript is run by the browser and is event driven. Not sure about godaddy but I can't image they would disable it. We'd need to see some of the page code and scripts to see what's going on.