ID conflict
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
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
- spoon
-
- Posts: 96
- Joined: Thu Oct 26, 2017 9:23 am
ID conflict
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?
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
This ID is automatically generated when you add breakpoints, and 'keep inline styles is' disabled.
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
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.
Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=82134
Also, I need to know exactly where to look to see the problem.
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
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?
And what do I need to do to see the error?
Can you please be more specific?
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
These IDs are generated because you have enabled the option
Optimize inline styles (move inline styles to the style sheet)
in Tools -> Options -> HTML
Optimize inline styles (move inline styles to the style sheet)
in Tools -> Options -> HTML
- spoon
-
- Posts: 96
- Joined: Thu Oct 26, 2017 9:23 am
Re: ID conflict
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>
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
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 ".
- spoon
-
- Posts: 96
- Joined: Thu Oct 26, 2017 9:23 am
Re: ID conflict
It turns out so or ID, or style in html markup?
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
I'm sorry, can yo please more specific?
- spoon
-
- Posts: 96
- Joined: Thu Oct 26, 2017 9:23 am
Re: ID conflict
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"
If you enable "Optimize inline styles" ID is duplicated as data is loaded from another page.:
If you disable "Optimize inline styles"
Code: Select all
<span style="color:#000000;font-family:'Lucida Console';font-size:13px;">Trend PD/39</span>
Code: Select all
<spanid="wb_uid3">Trend PD/39</span>
<span id="wb_uid3">+ 1500 </span>
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
I do not see the duplicated IDs in your project.
Where exactly do I need to look exactly?
Where exactly do I need to look exactly?
- spoon
-
- Posts: 96
- Joined: Thu Oct 26, 2017 9:23 am
Re: ID conflict
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))
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))
- Pablo
- Posts: 23616
- Joined: Sun Mar 28, 2004 12:00 pm
- Location: Europe
- Contact:
Re: ID conflict
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!
There is no way for the software to know that you are loading the page inside another page via a custom script!