Check moduls

From MapbenderWiki

Jump to: navigation, search

EN

To establish the module character completely check all the modules which refer to external DIV-tags (usually to mapframe1 to digitize measurements / highlighting etc).

The existance of these DIV-tags has to be checked by the module itself and where required to write / add this element.

Use the following Javascript functions:

var logdisplay = document.createElement("div"); - prepares a new DIV-tag

var tmp = document.getElementById("log").appendChild(logdisplay); - implements the new DIV-tag in a certain area, normally this will be the body of mapframe1...

PLease remember that each module has to get the session_id and has to check the validity of the login (mod_validateSession).

tmp.setAttribute("id","logdisplay"); - set all required stylesheets etc. for the new tag




DE

Damit der Modulcharakter durchgängig hergestellt wird, sind alle Module zu überprüfen, die auf externe DIV-Tags zugreifen (i.d.R im Mapframe1 zum Zeichnen von Messungen / Highlighting etc.).

Die Existenz dieser DIV-Tags muss das Modul selbst überprüfen und ggf. diese Element selber schreiben / anhängen.

Dafür folgende Javascript-Funktionen verwenden:

var logdisplay = document.createElement("div"); - bereitet ein neues Div-Tag vor

var tmp = document.getElementById("log").appendChild(logdisplay); - hängt das neue Div in einen bestimmten Bereich, in der Regel wird es der Body des mapframe1 sein...

Bitte auch noch daran denken, dass jedem Modul die Session_id übergeben werden und die Gültigkeit der Anmeldung (mod_validateSession) überprüft werden soll.

tmp.setAttribute("id","logdisplay"); - alle nötigen Stylesheets etc. für dieses neue Tag werden gesetzt

Personal tools