Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

EvilDog

macrumors newbie
Original poster
Mar 11, 2008
11
0
I am in need of some feedback for a test page I have setup. The page consists of a simple form where you can select image files for uploading and a preview pane to the left that will show a preview of the file that is selected for upload. There are ten separate upload boxes, each tied to a different javascript code to activate the preview pane. (The form doesn't actually upload to anywhere as there is no submit button, it is just a dummy form for testing purposes only.)

What I am trying to test is to see which of my scripts work properly in showing the preview and which don't. In addition, there is a simple button at the bottom that is coded to swap the preview image with another one that gets loaded from the web server. If you do test this page, please post a comment here and let me know what OS version and browser you are running and which of the numbered file select boxes work in so far as showing the preview photo correctly and also if the button function at the bottom works at all. I am trying to narrow down which codes are cross browser compatible and which aren't.

Here is the url - http://www.stocknum.com/test.htm

Note - If you are a Firefox user, you should be aware that unless you have updated your users.js or prefs.js file with the proper permissions to allow a webpage to view local files, the file select boxes will do nothing in so far as updating the preview pane. This is not a bug in my scripts as it is simply a security feature in Firefox. For more information you can go to Mozilla's site where they have a page posted that discusses this -

http://kb.mozillazine.org/Links_to_local_pages_don't_work

Also, be sure that you are not running any sort of javascript disablement that will prevent javascript from dynamically updating an image in a webpage.

Thanks for your help . . .
 
A newbie named EvilDog posts a site for testing that fails Firefox's security regarding viewing local files?

Buyer beware.
 
Agreed, but.... I tried to see if the preview work and it didn't for me. Safari.
 
A newbie named EvilDog posts a site for testing that fails Firefox's security regarding viewing local files?

Buyer beware.

Nice comment :mad: -

EvilDog is my old Quake playing handle - give me a break!

I am only a newbie because I am not an Mac user and I need people who do use Mac's to test this page's functionality. I figured what better way to do this than to go to a site with a lot of Mac users frequenting it.

Any competent web guy can view source the page I am having tested and verify that there is nothing malicious posted there. Perhaps you should have done this before suggesting that I am up to no good. It would have been the more intelligent thing to do than to go spouting off and spreading doubt about another person's intentions. Next time do your homework before jumping to conclusions.

Agreed, but.... I tried to see if the preview work and it didn't for me. Safari.

Just curious, did you try each of the file upload boxes? The reason I am asking is that each one triggers a different javascript to create the preview. It is which of these javascripts work and which ones don't that I am interested in finding out.

Thanks for testing! :)
 
Netdog, why do you have to be such a ball-buster? As mac users we are all part of an extended family, can't we welcome a new member? Obviously this webmaster is concerned enough to design websites that actually function properly on Macs as well. I KNOW that we all have been to websites that the prick of a webmaster forces you to load the page in IE. This guy actually cares, lets not piss him off and make him say 'screw you mac users'.

Evildog, I tested it in both Firefox 3 beta 4 and Safari 3.0.4 and none of items change the image to the correct preview.



A newbie named EvilDog posts a site for testing that fails Firefox's security regarding viewing local files?

Buyer beware.

the webmaster had previously asked this question but no one would give an intelligent answer.

https://forums.macrumors.com/threads/452627/
 
tested on the computer listed in my signature.
GL
 

Attachments

  • testing123.png
    testing123.png
    57.5 KB · Views: 100
netdog was simply stating for people to be careful, there's nothing wrong about that. We can't be complacent about security. So people should back off giving him a hard time for stating a statement of caution.

I tested the page with Safari and tried all 10 and all caused a JavaScript error in Safari basically saying you're not allowed to access local files. I'm not editing Firefox's user.js so can't say how it behaves.

You my want to look into Adobe AIR. It'll let you access local files.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.