473,513 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File upload validation for two fields - first field must be filled before second

1 New Member
file upload 1
and file upload 2

when any one not select file from file uplaod 1 and select from file upload 2

show pupup message alert("first select file one")

plz
Sep 18 '08 #1
5 1674
acoder
16,027 Recognized Expert Moderator MVP
I have split your post from the thread you posted in. It had nothing to do with your problem. Please do not hijack other's threads.

What have you managed so far. Please post your code using code tags.

PS. welcome to Bytes!
Sep 18 '08 #2
Rsmastermind
93 New Member
Hi Youu can do this.........

Which quite simple..........
Expand|Select|Wrap|Line Numbers
  1. //function should be call on some event I am not mentioning that.
  2. function abc()
  3. {
  4.  
  5. var fileField1=$('Id of the field where is the file going to be uploaded');
  6. var fileField2=$('Id of the field where is the file going to be uploaded');
  7. if((fileField1=='' || fileField1=null) && (fileField2!='' && fileField2!=null);
  8. alert('first select file one');
  9.  
  10.  
  11.  
  12. }
Sep 18 '08 #3
acoder
16,027 Recognized Expert Moderator MVP
Rsmastermind, I've had to add code tags to a number of your posts. Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future. Thanks.

Moderator.
Sep 18 '08 #4
Rsmastermind
93 New Member
Rsmastermind, I've had to add code tags to a number of your posts. Please enclose your posted code in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use [code] tags in future. Thanks.

Moderator.
Rsamstermind]Ok I was unaware of this thing I will keep this in mind. I am a new user.I don t know exactly regarding the tags or quotes that is mentioned in your forum .Anyways I am trying to do as per the rule
Sep 19 '08 #5
acoder
16,027 Recognized Expert Moderator MVP
I see you have done now. Thanks.
Sep 20 '08 #6

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

Similar topics

5
5884
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse...
3
3037
by: EJH | last post by:
I have a Database that has three tables. One of the three is just a table that contains three fields and is filled with reference information. One field is 3-Digit(primary key), the next is...
2
2309
by: Robert Wagner | last post by:
I've created a page using VS.NET and page validator controls. The client side validation works fine on IE, but does not even activate under "alternate" browsers like Mozilla, Opera, etc. Why is...
5
3393
by: George Durzi | last post by:
Anyone know of a good file upload control? I don't like using the built in one because it's unable to maintain state on a refresh. Thanks!
6
4120
by: tshad | last post by:
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page doesn't pass validation during postback, the page...
6
1779
by: Neo Geshel | last post by:
About 4 months ago I came across this one web page that talked about streaming raw image data (from a database, for example) directly to a web page without requiring a secondary ASPX page to...
3
19830
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
1
1441
by: Sergei Riaguzov | last post by:
Hi. I haven't written in PHP too much so I think I should ask how my problem can be solved "the right way". I'm having some forms (actually this is not my code, and actually I haven't got it yet...
2
3450
by: vol30w60 | last post by:
Is it possible to store the full path of a file upload, and return it in the value= attribute? Here is the scenario: A web form with some basic fields (name, address, etc.) plus a file upload...
7
7125
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
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
5686
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,...
1
5089
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...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.