Rosario Poulraj
Rosario Poulraj

Reputation: 1

Eclipse RAP Web Application and Google AdSense Integration

I am planning to develop a website in Eclipse RAP, as I am a Eclipse fan and know bit of RCP. And I would like to make use of the Google AdSense so that commercial ads can be displayed in my web site. As RAP is bit different from regular web applications, I would like to know whether Google AdSense can be used in my RAP based web site. Also I came across some news regarding the restriction on number of concurrent sessions in RAP based web applications. What is the maximum limit? Will it be improved in the newer versions in future? Kindly clarify the same. Thanks in advance.

Upvotes: 0

Views: 72

Answers (1)

ralfstx
ralfstx

Reputation: 4023

I don't know about AdSense specifically, but you should have a look at the Browser widget. It's a widget that can contain any HTML/JS and renders as an IFRAME in the web browser.

Update: as a workaround, you could add an HTML element in a JavaScript snippet that you send to the client using JavaScriptExecutor. This snippet could append an element to the document using plain DOM API, or append an element to a RAP widget using the RAP client API. Have a look at rap.getObject() and Widget.$el.

Yet another approach would be to develop a custom widget.

Upvotes: 1

Related Questions