From: RobG on
On Jul 21, 4:33 am, David Mark <dmark.cins...(a)gmail.com> wrote:
[...]
> Another loop.  You can can't force a repaint, but you can't predict
> when they will happen either (your theory about waiting until the
> execution stack is exhausted is definitely wrong).

It may be a trivial example, but a repaint will generally occur when
an alert dialog is presented:

<script type="text/javascript">

window.onload = function(){
window.setTimeout(foo, 1000);
};

function foo() {
var i,
el = document.getElementById('d0'),
n = 10000,
s = 6;

while (s < 1000) {

// Show alert dialog at half way
if (s == 500) {
alert('redraw...');
}

el.style.fontSize = ++s + "pt";
i = n;

// Simulate doing stuff
while (i--) ;
}
};

</script>

<div id="d0"
style="color: green; vertical-align:top;">&#176;</div>


--
Rob
From: Andrew Poulos on
On 21/07/2010 12:44 PM, Garrett Smith wrote:
> On 2010-07-20 04:24 PM, David Mark wrote:
>> On Jul 20, 7:15 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>> On 2010-07-20 03:44 PM, David Mark wrote:
>>>> On Jul 20, 6:06 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>>> On 2010-07-20 12:24 PM, David Mark wrote:
>>>
>>>>>> On Jul 20, 3:15 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>>>>> On 2010-07-20 11:33 AM, David Mark wrote:
>>>
>>>>>>>> On Jul 20, 4:24 am, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>>>>>>> On 2010-07-19 11:57 PM, kangax wrote:
>>>
>>>>>>>>>> On 7/20/10 1:04 AM, Garrett Smith wrote:
>>>>>>>>>>> On 2010-07-19 06:52 PM, kangax wrote:
>>>>>>>>>>>> On 7/19/10 3:32 PM, Garrett Smith wrote:
>>>>>>>>>>>>> On 2010-07-19 12:29 AM, Ry Nohryb wrote:
>>>>>>>>>>>>>> On Jul 19, 9:04 am, Garrett Smith<dhtmlkitc...(a)gmail.com>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>> On 2010-07-18 10:51 PM, Ry Nohryb wrote:
>>>>>>>>>>>>>>> (...)
>>>
>>>>>>> [snip massive over quote]

Do you guys know how it reads when a js library that is being marketed
as something its not is rightly exposed as such and to then have a bunch
of js "experts" playing with and/or insulting each other? I'd say that
for the Sencha people it gives them sufficient grounds to not even
bother to refute any of the claims.

Andrew Poulos
From: David Mark on
On Jul 20, 11:02 pm, RobG <rg...(a)iinet.net.au> wrote:
> On Jul 21, 4:33 am, David Mark <dmark.cins...(a)gmail.com> wrote:
> [...]
>
> > Another loop.  You can can't force a repaint, but you can't predict
> > when they will happen either (your theory about waiting until the
> > execution stack is exhausted is definitely wrong).
>
> It may be a trivial example, but a repaint will generally occur when
> an alert dialog is presented:
>
> <script type="text/javascript">
>
> window.onload = function(){
>   window.setTimeout(foo, 1000);
>
> };
>
> function foo() {
>   var i,
>       el = document.getElementById('d0'),
>       n = 10000,
>       s = 6;
>
>   while (s < 1000) {
>
>     // Show alert dialog at half way
>     if (s == 500) {
>       alert('redraw...');
>     }
>
>     el.style.fontSize = ++s + "pt";
>     i = n;
>
>     // Simulate doing stuff
>     while (i--) ;
>   }
>
> };
>
> </script>
>
> <div id="d0"
>   style="color: green; vertical-align:top;">&#176;</div>
>

