« Return to Thread: Parameter marshalling between iframes + DWR

RE: Parameter marshalling between iframes + DWR

by mikewse :: Rate this Message:

Reply to Author | View in Thread

Hi matan,

[sorry about the delay, going through old mails...]

> I came upon an issue... not with DWR directly but with how
> the browsers
> (Firefox + IE at least) marshal object parameters between
> iframes which
> makes a nice mess.
>
> When you pass an object as a parameter between a window and
> an iframe the
> object is "cloned" i guess and the type information of the object is
> removed.  All the functionality of the object is copied
> though so you mostly
> won't notice.  For example:

Yes, instanceof and multiple frames usually means problems (but it
actually isn't about cloning, it's about different prototype
objects on types).

Joe: I think we decided to remove all use of instanceof some time
ago. Should I go in and fix engine.js for 2.0.4 ?

Best regards
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Parameter marshalling between iframes + DWR

LightInTheBox - Buy quality products at wholesale price!