首页 \ 问答 \ 在Esc按键上关闭Ajax模式弹出窗口(Close the Ajax Modal popup window on Esc keypress)

在Esc按键上关闭Ajax模式弹出窗口(Close the Ajax Modal popup window on Esc keypress)

我使用Ajax显示了一个面板弹出窗口,我必须做的是当用户按下Esc键时我想关闭窗口。

这是可能的吗? 如果有人知道这个或以前做过这个,请帮助我。

谢谢


I had shown a Panel Pop up windows using Ajax and what i have to do is i want to close the window when user press the Esc key.

IS this is possible? Please help me if any one know about this or previously done this.

Thanks


原文:https://stackoverflow.com/questions/4882738
更新时间:2023-05-02 08:05

最满意答案

如果文件扩展名为.File,则表示文件缺少*.png ,因此Windows无法读取。 您可以尝试添加文件扩展名,如Stream stream = File.Create(path+ ".png");


If the file extension is .File, it means the file is missing *.png and is therefore not readable by windows. You could try adding the file extension like this Stream stream = File.Create(path+ ".png");

相关问答

更多
  • 这段代码使用了来自purrr的map和walk函数。 mtcars_split <- mtcars %>% split(.$cyl) paths <- paste0(names(mtcars_split),".png") plots <- mtcars_split %>% map(~ ggplot(data=.,mapping = aes(y=mpg,x=wt)) + geom_point()) pwalk(list(filename=paths,plot=plots) ...
  • @shane 这是一个真正精彩的剧本,感谢你的成功! 我建立在它上面以适合我的工作流程。 我注意到的一件事是导出的PNG与符号内的图形尺寸不同。 下面是图像导出的放大屏幕截图; 因为我还不允许发布图片,所以这是一个链接 83x83px矢量矩形导出为84x83px PNG 我通过将符号放在文档的0,0引用来更正此问题 // place a symbol instance - temp var symbol = doc.symbolItems.add(doc.symbols[i]); symbol.to ...
  • 如果文件扩展名为.File,则表示文件缺少*.png ,因此Windows无法读取。 您可以尝试添加文件扩展名,如Stream stream = File.Create(path+ ".png"); If the file extension is .File, it means the file is missing *.png and is therefore not readable by windows. You could try adding the file extension like th ...
  • 我找到了解决方案http://www.arcticmill.com/2012/08/export-layers-as-png-files-from-illustrator-in-multiple-resolutions.html这里你可以找到一个可行的脚本 I found the solution already http://www.arcticmill.com/2012/08/export-layers-as-png-files-from-illustrator-in-multiple-resoluti ...
  • 运行布局,并在layoutstop事件后获取PNG。 Run the layout, and get the PNG after the layoutstop event.
  • 如果您使用某些第三方工具(如InkScape) ,则可以使用此功能。 后者可以将SVG(Kendo UI Chart原生格式)转换为几乎任何其他内容,包括PNG和PDF。 您可以使用图表的svg方法获取基础SVG,然后将其发送到远程服务。 这是一个ASP.NET MVC应用程序,它显示了如何: https : //github.com/telerik/kendo-examples-asp-net/tree/master/chart-inkscape-export It is possible if you ...
  • 要添加到Jamie的答案中,如果要从类库中导出png,可以使用STAThread执行以下操作: var thread = new Thread(() => { PngExporter.Export(plotModel, @"C:\file.png", 600, 400, OxyColors.White); }); thread.SetApartmentState(ApartmentState.STA); ...
  • 是的,SVG在现代浏览器中玷污画布。 您不能再使用foreignObject hack来抓取html元素。 由于非常好的安全原因,现代浏览器已插入该漏洞。 没有跨浏览器的替代方案 - 再次出于非常好的安全原因。 Chrome有一个名为ScreenShot的插件,可让您抓取内容。 Yes, SVG taints a canvas in modern browsers. You can no longer use the foreignObject hack to scrape an html element. ...
  • 要从pdf导出特定页面,您需要使用-dFirstPage和-dLastPage开关。 您可以在此处阅读有关此开关的更多信息: 如何使用Ghostscript 你的命令看起来像: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -r400 -dFirstPage=28 -dLastPage=28 -sOutputFile=out.png input.pdf In order to export specific page(s) from the pdf you ne ...
  • 有一个函数html是为这种情况设计的。 它将生成一个包含交互功能的html页面。 它可以与其他用户一起发送和共享。 chart.html(path, filename, open) 获取html文件后,您可以保存或打印为PDF文件。 There is a function html is designed for this case. It will generate a html page which include interaction function. It can be send and sh ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)