Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Id in generated code inside divs

Registered User
2022-05-31 17:42:56


I droped a div into the editor and change its Id to "div_totalPagar". The div only contains the text "TOTAL A PAGAR:" inside of it.
Rocket cake generate this code:

<div id="div_totalPagar">
<div id="div_totalPagar_padding" >
<div class="textstyle2">
<div id="text_50c99fc5">
<div class="textstyle2">
<span class="textstyle3">TOTAL A PAGAR: </span>
<div style="clear:both"></div>

Now, using Ajax I need to change innerHtml of div_totalPagar.
It works, but the style applied to the text is lost!
For now, I copy/paste the RC generated code and merge it with the Ajax response to maintain the styles.

Suggestion: all the elements inside a div must have its own id in order to use it and apply actions on the respective element.
In this case, for example, the span must have an id and I could use it to apply innerhtml without lost the styles made with RC (wich is its Excelent function: firstly frontend design).

Maybe it is not for regular users of Rocket Cake, but for the rest (like me) who applies a little more advance functions would be helpfull and time saving.

Registered User
2022-06-01 07:03:47

Voted up!

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "?nternational" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact