Solved

ajax get $_FILES values

Posted on 2011-03-13
8
1,017 Views
Last Modified: 2012-06-22
Hi,
I want an upload functionality using ajax on my website.
So, i wanted to know how to accept the values of $_FILES through Java-script.
as in this functionality i even want to save the text value but with other button.
So, one button would be for browse and another for saving text value which would be related to each other.
0
Comment
Question by:Insoftservice
  • 4
  • 4
8 Comments
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 35135365
0
 
LVL 15

Author Comment

by:Insoftservice
ID: 35135533
Hi,
@routinet

thx for ur comments but if u chk that it will submit the form and do the refresh which i don't want .
i want similar to uploadify.js.
but it does its work with single button which i dont want.
i hope u understand what eaxctly i want
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 35136253
Both of those examples are methods by which you can submit the file upload without refreshing.
0
 
LVL 15

Author Comment

by:Insoftservice
ID: 35146862
hi,
i checked it and both requires refresh. just chk the status bar in there demo
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 50

Expert Comment

by:Steve Bink
ID: 35153702
I don't know what to tell you.  I use the same system on my own file uploader, and it uploads with a page refresh.  Perhaps you need to take a second (or third) look at your implementation.
0
 
LVL 15

Author Comment

by:Insoftservice
ID: 35154693
hi,

ur comments
"
I don't know what to tell you.  I use the same system on my own file uploader, and it uploads with a page refresh.  Perhaps you need to take a second (or third) look at your implementation."

itself says that it refreshes the page .
whereas i dont want to refresh my page.
u can check uploadify.js
http://www.uploadify.com/demos/
i want similar to it but it performs it action on one button ie browse.
whereas my requirement is to grab the image via one button and later save the grabbed image and some data with other button.
I hope u get my requirement
0
 
LVL 50

Assisted Solution

by:Steve Bink
Steve Bink earned 500 total points
ID: 35162592
The very first line of the "Ajax File Upload" site (emphasis added):

>>> You might have seen Ajax File Uploading in some sites. The basic idea is to upload a file without refreshing the page.
>>> Some sites go even further by providing details on how much percentage is uploaded, etc. It is very easy to achieve
>>> this effect using javascript.

As I said, I use the same system, and it works perfectly, with no refreshing necessary.  If the page is still refreshing, it is because you are allowing the main form to actually submit to the parent page.  The form's target should be the hidden iframe.
0
 
LVL 15

Author Closing Comment

by:Insoftservice
ID: 35291940
Thx,
but i did with other method.
srry for delay
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now