• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing an element in the dom

#1
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 add somewhere in _configure_output. But I don't want to modify the core code. 

Is there a better way to do this? 


Attached Files Thumbnail(s)
   
proof that an old dog can learn new tricks
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.