473,320 Members | 1,845 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,320 software developers and data experts.

为什么这样不行(Why)?

我的代码:( My Code)

<form name="UpLoadFrom" action="xxx.xxx" method="post"
enctype="multipart/form-data">
<input type="file" name="FilePath">
</form>
<button onclick="UpLoadFrom.FilePath.click()">
浏览(Preview)
</button>
<button onclick="UpLoadFrom.submit()">
上传(UpLoad)
</button>

Aug 31 '05 #1
5 1674
wl************@hotmail.com said the following on 8/31/2005 1:44 AM:
鎴戠殑浠g*侊細锛 My Code锛

<form name="UpLoadFrom" action="xxx.xxx" method="post"
enctype="multipart/form-data">
<input type="file" name="FilePath">
</form>
<button onclick="UpLoadFrom.FilePath.click()">
娴忚(Preview)
</button>
<button onclick="UpLoadFrom.submit()">
涓婁*(UpLoad)
</button>


Is there a question in there?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Aug 31 '05 #2
<!-- 这个按钮不能提交 this button can not submit -->
<button onclick="UpLoadFrom.submit()">
上传(UpLoad)
</button>

Aug 31 '05 #3
Error is "no access"

Aug 31 '05 #4
但是这个代码可以提交 (but this codecan submit)
<form name="UpLoadFrom" action="xxx.xxx" method="post"
enctype="multipart/form-data">
<input type="file" name="FilePath">
<input type="submit" value="上传(UpLoad)">
</form>

Aug 31 '05 #5
wl************@hotmail.com wrote:
浣嗘槸杩欎釜浠g*佸彲浠ユ彁浜 (but this code can submit)
Please post plain text. Quote what you are replying to, the harder
you make it for people to work out what you want the less help you'll get.

<form name="UpLoadFrom" action="xxx.xxx" method="post"
enctype="multipart/form-data">
<input type="file" name="FilePath">
<input type="submit" value="涓婁*(UpLoad)">
</form>


You seem to have fixed most of the problems with your first post. Is
there a question anywhere here?
--
Rob
Aug 31 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
77
by: nospam | last post by:
Reasons for a 3-tier achitecture for the WEB? (NOTE: I said, WEB, NOT WINDOWS. DON'T shoot your mouth off if you don't understand the difference.) I hear only one reason and that's to switch a...
687
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't...
46
by: TTroy | last post by:
Hi, I'm just wondering why people/books/experts say "the function returns a pointer to.." or "we have to send scanf a pointer to.." instead of "the function returns the address of.." or "we have...
134
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've...
47
by: Dickson Woo | last post by:
Just that.
59
by: Lennart Bj鰎k | last post by:
Hi All, I have a tiny program: <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>MyTitle</title> <meta...
4
by: Mr. SweatyFinger | last post by:
when i open a datasource, does the database get passed bfrom me to the server, and I have to sit and wait why why why
2
by: Mr. SweatyFinger | last post by:
why why why why why why why why why why why Can't i get dim PlaceHolderPrice as placeholder = formview1.findcontrol("PlaceHolderPrice") <asp:FormView ID="FormView1" runat="server"...
3
by: Happy Man | last post by:
Why we created All praise is due to Allah and may His peace and blessings be upon his last messenger (saaw) and on all those who follow the path of righteousness until the last day. We have...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you抣l learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Sh鎙l頿魀 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.