how I can personalize the chrome contextmenu? - google-chrome

I would like, when I select a word in web page and I do a right-clic, have in the contextmenu the possibility :
1) start a program of me (script perl)
and / or
2) can do a seek with the selection in a web page (like google or OPAC ...)
Sorry for my english (can you be very explicit, please)
Thanks, marc

If you are writing an extension, there is a contentMenu API that allows extensions to add this functionality. If you're just an end user, you can try looking for what you want in the Chrome Web Store.

Related

Is there an example of how to add Replace to Google Docs

Is there an example anywhere of how to use the Document apps-script API to add a button to the Google Docs menu, when it is clicked bring up a web page from my web app that prompts the user for 2 strings, then on OK it does a search & replace on the open document?
I don't need to add search/replace per-se. I just figure this is the simplest example of writing an Add-In to Google Docs that edits the open document.
thanks - dave
As it stands, this is not possible. I think this issue (which you might like to star so that you can receive updates in the thread) best describes it. Summary in post #7:
This feature request is to add the same script functionality to a
document as there is in a spreadsheet. ie menu items etc.
A recent video by google (see their blogs) hints that this will be soon available.
In the meantime u can ask for the document url from your published script interface.
If you make a googledrive.com client app you can even use the new goglepicker to select the doc.

Opening iBook File on iPad from HTML Link

This is a bit of a strange question, but I have a client who's employees will be accessing an intranet site using company provided iPads. All of these iPads will have an book loaded into iBooks. They want us to link to that book from the intranet site. I can't find a way that this can be done. Does anyone know how it might be done? If not, do you know of a way that we can link to the iBooks application so that it will launch and at least give the user the menu of iBooks available on the device? Thanks in advance.
You can open directly to iBooks by using the url:
My Link
This is a possible duplicate of How do I launch iBooks e-reader programmatically on iPad?
You can open iBooks to a specific book now by including the assetid of the book you want to open. Example:
ibooks://assetid/1396541327
Details available on the Apple.com website - https://support.apple.com/en-us/HT202929

Chrome Extensions

I'm starting the development of chrome extensions, i have read few tutorials but i still have few questions, like;
1) How to get the text of the page Like i want to in skype or google talk extesnion the number on any webpage are converted to PHONE LINK how can i do this?
2) How to perform authentication using the plugin like the google plus (gmail) checker, I want to do this for another website not gmail, i want to do this for me custom website.
Thanks
1) There are a number of ways to ways to find text on pages. Here is an example with jQuery.
2) Google has a tutorial for using OAuth from an extension. This should work with most OAuth providers. You can also use cookies or Basic Auth if you want something simpler.

Offline application shortcut

I have developed an application with HTML5. I want to know how I can make a shortcut/access-point URL icon to access my offline page.
Adding /path/favicon.ico to your cache.manifest, unless I'm misunderstanding the question.
If you mean a desktop shortcut, you can't do that through the app itself, have to use an external program.

How do i allow the user to select more than one file for upload?

Gmail just released an update to their interface allowing the user to select more than one file for upload by using the CTRL-button. How do they do that? You can read about the new feature and see a screen shot here:
http://gmailblog.blogspot.com/2009/02/updates-to-attachments-multi-select-and.html
You will need to find flash-based sollution, like Google did with Gmail. You can try this jQuery plugin that offers exactly that: jQuery File Upload Plugin
Adobe Flash Player.
Here's a good library that I used: SWFUpload
Of course this is a JavaScript library, and not a jQuery plug-in, making it much more portable.
Take a look at RFC 1867 It defines how to upload files over HTTP using the multipart/mixed encoding. You can use the Apache Commons FileUpload library to do this in Java. I don't know how Google does it, but you can manage the multiple selects with JavaScript processing in your page.
Not the method Gmail uses, but the following link, combined with some jquery you can allow an unlimited number of files to be uploaded at the same time: Link
Google isn't using Flash, but actually some clever javascript (well, that IS what they're all about it seems :-) ). Using javascript and css, you can create a file chooser that lets the user select the file to upload. Then, you use a hidden iframe. The act of posting the form with your upload file targets the hidden iframe so that the result returned from the server on success goes into that hidden iframe. Using javascript, monitor the document body of that iframe to know when the file is uploaded.
This link appears to be a quick example of the basic concept: http://www.seemysites.net/projFolder/uploader/