Login Register

Firefox 2

GFX dragging mouse on canvas works strangely on Firefox 2

Hi, I have a simple piece of code:

dojo.require("dojox.gfx");

var containerEl;
var dojoSurface;
var hMouseMoveConnection = null;

function init()
{
containerEl = dojo.byId("canvas");
dojoSurface = dojox.gfx.createSurface(containerEl, 800, 400);

//cancel text selection and text dragging:
//dojo.connect(containerEl, "ondragstart", dojo, "stopEvent");
//dojo.connect(containerEl, "onselectstart", dojo, "stopEvent");

dojo.connect(containerEl, "onmousedown", null, "myHandleCanvasMouseDown");

Firefox 2.0.0.16 cannot load parser

I have a script which loads the dojo toolkit, it does not run and generates an error in Firefox 2.0.0.16, i do not get this problem in any other browser (Firefox 3, IE6 & IE7).

my code is:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" type="text/css" media="screen"
href="__SITEURL__/css/site.css" />
<style type="text/css">
@import "__SITEURL__/js/dijit/themes/tundra/tundra.css";

Chart Display problem in FF 2.0

Hello all,
I am having problems displaying a simple chart using firefox 2.0. The chart behaves correctly under IE 7, but using firefox and firebug i get the following error in the console:

http://localhost:8888/jmat/views/charts/undefined../dojox/gfx.js 404
http://localhost:8888/jmat/views/charts/undefined../dojox/charting/_colo... 404
http://localhost:8888/jmat/views/charts/undefined../dojox/charting/theme... 404

my view code is as follows:

Dojo Toolkit Test Page

Syndicate content