Categories > TinyButStrong general >

How to open htm or php with No Scrollbars, etc.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: RobN
Date: 2004-10-11
Time: 12:03

How to open htm or php with No Scrollbars, etc.

I want to load a template with a specific size and no scrollbars, etc.
With the '$ObjTBS->LoadTemplate("../html/xxxxxx.htm");' there is no possibility (I think).
When opening a pop-up (without TBS) it is possible with JS but can I get the same result with TBS?

Thanks for your help.
Rob
By: Skrol29
Date: 2004-10-11
Time: 12:19

Re: How to open htm or php with No Scrollbars, etc.

Hi,

This forum is made with TBS and has popup.

The opening mode for the url doesn't depend on TBS. You have to use JavaScript for popups. But you can open a popup on a templated page.
Example:
<a href="javascript:window.open('page.php?id=popup',...)">
By: RobN
Date: 2004-10-11
Time: 20:22

Re: How to open htm or php with No Scrollbars, etc.

Hi,

I am afraid I was not clear enough, so I got an answer I do not know how to use:
I have an editpage of MySql (not with TBS). In this page you can change the text and more. This page is one in a set of many and is to be shown in a specific size and without scrollbars, menu, etc. for a specific customer. Customer will change and have different sizes, etc.

Now I want to make it possible to view the page when changes have been made. Instead of going back to the listpage, I want to open the resultpage in the specific size, etc. To do this the information needs to be saved to MySql after which the resultpage is shown.

I want to use TBS to get info from the customer table where the size , etc. is stored, and show it, and the scrollbars=no, etc.

Hope this clarifies it a bit and that you can bake cookies from it.
Thanks again,
Rob
By: Skrol29
Date: 2004-10-12
Time: 02:15

Re: How to open htm or php with No Scrollbars, etc.

Hi,

You can use the Javascript method resizeTo() which applies to the window object. Placer on the OnLoad event, it can change the size of the windows when refreshed.

But this solution doesn't work for scrollbars, etc...

Another issue I can see, is to make a Javascript in the main Page that will open very small popup. This popup is a TBS dynamic page that uses Javascript to open the wanted User window with its options, and then close itself.