php - calling setTimeout from a form with quotes -


I have an html form for uploading files, which is as follows:

  $ Uploadhtml = htmlspecialchars (json_encode ("& lt; form action = 'up.php' method = 'post' enctype = 'multipart / form-data' & gt; & lt; label = 'file' & gt; filename: & Lt; / label & gt; input type = 'file' name = 'file' id = 'file' /> 
input type = 'hidden' name = 'pk' Value = '"$ pk."' & Gt; & lt; input type = 'hidden' name = 'username' value = '". $ USERNAME.' '& Gt; input type =' submit 'name =' Submit 'value =' Submit 'onclick = /> gt; & lt; / form & gt; "), ENT_QUOTES);

I would like to know that if it is possible to call the S etTimeout function to update a particular layer, then the following is as follows:

  onclick = "Settimeout (3) In the form of the argument" Update layer ("text", "FF", "OK"), '1250); " 

updateLayer Takes variable, how do I specify them in the form of parameters in quotes?

something like this:

  onclick = "setTimeout (function () {UpdateLayer ('text', 'ff', 'ok');}), 1250); " 

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -