www.webdeveloper.com

Search:

Type: Posts; User: iBeZi

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    466

    While what tech_soul8 said is correct, this...

    While what tech_soul8 said is correct, this example is probably closer to replicating what JQuery is doing.



    <script>
    Element.prototype.width = function(val) {
    this.style.width = val+"px";...
  2. Replies
    5
    Views
    579

    Using requestAnimationFrame might make things a...

    Using requestAnimationFrame might make things a little smoother



    <script>
    window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame ||...
  3. You could just keep splicing the array until all...

    You could just keep splicing the array until all the items are in a secondary, now multidimensional, array



    <script>
    var arr = [1,2,3,4,5,6,7,8,9];
    var nArr = [];
    while(arr.length > 0) {...
  4. Replies
    6
    Views
    518

    This would probably be a better way to do it ...

    This would probably be a better way to do it



    <a href="#" id="toggle">Toggle</a>

    <div class="adiv" style="font:24px bold; display: none;">Question 1</div>
    <div class="adiv" style="font:24px...
  5. As far as I know checking the user agent is the...

    As far as I know checking the user agent is the only way of detecting the browser, it can be spoofed though so people can easily get past the check.
  6. You could check the user agent to work out which...

    You could check the user agent to work out which browsers being used, but it isn't 100% reliable.



    var chrome = /chrome/i.test(navigator.userAgent);
    if(!chrome) {
    //user probably isn't...
  7. Well an object in JavaScript acts like an...

    Well an object in JavaScript acts like an associative array, you create one using braces.



    var object = {};


    And you add items to it using dot notation if the key is a string or using...
  8. Replies
    6
    Views
    973

    The numbers aren't long enough (+ or 00 followed...

    The numbers aren't long enough (+ or 00 followed by a number in the range of 1-9 followed by 10-15 of any number).

    The first number is 00 followed by a number (5), followed by only 9 other...
  9. Thread: Javascript Date

    by iBeZi
    Replies
    2
    Views
    860

    This should work for you. #date...

    This should work for you.



    <style>
    #date {
    background: yellow;
    text-align: center;
    vertical-align: center;
    font-size: 20pt;
  10. Replies
    6
    Views
    973

    This should work as an alternative to...

    This should work as an alternative to NoEffinWay's solution



    /^(?:\+|00)[1-9][0-9]{10,15}$/
  11. Replies
    5
    Views
    1,767

    Have you tried using the Google Chart APIs...

    Have you tried using the Google Chart APIs?
  12. PHP is executed before the page is loaded,...

    PHP is executed before the page is loaded, JavaScript runs after the page has loaded. The PHP variable isn't kept on the client, what you've done there is use PHP to create a JavaScript variable.
    ...
  13. Replies
    7
    Views
    1,798

    Try using a HTML audio element and trigger the...

    Try using a HTML audio element and trigger the play function



    <audio src="sound.mp3" id="sound"/>

    <script language="javascript" type="text/javascript">
    function playSound() {
    ...
  14. jQuery You could use a regular expression to extract the...

    You could use a regular expression to extract the part that you need from the cell.



    var text = tablecell.text().match(/\/select> (.*)/)[1];


    Assuming that the text comes after the select...
  15. Try debugging by outputting a message to the...

    Try debugging by outputting a message to the console instead of using alerts



    console.log('message');
  16. You can access the objects name through...

    You can access the objects name through constructor property which contains the name of the object, then you can use the window object to create a new instance of the object



    function...
  17. jQuery You want to use the mousemove event instead of...

    You want to use the mousemove event instead of mouseover to keep track of where the mouse is.
  18. Replies
    1
    Views
    1,079

    The while loop makes no sense, for every...

    The while loop makes no sense, for every iteration of the loop you're adding a new event listener to the button listening for a click, you only need to do that once then check in the event function...
  19. Replies
    5
    Views
    1,425

    You can split that date string into the...

    You can split that date string into the individual numbers using the explode function



    $dateParts = explode("-",$v_CurrentRecordD['day']);
    $month = $dateParts[0];
    $day = $dateParts[1];
    $year...
  20. Touch events shouldn't cause the scrolling of the...

    Touch events shouldn't cause the scrolling of the page to slow down unless your preventing the default action when moving, I tested to see if there were any issues using this short script that...
  21. Replies
    4
    Views
    2,549

    Using a form with a file input which is then...

    Using a form with a file input which is then captured by PHP which moves the file into a folder



    <form method="post" enctype="multipart/form-data">
    <input type="file" name="resume">
    ...
  22. Replies
    3
    Views
    1,530

    The two areas enclosed in brackets tell the...

    The two areas enclosed in brackets tell the regular expression that you want to "capture" whatever appears inside the brackets.

    So the regular expression matches "400x300" as a whole, but then...
  23. PHP scripts will only work if the page they're on...

    PHP scripts will only work if the page they're on has the PHP extension, such as "index.php" and are being run on a server which supports PHP.

    You can install a local PHP server for testing PHP...
  24. It doesn't really make sense to do something like...

    It doesn't really make sense to do something like this using JavaScript, you should only use JavaScript for dynamic sections of a website that change while the user is viewing the page. It makes much...
  25. Replies
    2
    Views
    1,552

    There are loads of tools online that'll do this...

    There are loads of tools online that'll do this for you, such as http://procssor.com/
Results 1 to 25 of 95
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles