≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Id in generated code inside divs
Posted by:
(you are not logged in)
Enter the missing letter in: "Internati?nal"
(you are not logged in)
Text:
[quote][b]rsifontes[/b] wrote: 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: [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> [/code] 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. [b]Suggestion:[/b] 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.[/quote]
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