www.webdeveloper.com

Search:

Type: Posts; User: proj

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    303

    Wifi gear for a farm

    Hey,

    I'm helping a farmer to set up a wifi connection on his farm. Right now i need to connect two buildings, about 500 metres apart, to transmit low res video (resolution ~640x480) from some...
  2. Just use the functions I gave you and it will...

    Just use the functions I gave you and it will work fine. You should also get som kind of javascript debugger that points out errors in your code. Modified below to give an alert on dates before next...
  3. Since valiDate is called from within compareDate...

    Since valiDate is called from within compareDate you don't need to call valiDate at all. Just send the user input to compareDate as I did above and it will work.

    Change your code like this and...
  4. Wow, that is a lot of else if's... First of all,...

    Wow, that is a lot of else if's... First of all, it is almost always better to compare the user input with what you want it to look like, not with what you don't want it to look like. Take this...
  5. Seems like the BB code removed the backspace in...

    Seems like the BB code removed the backspace in my regular expression. The validate function should look like this:



    function valiDate(userInputDate){
    var...
  6. If "cardexp" is the id of the textbox you could...

    If "cardexp" is the id of the textbox you could do:



    if (compareDate(document.getElementById('cardexp').value)){
    // compareDate returns true, do sum awsm stuffz
    alert("You entered a valid...
  7. A simple solution would be to split the user...

    A simple solution would be to split the user input string into month and year and compare the two with the current date, like this:



    function compareDate(userInput){
    var currentDate = new...
  8. Thread: Function Question

    by proj
    Replies
    6
    Views
    671

    Your code almost works, but you have to read up...

    Your code almost works, but you have to read up on functions and how they work. If you define a variable inside a function, it will only work locally, in that function. Therefore:


    greet(who1);...
  9. Thread: Function Question

    by proj
    Replies
    6
    Views
    671

    It's not PHP. It's javascript code with a PHP...

    It's not PHP. It's javascript code with a PHP "color scheme". Try it out. :)
  10. Thread: Function Question

    by proj
    Replies
    6
    Views
    671

    Hi Amber! Here's a short script that prompts...

    Hi Amber!

    Here's a short script that prompts for first and last name and prints it on the page. Is this what you are looking for?



    function getName(){
    firstName = prompt("Please tell me...
  11. MooTools: Fire function in child-class on blur + evaluation of obj oriented code

    I am trying to learn MooTools and object oriented programming while working on a small textbox aoutocomplete project. The idea is as follows:

    On keyUp event, an Ajax request is sent to a php-page...
Results 1 to 11 of 11
HTML5 Development Center



Recent Articles