I'm able to print HTML5 Canvas content. But every time when I click print a window prompts to select printer and settings.
How to make silent printing? I need the browser to print in default printer without prompt.
I need the solution for IE 10 and later, Edge and Chrome.
From a web application you cannot access resources on local machine like file system or installed applications. If you need this capability in your web application, you need to develop some browser plugin which can do this job.
This won't work as granting the web page access to printing without a prompt would be a security problem.
There may however be an option (flag) for disabeling the printing dialog in your browser. But this would affect all websites viewed in this browser.
Related
I know there is an offline mode in google chrome but my question is there a way for a website to force chrome to cache the entire website for offline loading without user interaction (besides the user initially visiting of course)
Example:
User visits website X,
X requests chrome to cache specific version of the site for offline use
User brings up the website at a later date without internet (without deleting cache/history of course) and can now view the site html/Javascript.
If this behavior is not currently available in chrome what would be the most seamless way to accomplish this behavior with the end user being random devices using chrome, simply providing them instructions to enable offline mode? Or is there a way to force this prompt?
I'm looking for leads on how to capture web page metadata from the current browser page. I want to create a feature in my application that will allow the user to press a hot key and record meta data from the web page currently open in the user's browser. My application will be running minimized, this feature is to be activated by a global hot key.
I'm using nw.js (formerly Node-Webkit) to create this application, so ideally, the solution would be javascript running in a desktop installation of Node.js. If this is not practical, I understand that I can call platform specific code from nw.js, so solutions developed in any desktop os language would be of interest.
My application targets OS X and Windows.
I'm hoping to capture metadata from all major modern browsers (Chrome, Firefox, Safari and IE 10+).
At a minimum I need to capture the page url, but I also want to capture Keywords, Description and highlighted text for the source web page.
I need to implement this function without modifying the source webpage in any way, and I prefer to avoid the need for browser extensions, bookmarklets or plugins.
If a solution exists using a remote controlled browser extension (no user interaction) that would be of interest, but ideally I want to avoid requiring the end user to install or interact with anything but my application.
My search to date has located no information on reading web page information from applications outside the browser.
Any thoughts or leads are much appreciated.
I have to add Print button to my site. I used tyical window.print() solution.
But this method doesn't work in chrome and atomic browser on ios7 but works in safari.
How should I implement this feature?
Check this out: http://www.printfriendly.com/browser_tool
You can integrate their javascript to your web page so that your users can either print directly or print as a pdf. IMHO the window.print() is useless on an iPad or iPhone unless you have a wireless printer nearby. Most of the cases you wont have one nearby. The option above is promising because i can save it to iBooks or Adobe Reader and later print or send it as an email - That's usable.
I am developing a mobile web application. On the form when the user press Print button I need to print the page on a 4 inch printer.
My question is how can I connect to the printer from the mobile web browser(may be using bluetooth, USB).
My application will be running on all type of smart phones(Andriod , IOS, Windows, BB etc).
Unfortunately android and ios lack the concept of a printer driver so there is no native and widely supported way to print from mobile devices.
However there are a couple of other options to consider:
Rely on the user to have an app installed for their preferred printer (this probably is not a satisfactory solution as these apps often integrate poorly with mobile web browsers)
Target the (fairly common) printers which support email printing, that is allow the users to enter the email address for their printer and then send an email to that address containing whatever it is that you wish to print (for anything other than plaintext you will need to send a multipart email with html content)
The easiest thing to do is use a service like Google Cloud Print.
Once the user has completed the action on the app (iPhone, Android, BB) or web browser, you can then submit the data to a printer of your choice. There is full documentation available.
Unfortunately not all the printers are supported by Android.
But if you have a back-end, get a wifi printer and print it using the wifi-printing preferences from the back-end, trigger of course is from the mobile.
This seems like a better fit:
Use a print server - a separate computer that accepts simple printing messages from your app. The print server can house the drivers for the printer and take care of rendering. You can write a small service application to listen for jobs from the app.
Android wasn't designed to talk to printers.
try iprintmarvel printer it is very easy to integrate with android/java mobiles
Use javascript to print the page from browser, but your phone must be connected to a printer.
Just try this line of code on any button click event.
window.print();
Is there a javascript API for Chrome Tab Sync for web sites? I'm not asking about Chrome Extensions, just web sites.
For example, I'd like to store some text (a string) when you open a web site on the desktop then when you open that same page in the chrome mobile browser I'd like to display that stored text.
Is this possible? I know with Chrome Extensions there is chrome.storage, but I don't believe that is available for websites.
You should store that information:
on your server,
in the URL of the page (?mystring=...),
or on your server with a lookup key for the specific info in the URL.
Any one of these is an ordinary thing to do and will work for all browsers and all ways to get a page from one device to another, without relying on any features specific to Chrome.