Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (9 votes)

33% thumbs up 66% thumbs down

How would you rate this answer?



Thank you for rating this answer.

Can I grab the DevEdit control as a variable?

Yes. This will allow you to capture the entire contents of the JavaScript and HTML code that needs to be output to show the DevEdit control. Add this function to your de/class.devedit.php file and call it:

class DevEdit {

 ...

  function GetControl($Width, $Height, $ImagePath = '')
  {
   ob_start();
   $this->ShowControl($Width, $Height, $ImagePath);
   $output_result = ob_get_contents();
   ob_end_clean();
   return $output_result;
  }


}


You would call it like this:

$myDevEditVal = $myDE->GetControl("100%", "100%", "/images");

Then when you want to show the control, simply echo this value out:

echo $myDevEditVal;


Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software