Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread EWB Application Embedded Into Static Web Page.
Sat, Sep 29 2018 8:37 PMPermanent Link

Steve Gill

Avatar

This may be more of a general issue than anything EWB specific.

I created a request form using EWB that is embedded into a static web page using an iFrame.  

It works perfectly...except...when the iFrame loads the page jumps to the location of the iFrame rather than displaying the top of the page.

Does anyone know of a way of preventing the jump to the iFrame?  I have googled iFrame attributes but haven't found anything that would prevent this.

Thanks.

= Steve
Tue, Oct 2 2018 3:32 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Steve,

<< I created a request form using EWB that is embedded into a static web page using an iFrame.  

It works perfectly...except...when the iFrame loads the page jumps to the location of the iFrame rather than displaying the top of the page. >>

It may be the EWB application grabbing the focus.  You can control this with this TApplication property:

https://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TApplication&prop=AutoFocus

I need to make this something that you can set at design-time, but for now just add this line in the application's source code:

  Application.LoadProgress := False; // already there
  Application.AutoFocus := False;

...more

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Oct 3 2018 2:57 AMPermanent Link

Steve Gill

Avatar

Hi Tim,

<< It may be the EWB application grabbing the focus.  You can control this with this TApplication property:

https://www.elevatesoft.com/manual?action=viewprop&id=ewb2&comp=TApplication&prop=AutoFocus

I need to make this something that you can set at design-time, but for now just add this line in the application's source code:

  Application.LoadProgress := False; // already there
  Application.AutoFocus := False;  >>

Worked perfectly.  Thank you - this was driving me nuts. Smile

= Steve
Image