Page 1 of 1

ID conflict

Posted: Sun May 19, 2019 9:46 am
by spoon
Hello, there was a problem with loading content from one page to another. On page 2 there is a text, id = "wb_uid" is automatically assigned to it, when I load the data from page 2 to page 1 then a conflict id = "wb_uid" occurs. What should I do?

Re: ID conflict

Posted: Sun May 19, 2019 9:58 am
by Pablo
This ID is automatically generated when you add breakpoints, and 'keep inline styles is' disabled.

Re: ID conflict

Posted: Sun May 19, 2019 10:08 am
by spoon

Re: ID conflict

Posted: Sun May 19, 2019 10:29 am
by Pablo
To be able to help you I need an example project.

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134

Also, I need to know exactly where to look to see the problem.

Re: ID conflict

Posted: Sun May 19, 2019 10:45 am
by spoon

Re: ID conflict

Posted: Sun May 19, 2019 11:19 am
by Pablo
What is the exact problem? Is there an error?
And what do I need to do to see the error?
Can you please be more specific?

Re: ID conflict

Posted: Sun May 19, 2019 11:38 am
by spoon

Re: ID conflict

Posted: Sun May 19, 2019 11:57 am
by Pablo
These IDs are generated because you have enabled the option
Optimize inline styles (move inline styles to the style sheet)
in Tools -> Options -> HTML

Re: ID conflict

Posted: Sun May 19, 2019 12:06 pm
by spoon
But then the styles are written in the html markup. This is not good.

Code: Select all

<span style = "color: # 000000; font-family: 'Lucida Console'; font-size: 13px;"> Trend PD / 39 </ span>

Re: ID conflict

Posted: Sun May 19, 2019 12:18 pm
by Pablo
To be able to move inline style to the header, the element needs an ID. That is why it's dynamically added when you enabled "Optimize inline styles ".

Re: ID conflict

Posted: Sun May 19, 2019 12:22 pm
by spoon
It turns out so or ID, or style in html markup?

Re: ID conflict

Posted: Sun May 19, 2019 12:25 pm
by Pablo
I'm sorry, can yo please more specific?

Re: ID conflict

Posted: Sun May 19, 2019 12:38 pm
by spoon
If you enable css "Optimize inline styles" then the ID is duplicated, if you disable "Optimize inline styles", then css styles are written in the html document, which is not very good.

If you disable "Optimize inline styles"

Code: Select all

<span style="color:#000000;font-family:'Lucida Console';font-size:13px;">Trend PD/39</span>
If you enable "Optimize inline styles" ID is duplicated as data is loaded from another page.:

Code: Select all

<spanid="wb_uid3">Trend PD/39</span>
<span id="wb_uid3">+ 1500 </span>

Re: ID conflict

Posted: Sun May 19, 2019 12:50 pm
by Pablo
I do not see the duplicated IDs in your project.
Where exactly do I need to look exactly?

Re: ID conflict

Posted: Sun May 19, 2019 1:07 pm
by spoon
Please watch the video, it is perfectly visible in the console.
Double IDs are created when the param.html page is loaded into the index.html due to the load () method.
The text "Trend PD / 39" on the index.html page has id = "wb_uid3" and the text "+1500" on the param.html page also has id = "wb_uid3" and when the param.html page is loaded at index.html then the text style "Trend PD / 39" inherits the text style "+1500".
I do not know how else to explain))

Re: ID conflict

Posted: Sun May 19, 2019 1:49 pm
by Pablo
But... this has nothing to do with WWB.
There is no way for the software to know that you are loading the page inside another page via a custom script!