Yes. Calling a host methods (as opposed to native functions) doesn't
usually allow for that, but it makes sense that those that display
modal dialogs are an exception.
From: Garrett Smith on
On 2010-07-20 08:26 PM, Andrew Poulos wrote:
> On 21/07/2010 12:44 PM, Garrett Smith wrote:
>> On 2010-07-20 04:24 PM, David Mark wrote:
>>> On Jul 20, 7:15 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>> On 2010-07-20 03:44 PM, David Mark wrote:
>>>>> On Jul 20, 6:06 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>>>> On 2010-07-20 12:24 PM, David Mark wrote:
>>>>
>>>>>>> On Jul 20, 3:15 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>>>>>> On 2010-07-20 11:33 AM, David Mark wrote:
>>>>
>>>>>>>>> On Jul 20, 4:24 am, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
>>>>>>>>>> On 2010-07-19 11:57 PM, kangax wrote:
>>>>
>>>>>>>>>>> On 7/20/10 1:04 AM, Garrett Smith wrote:
>>>>>>>>>>>> On 2010-07-19 06:52 PM, kangax wrote:
>>>>>>>>>>>>> On 7/19/10 3:32 PM, Garrett Smith wrote:
>>>>>>>>>>>>>> On 2010-07-19 12:29 AM, Ry Nohryb wrote:
>>>>>>>>>>>>>>> On Jul 19, 9:04 am, Garrett Smith<dhtmlkitc...(a)gmail.com>
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>> On 2010-07-18 10:51 PM, Ry Nohryb wrote:
>>>>>>>>>>>>>>>> (...)
>>>>
>>>>>>>> [snip massive over quote]
>
> Do you guys know how it reads when a js library that is being marketed
> as something its not is rightly exposed as such and to then have a bunch
> of js "experts" playing with and/or insulting each other? I'd say that
> for the Sencha people it gives them sufficient grounds to not even
> bother to refute any of the claims.

No doubt.

Name-calling and downtalking others hurts technical discussion and hurts
the person doing those things probably much more than the intended
recipient of such insults.

Technical criticism littered with such mudslinging reduce the s/n ratio.
What's worse is that a non-technical observer might dismiss the
discussion as crazed zealotry.

I will publish an article on some of this stuff soon. It is the same
article I was going to publish three weeks ago. The article will contain
some of the things that I have posted here. Give me one more week.
--
Garret
From: David Mark on
On Jul 21, 4:46 pm, Garrett Smith <dhtmlkitc...(a)gmail.com> wrote:
> On 2010-07-20 08:26 PM, Andrew Poulos wrote:
>
>
>
>
>
> > On 21/07/2010 12:44 PM, Garrett Smith wrote:
> >> On 2010-07-20 04:24 PM, David Mark wrote:
> >>> On Jul 20, 7:15 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
> >>>> On 2010-07-20 03:44 PM, David Mark wrote:
> >>>>> On Jul 20, 6:06 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
> >>>>>> On 2010-07-20 12:24 PM, David Mark wrote:
>
> >>>>>>> On Jul 20, 3:15 pm, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
> >>>>>>>> On 2010-07-20 11:33 AM, David Mark wrote:
>
> >>>>>>>>> On Jul 20, 4:24 am, Garrett Smith<dhtmlkitc...(a)gmail.com> wrote:
> >>>>>>>>>> On 2010-07-19 11:57 PM, kangax wrote:
>
> >>>>>>>>>>> On 7/20/10 1:04 AM, Garrett Smith wrote:
> >>>>>>>>>>>> On 2010-07-19 06:52 PM, kangax wrote:
> >>>>>>>>>>>>> On 7/19/10 3:32 PM, Garrett Smith wrote:
> >>>>>>>>>>>>>> On 2010-07-19 12:29 AM, Ry Nohryb wrote:
> >>>>>>>>>>>>>>> On Jul 19, 9:04 am, Garrett Smith<dhtmlkitc...(a)gmail.com>
> >>>>>>>>>>>>>>> wrote:
> >>>>>>>>>>>>>>>> On 2010-07-18 10:51 PM, Ry Nohryb wrote:
> >>>>>>>>>>>>>>>> (...)
>
> >>>>>>>> [snip massive over quote]
>
> > Do you guys know how it reads when a js library that is being marketed
> > as something its not is rightly exposed as such and to then have a bunch
> > of js "experts" playing with and/or insulting each other? I'd say that
> > for the Sencha people it gives them sufficient grounds to not even
> > bother to refute any of the claims.
>
> No doubt.

I doubt whether that follow. But you do have a habit of burying
useful threads in confused nonsense, which then has to be sorted out,
else newcomers won't understand the original points.

>
> Name-calling and downtalking others hurts technical discussion and hurts
> the person doing those things probably much more than the intended
> recipient of such insults.

Yeah, so stop doing it. And don't bother posting back with one of
your innocent routines. Your modus operandi is well-known at this
point. You post thinly disguised attempts at insults, get called on
them and then whine and point fingers like a child.

>
> Technical criticism littered with such mudslinging reduce the s/n ratio.
> What's worse is that a non-technical observer might dismiss the
> discussion as crazed zealotry.

Good thing the lion's share of the useful information is in the first
message in the thread.

>
> I will publish an article on some of this stuff soon. It is the same
> article I was going to publish three weeks ago.

Yes, yes.

> The article will contain
> some of the things that I have posted here. Give me one more week.

Whatever.