View Full Version : got problems uploading images via javascript
Cheapprices4u
30-Apr-2008, 12:24 PM
ive been working on this for the last day or so
ive got it nearly working
keeps giving errors
the test page here
that works
the script came from
http://www.seemysites.net/projFolder/uploader/
can anyone see what im doing wrong
many thanks
titch
NormanRouxel
30-Apr-2008, 12:43 PM
The working demo has:
<link href="upload.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="json_c.js"></script>
<script type="text/javascript" src="upload_form.js"></script>
<script type="text/javascript" src="sr_c.js"></script>
And the failing one has
<link href="upload.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="customjquery.js"></script>
<script type="text/javascript" src="json_c.js"></script>
<script type="text/javascript" src="upload_form.js"></script>
<script type="text/javascript" src="sr_c.js"></script>
So something in those extra files may be the culprit. If you check your page using Firefox and use its Tools / Error Console you'll see the exact error.
Cheapprices4u
30-Apr-2008, 03:30 PM
changed now it says
theForm.elements has no properties
for (var i=0;i<theForm.elements.length;i++) {
NormanRouxel
30-Apr-2008, 03:55 PM
That's the error I saw earlier. As this isn't really an Actinic problem you might get more pertinent help on http://forums.seemysites.net/
Cheapprices4u
30-Apr-2008, 04:00 PM
been reading through there ;( ill go have another look
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.