Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I'm seeing a weird issue when I edit raw html on a page layout. I can add a style= attribute to a div tag, that works. But later if I edit the page layout and try to add a semi-colon and second attribute to the same style=, the page refuses to post back. See video. https://www.screencast.com/t/6GxkaiWFSwlD
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Yes, this is because we have applied validation on the layout HTML source code to avoid any unwanted code script to be executed in the cshtml file.
Instead of inline styling in layout HTML, you should use classes and add the styles in .css file.
Note: In my case, it shows a proper error message. I am not sure why it is not displaying the proper error message in your case. Can you please test in another browser because I have noticed that you have recently posted a few issues related to validation messages not being displayed? I wonder if there is something weird about your current browser.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I'm using Chrome. Just tested and seeing same issue in Firefox.
I'm just using latest Chrome on Windows 10 Pro and Visual Studio 2019 with Resharper. Pretty standard setup.
What I did was edit page layout first and add the background: white part. Then saved, did something elsewhere, then came back and edited it again. Maybe that's the steps to reproduce?
You're right I was trying to take a shortcut and fix the issue quickly with the CSS. I'll edit the CSS in the theme and remove the change in the page layout.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
OK, Thanks for the test.
The original issue will be resolved by using the styles from the .css file.
|
1 user thanked shaharyar for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close