To get the HTML source code for the current page, you can use this Javascript snippet:
var htmlSource = document.getElementsByTagName('html')[0].innerHTML;
Another piece of information that you might want to keep is, of course, the current URL. You can send all this to the server using jQuery.post , for example
$.post("<?php echo CController::createUrl(...); ?>", { url: document.location.href, html: document.getElementsByTagName('html')[0].innerHTML, });
I do not think that you can do more than without any server-side helper that you can call. What function do you need specifically for this error reporting function?
source share