473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help- File upload using ajax

vikysaran
Hi,
Please check the attachment http://www.golsinc.com/app7/AJAXEnabledWebSite.zip
Here i made a small application for file upload. Made a huge form and need image upload without page refresh here.

i tried a lot, searched over net but finally my page is posting back on button click. If i dont use

<Triggers>
<asp:PostBackTrigger ControlID="Button1" />
</Triggers>

then it shows error in alert box "Object reference is not set to...."


please check the application and revert me ASAP....

Thanks in Advance....
Nov 10 '08 #1
6 2149
Dormilich
8,658 Expert Mod 8TB
if your problem comes from asp (at least that's what it seems to me) you should ask a moderator to move this thread to the asp forum.

regards
Nov 10 '08 #2
acoder
16,027 Expert Mod 8TB
It would probably be ASP.NET.

If you want to upload a file without unloading the page, you can't use the XMLHttp request object because of the binary data. For a file upload, use a hidden iframe. See an example.
Nov 10 '08 #3
rnd me
427 Expert 256MB
If you want to upload a file without unloading the page, you can't use the XMLHttp request object because of the binary data.
FF3 can do this for binary and text files. other browsers would be limited to doing this for text-based files only.
Nov 10 '08 #4
acoder
16,027 Expert Mod 8TB
You could, but not in a normal internet environment. You'd need permissions and to change a setting in about:config, or have you got something else up your sleeve? :)
Nov 11 '08 #5
rnd me
427 Expert 256MB
You could, but not in a normal internet environment. You'd need permissions and to change a setting in about:config, or have you got something else up your sleeve? :)
no, ive given up on recommending that (too much follow up).
i refer to something else, something better.

i am talking about sendAsBinary .

you can grab the file content from a "browsed" file input: ex
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('myFile').files.item(0).getAsBinary();
  2.  
check out the firefox3 file input interface
Nov 11 '08 #6
acoder
16,027 Expert Mod 8TB
Interesting. Thanks. I'll have a play with this. Should be quite useful once other browsers follow suit.
Nov 11 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Edward King | last post by:
Hi! I am trying to achieve the following: I have a number of help pages (in the format help_nn.php where nn=helpid). I want to be able to open a particular help page by calling the function...
1
by: the_proud_family | last post by:
HELP ME PLEASE!! my email is the_proud_family@yahoo.com I can't get the ball to go up right side and then I need it to turn around and keep turning until velocity=0 I have been at it for the ...
4
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to...
2
by: Glenn | last post by:
Dynamic help topic links show properly and search brings up links, but when any link is clicked I receive a "Page Cannot be displayed message in the Explorer window and the title bar of Visual...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
27
by: Bruce Dodds | last post by:
I recently started using Access 2003 for the first time. I wanted to pass on some comments about the Help system to Access MVPs who frequent this board. I'm doing this in the hope that some of...
3
by: stuart_white_ | last post by:
I've just upgraded from Python 2.3.3 to Python 2.4.2, and, although the new version of Python seems to be running correctly, I can't seem access the help from the interpreter. On Python 2.3.3...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.