developing browser extension for content filtering - web-services

I'm developing an application for content filtering. i'll use it as web service but my problem is that i hadn't developed any extension for firefox or ie before. i read some about firefox extensions and now i know a little about it.
firstly can i use web service in a firefox/ie extension? if yes, can you give me a link of tutorial or sth like that?
all suggestions are welcome.

The question is too broad. Yes, you can call a web service using XMLHttpRequest, for example.

Related

Integrating paypal with c++ MFC app

We are planning to integrate Paypal with one of our cpp application written using MFC. The question is shall we use Rest apis to accomplish this? or there is any other easier way to do achieve this? I have recently used Paypal REST Services via Postman and they look pretty easy. What I want to achieve is how can I use rest apis for paypal without launching the browser ? How can I achieve Login credentials from the user ? Can anyone point me to right direction ?
Appreciate your help in advance.
Thanks
AJ
I'd suggest using PayPal REST API https://developer.paypal.com/docs/api/ as they putting more effort into it. There is also SOAP API, but I would not use it. It seems like dated.
You can use ultra modern Casablanca C++ REST SDK which is an open source framework from Microsoft available at: https://github.com/Microsoft/cpprestsdk to implement your end-point.
You can do that using Wizdome which is c++ / MFC oriented. A product named Datattoo recovery developed under c++ and MFC allows paying for the amount of data successfully recovered, and the integration with PayPal is done that way.
Here is a more detailed description about the process:

Using webservice in Chrome extension for accessing user information

I want to make an extension for Chrome that customers have to enter their username and password. Then after that they can view their account information by the extension instead of log in to website.
But firstly I'm beginner in developing Chrome extension then after I read some articles about it, now I don't know Where I can start?
Secondly my big problem is using web service in my extension because I have to get customer user/pass and send them to my web service (.net) to get information.
I appreciate you if you give me your ideas/sample code/tutorial/...
But firstly I'm beginner in developing Chrome extension then after I read some articles about it, now I don't know Where I can start?
Start from hello worlds, of course. I would recommend refreshing your knowledge of HTML/CSS and Javascript, as Chrome extensions are essentially local web pages.
But before you dive into new technology, think if you really need to do this as a Chrome extension. Maybe a simple set of webpages will be a better (and cross-browser) choice? Do you really need chrome.* API? Maybe you can share some additional details, like why did you decide to go with Chrome extension in the first place.

Run userscript within the IE web browser control in a MFC application

I am developing a C++ application using the Internet Explorer webcontrol. I would like to use some userscripts to modify the webpage.
Do you have ideas how I can achieve this?
You're looking for IHTMLWindow2::execScript().

Is it possible to embed a HTTP server in a Google Chrome extension?

Do you think it would be possible to embed a HTTP server inside a Google Chrome extension?
I've seen other Google Chrome extensions execute native code and apparrently they do it by using NPAPI, but I have no idea what that is. And it's really freaking me out, as I'm no C++ expert or anything like that. So I feel a little stuck now and that's why I'm asking for help.
Specifically, I want to create an extension for Chrome with features similar to Opera Unite. For those who don't know what I'm talking about: Opera Unite is basically a zero-conf web server bundled with the browser. I don't want to use it for the same things Opera does, but I like the concept.
I was thinking about using something like node.js inside the browser to create a simple web interface to control some stuff in the browser. Think of it as a remote control for the browser. If node.js isn't possible I'd like to use lighthttpd or something similar. The technology really doesn't matter as long as it allows me to receive commands over HTTP.
But how do I take an existing web server and make a NPAPI plugin out of it?
Clarification: I'd like any browser to be able to communicate with my extension. Especially I want mobile devices like Android or the iPhone to be able to remote control the browser. Is there any other way to accomplish that except with a HTTP server?
Another update: I think the easiest way to do this would be to use a relay server on the web like Pusher or some self-created service. But I don't like this approach because it requires constant internet access and because it's a paid service.
Thank you all!
If you want to do a remote control for the browser, would something like HTML5 WebSockets work for you?
http://www.html5rocks.com/tutorials/websockets/basics/
You can have an external "remote" server that your extension listens to via WebSockets. If you want to host a webserver via extensions. You would need to use NPAPI, there are many C++ libraries out there (Google search) that can do a simple webserver. But I would rather use WebSockets communicate to an external server which will provide you anything you want.
But if you insist, you would need to learn C++, NPAPI, there are many examples online regarding NPAPI.
Here is another web server implemented with chrome.socket: https://github.com/kzahel/web-server-chrome. The server example linked to in chrome-app-samples is actually really buggy and will lock up if you e.g. hold down Ctrl-R on a page served by it.
Here is info on making a web-server in a Chrome app:
https://developers.google.com/live/shows/7320022-5001

How to show web page

I wanna show web page in my program. I using Dev-C++ and I'm new. How I can do this?
Best regards
You can use wxWebConnect component, it's a Web Browser Control library for wxWidgets that enables developers to quickly integrate advanced Web browser capabilities into their own applications.
Qt library provides an integrated Web browser component based on WebKit.
Here you can find good tutorial for beginners.
Write your own HTML parser and layout engine with a fully OpenGL-compatible rendering pipeline. :-)
Internet Explorer Trident Window (aka WebBrowser Control).
http://msdn.microsoft.com/en-us/library/aa752040%28v=VS.85%29.aspx