On Friday, March 21, 2003, at 01:13 PM, Raymond Irving wrote:



--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
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.

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.
Ok. I've never used synchronous calls with dynapi, so I'm not sure how I would use it.


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...
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.


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


-- Raymond Irving

Here it is.


ATTACHMENT part 2 application/octet-stream
x-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


--
Raymond Irving

--- Doug Melvin <[EMAIL PROTECTED]>
wrote:
I'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 which
is
fired when the content is changed (including
when
the layer is first rendered.)

IN IE we should be able to use the
readystatechange
event 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.
For
readyState definitions, data should be
considered
equivalent to binary large object (BLOB)
properties.

-LOADED (2) Reading of the persisted properties completed-reading and parsing data, but the
object
model is not yet available.

-INTERACTIVE (3) Some data has been read and
parsed,
and 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 resize
event
without putting and invokeEvent in setSize();



__________________________________________________
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]




http://www.mail-archive.com/[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
=== message truncated ===


__________________________________________________ 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]/

Reply via email to