On Friday, March 21, 2003, at 01:13 PM, Raymond Irving wrote:
Ok. I've never used synchronous calls with dynapi, so I'm not sure how I would use it.
--- Benoit Marchant <[EMAIL PROTECTED]> wrote:Could wecombine 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.
IOElement does not use java for asynchronous communications. Java is ONLY used for synchronous communication in browsers that does not support XMLHttpRequest, and it's only included when IOElementSync is included.
Yes ! and that's the beauty of it ! There's no need for a loadpanel subclass when any dynalyer can do the same !! It's great from an API point of view, much simpler.
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.
This will convert dynlayers into loadpanels, correct? Hmmm...
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
This will duplicate features of the IOElement. Why duplicated code? If a user wants to communicate with a server they should use IOElement. LoadPanel/LoadLayer should be for downloading html pages, not for sending and receiving arguments to and form the server.
In dynapi2, I used the trick of setting a src to a new Image to send a get with url form values when I wanted to send values to the server side, and didn't care about the result. So I could use IOElement for it, although it's pretty big for such a small requirement.
I agree, both are different for our usage, although usually in HTML, when you send a request. get or post, you get some other html back !
Benoit
-- Raymond Irving
--------------------------------------------------------be able to receive html and javascript code - randomize url to avoid caching
... please add to the list
Benoit
to
-- 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 mailwhenbe 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 whichfired when the content is changed (includingthereadystatechangethe layer is first rendered.)
IN IE we should be able to use theevent to detect content changes in a div when this event is called you can then checkfollowingproperty: readyState which can have theconsideredForvalues: (you would check the numeric values)
-LOADING (1) The load is in progress-reading persisted properties, but not yet parsing data.readyState definitions, data should beobjectproperties.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 andand the object model is now available on the partially retrieved data set. Although the__________________________________________________eventmodel 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 resizewithout putting and invokeEvent in setSize();
live on your desktop!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]
-------------------------------------------------------live on your desktop!
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness,http://platinum.yahoo.com
=== message truncated ===This SF.net email is sponsored by:Crypto Challengeis now open!Get cracking and register here for some mindboggling
__________________________________________________ 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]/