[webkit-dev] c++ webkit

manishprs manishprs at gmail.com
Fri Oct 15 12:37:02 PDT 2010




manishprs wrote:
> 
> Hi Rashad,
> 
> I think if you want to call Javascript function then you need to use it
> through some plugin.
> porting webkit to a desktop gui toolkit like gtk
> --for Gtk Port there is gtkwebkit is available.
> 
> --manish
> 
> 
> Mohammed Rashad-3 wrote:
>> 
>> Hi all,
>> I am new to list . I had a javascript code which display a map.
>> How could I make the code work from my c++ application. How to embed
>> webkit
>> code in c++.
>> 
>> 
>> 
>>   <head>
>>     <title>OpenLayers Example</title>
>>     <script src="../lib/OpenLayers.js"></script>
>>     <script type="text/javascript">
>>         function init(){
>>            var map = new OpenLayers.Map('map');
>>             var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "
>> http://labs.metacarta.com/wms/vmap0",  {layers: 'basic'} );
>>             map.addLayers([ol_wms]);
>>              map.zoomToMaxExtent();
>>         }
>>     </script>
>>   </head>
>>   <body onload="init()">
>>      <div id="map" class="smallmap"></div>
>>   </body>
>> 
>> 
>> 
>> How to call the function init() from a c++ application and how to display
>> the image generated from code.
>> How can I load a javascript class.
>> and use it in my c++ desktop application
>> OpenLayers.js contains the class OpenLayers.Map
>> 
>> Anyone please provide some code if possible. Also please give some links
>> on
>> porting webkit to a desktop gui toolkit like gtk
>> 
>> -- 
>> Rashad
>> 
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/c%2B%2B-webkit-tp29964018p29974743.html
Sent from the Webkit mailing list archive at Nabble.com.



More information about the webkit-dev mailing list