browser

VLC ActiveX in a local webpage with WPF WebBrowser control

 ̄綄美尐妖づ 提交于 2020-01-03 17:09:21
问题 So I try to get working VLC ActiveX v.2 under WPF WebBrowser control and I load it locally. And VLC ActiveX is not working... C# void MainWindow_Loaded(object sender, RoutedEventArgs e) { var file = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "index.html"); using (StreamReader sr = new StreamReader(file)) { String url = sr.ReadToEnd(); wb.NavigateToString(url); } } HTML <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

How can I list my app for download files?

ⅰ亾dé卋堺 提交于 2020-01-03 15:55:04
问题 I want to download files from browser through my application. I am trying to list my app in complete action using dialog. It shows for other action like view files, etc but in case of download files it doesn't show in dialog. how can i list my app like in the image? I have used these filters in my activity <intent-filter> <action android:name="android.intent.action.SEND" /> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.OPENABLE"/>

Check if browser accepts cookies

时光怂恿深爱的人放手 提交于 2020-01-03 13:40:10
问题 Is there a way that I can check if the browser will allow cookies. Request.Browser.Cookies Doesn't work when cookies are disabled. It says the browser can support them. The only other thing I can think of is to try to set a test cookie and then check to see if it ever got set. Is there anyway to make sure cookies are actually enabled. 回答1: According to MSDN there is no way to determine cookies is allowed or disabled by user. The only way to find it out is through writing it and then reading

difference between layout engine and javascript engine

对着背影说爱祢 提交于 2020-01-03 11:51:08
问题 After much reading, it seems that when people say, browser engine, they refer to the layout engine such as gecko or webkit. I also know that the layout engine is basically responsible for "painting" the screen and the javascript engine is used for interpreting. Question though, is for a modern web app, which has a bigger impact on performance? And how related are this two? What are their other uses outside the browser. What other functions do they serve. Thank you very much. 回答1: Whichever

image/pjpeg and image/jpeg

老子叫甜甜 提交于 2020-01-03 07:26:07
问题 Do you know if I can send to browser the MIME type image/jpeg even if the image I am outputting is image/Pjpeg ? Or are they different format? 回答1: I believe most browsers wouldn't mind, except Internet Explorer which treats pjpeg files differently. According to this conversation, you should accept both image/pjpeg and image/jpeg from your clients as upload mime types, but force the image/jpeg when serving downloads. 来源: https://stackoverflow.com/questions/5147049/image-pjpeg-and-image-jpeg

How to detect if user oppened “view-source:” in browser via javascript?

本秂侑毒 提交于 2020-01-03 06:36:32
问题 Is there a way to detect if the user oppened the source code from my website via javascript? 回答1: No there is no way. That is done through browser functionality that is outside any window that your script can access Anything sent to the browser is easily accessed by user 回答2: There is no JavaScript API or event which allows you to read if the user opened the page source. You could employ all kinds of workarounds, e. g. by listening to shortcuts (Chrome): document.body.addEventListener(

Batch file to switch between browser tabs

旧街凉风 提交于 2020-01-03 04:44:27
问题 I have two browser tabs running monitoring applications on a screen. I want to automate switching between tabs after lets say every 2 mins. I think this can be achieved by creating a scheduled task in windows which execute a batch file every 2 mins. Batch file will switch the tab. I need help creating such batch file. Thanks. 回答1: You can use VBScript to do that, Example for IE : Create a file Switch.vbs with this : Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.AppActivate

CURL Browser Emulator with PHP

谁都会走 提交于 2020-01-03 04:01:26
问题 I'm looking if someone has done this already. What I want basically is to make a browser out of CURL. By default, when CURL Data is fetched and outputted - it displays nicely, until you click on a link or fill a form (from browser, not php). Is it possible to make CURL Emulate a browser ? So the end result would be CURL opening a Login URL (and displaying it) and then when Login form is submitted (from browser), it automatically logs in (via CURL), when a link in admin panel is clicked (from

CURL Browser Emulator with PHP

删除回忆录丶 提交于 2020-01-03 04:01:06
问题 I'm looking if someone has done this already. What I want basically is to make a browser out of CURL. By default, when CURL Data is fetched and outputted - it displays nicely, until you click on a link or fill a form (from browser, not php). Is it possible to make CURL Emulate a browser ? So the end result would be CURL opening a Login URL (and displaying it) and then when Login form is submitted (from browser), it automatically logs in (via CURL), when a link in admin panel is clicked (from

What's the behavior the browser encoding URL?

和自甴很熟 提交于 2020-01-03 03:30:33
问题 I'm doing a test, how the Firefox encoding character. But the fact confused me. HTML code: <html lang="zh_CN"> <head> <title>some Chinese character</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <img src="http://localhost/xxx" /> </body> The xxx is some Chinese characters. These character must be encode into format like %xx to transport by HTTP. First, I encoding the source file in UTF-8. use firefox to open the html file. The img label will send a