How can I create a modal dialog to open in any window page when clicked on bookmark? See the details.
-
I want to write some code and put it on server. And whenever I click on a bookmark on any browser I want it to open a model (like) on the current page. The model will also fetch information of current webpage (head, meta etc.). e.g. Avast plugin window (I don't want to create plugin for each browser). In my problem user can input some value in form (if he is already logged in). How can I create such model/window. I am using PHP, Jquery, MySQL in my website. e.g image
-
Answer:
I feel you need to trap bookmark event of Browser and process your request I will provide you hint for google chrome, Google chrome has exposed callback function for every event Fired when a bookmark or folder is created. onCreated Fired when a bookmark or folder is created. addListener chrome.bookmarks.onCreated.addListener(function callback). Parameters callback ( function )Callback The callback parameter should specify a function that looks like this: function(string id, http://developer.chrome.com/extensions/bookmarks.html#type-BookmarkTreeNode bookmark) {...}; id ( string ) bookmark ( http://developer.chrome.com/extensions/bookmarks.html#type-BookmarkTreeNode ) http://developer.chrome.com/extensions/bookmarks.html#event-onCreated Now for Opening an popup window you can choose any of these option https://developer.mozilla.org/en/DOM/window.showModalDialog Opens a dialog-like window, in which you can load a page within your chrome extension. HTML can be used. https://developer.chrome.com/extensions/windows.html#method-create Opens a window, which, unlike the previous method, does not appear as a dialog. The user can minimize the window, and continue with something else. https://developer.chrome.com/extensions/windows.html#method-create (Specific to Chrome extensions) Create a new window, with given arguments (size, url, position, ...). All of these methods allows you (your extension) to open a new window/dialog, and handle the logic from that page. This page should be packaged with your extension.
Ashish Kasama at Quora Visit the source
Related Q & A:
- How can i create a mobile application server?Best solution by Stack Overflow
- How can i create a new blog?Best solution by Yahoo! Answers
- How can I create a new font?Best solution by Yahoo! Answers
- How can I create a cute, artsy, unique facebook profile?Best solution by Quora
- How can I create a "Tag Page" on Tumblr?Best solution by uk.answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.