Hello,
I would like to know, please, if there is any reason why the following is not working (using the jQuery click function):
var i;
for(i=0; i<6;i++){
$("#button[i]").click(function(){
....
});
};
I am using a jquery API to make a post connection to a file in a third server (via the...
Hello!
I am not sure about what (and how) function to use to order the elements of an array.
I have an array whose elements are strings and these are like sentences. I would like to order it by alphabetical order of the first word after the first space.
For instance, if this is the array...
Hello,
it is the first time I use crypt function.
I just wanted to secure some data but nothing complicated.
I use it this way:
I retrieve a variable, for instance: $variable.
Then I create a salt everytime I want to encrypt some data.
So, I do this:
$newvalue=crypt($variable, $salt);
Then I...
Hello,
I have a problem involving Phpmailer and a While loop. Actually I have always had problems to sending emails this way. Now for instance I can send e-mails trough an IF (instead of While) and the following script works fine. But as soon as I change it into While it doesn't. Even the last...
Hi,
I am trying to figure out the following piece of code:
video = document.getElementById(""video"");
sap = video.duration / 4;
(sap > 20 ? console.log(""true"") : console.log(""false""));
I guess it talks about a video and its duration (in time).
Does it mean that it would display the...
Hello,
I am using several javascript functions on the pages of my website, in particular within two scripts. One of them is triggered by an event and has two fucntions within and the other has just one function.
I have realised that the pages take now quite a long time to get loaded. I know it...
Hello!
I am trying to use long polling on a chat based on Ajax.
I have found some examples on the web but it isn't really clear to me.
I have to make a query to my database in order to check whether there is some (new)messages or not. I understand th elogic of the long polling, but don't know...
Hello, I would really appreciate if I get some help on the following problem:
I have a script for sending emails through phpmailer.
I have tried changing several things, such us username and password of my mail server, limit at the SQL query, etc. After those changes I usually manage to send...
Hello,
I have an everlasting problem with my textareas.:(
I have a textarea input which inserts a text in my database.
This is okay.
The problem/s comes when I take that text out of the database and print it on the screen.
If I use the nl2br() function, I manage to "print" or respect the...
Hello, how are you!
I am working on php and trying to add some javascript code because I would like to get user's local timezone (GMT/UTC) and keep it in my database.
To do that I create a variable called GMT and try to pass it into another page through a form.
I have read something about...
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.