Hi I'm trying to do some kind of Include For JavaScript.
Take a Look:
function include(path, file, type)
{
var head = document.getElementsByTagName('head')[0].firstChild;
var result = false;
for(head; head != null; head = head.nextSibling)
{
if((type == "script")||(type == "css"))
{...
Hi,
There are some validations on my JavaScript code I prefer to do on input-text's "onchange";
The validation is ok, but when something is wrong I run an alert and should turn the focus for this.focus();
But, the this.focus() doesn't work and the validated control lost the focus;
Like...
this way, the code:
function carregar(procedure, inicio){
setTimeout("cCarregar()",2000);
.
.
$.ajax ...
}
would wait 2 sec to be started correct?
But, there is a problem... I can't define 2 sec, because I don't know if It is 2 sec or 10 sec. It depends of the data to be...
Hi there, I have a cole like this:
function cCarregar(){
var div = document.createElement('div');
div.id = 'backCarrega';
div.className = 'back';
document.getElementById('lpDivs').appendChild(div);
var img = document.createElement('input');
img.type = 'image'...
Hello, I need your help please.
Do you know if there is any way to make a JavaScript function from a String.
For Example:
Here, there is a code of a function in the sString variable.
var sString = "function(){ alert('test'); }";
The Problem is here.
Is there any way to run the function in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.