ID conflict

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

ID conflict

Post by spoon » Sun May 19, 2019 9:46 am

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?

User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 9:58 am

This ID is automatically generated when you add breakpoints, and 'keep inline styles is' disabled.

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 10:08 am


User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 10:29 am

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.

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 10:45 am


User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 11:19 am

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?

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 11:38 am


User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 11:57 am

These IDs are generated because you have enabled the option
Optimize inline styles (move inline styles to the style sheet)
in Tools -> Options -> HTML

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 12:06 pm

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>

User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 12:18 pm

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 ".

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 12:22 pm

It turns out so or ID, or style in html markup?

User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 12:25 pm

I'm sorry, can yo please more specific?

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 12:38 pm

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>

User avatar
Pablo
 
Posts: 18412
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo » Sun May 19, 2019 12:50 pm

I do not see the duplicated IDs in your project.
Where exactly do I need to look exactly?

User avatar
spoon
 
 
Posts: 116
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon » Sun May 19, 2019 1:07 pm

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))

Post Reply