[Sugar-devel] JavaScript on OLPC

Mike Dawson mikeofmanchester at gmail.com
Sat Jun 26 06:46:08 EDT 2010


Hi,

Actually with the alert function it will try and create a popup -
however this is generally pretty slow as it tries to create a new
window.  It's better to use DHTML or a library (like JQueryUI) to show
the alert.

If you want the application to work even for those who have an older
version of browse / no tabs etc. then you need to use frames / iframe.

Regards,

-Mike

On 26/06/2010, Lucian Branescu <lucian.branescu at gmail.com> wrote:
> Newer versions of Browse have support for tabs, but there is no UI
> element to create more tabs. However, windows created from JavaScript
> will appear as tabs.
>
> Not sure about alert, you might just have a really old Browse. What
> version is it?
>
> On 25 June 2010 19:32, Dan Healy <dfhealy at gmail.com> wrote:
>> I have a browser based application that works, sorta, on OLPC.  I find I
>> cannot have more than one browser page open at a time.  I cannot open a
>> second window and have two windows available at the same time.  Is that
>> correct or am I missing something?
>>
>> Also, in that same vein, the JavaScript alert function will not work.
>> When
>> I click a button that creates an alert on standard Firefox, nothing
>> happens.  Any ideas on how I can get around these problems?
>>
>> Thanks,
>>
>> Dan H.
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list