User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:devel:prototype2jquery [2016/09/20 14:05]
joebordes
en:devel:prototype2jquery [2016/09/20 14:09] (current)
joebordes
Line 9: Line 9:
 |GET/SET content|<​code javascript>​$F('​id'​)</​code>​|<​code javascript>​jQuery("#​id"​).val()</​code>​| | |GET/SET content|<​code javascript>​$F('​id'​)</​code>​|<​code javascript>​jQuery("#​id"​).val()</​code>​| |
 | |<code javascript>​.innerHTML</​code>​|<​code javascript>​.html()</​code>​|<​code javascript>​document.getElementById(element).innerHTML</​code>​| | |<code javascript>​.innerHTML</​code>​|<​code javascript>​.html()</​code>​|<​code javascript>​document.getElementById(element).innerHTML</​code>​|
-| |<code javascript>​.update('​new content'​)</​code>​|<​code javascript>​.html('​new content'​)</​code>​|<​code javascript>​document.getElementById(element).innerHTML='​new_content';</​code>​|+| |<code javascript>​element.update('​new content'​)</​code>​|<​code javascript>​element.html('​new content'​)
 +vtlib_executeJavascriptInElement(document.getElementById(element));​</​code>​|<​code javascript>​document.getElementById(element).innerHTML='​new_content'​
 +vtlib_executeJavascriptInElement(document.getElementById(element));</​code>​|
 | |<code javascript>​.value = x</​code>​|<​code javascript>​.val(x)</​code>​| | | |<code javascript>​.value = x</​code>​|<​code javascript>​.val(x)</​code>​| |
 |Update style|<​code javascript>​.style.x = '​y'</​code>​|<​code javascript>​.css({ x: '​y'​ })</​code>​| |Update style|<​code javascript>​.style.x = '​y'</​code>​|<​code javascript>​.css({ x: '​y'​ })</​code>​|