Reload and hide

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Reload and hide

Post by SergeFog »

Is it possible by an "events" to reload a page and then hide a text?
User avatar
Pablo
 
Posts: 22430
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reload and hide

Post by Pablo »

You can reload the page with events, but you cannot change the state of an element after the page has been reloaded.
But why do you need to reload the page to hide an element?
User avatar
jerryco
 
 
Posts: 873
Joined: Fri Mar 27, 2009 2:42 pm
Location: Purmerend, Holland

Re: Reload and hide

Post by jerryco »

Can't you just clone the page and redirect to it with the element out?
// Love is the acceptance of nothing / Account age is no guarantee of efficiency ;-) ->

Above, Beyond, and @wwonderfull! <- Genuinely helps you with a powered up site that counts! Four Times Excellence!
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Reload and hide

Post by SergeFog »

In the page I have 3 texts of which 2 are hidden.
If I raise the text present on the page upwards, and hide the text so that I can see another text, this text is also upwards and not at its beginning.
I tried reloading the page and then changing the text to "hide" and "show", but it didn't work.
In my site there are hundreds of pages thus constructed (3 texts or more).
User avatar
Pablo
 
Posts: 22430
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Reload and hide

Post by Pablo »

Sorry, but I still do not understand what you are trying to do.
Why do you need to reload the page?
if you use events to show / hide an element and reload the page, then the browser will not remember the previous state of the element.
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Reload and hide

Post by crispy68 »

Are the text objects layered (or on top) of each other? Can you explain more of the set up and what you are wanting to happen from a user end?
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Reload and hide

Post by SergeFog »

There is a "layer" at the top of the page with a "CSS Menu".
Below the layer there are three texts.
In the menu, there are "Events" which hide two texts and make the third text appear.
The texts have between three lines and several dozen lines.
If the visible text is scrolled, the hidden texts also go up. And when changing text the new text is not on its first line.
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Reload and hide

Post by crispy68 »

Can you upload a demo so we can see what is doing?

So the text is not in any container? Are they on top of each other? next to each other? stacked? So what is supposed to happen? Are there 3 different menu buttons where each button shows a text block and the other 2 are hidden? Still not clear on what you are trying to do.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Reload and hide

Post by SergeFog »

https://www.dropbox.com/s/to1d8xsipvr0bmp/TEST.wbs?dl=0

Scroll up the text, and then change the text.
The new text is not on the first line.
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Reload and hide

Post by crispy68 »

Your layout works as intended and is correct.

The text blocks are using absolute positioning and are outside of the layer which is using fixed positioning to the top. The only way to make the text appear below your menu is the text also needs to use fixed positioning or they need to be inside the same layer(container) as the menu. The way you have it set up it won't work.

For example, if you want the text blocks to stay fixed to the top below the menu, you would need to add some CSS:

Code: Select all

<style>
#wb_Text1,#wb_Text2,#wb_Text3{position:fixed !important;top:30px !important;left:50% !important;transform:translateX(-50%);}
</style>
Note: You can remove the "!important" from the code above you if go to Tools --> Options --> HTML --> and check Optimize inline styles

However, the problem you may have is that your longer text is going to overlap content below when it is shown. Are you expecting the content below to move up and down to give space for your text blocks? If so, then you will need to look at a floating layout instead using grids.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Reload and hide

Post by SergeFog »

I have never used a code.
How do I proceed
User avatar
crispy68
 
 
Posts: 2912
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Reload and hide

Post by crispy68 »

You can either use a html object or add it to the page html under page properties and place between the <head> tags.
Post Reply