⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Transversing the DOM



richb201

richb201
  • profile picture
  • Member

Posted 05 January 2018 - 13:12 PM

I have a page where I want to change the text in the blue box from NONE to something else. I am using grocery crud and codeigniter simplicity. 
 
 

$output = $crud->render();
$dom=new DOMDocument();
$dom->loadHTML($output->output);
$dom->validateOnParse true;
$img_nodes=$dom->getElementById('myCamp');
$this->_configure_output($output)

 
My plan was to search through the HTML of the DOM and then modify the text of the HTML before output. But it seems that when I search ById, the $Output doesn't have the "Active Campaign:NONE" prepended to it yet.I guess it gets added somewhere during the _configure_output. But I don't want to modify the core code. 
 
Is there a better way to do this? One more additional point. I have not been able to get a javascript call back to work. I have tried  $crud->set_js($jsfile); but don' t know how to get the code in it to run. 

 

 


SarahBegley

SarahBegley
  • profile picture
  • Member

Posted 14 August 2018 - 14:15 PM

Persuasive essay is one of the most important things to know how to write. It can be useful both in student life and in adult life. Learn more about how to write such a things, - is to improve your skills not only in this field. But in whole everyday writing routine.