• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax Problem

 
Raja ji
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

How to use OnChange event on file(Browse)

Actually there is no file tag in ajax , then how to use OnChange event on file(Browse) .

My requirement is that when i select a file from a drive by using browse then some text fields should be filled up .

I want to use ajax here but there is no related tag to do so.
Please help me .

Thanks in Advance,
riyasat
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This could be problematic. When you add an <input type="file"> tag (or an <html:file> tag that renders to the same), the browser automatically handles the browse function using operating system APIs to display the browse dialogue. You have no direct control over this, and therefore can't insert any ajax calls into this process.

About the only workaround I can think of would be to write your own applet to handle the file browse and selection process and call that instead of using the <input type="file"> tag. You can then control what happens when a file is selected.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic