Browser Add-On/Extension and Browser Form data
-
23-08-2019 - |
Question
Can someone point me to an article (or discuss here) that explains how an add-on/extension can read what a user has completed in a form in a browser so you can present data to them based on the search parameters?
An example would be the Sidestep extension that opens a sidebar when a user searches on an airline/travel site and presents them a Sidestep meta search based on the parameters used on the original airline/travel site.
Solution
Browser extensions are necessarily browser specific. I would look at the APIs for your target browser. Here's a thread on Firefox 3.0 extensions.
OTHER TIPS
extension to what? your body?:)
If you're talking about a browser extension, then i'm pretty sure you are on the wrong way. You could just search for forms in the current page, and based on the field names try to figure out what did the user searched for... A js file, and an AJAX-call is all you need, and you could basically skip the ajax call also... but i generally prefer server-side processing, as the source code is more hidden this way.