Kirix Support Forums

Modifying DOM on the fly

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

Modifying DOM on the fly

Postby EzPresso on Sun Oct 25, 2009 5:51 pm

Hello,

How can I modify currently displayed DOM document? I tried it this way, but without any success:
Code: Select all
    wxDOMDocument doc1 = m_about->GetWebControl()->GetDOMDocument();
    wxDOMElement el1 = doc1.CreateElement( "p" );
    el1.SetAttribute( "class", "gray" );
    wxDOMText txt1 = doc1.CreateTextNode( "This is a sample text!" );
    el1.AppendChild( doc1 );
    doc1.AppendChild( el1 );

Is it possible?

Thanks,
Ilya
EzPresso
Registered User
 
Posts: 5
Joined: Fri Oct 16, 2009 5:32 am

Return to wxWebConnect Questions, Thoughts & Feedback