On Friday, March 21, 2003, at 10:26 AM, Raymond Irving wrote:
--- Benoit Marchant <[EMAIL PROTECTED]> wrote:to do invokeEvent("resize")But what about layers that don't use anchors ? What's wrong with invokeEvent("resize") in setSize ? Performance ? I've never seen it a problem in my usage.
See previous email.
...The loadlayer uses a single queue to load, andI'veadded the ability to pass a queue object. That serialize the loads if multiple layers are sent setURL, exxept if you pass a custom queue. I'm not sure that's a benefit or not ? However, that code check the conclusion of the load in a cleaner way, using events provided by the browsers, and I think that's missing from the current loadpanel.
It look good, but could we consolidate our efforts to create a very good loadpanel/loadlayer widget? The IOElement allows for client-server communications. It too can be used for loading html pages, but with loadpanel/layer around I think I'll make it only support invisible threads. Juho, Dan and Benoit have come up with variants of the loadpanel. Could we combine our findinds and make one load widget that works well?
We sure should !
I have a question. Why is IOElement using java at all ? I'd rather stick to javascript only. In dom browsers and latest IEs, you have access to DOM objects to do http request without using java.
So let's build the feature set we want, and see from where we start.
- be able to call setURL() on dynlayers with accurate onload sent when all content is back. Be able to pass user info along the url that will be available in the onload event.
- be able to coalesce multiple setURLs too close together to avoid going each time to the server, but just honor the last one of a "too close" list of calls. (I have a version of a queue object that does this)
- be able to send get/posts
-be able to receive html and javascript code
- randomize url to avoid caching
... please add to the list
Benoit
-- Raymond Irving
Here it is.
ATTACHMENT part 2 application/octet-streamx-mac-hide-extension=yes; x-unix-mode=0644; name=loadlayer.js-------------------------------------------------------
I removed the js extension as it caused the mail to be bounced back.
Please have a look. Sorry, there's a lot of commented code, it's a working copy.
Benoit
wrote:-- Raymond Irving
--- Doug Melvin <[EMAIL PROTECTED]>isI've been thinking. (I know.. very dangerous)
These events don't seem to be in the api: onresize onload
I have been trying to add an onload event but I don't actually know where to even start. It really has been too long since I've done any hard-code JS coding.. Kinda depressing actually.
In NS 4 the layer object has a load event whichreadystatechangefired when the content is changed (including when the layer is first rendered.)
IN IE we should be able to use theForevent to detect content changes in a div when this event is called you can then check the property: readyState which can have the following values: (you would check the numeric values)
-LOADING (1) The load is in progress-reading persisted properties, but not yet parsing data.properties.readyState definitions, data should be considered equivalent to binary large object (BLOB)object
-LOADED (2) Reading of the persisted properties completed-reading and parsing data, but theparsed,model is not yet available.
-INTERACTIVE (3) Some data has been read andeventand the object model is now available on the partially retrieved data set. Although the object model is available during this state, it is read-only.
-COMPLETED (4) The document has been completely loaded, successfully or unsuccessfully.
I have not yet figured out how to do a resizelive on your desktop!without putting and invokeEvent in setSize();
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness,http://platinum.yahoo.com
http://www.mail-archive.com/[EMAIL PROTECTED]/This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED]
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/