Loading/launching activex control using NPAPI - activex

I have a mozilla browser(this browser is developed for windows based mobile handsets).I have used NP plugin for rendering flash content on my browser.There are NPAPIs which can be used for controlling the flash window properties.I have used NPAPIs for getting the flash contents from the browser and rendering it on the browser.
Now I want to launch activeX control using the NPAPI.This is required for rendering flash in wince platform which uses activeX to render flash content on nay web page.Does any one know how to launch an activeX control using NPAPI so that the NPPlugin which is implemented for windows phone also works on wince platform.
Thanks in advance,
Snehal

Check out: http://code.google.com/p/ff-activex-host/
Most APIs probably work the same on WinCE, but you'll have to do some tweaking, I'm sure.

Related

Delphi client that runs like it is connected to a web server - without a web server. Is it possible?

I am familiar with programming in Delphi stand-alone applications and web-server applications.
Is it possible to have a Delphi application that when launched gets the browser to handle its output? Without a server being between the user and the application.
The reason I would like to do this is because HTML CSS and so on provide a more familiar user-interface to most people.
You can not "let the browser handle its output" without any HTTP connection, so a local web server, then using regular URIs like http://localhost:888/myDelphiApp/FullURI.
What you can is to embed a Web Browser to your Delphi application, then provide the generated web content not via HTTP, but as local content.
You may use
THtmlViewer Open Source component - which I like very much;
Delphi Chromium Embedded;
WebBrowser Component.
All recognize CSS and HTML content.

TWebBrowser Cannot Open Blogspot Website

I'm using Delphi XE2 in Windows 7 64 bit, I put TWebBrowser component in a Form. I navigate it to a blogspot website, e.g:
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
it shows JavaScript Error (HTML Parsing Error), then I turn Silent properties to True as follow:
Webbrowser1.Silent := true;
Webbrowser1.Navigate('http://maniacpcgame.blogspot.com');
But the browser cannot open the page properly (only show background image). I tried other blogspot websites and got same problem. Any solution to display blogspot website correctly in TWebBrowser?
Twebbrowser uses IEFRAME
IEFRAME depends on the version of internet explorer you are running on that computer
You can deploy IEFRAME.DLL (in c:windows/system32 )with your application so you can be sure the same version is used everywhere so you wont get inconsistencies between computers.
However newer ones wont work on XP and there are some directx requirements.
A good alternative is
Delphi Embed chromium, it makes your deployed application a lot bigger (+-15MB) but you can be very sure it works everywhere and always (windows 8 to XP) and it will always produce the same page
Also if you have to manipulate the DOM or insert javascript (to communicate with the page)
this will be easier and will work more consistently.
Here is a link for the latest version:
https://code.google.com/p/dcef3/

What is delphichromiumembedded for?

Is this an internet browser component? that is more than the capability of TwebBrowser?
Im using TWebBrowser, and so if Im logged on to a website then I run my Delphi webbrowser to the site, I was already logged-on also, BUT if I logged-on to Mozilla firefox and run my Delphi webBrowser(TwebBrowser) it doesnt know if Im logged-on to the website from mozilla, TwebBrowser only integrate in internet explorer.
Does this Chromiumembedded also can integrate to mozilla or chrome?
thanks
It embeds a Google Chrome browser control in a Delphi form.
TWebBrowser is an embedded Internet Explorer control. It might have access to cookies and other data from your Internet Explorer settings, but it won't have access to any other browsers' settings, including Firefox and Chrome.
The embedded Chrome browser will not have access to the user's Chrome or Firefox settings. Those are entirely separate applications, and your application doesn't get any special standing related to them just because it's using an embedded browser control. If you want to gain access to another application's settings, you'll have to do it the same way anyone else does.
TWebBrowser uses the rendering engine of Internet Explorer, and shares several of its settings (like cookies).
TChromium uses the rendering engine of Chromium (which is the open-source part that Google Chrome is based on), and operates independently. It can't read Firefox's cookies, nor, AFAIK, Chrome's.

Downloading webpages using sessions/cookies with TDownloadUrl (Delphi)

I've been testing some samples to save webpages using TDownloadUrl, and it was really amazing, but I found some problems certain webpages, those pages cannot let to access to real content because they need to start a session o set a cookie before, so I get two situations, TDownloadUrl does...
not create/save a file with content from webpage supposedly downloaded (STATUS CODE : 5 --> dsEndDownloadData), this is because there is no cookie (STATUS CODE : 41 --> dsCookieStateDowngrade)
not save the content right instead of it saves a webpage requesting to press a link to access to content wished
Is there any way to bypass these problems using Delphi's native components, that is, no third-party components (like TEmbeddedWB)?
Thanks in advance.
Note: I'm using Delphi XE2 under WinXP with Firefox 6.0 and IE 9.0
XE2 ships with Indy 10 (which is a third-party component, but at least it is a bundled one). You can use its TIdHTTP component instead of TDownloadURL. TIdHTTP supports cookies.

How to see XFA forms in i-Pad?

I would like to develop an interactive XFA form in LiveCycle Designer ES -2 which will support Windows as well as i-Pad. But the problem is when I open an XFA form it does not show the form rather it shows the form can not be shown(If the form has scripts within it).It only shows simple PDF documents in read only format.It also does not show the button in Acroforms.There is no interactivity related with the form.I would like to know is there any way to show the interactive PDf forms?
There is also another solution from SPZAP designed for Microsoft SharePoint and supporting XFA forms in PDFs and in some way in HTML5 compliant browsers. It has a form designer that runs in a browser (html5) and two kinds of runtime that are SharePoint integrated and are displaying PDF either in Adobe Acrobat Reader (probably Foxit in future) or converted as html5 structure (with some limitations in latter case). http://www.pdfsharepoint.com
LiveCycle Mobile ES4.0 will be able to render your forms. The look will be similar to HTML rendering.
http://www.adobe.com/products/livecycle/mobile/
The built-in pdf reader doesn't support dynamic PDF forms, Adobe doesn't have an iOS client and iPad doesn't support flash (natively).
Your only option is to render the form as HTML using LiveCycle Forms ES (server module).
You cannot render an interactive form in iPad as pdf. Reason being Apple doesn't allow any application (except web browser) to run any kind of scripts inside it (In this case Acrobat application, trying to run Javascript).
But you can render it as HTML which can be rendered in a browser and has some strip out functionality than the pdf version but its worth to try.

Resources