Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. breaststroke

    $("#button[i]").click(function(){, could work?

    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...
  2. breaststroke

    orderring the elements of an array

    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...
  3. breaststroke

    crypt gives the same result

    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...
  4. breaststroke

    sending e-mails through a WHILE loop with Phpmailer fails (only one is sent)

    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...
  5. breaststroke

    duration property of a video

    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...
  6. breaststroke

    javascript scripts make my pages take a long time to get loaded

    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...
  7. breaststroke

    script for longpolling on ajax ,for a chat

    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...
  8. breaststroke

    e-mails not sent

    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...
  9. breaststroke

    &lt;pre&gt;&lt;/pre&gt; doesn't consider wordwrap spaces

    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...
  10. breaststroke

    passing javascript variables through hidden input

    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...

Part and Inventory Search

Back
Top