Question about mapbuilder timers and network failures

Ryan Moquin

Question about mapbuilder timers and network failures

Reply Threaded More More options
Print post
Permalink
I love the timers that can be used for loading mapbuilder features.  I did run into a problem though, in the event that an unexpected error occurs, that can't be accounted for.... an alert box is displayed in the browser, which of course blocks the UI.  This is a real nightmare for features that you are updating very quickly. :)  Are there any provisions for redirecting these errors into a page element?  Or is there a way to prevent the alert boxes from coming up?  I just want to eliminate the model alerts because it's very difficult to do anything with your browser at that point. :)

Thanks for any input!

Ryan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
Andreas Hocevar

Re: Question about mapbuilder timers and network failures

Reply Threaded More More options
Print post
Permalink
Hi,

Ryan Moquin wrote:
> I love the timers that can be used for loading mapbuilder features.  I
> did run into a problem though, in the event that an unexpected error
> occurs, that can't be accounted for.... an alert box is displayed in
> the browser, which of course blocks the UI.  This is a real nightmare
> for features that you are updating very quickly. :)  Are there any
> provisions for redirecting these errors into a page element?  Or

There is a console for logging, but this is intended for debugging purposes.

> is there a way to prevent the alert boxes from coming up?  I just want
> to eliminate the model alerts because it's very difficult to do
> anything with your browser at that point. :)

You would have to create model subclasses without alerts. There is
currently no other way to accomplish that. I admit, though, that this is
an interesting idea. So if you really care, contributions are always
welcome.

Regards,
Andreas.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
Ryan Moquin

Re: Question about mapbuilder timers and network failures

Reply Threaded More More options
Print post
Permalink
If I can get some time, maybe I'll look into it.  It would be nice from a UI perspective because otherwise, as I mentioned, the UI will become completely unusable if at any point a problem occurs with refreshing features.  If I am able to, I'll submit you the code so you can check it out.

On Feb 12, 2008 3:28 PM, Andreas Hocevar <[hidden email]> wrote:
Hi,

Ryan Moquin wrote:
> I love the timers that can be used for loading mapbuilder features.  I
> did run into a problem though, in the event that an unexpected error
> occurs, that can't be accounted for.... an alert box is displayed in
> the browser, which of course blocks the UI.  This is a real nightmare
> for features that you are updating very quickly. :)  Are there any
> provisions for redirecting these errors into a page element?  Or

There is a console for logging, but this is intended for debugging purposes.

> is there a way to prevent the alert boxes from coming up?  I just want
> to eliminate the model alerts because it's very difficult to do
> anything with your browser at that point. :)

You would have to create model subclasses without alerts. There is
currently no other way to accomplish that. I admit, though, that this is
an interesting idea. So if you really care, contributions are always
welcome.

Regards,
Andreas.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users