Both Perl's exec() function and system() function execute a system shell command. The big difference is that system() creates a fork process and waits to see if the command succeeds or fails - returning a value. exec() does not return anything, it simply executes the command. Neither of these commands should be used to capture the output of a system call. If your goal is to capture output, you should use the backtick operator:
Hi,
just get this simple n usefully javascript function that allow javascript to be execute under innerHTML from AJAX request.
original source: http://www.coderanch.com/t/117983/HTML-JavaScript/Execute-JavaScript-function-present-HTML
code:
function setAndExecute(divId, innerHTML)
{
var div = document.getElementById(divId);
div.innerHTML = innerHTML;
var x = div.getElementsByTagName("script");
for(var i=0;i
{
eval(x[i].text);
}
}
planning to resume my web base document viewer project.
basically it's a PDF viewer with indexing features that load specific page by request. so it'll reduce loading time.
current problem:
1. processing time. it'll take more than a minute to process/split a 8Mb pdf file. since it's web base... it will give a lot of headache.
2. uploading big file.
3. link between page... pdf will prompt 'invalid node' if link to the requested page fail.
hi all..
I've already pointing http://hairulmoktar.blogspot.com to http://blog.mbek.net
actually, pointing DNS for http://blog.mbek.net to blogspot server. hehhee...
like this better...