[Mapbender-users] problem referencing external js library in MB

karsten karsten at terragis.net
Wed Jan 18 20:50:59 EST 2012


Hi all,
 
I am in the process to update a MapBender site v 2.4.4 to v 2.7.2 while
migrating to a new server. The application is using the ExtJS 2.X library in
2.4.4 and I am trying to reference the Js libraries in the new MapBender
GUI. In 2.4.4 I just did add some reverences in index.html to reverence the
JavaScript but that proved troublesome in 2.7.2. >On IRC I got a hint that I
could add a JS library just by adding a new element (like the JQuery libs
are integrated. So I tried that and added ext-base.js to my gui - the
following  is the SQL for that:
 
INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment,
e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height,
e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod,
e_target, e_requires, e_url) VALUES('ocla4','ext_base',1,1,'ext 2 lib
base','','','','',NULL ,NULL ,NULL ,NULL ,NULL
,'','','','','../ext/adapter/ext/ext-base.js','','','');
 
However when I then try to load my site (this is only the first JS lib I
need to add, but even with that) I am getting the following error in Firebug
(site url replaced with xyz.com ) :
 
(a || "").replace is not a function
 
<http://xyz.com/mapbender/javascripts/map.php?PHPSESSID=qmv9ti36bm0a9s0426h4
ufnnm4&guiID=ocla4&PHPSESSID=qmv9ti36bm0a9s0426h4ufnnm4&gui_id=ocla4&PHPSESS
ID=qmv9ti36bm0a9s0426h4ufnnm4&mb_user_myGui=ocla4>
http://xyz.com/mapbender/javascripts/map.php?PHPSESSID=qmv9ti36bm0a9s0426h4u
fnnm4&guiID=ocla4&PHPSESSID=qmv9ti36bm0a9s0426h4ufnnm4&gui_id=ocla4&PHPSESSI
D=qmv9ti36bm0a9s0426h4ufnnm4&mb_user_myGui=ocla4
Line 53
 
Would anybody have a hint what is going on and how I can integrate ExtJS (or
the references easily into my site also in v 2.7.2. which was absolutely
easy in MB v 2.4.4) ?
Thanks for any help
 
Cheers
Karsten
 

Karsten Vennemann
Principal

Terra GIS LTD
2119 Boyer Ave E 
Seattle, WA  98112
USA 
www.terragis.net

 




=======
Email scanned by PC Tools - No viruses or spyware found.
(Email Guard: 9.0.0.888, Virus/Spyware Database: 6.19070)
http://www.pctools.com/
=======
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapbender_users/attachments/20120118/8ead7d3a/attachment.html


More information about the Mapbender_users mailing list