<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT size=2>it seems you have the dreadfull "mainmap not defined"
error</FONT></DIV>
<DIV><FONT size=2>this will cause the whole tooltips javascript to not work, as
you noticed.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>to be more precise, the initialisation function of tooltips
tries to access an object (mainmap) which is not ready yet. And then, later,
when you try to pass the mouse on the map, it will throw the first
error you reported in your mail.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>you are using cartoweb 3.3? this problem was fixed in cartoweb
cvs.</FONT></DIV>
<DIV><FONT size=2>if you do not want to update your cartoweb, you can simply
replace, in dhtmlcode.tpl</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> {literal}<BR> function initToolTips()
{<BR> if (typeof(AjaxPlugins.ToolTips) !=
'undefined') {<BR>
{/literal}<BR>
AjaxPlugins.ToolTips.serviceUrl =
'{$selfUrl}?toolTips=1';<BR>
AjaxPlugins.ToolTips.charSet =
'{$charset}';<BR>
AjaxPlugins.ToolTips.lang =
'{$toolTips_currentLanguage}';<BR>
{literal}<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> // init the imagemap (area
tags)<BR> if ($('map1'))
{<BR> var imagemapTag =
$('map1');<BR>
xAppendChild(mainmap.getDisplay('map').rootDisplayLayer, imagemapTag);
<BR>
AjaxPlugins.ToolTips.useMap();<BR> }<BR>
}<BR> {/literal}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>by</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> {literal}<BR> function initToolTips()
{<BR> if (typeof(AjaxPlugins.ToolTips) !=
'undefined') {<BR>
{/literal}<BR>
AjaxPlugins.ToolTips.serviceUrl =
'{$selfUrl}?toolTips=1';<BR>
AjaxPlugins.ToolTips.charSet =
'{$charset}';<BR>
AjaxPlugins.ToolTips.lang =
'{$toolTips_currentLanguage}';<BR>
{literal}<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> // init the imagemap (area
tags)<BR> if ($('map1'))
{<BR> var imagemapTag =
$('map1');<BR> args = new
Array();<BR> args[0] =
imagemapTag;<BR>
checkMainmapExistence('callToolTips', args);<BR>
}<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> /*<BR> * args is an array containing all
the arguments passed originally<BR> */<BR> function
callToolTips(args) {<BR>
xAppendChild(mainmap.getDisplay('map').rootDisplayLayer, args[0]);
<BR> AjaxPlugins.ToolTips.useMap();<BR> }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> /*<BR> * generic loop function to wait till
the mainmap object is ready<BR> * receive the name of the output
function and an array containing the parameters to pass to this
function<BR> */<BR> function
checkMainmapExistence(functionCall, args) {<BR>
try {<BR>
mainmap<BR> } catch
(e){<BR> setTimeout(function() {
checkMainmapExistence(functionCall, args); },
100);<BR>
return;<BR> }<BR> //
call to dynamically named function<BR>
this[functionCall](args);<BR> }<BR> {/literal}<BR></FONT></DIV>
<DIV><FONT size=2>this will solve the first error.</FONT></DIV>
<DIV><FONT size=2>let see if it will fix the second too :)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Oliver</FONT></DIV></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">Oliver Christen</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=frequens@gmail.com
href="mailto:frequens@gmail.com">frequens</A> ; <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 05, 2007 12:32
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] ToolTips
addendum</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>this seems to be triggered by one of the Event.observe(..)
in the ToolTips.ajax.js</FONT></DIV>
<DIV><FONT size=2>i cant say which one as I dont have that error
here.</FONT></DIV>
<DIV><FONT size=2>Could you add a few alert() in your ToolTips.ajax.js to see
which one of the Event.observe(..) trigger the error ?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=frequens@gmail.com href="mailto:frequens@gmail.com">frequens</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 05, 2007 11:57
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] ToolTips
addendum</DIV>
<DIV><BR></DIV><BR><BR>
<DIV><SPAN class=gmail_quote>On 2/5/07, <B class=gmail_sendername>Oliver
Christen</B> <<A
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>the addEventListener error is
strange.</FONT></DIV></DIV></BLOCKQUOTE>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>It is as if the object isnt available when IE try
to use it.</FONT></DIV>
<DIV><FONT size=2>I had this kind of problem a few time with IE, but not
when using tooltips.</FONT></DIV>
<DIV><FONT size=2>IE tries to access a property or object that hasnt been
initialised yet.</FONT></DIV>
<DIV><FONT size=2>The easy way to find if that is the problem is to try on
an old computer ^_^. It will work there because js will be handled more
slowly.</FONT></DIV></DIV></BLOCKQUOTE>
<DIV><BR>....<BR> _observeAndCache: function(element, name, observer,
useCapture) {<BR> if (!this.observers) this.observers =
[];<BR> if (element.addEventListener) { ((((THE SCRIPT
STOPS HERE)))) <SPAN
style="FONT-WEIGHT: bold"></SPAN><BR>
this.observers.push([element, name, observer,
useCapture]);<BR>
element.addEventListener(name, observer, useCapture);<BR>
} else if (element.attachEvent) {<BR>
this.observers.push([element, name, observer,
useCapture]);<BR> element.attachEvent('on' +
name, observer);<BR> }<BR>
},<BR>......<BR> <BR>Yes, it is prototype.js, see up where the debugger
complains<BR></DIV><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>Im not even sure where the error is triggered, as its
not said in your error message :(</FONT></DIV>
<DIV>Line 1727 seems to refer to prototype.js but as to why the error
would be thrown there...</DIV></DIV></BLOCKQUOTE>
<DIV><BR> </DIV><BR></DIV>The other two are from the ToolTipsAjax.js:
<BR><BR><BR>line 140<BR> mouseMove: function()
{<BR> if
(AjaxPlugins.ToolTips.isAjaxActive())
{<BR>
clearTimeout(
AjaxPlugins.ToolTips._timerMouseMove);<BR>
AjaxPlugins.ToolTips._timerMouseMove =
setTimeout(<BR>
"AjaxPlugins.ToolTips.checkMove()",<BR>
AjaxPlugins.ToolTips.toolTipsTimeout
<BR>
);<BR>
AjaxPlugins.ToolTips._result.hide(); (STOPS
HERE)<BR> }<BR>
},<BR><BR><BR>and 219 (220)<BR><BR> sendRequest: function(argObject)
{<BR>
this.abortRequest();<BR>
this._result.reset(); (STOPS HERE)
<BR>
this._result.wait();<BR><BR> var
url = this.serviceUrl + '&' +
this.buildQueryString(argObject);<BR>
Logger.send('Request sent with url :' +
url);<BR> this._ajaxRequest = new
Ajax.Request
(<BR>
url,<BR>
{method: 'get', onComplete: showResponse, onFailure:
reportError}<BR> );<BR><BR>Thank
you for going this through,<BR><BR>frequens<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>