progress

Display dot-dot-dot progress in a WPF button

风格不统一 提交于 2019-11-30 13:44:59
I found quite a few examples for showing progress where the progress bars and wheels are used however; I could find only one javascript example to show an ellipsis (dot-dot-dot) to refer progress hence I thought of asking this question. My app is not very complex - it only has a few check-boxes and one button. Recently my team requested for an enhancement and want to keep it simple as well. There is a button named 'GO' that the user clicks after configuring the required settings. The code behind it is also really straightforward - it disables the button after the click event and call's a

Is there a 'Get Latest Version' preview in TFS? (Like VSS 'Get' command)

纵饮孤独 提交于 2019-11-30 12:48:32
My question relates to Team Foundation Server (TFS) and specifically, is there any way to know which files have changed on the server before doing a 'Get Latest Version (Recursive)? In Visual Source Safe (VSS), you could do a 'Get' (I think) which showed you all the files which were being considered for the update and which files we're changed on the server (an consequently would be updated during the get). This functionality seems to be completely missing! Also, when I do a 'Get Latest Version' in TFS, there doesn't seem to be any notification that any things occurred, other than the blur of

NSURLSession的文件下载

主宰稳场 提交于 2019-11-30 10:55:52
小文件的下载,代码示例: //NSURLSession的下载 [[[NSURLSession sharedSession] dataTaskWithURL:[NSURL URLWithString:@"http://gss0.baidu.com/-fo3dSag_xI4khGko9WTAnF6hhy/lvpics/w=600/sign=1350023d79899e51788e391472a5d990/b21bb051f819861810d03e4448ed2e738ad4e65f.jpg"] completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) { //回到主线程刷新界面 dispatch_async(dispatch_get_main_queue(), ^{ self.imageView.image = [UIImage imageWithData:data]; }); }] resume] ; 大文件的下载,代码示例: #import "ViewController.h" @interface ViewController ()<NSURLSessionDataDelegate> @property (weak,

Are there progress update events in jQuery ajax?

橙三吉。 提交于 2019-11-30 09:20:58
i have long running task that gets called using jquery ajax. i am using the block ui plugin to show "loading". is there anyway i can send progress messages back to the client to show progress and have that updated on the block ui plugin message. So it will show this (as the server does its work) . . "Loading first source . . . " "Loading second source . . . " "Loading third source . . . " "Parsing Results . . . " From what I've seen for the case of uploading stuff - people create a separate gateway and query it for progress info as it's only avaliable on the server side. But I think it's not

前端图片压缩上传

强颜欢笑 提交于 2019-11-30 07:38:39
 在移动端压缩图片并且上传主要用到filereader、canvas 以及 formdata 这三个h5的api。逻辑并不难。整个过程就是:   (1)用户使用input file上传图片的时候,用filereader读取用户上传的图片数据(base64格式)   (2)把图片数据传入img对象,然后将img绘制到canvas上,再调用canvas.toDataURL对图片进行压缩   (3)获取到压缩后的base64格式图片数据,转成二进制塞入formdata,再通过XmlHttpRequest提交formdata。   如此三步,就完成了图片的压缩和上传。   说起来好像挺简单,其实还是有些坑的。接下来就直接用代码进行分析:   【一】获取图片数据   先是获取图片数据,也就是监听input file的change事件,然后获取到上传的文件对象files,将类数组的files转成数组,然后进行forEach遍历。   接着判断文件类型,如果不是图片则不作处理。如果是图片就实例化一个filereader,以base64格式读取上传的文件数据,判断数据长度,如果大于200KB的图片就调用compress方法进行压缩,否则调用upload方法进行上传。 filechooser.onchange = function() { if (!this.files.length) return

Progress bar with PHP & Ajax

≡放荡痞女 提交于 2019-11-30 07:01:15
问题 I am working on progress bar which updates progress using ajax requests and session variables. When my program performs time consuming operation such as sending many emails etc. it just set proper session variable (which contains progress value). This operation is started by function post() in code below. In the meantime, the second function ask() is performed in loop every 500ms. It should return current progress in real time. And here is the problem: every request sent by ask() are waiting

Android progress dialog

我的梦境 提交于 2019-11-30 05:57:07
问题 My application fetches some html code from the internet and when done , displays it on the devices screen. Since it takes about 3-4 seconds to do that , in this time the screen stays black , I'd like to use a progress dialog. This is my code : package com.nextlogic.golfnews; // ALL THE IMPORTS .... public class Activity1 extends Activity { private ProgressDialog progressDialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R

How to display upload progress using C# HttpClient PostAsync

旧城冷巷雨未停 提交于 2019-11-30 05:23:16
A am creating a file upload app for Android and iOS using Xamarin PCL and i have managed to implement file upload and some sort of progress bar, but it is not working properly. I saw some answers on stack overflow for displaying download progress, but i want to notify my users about upload progress and did not find any solution. Here is my code: public static async Task<string> PostFileAsync (Stream filestream, string filename, int filesize) { var progress = new System.Net.Http.Handlers.ProgressMessageHandler (); //Progress tracking progress.HttpSendProgress += (object sender, System.Net.Http

web文件上传,带进度条

瘦欲@ 提交于 2019-11-30 05:23:01
原生ajax上传带进度条 (百分比) <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>文件上传 原生ajax上传</title> <style type="text/css"> .container{ width: 200px; height: 20px; background-color: gray; } #progress{ height: 20px; background-color: orange; display: inline-block; } </style> </head> <body> <form action="${pageContext.request.contextPath }/upload" enctype="multipart/form-data"

环状进度条progress bar circle

主宰稳场 提交于 2019-11-30 02:34:27
2014-08-05 https://ag3.sap.corp:44354/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/zprod_ui5/progress.htm 实现原理: index.js里以100毫秒为时间间隔定期执行一个匿名函数. 在这个函数里,动态设置当前progress circle的class。 可以在chrome console里观察到该函数周期性的执行: 在html file里,每个1%的进度都有一组对应的class。每个class通过transform 实现动画效果。 可以在chrome 里观察到degree的变化: 该例子来自: http://www.html5tricks.com/css3-3d-circle-progress.html 要获取更多Jerry的原创文章,请关注公众号"汪子熙": 来源: https://blog.csdn.net/i042416/article/details/101001336