Is can use google Native Client to Achieve screenshots? - google-nativeclient

chrome 42 not support npapi,so i want use nativeclient(ppapi) to Achieve screenshots?
but how to do use c++ ? or , is can to Achieve screenshots?

You want to use the captureVisibleTab API. This API doesn't seem available through Pepper but is available through JavaScript. You can communicate between the two if that's necessary.

Related

How to integrate DevExpress in GeneXus

Is there a way to use DevExpress UI components in Web Forms that were generated using GeneXus programming language?
It possible... .
But I never try, the way to integrate any external WebComponent it's complicated, also depend on several questions:
Which Gx Version do you use?
What component/form do you want use?
Tell me a little more, please.
Thanks,
gab

Maps API for JavaScript - Autocomplete and H.PlacesService

I'm writing a web application that should provide an autocomplete component.
So I was thinking to use H.PlacesService to access the low-level Places REST API.
PlacesService.suggest calls the suggest entry point that is deprecated (https://developer.here.com/documentation/places/topics_api/resource-suggest.html)
why?
what should I use? the autosuggest entry point?
Anyway, the autosuggest entry point (I guess should replace the suggest entry point) is not implemented by the placesServices.
So at the end
Is using PlacesService wrapper a good approach?
Go for HERE REST API.
See two examples, using typescript or jquery-ui
There is also a Geocoder Autocomplete API which could be a possibility:
https://developer.here.com/documentation/geocoder-autocomplete/topics/key-concepts.html
Here you can find some example with the JS API:
https://tcs.ext.here.com/examples/v3/geocoder_autocomplete

Using Selenium WebDriver in custom extension

I am developing a Firefox extension and have a need to generate synthetic events. I want this events to be treated as 'native' events. However, the DOM APIs exposed by Firefox (createEvent, initEvent) aren't really behaving as native events. I realized Selenium solved the issue by adopting native events.
My question is, can I use webdriver.xpi standalone within my extension? My extension is JavaScript based. If yes, how? Has anyone done it before?
Any pointers will be highly appreciated.
Selenium is unnecessary:
You can use nsIDOMWindowUtils.sendMouseEventToWindow() instead of document.createEvent(). This method is meant for testing and will generate a native event as well.
References
Are events generated by Firefox extension 'trusted'?

OpenStreetMap in ASP.NET

I'm interested in using OpenStreetMap in a web application developed using ASP.NET.
Anyone knows if there is a control, library or wrapper for using OpenStreetMap in ASP.NET? (C#, not using Javascript).
Thanks in advance.
I'm not sure whether they have any ASP specific tools, but Cloudmade have lots of tools & API you can use to get OpenStreetMap into your app. It's mostly done on the client though through JavaScript, so I don't think you'll find much in the way of C# tools.
I could be wrong though...
BruTile is a C# library for displaying a slippy map. It can be used on the web, displaying via silverlight.
In my opinion a silverlight requirement is not a sensible choice for a public website, and not very sensible for internal use either from a long term perspective, so this isn't a great solution. But this is the only thing I'm aware of which matches what you're asking for.
"not using Javascript" is a curious restriction, since most embedded web maps use javascript. Perhaps you mean you don't want to work with any javascript, but the website can use it. In which case... I'm still not aware of any C# solution, but a library which wraps OpenLayers or one of the other alternatives, hiding all javascript development from you, would be very feasible. Someone should build such a thing! In the meantime, the javascript to display a slippy map is quite simple I promise :-)
The other approach might be a Static Map Image generating library which fetches tile images, stitches them into a single image and caches it locally for you to display in an <img> tag. Again such a thing would be very feasible (easy!?) to build with C#. Someone should do it! In the meantime you can link to one of those services (e.g the new one from MapQuest) directly from an <img> tag on your site. ...No javascript, and no C# either!

Is it possible to get the favorites list from the browser?

Is it possible to read a user's favorites list using asp.net?
This would violate the visitors privacy. You would need a browser component that they installed locally to do such a thing.
ASP.NET is technically a server side technology... it does allow you to output html and javascript, but to be more concise your question should read:
"Is it possible to read a user's favorites (bookmarks) via javascript?"
Since you need a client side script to do this.
And the answer to that question, unfortunately for you, is no.
God, I hope not. And if so they need to fix that immediately.
I don't think so, ASP.net is on the server side not on client side so i m sure it's impossible to do it without a plugin (i m even not sure you can do it using a javascript), on firefox some social network provide specific plugin.
Is it possible? Yes.
Is it possible without the user having to accept a component install? No.
Is it possible using only ASP.NET without running code on the client? No.
You would have to create something like an ActiveX component or a Java applet that you run in the browser. The component would have to check for different browsers and different versions of each browser to know where the favorites would be stored. Some browsers may store them in such a way that it's practically impossible to read them.

Resources