On 3/22/13 8:27 AM, ala...@gmail.com wrote:
Hello,

I'm trying to develop an UI using Xulrunner. I have a xul file that contains some 
<div>s and I want to update contents using jquery, e.g:

$("#divId").empty().append("<h3>Hello World</h3>"); <<-- Fails: "n is null"

jQuery assumes it is running in an HTML document. If your document is not HTML (and specifically if it's XUL), it won't work correctly. For example, createElement won't do what it expects.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to