• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ajax Problem

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic