|
Hi, I am trying with, launching a specific URL to the existing browser. I doing the same with following code in the component const char* url = "" class="moz-txt-link-rfc2396E" href="http://www.mozilla.org">"http://www.mozilla.org"; nsCOMPtr<nsIDocShell> browser= do_GetService("@mozilla.org/webshell;1",&rv); if((NS_SUCCEEDED(rv)) && (browser)) { nsCOMPtr<nsIWebNavigation> browins = do_QueryInterface(browser,&rv); if((NS_SUCCEEDED(rv)) && (browins)) { browins->LoadURI(NS_ConvertASCIItoUCS2(url).get(),browserins->LOAD_FLAG_NONE,nsnull,nsnull,nsnull); } } But the browser is not loaded with the specified url. Pl. point out where i am wrong. with Thanks and Regards S.Srinivasa Raghavan |
