There is a Javascript code that displays the form <form ...> </ form> The problem is that this form code is not in the source code of the page ... tell me which commands hide it?

    3 answers 3

    Look at the source code in the debugger, for example, in the GoogleChrome or FireBug console, there you will see this form and you will be able to quickly and quickly understand where it comes from ...
    Actually, as an option, it is simply generated on the onload by javascript means, then you will not find it in the source, but on the page it will be vseravno :)

    • Generated on onclick event (addquestion) function code function addquestion () {catid = $ F ('smcatid'), itemid = $ F ('Itemid'); var url = smurl + 'addquestion & catid =' + catid + '& Itemid =' + itemid; statusElem = $ ID ('addquestion'); var d = statusElem.parentNode; jx.get (url, response); function response (data) {statusElem.style.visibility = 'hidden'; var f = d.appendChild (document.createElement ('div')); f.innerHTML = data; }} Tell me, maybe you know how to display this form in the code ... - StecAndrey

    There may be various options.

    1. The form code in the database.
    2. The form code in a separate file.
    3. Code form hidden base64

    These three points can be transmitted through both Ajax and Ahah.

    1. document.createElement('form');
    2. document.append('<form>');

    and another 100,500 options.

    • In any case, it is necessary to look in debager - Zowie

    Ajax can be loaded, the code shows: jx.get (url, response); function response (data) {statusElem.style.visibility = 'hidden'; var f = d.appendChild (document.createElement ('div')); f.innerHTML = data;