Help dynamically accessing properties in html |
Post Reply |
Author | ||
Samyoue
Newbie Joined: Feb 25 2017 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: Feb 25 2017 at 10:47pm |
|
Hi I'm creating an element which is populated by an object property defined in the editor, got everything just about working I think except whenever I access a property within a loop it seems to add a newline after it
Eg. The property value is
But what is written into the html is this
As its mid HTML tag its causing errors... I'll try to get an actual code snippet posted later (away from pc atm) but any ideas? Thanks for any help, Sam |
||
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
|
Hi,
I'ts a bug fixed in the latest beta version which you can alreayd use - with caution, I am fixing newly detected bugs at the moment, but for most project it seems operational. http://forum.openelement.com/en/forum_posts.asp?TID=996&PID=4734&title=english#4734 Make sure to back up your projects and elements. Do you plan to share your element? |
||
Samyoue
Newbie Joined: Feb 25 2017 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
|
Thanks, that solved it... also seems to be a bug in dynamically generated tables having border spacing preset and I can't seem to override it... Yes I'm planning on sharing it when its finished - its going to be a Tab element on a side note, I'm struggling with containers - I'm after Accordion style generated containers but can't seem to get it working... any help on this would be greatly appreciated Sam
|
||
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
|
Could you please provide more details on the border spacing issue? I don't see at all what you mean.
Working with containers in OE may get difficult. I am not sure that Element Editor allows more than one container per element, though normally it should. What you can try in any case, is to ask user to put Groups of Elements inside your element, a little like in my RespPanel element (you can find it in SensBlack and SensWhite templates and look how it is made). Like this, users will be able to use their existing Groups, and choose for EACH Group whether its elements are positioned "absolute" or "relative". then you can use CSS and JS scripts to control the display of these Groups. |
||
Samyoue
Newbie Joined: Feb 25 2017 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
|
I'll look into the groups idea and your reps panel later, cheers, Sam
|
||
Dmit OE
Admin Group Joined: May 31 2012 Status: Offline Points: 5283 |
Post Options
Thanks(0)
|
|
You have space before px; try this:
<table cellspacing="10" style="border-spacing:0; ....> |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |