Scaling webpages

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Scaling webpages

Post by jsburnett » Thu Dec 12, 2024 7:38 pm

Hi,

Whats the best way to scale websites/pages in Widge Browser. I use the scale function. Not sure where or how to use the lock screen to keep the transition - loading, finnish load a page all smooth. The Scale Function seems to do so, change the scale of the page, after it finnishes loading.

I have tried:
lock screen
put 0.7 into v
put "var des=document.body.style; des.transformOrigin='0 0';" into js
put "des.transform='scale(" & v & ")';" & \
"des.WebkitTransform='scale(" & v & ")';" after js
do js in widget "Browser"

I have tried using a script with the browserDocumentLoadBegin pURL that starts with lock screen.
I have tried putting lock screen in a button on my app that uses the browser and changes the url of the browser and it changes scale from 100 to 70 - without the benefit of 'lock screen'.

Any thoughts.
John

jsburnett
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 121
Joined: Fri Mar 09, 2007 9:47 pm

Re: Scaling webpages

Post by jsburnett » Mon Dec 30, 2024 4:20 pm

Hi,
Hope all celebrating, are having a great month.
Was able to spend time with family, and had a great time.

Was playing with this problem, on/off.

Stumbled on a solution.

Used the Geometry Manager - and now when I resize the stack that makes up the browser, the web page displayed on the browser is resized.

This works for me.

Now I want to learn how to use the messages and properties of the 'Browser' as under the dictionary 'browser'.

till next question ...
John

Post Reply

Return to “Internet”