window and document are just the global objects provided by the browser, 
no magic involved :)


Regards,
Daniel

On 08/16/2011 05:05 PM, Norbert Schröder wrote:
> Hi Daniel,
>
> I've copied your solution into my application - and yes, it works!! I'm
> using a timeout within a "changeHtml" event listener like so:
>
> htmlWidget.addListener("changeHtml", function(e)
> {
>     window.setTimeout(function()
>     {
>       var selection = document.getElementById("selection");
>       qx.bom.element.Scroll.intoView(selection);
>     }, 0);
> }, this);
>
> BTW: I just recently stumbled upon the "window" object (I found it in
> one of those code snippets on the mailing list), and now it's the
> "document" which puzzles me a bit. Where do these objects "come from"? I
> must admit that the entire low-level, DOM-related stuff in qooxdoo is
> still kind of a mystery to me...
>
> Thanks a lot,
>
>     Norbert
>
> Am 16.08.2011 16:44, schrieb Daniel Wagner:
>> Hi Norbert,
>>
>> that's really strange. It works for me in Opera 11 (same browser Thomas
>> was using) but not in FF5 or Chromium 16 - except if I copy the code
>> into an application skeleton. Could you try that, please?
>>
>>
>> Regards,
>> Daniel
>>
>> On 08/16/2011 04:05 PM, Norbert Schröder wrote:
>>> Thank you, Thomas. Unfortunately, the solution doesn't work in my
>>> browsers. I've tried
>>>
>>> FF 5.0
>>> Chrome 13.0
>>> Safari 4.0
>>>
>>> When I press the button in any of these browsers, nothing happens, no
>>> scrolling, no error message. Am I missing something?
>>>
>>> Norbert
>>>
>>>
>>> Am 16.08.2011 15:29, schrieb thron7:
>>>> I hope this answers your question:
>>>>
>>>> http://tinyurl.com/3tuc45q
>>>>
>>>> It's very simple but works in the Playground. The span is just located
>>>> over the entire document, and qx.bom.element.Scroll.intoView() is
>>>> passed the duty of finding the enclosing scroll container.
>>>>
>>>> Daniel and I fixed the functionality to a button. If you want it
>>>> automatically with the appearing of the embed widget, it might be a
>>>> bit tricky to find the right point in time when the HTML is actually
>>>> rendered (We tried to hook it at your "changeHtml" listener, but this
>>>> is too early; try the "appear" event, potentially using
>>>> addListenerOnce to avoid an endless loop).
>>>>
>>>> T.
>>>>
>>>> On 08/16/2011 02:30 PM, Norbert Schröder wrote:
>>>>> Ok, here you go: http://tinyurl.com/3f8eqhq*
>>>>>
>>>>>
>>>>> *Am 16.08.2011 12:53, schrieb thron7:
>>>>>> Norbert, could you put up a little Playground example that showcases
>>>>>> what you want to do. That would be easier to work with.
>>>>>>
>>>>>> T.
>>>>>>
>>>>>> On 08/16/2011 09:59 AM, Norbert Schröder wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> can anybody help me with qx.ui.embed.Html and scrolling? My scenario is
>>>>>>> this:
>>>>>>>
>>>>>>> I have some HTML-formatted text which I load into a qx.ui.embed.Html
>>>>>>> widget via setHtml. Within this text there is a<span>     tag with an ID
>>>>>>> which I would like to scroll into view after the text has been loaded.
>>>>>>>
>>>>>>> How do I do that?
>>>>>>>
>>>>>>> I know how to achieve this kind of scrolling with a qx.ui.embed.HtmlArea
>>>>>>> but since this widget does not seem to support some kind of readOnly
>>>>>>> state (setEditable(false) still doesn't work) I want to switch to
>>>>>>> qx.ui.embed.Html.
>>>>>>>
>>>>>>>        Norbert
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> uberSVN's rich system and user administration capabilities and model
>>>>>>> configuration take the hassle out of deploying and managing Subversion 
>>>>>>> and
>>>>>>> the tools developers use with it. Learn more about uberSVN and get a 
>>>>>>> free
>>>>>>> download at:http://p.sf.net/sfu/wandisco-dev2dev
>>>>>>> _______________________________________________
>>>>>>> qooxdoo-devel mailing list
>>>>>>> qooxdoo-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>>>
>>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> uberSVN's rich system and user administration capabilities and model
>>>>>> configuration take the hassle out of deploying and managing Subversion 
>>>>>> and
>>>>>> the tools developers use with it. Learn more about uberSVN and get a free
>>>>>> download at:http://p.sf.net/sfu/wandisco-dev2dev
>>>>>> _______________________________________________
>>>>>> qooxdoo-devel mailing list
>>>>>> qooxdoo-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> uberSVN's rich system and user administration capabilities and model
>>>>> configuration take the hassle out of deploying and managing Subversion and
>>>>> the tools developers use with it. Learn more about uberSVN and get a free
>>>>> download at:http://p.sf.net/sfu/wandisco-dev2dev
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> qooxdoo-devel mailing list
>>>>> qooxdoo-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> uberSVN's rich system and user administration capabilities and model
>>>> configuration take the hassle out of deploying and managing Subversion and
>>>> the tools developers use with it. Learn more about uberSVN and get a free
>>>> download at:http://p.sf.net/sfu/wandisco-dev2dev
>>>>
>>>>
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> qooxdoo-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> uberSVN's rich system and user administration capabilities and model
>>> configuration take the hassle out of deploying and managing Subversion and
>>> the tools developers use with it. Learn more about uberSVN and get a free
>>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>>>
>>>
>>>
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> qooxdoo-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> ------------------------------------------------------------------------------
>> uberSVN's rich system and user administration capabilities and model
>> configuration take the hassle out of deploying and managing Subversion and
>> the tools developers use with it. Learn more about uberSVN and get a free
>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> qooxdoo-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to