Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Id in generated code inside divs

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

Hi,

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>
</div>
</div>
<div style="clear:both"></div>
</div>
</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.


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

Voted up!


Create reply:


Posted by: (you are not logged in)


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


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






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