I'm developing a small app that will allow the user to quickly and easily import dozens of products into zencart. It's pretty much finished the alpha stage right now, just needs input validation and beta testing (any takers?)...
The next stage of the design is to "ajaxify" things a little. Most of that is done (lovely dhtml effects and what not) however, what is holding me back from completing the ajax part of it, is how to handle the image upload routine...
I have it working perfectly w/o javascript, but I can't for the life of me figure out how to go about uploading the images without reloading the page.
Is this even possible?
ps: this app DOES NOT actually import into zencart, it's used to format a CSV file with all the required fields (20+ columns), for easy import with an existing zencart plugin that requires the user to format the csv file themselves.
Uploading Files In The Background
Moderator: General Moderators
Re: Uploading Files In The Background
possible I do not think this is. very tricky and finicky the file element is.nickvd wrote:I have it working perfectly w/o javascript, but I can't for the life of me figure out how to go about uploading the images without reloading the page.
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
-
nickvd
- DevNet Resident
- Posts: 1027
- Joined: Thu Mar 10, 2005 5:27 pm
- Location: Southern Ontario
- Contact:
Yes, but returning the img path isnt the problem, it's posting the image without causing a page reload...n00b Saibot wrote:if you're using AJAX can't you return the img path from the server routine itself?
If the iframe solution will work, i'll be happier than a pig in dirty stuff...
I just am not all that familiar with working with iframes and javascript.