[fusion-users] Other Javascript Libraries with Fusion.

Tómas Guðmundsson tomas at snertill.is
Thu Jul 3 12:05:33 EDT 2008


Hi all.

 

I have been trying to do what seems now an impossible feat. That is changing the class of an element inside a page that is loaded with Ajax requests into a Jx.Dialog. Sounds complicated ? Well the thing is I wanted to try and use another very, very great Javascript library called jQuery. It's very easy to use and changes "document.getElementById('id')" to "$('#id'). Anyways what I'm trying to do is this:

 

document.getElementById(elem).className = "activeRow" 

 

Now I tried some debugging and found out eventually that this is impossible. It's very easy with jQuery, and it handles all extra stuff as keeping all other class names of an element with this function $(elem).addClass("activeRow"). I know that the javascript function being called inside the page, that is displayed in Jx.Dialog I have running is logging some data and that appears in the console.

 

Now when I include the jquery file I get errors all over the place "document.geteleement. ... style" is not defined" etc. And I was wandering, does fusion not allow extra libraries to be used or is it just too fragile to include something else ? Also does anyone have a clue why I can't edit the className of this element ? I tried setting it to null and firebug showed me it had no effect.

 

Also, styling web pages inside a Jx.Dialog is not working as it should in IE 7? Is this a known bug as well ?

 

Regards

Tómas.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20080703/d865820f/attachment.html


More information about the fusion-users mailing list