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 Mike Lewis 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?

    Thank you again, to both of you. enjoy practicing languages at: www.sharinglanguage.com
  2. breaststroke

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

    Hello, Thank you for your contributions. jpadie, your script works like a charm. Trying to continue with what I was doing (originated by 1DMF, which syntax is a bit more accessible to me, at this point) I came to do the following: $('.button').click(function (e) { e.preventDefault()...
  3. breaststroke

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

    Hello, Thank you very much jpadie and 1DMF. The reason why I am using brackets is to be able to get the particular value of each element (the number of them is unknown-although there is a limit- and they come from a while loop). It didn't occur to me that I can use $(this) to be able to do so...
  4. breaststroke

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

    Hi, Thank you very much for your reply and all the information. I have to say that I had written the first script wrongly. Actually i had written it like you did: for( var i=0; i<6;i++){ $("#button[" + i + "]").click (function(){ .... }); }; I have changed something, following the...
  5. breaststroke

    $(&quot;#button[i]&quot;).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...
  6. breaststroke

    orderring the elements of an array

    Thank you enjoy practicing languages at: www.sharinglanguage.com
  7. breaststroke

    orderring the elements of an array

    Yes, it makes sense. I can make a new array stracting the first term from its elements, order it and then use array_search to find out what the position of each element is, in the new array, and order the former according to it. Thank you! enjoy practicing languages at: www.sharinglanguage.com
  8. breaststroke

    orderring the elements of an array

    Yes, it makes sense. I can make a new array stracting the first term from its elements and the use array_search to find out what the position of each element is, in the new array, and order the former according to it. Thank you! enjoy practicing languages at: www.sharinglanguage.com
  9. 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...
  10. breaststroke

    crypt gives the same result

    Thank you so much jpadie! enjoy practicing languages at: www.sharinglanguage.com
  11. breaststroke

    crypt gives the same result

    Thanks again jpadie, it seems like bcrypt is not supported by my PHP version (5.2), I´ll need to find something else. Or maybe I can add it as library? I don´t need anything very complex actually, but for instance I read bad opinions on md5. Regards enjoy practicing languages at...
  12. breaststroke

    crypt gives the same result

    Thank you so much jpadie!, I swear I checked the manual but didn´t see that (sure I didn´t check enough). I´ll try what you suggested Thanks a million enjoy practicing languages at: www.sharinglanguage.com
  13. 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...
  14. breaststroke

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

    I've found a solution, at least it has worked once. I had and have to do the following, when I do a query with Sregistros2, before the Update: if($reg=mysql_fetch_array($registros2)) since it belongs to $registros2. I hope it keeps working... enjoy practicing languages at...
  15. 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...
  16. breaststroke

    duration property of a video

    Thank you very much vacunita! enjoy practicing languages at: www.sharinglanguage.com
  17. 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...
  18. breaststroke

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

    Hi again, I don't think this thread is followed anymore, because it's quite old xd, but I wanted to post now because I think i have found the problem. As you suggested mmerlinn, and I suspected too, somehow, the problem was within the script with the timeOut. I have changed the following...
  19. breaststroke

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

    hi again, this is the script with the timeOut, which seems to be slowing the pages down. It works fine. the only proble may be that one. I am trying to find out what is wrong with it. I put it up here, just in case you can see anything wrong mmerlinn (or someone else;D): <script...
  20. breaststroke

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

    Hello again, thank you mmerlinn for your reply. how many questions!:) i think my pages are not that slow now. I think my computer has been slow these days, Now it takes less time for my pages to get loaded. But in despite of that I think they are getting loaded in more time than usuall. I even...

Part and Inventory Search

Back
Top