Great, just in time for Christmas.

Recommend this page to a friend!

      Snow for the Web site  >  All threads  >  Great, just in time for Christmas.  >  (Un) Subscribe thread alerts  
Subject:Great, just in time for Christmas.
Summary:Package rating comment
Messages:5
Author:Arturs Sosins
Date:2010-12-01 17:56:59
Update:2011-12-14 22:45:45
 

Arturs Sosins rated this package as follows:

Utility: Good
Consistency: Good
Examples: Good

  1. Great, just in time for Christmas.   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2010-12-01 17:56:59
Great, just in time for Christmas. Thank you.

  2. Re: Great, just in time for Christmas.   Reply   Report abuse  
Picture of Michael Boracci Michael Boracci - 2011-12-07 15:18:27 - In reply to message 1 from Arturs Sosins
Arturs,
SVIEKS!

I would like to ask for your help on something that I am working on. This is something that you have already done in one way or another.
I need to build a page with a java based image finder on it. This script would allow a part number input and then search a specific folder for the image name ( which is the part number with .jpg as the extension ) the extension is not important in this application. Then simply display the image on the page. I have looked at your php and js scripts and I am not sure I can tweak them to make this happen. I am not a programmer yet.

Is this something that you may be able to give me some guidance on?

Thanks bro.


Michael Boracci
mikeb@omegamoulding.com

  3. Re: Great, just in time for Christmas.   Reply   Report abuse  
Picture of René Teinze René Teinze - 2011-12-13 21:07:38 - In reply to message 2 from Michael Boracci
I think I can help you, if you mean javascript instead of java.

You can't read the files directly. I use a trick:

1. create an Image-Obect
2. give the Image an event-handler onerror
3. set the src-attribute of the image whith running number
4. if no error occured, increase the running number and try again

I have written a class to handle this problem. If you want, I can upload it here.

René

  4. Re: Great, just in time for Christmas.   Reply   Report abuse  
Picture of Michael Boracci Michael Boracci - 2011-12-13 21:38:18 - In reply to message 3 from René Teinze
Rene,
That would be great. Thanks
I would like to see how you handle this scenario. I would be willing to learn enough javascript to make something work for this.


Mike

  5. Re: Great, just in time for Christmas.   Reply   Report abuse  
Picture of René Teinze René Teinze - 2011-12-14 22:45:45 - In reply to message 4 from Michael Boracci
Hi Mike,

I published a new class to find image-files.

jsclasses.org/package/114-JavaScrip ...

Best regards
René