Loading webpage into browser from another process

Discuss building things with or for the Mozilla Platform.
Locked
FireTcl
New Member
Posts: 1
Joined: February 15th, 2015, 2:16 pm

Loading webpage into browser from another process

Post by FireTcl »

Hi,
I am making a XUL runner application. The problem is that I can't load a webpage to the browser. I tried the src attribute but it doesn't work. This is the XUL file:

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="My Web App"
id="webapp-window"
width="800"
height="600"
persist="screenX screenY width height sizemode">

<browser id="a_browser" flex="1" remote="true" src="http://www.google.es"/>

</window>
lithopsian
Posts: 3664
Joined: September 15th, 2010, 9:03 am

Re: Loading webpage into browser from another process

Post by lithopsian »

This may not be the best place to ask about XULrunner applications. As an addon developer, there are various ways to load a URL into a browser, at the most basic, the loadURI() method of the browser element itself is a wrapper for the more complex loadURIWithFlags().
Locked