Programmatically scroll a web area

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Programmatically scroll a web area

4D Tech mailing list
Stupid question I hope --

I'm displaying a PDF in a web area (4D 15.4/Mac) but the web area always scrolls to the end of the document when it initially displays.

How can I have it display at the start of the PDF (scroll bar all the way to the top)?
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Programmatically scroll a web area

4D Tech mailing list
maybe -
Post Key - Home or command/control Home

> Stupid question I hope --
>
> I'm displaying a PDF in a web area (4D 15.4/Mac) but the web area
> always scrolls to the end of the document when it initially displays.
>
> How can I have it display at the start of the PDF (scroll bar all the
> way to the top)?
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[hidden email]
> **********************************************************************
------------
Hell is other people
     Jean-Paul Sartre
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Programmatically scroll a web area

4D Tech mailing list
Just tried that... no luck. Also tried from a timer that fires shortly after the form loads.

Jeff

> On Jun 11, 2017, at 2:49 PM, Chip Scheide <[hidden email]> wrote:
>
> maybe -
> Post Key - Home or command/control Home
>
>> Stupid question I hope --
>>
>> I'm displaying a PDF in a web area (4D 15.4/Mac) but the web area
>> always scrolls to the end of the document when it initially displays.
>>
>> How can I have it display at the start of the PDF (scroll bar all the
>> way to the top)?
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Programmatically scroll a web area

4D Tech mailing list
We do this all the time and don't see this issue. Mind you we never deployed with v15. What works for us with at least v12-14 and v16R2 is to use an internal webarea and open a blank URL first before opening the path to the PDF, i.e.

WA OPEN URL(*;"webarea_name";"about:blank")
WA OPEN URL(*;"webarea_name";<full path to PDF>)

This is also using the built-in Preview viewer rather than Adobe or some other viewer.

cheers
J

On 12 Jun 2017, at 5:00 am, Jeffrey Kain via 4D_Tech <[hidden email]> wrote:

>
> Just tried that... no luck. Also tried from a timer that fires shortly after the form loads.
>
> Jeff
>
>> On Jun 11, 2017, at 2:49 PM, Chip Scheide <[hidden email]> wrote:
>>
>> maybe -
>> Post Key - Home or command/control Home
>>
>>> Stupid question I hope --
>>>
>>> I'm displaying a PDF in a web area (4D 15.4/Mac) but the web area
>>> always scrolls to the end of the document when it initially displays.
>>>
>>> How can I have it display at the start of the PDF (scroll bar all the
>>> way to the top)?
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[hidden email]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[hidden email]
**********************************************************************
Loading...