webpage

link to Print in a webpage

梦想的初衷 提交于 2019-11-29 02:57:37
Can I put a link on my webpage to the Printer ? To go to the same page like Ctrl-P goes in Firefox, IE. Thank you. <a href="javascript:if(window.print)window.print()">Print</a> Add this to your link: onclick="window.print();" 来源: https://stackoverflow.com/questions/771966/link-to-print-in-a-webpage

Reading data from a website using C#

廉价感情. 提交于 2019-11-28 17:33:25
I have a webpage which has nothing on it except some string(s). No images, no background color or anything, just some plain text which is not really that long in length. I am just wondering, what is the best (by that, I mean fastest and most efficient) way to pass the string in the webpage so that I can use it for something else (e.g. display in a text box)? I know of WebClient, but I'm not sure if it'll do what I want it do and plus I don't want to even try that out even if it did work because the last time I did it took approximately 30 seconds for a simple operation. Any ideas would be

How to test a webpage meant for Retina display?

℡╲_俬逩灬. 提交于 2019-11-28 15:12:33
I have coded a webpage meant for retina display. I currently do not have a retina display monitor. Is there any simulator application or tool to test web pages for retina display? Or, are there monitors(not Apple's MacBook or iPad) which are similar to Apple's retina display? Thanks in advance. andrewb about:config hack on Firefox You actually can using Firefox: Go to about:config Find layout.css.devPixelsPerPx Change it to your desired ratio (1 for normal, 2 for retina, etc.) Screenshot: Refresh your page - boom, your media query has now kicked in! Hats off to Firefox for being awesome for

how to make images in my webpages not downloadable

徘徊边缘 提交于 2019-11-28 14:16:06
I am wondering how to prevent people from Save image as.. by right-click images on my webpages. I was thinking about disable right-click, but it seems I have to write javascript code. Is there a easy way to do this? The simple answer is "you cannot do that". You might be able to put something on the server side that will check the referer before serving the image, but even that is not 100% guaranteed. Moreover, even if you did manage somehow to prevent this, nothing would prevent somebody from taking a screenshot of the browser page and then cropping the image out of it. I think a much better

Windows Batch System Info to HTML

安稳与你 提交于 2019-11-28 12:57:41
I am trying to create a batch file that will use the systeminfo command to put things such as the OS, domain currently logged onto, manufacture, computer model, etc. into an HTML table. This is the contents of my current batch file: @echo off systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"OS Manufacturer" /C:"OS Configuration" /C:"OS Build Type" /C:"Original Install Date" /C:"System Boot Time" /C:"System Manufacturer" /C:"System Model" /C:"System Type" /C:"Processor(s)" /C:"BIOS Version" /C:"Windows Directory" /C:"System Directory" /C:"Boot Device" /C:"System Locale" /C:"Input Locale

Use VBA code to click on a button on webpage

柔情痞子 提交于 2019-11-28 12:43:06
I am editing a vba program and want to code the vba to click on a button in a webpage. The html for the button is: <input type="image" src="/lihtml/test_button3.gif" align="left" alt="File_Certificate_Go"/> I imagine I would have to set a variable to getElementBy??? and then variable.click, but I can't figure out how exactly to get the element (because it doesn't have a name or id, and I can't give it one because it is not my webpage). Any help is greatly appreciated! Perhaps something on the lines of: Set tags = wb.Document.GetElementsByTagname("Input") For Each tagx In tags If tagx.alt =

How to get the content of a remote page with JavaScript?

丶灬走出姿态 提交于 2019-11-28 12:25:16
I have a URL of a remote page from a different domain which I have to download, parse, and update DOM of the current page. I've found examples of doing this using new ActiveXObject("Msxml2.XMLHTTP") , but that's limited to IE, I guess, and using new java.net.URL , but I don't want to use Java. Are there any alternatives? Same domain policy is going to get you. 1) Proxy through your server. browser->your server->their server->your server->browser. 2) Use flash or silverlight. The 3rd party has to give you access. The bridge between javascript and flash isn't great for large amounts of data and

Interactive web pages in Go

半城伤御伤魂 提交于 2019-11-28 11:51:58
Do you know if it's possible to create interactive web pages in Go? For example, having one or multiple buttons, or a combo box that refreshes the page with the data being filtered according to the choice? I've tried to look for it but didn't find anything relevant. Thanks in advance. Browsers are not capable of running Go code directly. Interactive web pages at the client side use different technologies, such as HTML, Javascript and CSS. However, it is a viable technology stack to use the above mentioned languages at the client side, and do everything in Go at the server side. That being said

How to save a webpage locally including pictures,etc

点点圈 提交于 2019-11-28 09:28:41
I am building an add-on for an application. The clients are paying to view some webpages and download some files out of it. They want to automate this downloading process by add-on. So instead of selecting "Save Page as" and waiting for the download's completion, they can click the add-on and forget the process. The problem is, the webpage is providing some cookies to the browser. So the best way is File-> "Save Page As" . I want to do it through the add-on. Is there any firefox-javascript way for this?. I used nsiDownloader. But it saves only html, not the pictures,etc. Can anybody guide me

Connect to URL and dump webpage in Groovy

▼魔方 西西 提交于 2019-11-28 07:11:06
I would like to open a webpage from groovy, dump the specified webpage and eventually dump the webpage behind an anchor tag. Does anybody has some sample code for this? Mark Sailes This is a good example http://docs.codehaus.org/display/GROOVY/Simple+file+download+from+URL Basically you want to do something like def data = new URL(feedUrl).getText() here is a variation println 'http://www.google.com'.toURL().text 来源: https://stackoverflow.com/questions/943873/connect-to-url-and-dump-webpage-in-groovy