Events - move

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Events - move

Post by SergeFog »

In a "events button", the "move" function does not work.

Event: onclick
Action: move
target: the name of the text
left: 220
Top: 470

The target does not move.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Events - move

Post by Pablo »

It seems to work correct.

Note however that the context of the text may affect the functionality.
For example, if the text is part of a layout grid then the position/size is controlled by the grid so in that case using an event will not have any effect.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

The text is not part of a layout grid.
But the button is in a layer.
There is a layer docking on the top an another layer docking on the bottom.
User avatar
crispy68
 
 
Posts: 2737
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Events - move

Post by crispy68 »

Can you give a bit more info? You say the button is in a layer, so is the text in a layer too? Can you describe your exact setup otherwise we are just guessing.

I tried it myself and whether or not the button or text was placed inside a layer it worked. It didnt work in layout grid or flex container as Pablo mentioned.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

On the top of the page there is a docking layer with buttons.
On the bottom of the page there is docking layer with logo.
Between the layers there are dozens of "texts" that go up or down.

By pressing a button the text changes and another text becomes visible and is supposed to return to its initial place.
After pressing a button, the text changes but does not return to its initial place despite the move function.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Events - move

Post by Pablo »

To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

Test page: www.test.fogiel.co.il

On the page there is a "docking layer" at the top and a "docking layer" at the bottom' two rows of buttons and in the middle several texts
press a button and the text changes.
the problem is if you go up a text and then you change text, the new text will be at the height will be at the same height of the previous text.
The "MOVE" function should put all the texts back to their initial position.
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: Events - move

Post by BaconFries »

To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.
Can you please provide a copy of your project as mentioned above by this it is referring to the .wbs file not the url of the page!!. Just viewing the source (html) does not let us see or know what settings you have used.
Please see and read the following on sharing your project(.wbs)
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Events - move

Post by Pablo »

First, most of the names of the objects are invalid. This break the structure of the HTML page.
Please read this:
viewtopic.php?t=64868

Also, it it still unclear what you are trying to do.
There is too much content on the page to make any sense of it.

if you need help then please create a DEMO project with only the elements that are relevant to your question.
See also the FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

For example, create simple page with one element and one button then explain what needs to happen.
But first, fix the errors.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

https://www.dropbox.com/sh/8sv7i4uk0rp5 ... 8XPFa?dl=0
Here is a link to a simple example.
One pressing a button you change text.
If you roll a text up and change the text, the new text will not be in its original place.
A problem with the MOVE function.

The MOVE fonction is:
Event: onclick
Action: move
Target: text1 or 2 or 3 or 4
Lesft:50
Top 120
With the MOVE function each text must return to its initial position (Top-120).
But it remains in place of the previous text.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Events - move

Post by Pablo »

This is not what the 'move' option is for.
The Move action i events sets the absolute position of an element with the HTML document.
It is not intended as bookmark.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

is there a solution to make a change of texts and return to the initial position
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

Is there a possibility to change the location of a text or an image by pressing a button?
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Events - move

Post by Pablo »

Maybe what you are looking for is a bookmark?

This scrolls the page to the top of the page:

Image
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

With press a button I need to move a "text" to an other position in the page.
SergeFog
 
 
Posts: 159
Joined: Wed Apr 15, 2020 11:59 am

Re: Events - move

Post by SergeFog »

I need a possibility that when I press a button, a text or an image changes position in the page.
lummis
 
 
Posts: 211
Joined: Sun Apr 24, 2011 9:18 am
Location: UK

Re: Events - move

Post by lummis »

Depending on what you are trying to achieve you could clone the page that has the button and when the button is clicked link it to the new cloned page. On that page change the position of the text that you want moved and remove the button. That will give the appearance of the text being moved.
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Events - move

Post by Pablo »

You can use the 'move' action to move an element (when it has an absolute position). This works, also in your project.
I just do not understand why? I do not see the logic?

Also Note that in modern (responsive) layouts, using absolute coordinates is usually not the best solution.
Post Reply