www.webdeveloper.com

Search:

Type: Posts; User: MikeOS

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    2,931

    Date objects in JavaScript are reference types,...

    Date objects in JavaScript are reference types, so when you assign one date object to another variable all you’re doing is assigning the reference to the date object to that variable, so you end up...
  2. Your if statements are assignments not...

    Your if statements are assignments not comparisons using the equality operator, you currently have this for each of your if statements:

    if(option="plus")
    if(option="minus")...
  3. Replies
    1
    Views
    1,106

    The best thing to do would be to google...

    The best thing to do would be to google ‘WordPress Course’ or ‘WordPress Training’ then view courses that are currently on offer by training companies, see what they’re covering and in what order and...
  4. Replies
    6
    Views
    4,808

    To do this I would use a post test loop with...

    To do this I would use a post test loop with regular expressions like so:


    var userName, userNo, regEmployeeNo, regUserName, regWhiteSpace;

    regUserName = /^[a-z ]+$/i;
    regWhiteSpace =...
  5. Replies
    3
    Views
    4,521

    Try adding win.focus() to the end of your script.

    Try adding win.focus() to the end of your script.
  6. Replies
    3
    Views
    2,141

    Shockwave is right, you wouldn't use a while loop...

    Shockwave is right, you wouldn't use a while loop for this. The question I would ask though is how is the data being stored that you want to work with? If it's all in one string then a simple...
  7. var str="^This is a test. PIYRW-NKJDQ"; var...

    var str="^This is a test. PIYRW-NKJDQ";
    var patt1=/[A-Z]{5}-[A-Z]{5}$/g;
    document.write(str.match(patt1));

    Note the bold $ symbol, this indicates that the match much occur at the end of the...
  8. Replies
    2
    Views
    2,731

    I've made a few changes to your script. Here is...

    I've made a few changes to your script. Here is the main page:


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>...
  9. Replies
    2
    Views
    1,396

    Far from ideal but does the job: echo "

    Far from ideal but does the job:

    echo "<div class=links><a href=?p=5>[Members]</a>
    <form name='search' method='post' action='scripts/login.php' class=search>Criteria:
    <select id=searchdrop>...
  10. Replies
    1
    Views
    1,225

    http://www.w3schools.com/ - this is a website...

    http://www.w3schools.com/ - this is a website many recommend for tutorials, however I believe you're better off buying up to date books on the topic as most website tutorials are very dated.
  11. Thread: Computer object

    by MikeOS
    Replies
    2
    Views
    1,454

    First the object: function Computer(speed,...

    First the object:


    function Computer(speed, mem_live, mem_dead)
    {
    this.speed = speed;
    this.mem_live = mem_live;
    this.mem_dead = mem_dead;
    }
  12. Replies
    4
    Views
    2,303

    Are you sure the path to your validation script...

    Are you sure the path to your validation script is valid relative to the contact page?

    This is the path to the script from the contacts page by the looks of it:
    ...
  13. Replies
    1
    Views
    1,127

    At what point in the page life cycle do you want...

    At what point in the page life cycle do you want to catch it?
  14. Replies
    2
    Views
    2,773

    You need to provide much more information, show...

    You need to provide much more information, show us the script for starters.
  15. Replies
    2
    Views
    1,099

    Memory leaks for closures is really an IE problem...

    Memory leaks for closures is really an IE problem due to the different garbage collection routines used for jScript objects versus COM objects. Storing a scope in which an HTML element is stored...
  16. Replies
    4
    Views
    1,176

    Keep the page as simplistic and as small as...

    Keep the page as simplistic and as small as possible, make use of compression before deployment, and use caching where possible.
  17. Replies
    1
    Views
    1,259

    Why would using Visual Studio take more than four...

    Why would using Visual Studio take more than four weeks? Given the spec you've laid out it would be ideal in my view. You can automate the creation of a database that has user accounts, user/admin...
  18. If you want to stick to the design side, as it...

    If you want to stick to the design side, as it seems you do, then I'd go with HTML and CSS as suggested by cfajohnson. I'd add Dreamweaver to that as it tends to be favoured by designers, it's easy...
  19. Replies
    7
    Views
    1,516

    My pleasure from London :)

    My pleasure from London :)
  20. Replies
    7
    Views
    1,516

    Pass on object in the correct format to the...

    Pass on object in the correct format to the push() method instead:



    data = {items: new Array()};

    data.items.push({value: 'item1'});
    alert(data.items[0].value);
  21. Replies
    7
    Views
    1,516

    Remove the value property from my example code,...

    Remove the value property from my example code, just have:

    alert(data.items[0]);
  22. Thread: HTML Editor

    by MikeOS
    Replies
    15
    Views
    5,557

    You could get slightly more ambitious and try...

    You could get slightly more ambitious and try Visual Web Developer 2010 Express, it's free and so much more than a simple HTML editor.

    http://www.microsoft.com/express/Downloads/
  23. Replies
    7
    Views
    1,516

    data = {items: new Array()}; Now add items...

    data = {items: new Array()};

    Now add items when you need to using the push() method like so:


    data.items.push('item 1');
    data.items.push('item 2');
    data.items.push('item 3');
  24. Replies
    5
    Views
    2,186

    JavaScript:

    JavaScript:



    <script type="text/JavaScript">
    window.onload = function() {
    document.getElementById('searchInputBox').onfocus = function() { if (this.value == 'Search') this.value=''; };...
  25. Replies
    1
    Views
    1,198

    Well the simplest, but not the cleanest, solution...

    Well the simplest, but not the cleanest, solution would be to define your variables outside of the function so they’re available everywhere else in the page including other functions.



    var...
Results 1 to 25 of 155
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles