Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: widget plugin with network access - No solution but a remark



Hi,

I don't know why the memory-usage is going up each time you call the function. But what I am quite sure of is that your "delete"-calls are useless. They always return false, but they should return true if deletion of the variables where successful. It seems that success is only the case if you define the variables as global (without the "var"). Of course, that doesn't resolve the main problem I just wanted to add that.

But another idea that might be worth to think about: As you use XmlHttpRequest, could it be that whatever you are reading is cached somehow within the widget, like a webpage? I tried to set the reqest- header to no-cache but that did not do anything. I don't know if it would do something if you would use a post-request instead, though I don't think it will make a difference.

Greetings,

Stephan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden

This email sent to email@hidden
References: 
 >widget plugin with network access (From: Michael Kwasnicki <email@hidden>)
 >Re: widget plugin with network access (From: Michael Kwasnicki <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.