ID conflict

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
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

ID conflict

Post 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?
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo »

This ID is automatically generated when you add breakpoints, and 'keep inline styles is' disabled.
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon »

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

Re: ID conflict

Post 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.
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon »

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

Re: ID conflict

Post 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?
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon »

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

Re: ID conflict

Post 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
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post 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>
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post 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 ".
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post by spoon »

It turns out so or ID, or style in html markup?
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo »

I'm sorry, can yo please more specific?
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post 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>
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post by Pablo »

I do not see the duplicated IDs in your project.
Where exactly do I need to look exactly?
User avatar
spoon
 
 
Posts: 96
Joined: Thu Oct 26, 2017 9:23 am

Re: ID conflict

Post 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))
User avatar
Pablo
 
Posts: 21573
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: ID conflict

Post 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!
Post Reply