jQsafi / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

dynatree crashes when async is set to false in initAjax #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you dont want the ajax call to be performed async (async=false)

$("#tree").dynatree({
...
initAjax:   {   url: "/sap/bc/bsp/sap/zajaxtest/menu.json",
        cache: true,
        dataType: "json",
        type: 'GET',                
        timeout:  5000,
        async:    false
    },
...             

dynatree crashes (copied from firebug):

"uncaught exception: [Exception... "Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.removeChild]"
nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame ::
https://ewzm030.oiz.stzh.ch:8009/sap/bw/Mime/Customer/js/jquery/dynatree/dynatre
e.js
:: anonymous :: line 44" data: no]
sapUrMapi_nn7.js?6.0.17.0.0()sapUrM....17.0.0 (line 10)
[Break on this error] try {ur_language==null;} catch(e) {ur_language="en"};"

(Working with v0.5.3 rev3139

Original issue reported on code.google.com by ggerr...@gmail.com on 20 Apr 2010 at 2:14

GoogleCodeExporter commented 9 years ago
Could reproduce this with sample-lazy.html using FF 3.6.3.
This sample loads a local file for demonstration.

Did NOT happen, when adding 'async: false' to the dtnode.appendAjax() call 
(instead
of initAjax).
Did NOT happen with sample-lazy-persist.html sample (this talks to the demo web 
server).

Is there specific reason why you want to load synchronously?

Original comment by moo...@wwwendt.de on 20 Apr 2010 at 8:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi there

doesnt want to show the site to the usere before it's completely loaded. 
Showing 
dialogUI at the beginning and want to close it only when everything is 
rendered. At 
the moment the images are not yet loaded when the tree is shown to the user 
(obened 
another ticket because of that - guess the issues are conectec).

Also having other Ajax request on the site, I'd like to have control when and 
in 
which order things happen ;-)

Original comment by ggerr...@gmail.com on 21 Apr 2010 at 7:50

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 21 Nov 2010 at 7:18

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 21 Nov 2010 at 7:22

GoogleCodeExporter commented 9 years ago
Couldn't reproduce this with FF 3.6.12 and dynatree 1.0.1.

Original comment by moo...@wwwendt.de on 21 Nov 2010 at 2:25

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 23 Jan 2011 at 8:43

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19