Click here to Skip to main content
12,820,224 members (28,879 online)

JavaScript

 
QuestionHow does Google show_ads.js work? Pin
swayam.test1.gmail10-Sep-12 20:57
memberswayam.test1.gmail10-Sep-12 20:57 
QuestionHow to send request data from one tab to other tab which are on same jsp Pin
mayureshdh9-Sep-12 19:52
membermayureshdh9-Sep-12 19:52 
Questionjavascript/jquery Pin
chaim_zvi8-Sep-12 9:50
memberchaim_zvi8-Sep-12 9:50 
Questionshow alert in javascript and not continue Pin
ptvce6-Sep-12 22:26
memberptvce6-Sep-12 22:26 
hi
i use this code:
<script type='text/javascript'>
        function ValidateFileSize(strFUS) {
            var filename = document.getElementById('<%=fuSignature.ClientID%>');

            var myFSO = new ActiveXObject("Scripting.FileSystemObject");

            var filepath = filename.value;

            var thefile = myFSO.getFile(filepath);

            var size = thefile.size;

            if (size / 1024 < 110)
                return true;
            alert('the size of file is big');
            return false;

        }


</script>


this code is work and show me the alert but when i click on ok button in allert box the file uploadbut i want it not be upload.
what should i do?
plz
AnswerRe: show alert in javascript and not continue Pin
J4amieC6-Sep-12 23:11
memberJ4amieC6-Sep-12 23:11 
GeneralRe: show alert in javascript and not continue Pin
ptvce6-Sep-12 23:30
memberptvce6-Sep-12 23:30 
AnswerRe: show alert in javascript and not continue Pin
MKAdeel13-Sep-12 2:22
memberMKAdeel13-Sep-12 2:22 
GeneralRe: show alert in javascript and not continue Pin
ptvce16-Sep-12 21:22
memberptvce16-Sep-12 21:22 
QuestionPython Pygame Newbie Code Help Pin
johtnkucz31-Aug-12 13:14
memberjohtnkucz31-Aug-12 13:14 
QuestionProgress Bar Pin
Manish K. Agarwal31-Aug-12 4:33
memberManish K. Agarwal31-Aug-12 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 21 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid