browser

Close pop up window after binary file is sent to browser

北慕城南 提交于 2020-01-05 08:23:09
问题 Is there a way to close a pop up window after the page writes binary data (PDF) to the browswer? Here are the details: Whenever my web appilcation needs to print, it will pass some parameters over to a pop up window, which will display the print options. When the user clicks on the Print button, it will set the src of a iframe that will call the page that does the printing. I have PDFConverter to convert URL / HTML to a pdf file. At the end of the converting, it will write the binary to the

How to set Accept-Language in WebBrowser

半世苍凉 提交于 2020-01-05 08:13:08
问题 I'm trying to set Accept-Language for webbrowser control like this: ... string header = "Accept: application/xml" + Environment.NewLine + "Accept-Language: uk-ua" var wb = new WebBrowser(); wb.Navigate(userLink, null, null, header); But this works for Accept and doesn't work for Accept-Language . How to set Accept-Language for request from this control? 回答1: Following How To Use WebBrowser HEADERS Param in Navigate Method All headers must be terminated with a carriage return linefeed pair.

Encryption / decryption of binary data in the browser

本秂侑毒 提交于 2020-01-05 07:47:03
问题 I am working on a project that requires a client to de-crypt binary data received from the server. The scenario is that a server has binary data in a compressed and encrypted form. The browser needs to receive this data (files), decrypt and decompress them and then download them to a user-specified location on the local machine. I understand that their are several limitations of doing this in the browser - Does Javascript have access to the local storage. Can I write/stream multiple files to

How to make all src strings global in PHP?

ε祈祈猫儿з 提交于 2020-01-05 07:38:53
问题 I am writing a web browser in PHP, for devices (such as the Kindle) which do not support multi-tab browsing. Currently I am reading the page source with file_get_contents(), and then echoing it into the page. My problem is that many pages use local references (such as < img src='image.png>'), so they all point to pages that don't exist. What I want to do is locate all src and href tags and prepend the full web address to any that do not start with "http://" or "https://". How would I do this?

Alternative to ☐ and ☒ on Android (Samsung Tab 2) browser

北城余情 提交于 2020-01-05 07:36:33
问题 Internet browser I have installed (by default) on my Samsung Tab2 does not display ☐ ☐ and ☒ ☒ characters properly. What are alternative solutions? 回答1: The fonts on Android do not contain these characters, so your options seem to be: Use a downloadable font, via @font-face . It can be difficult to find a font suitable for this, since most free fonts are rather limited in their character coverage. Among the relatively few fonts that contain these characters (cf. to font coverage info at

Alternative to ☐ and ☒ on Android (Samsung Tab 2) browser

送分小仙女□ 提交于 2020-01-05 07:35:09
问题 Internet browser I have installed (by default) on my Samsung Tab2 does not display ☐ ☐ and ☒ ☒ characters properly. What are alternative solutions? 回答1: The fonts on Android do not contain these characters, so your options seem to be: Use a downloadable font, via @font-face . It can be difficult to find a font suitable for this, since most free fonts are rather limited in their character coverage. Among the relatively few fonts that contain these characters (cf. to font coverage info at

Servlet filter mapped on /* results in browser error “server is redirecting the request for this address in a way that will never complete”

一曲冷凌霜 提交于 2020-01-05 07:22:10
问题 I am developing a dynamic JSP/Servlet web application. In order to handle the session, I am using a filter which is mapped on /* in web.xml . When I'm opening a page in Firefox, it gives the following Firefox-specific error message: Firefox has detected that the server is redirecting the request for this address in a way that will never complete A similar error is shown in Chrome. How is this caused and how can I solve it? 回答1: Your filter is redirecting to an URL which is invoking the very

Close the browser window in Vaadin

痞子三分冷 提交于 2020-01-05 06:46:24
问题 I have google'd quite a lot but was not able to find a solution for this problem. I have a Vaadin application that runs in a browser window. I have a logout button on it, clicking on it must invalidate the session and close the browser window. I was able to get this code to invalidate the session and close the application. However, I am looking to close the browser window also, which is where I am not having any success WebApplicationContext webCtx = (WebApplicationContext) appRef

Close the browser window in Vaadin

穿精又带淫゛_ 提交于 2020-01-05 06:46:09
问题 I have google'd quite a lot but was not able to find a solution for this problem. I have a Vaadin application that runs in a browser window. I have a logout button on it, clicking on it must invalidate the session and close the browser window. I was able to get this code to invalidate the session and close the application. However, I am looking to close the browser window also, which is where I am not having any success WebApplicationContext webCtx = (WebApplicationContext) appRef

Is it possible to see the values of browser based javascript variables in a web application that is not our own?

天大地大妈咪最大 提交于 2020-01-05 06:13:12
问题 This is related to this security question regarding what it is that secures credentials inside a single page webapp. Suppose we are using an app that is not ours and uses JWT Tokens for security. Are we able to log the contents through browser developer tooling or otherwise of the variables that the app uses for state. Specifically could someone log or see the contents of the JWT token that the user obtained post authentication? 回答1: Yes, it's entirely possible. Any user can just open the