My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 142: dynatree crashes when async is set to false in initAjax
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  ----
Closed:  Nov 2010


 
Reported by ggerr...@gmail.com, Apr 20, 2010
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/dynatree.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

Apr 20, 2010
Project Member #1 moo...@wwwendt.de
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?

Status: Waiting
Owner: moo...@wwWendt.de
Apr 21, 2010
#3 ggerr...@gmail.com
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 ;-)

Nov 20, 2010
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Owner: ---
Nov 20, 2010
Project Member #5 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release1.1
Nov 21, 2010
Project Member #6 moo...@wwwendt.de
Couldn't reproduce this with FF 3.6.12 and dynatree 1.0.1.

Status: Fixed
Jan 23, 2011
Project Member #7 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: -Milestone-Release1.1 Milestone-Release1.0.1
Jul 17, 2012
Project Member #8 moo...@wwwendt.de
considered verified
Jul 17, 2012
Project Member #9 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified

Powered by Google Project Hosting