www.webdeveloper.com

Search:

Type: Posts; User: iBeZi

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. I feel like I might be missing something here......

    I feel like I might be missing something here... but can't you just set the select elements width using css so it doesn't take up as much space? The length of the individual options doesn't need to...
  2. Replies
    2
    Views
    470

    If you look at the DOM via element inspector when...

    If you look at the DOM via element inspector when you click the add attachment button you'll see a hidden file input appear at the bottom, which then disappears when the files have finished...
  3. Replies
    3
    Views
    2,417

    To achieve that you just need to create 3 div...

    To achieve that you just need to create 3 div elements, then use the background, width, height, position and top/left css styles to give the elements a background colour, give them a height/width so...
  4. You just need to put the hidden "sub menu" inside...

    You just need to put the hidden "sub menu" inside the li, then add a hover pseudo style to the li which affects the sub menu within it making it appear.



    <ul id="navul">
    <li class="navli">...
  5. Replies
    4
    Views
    803

    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";...
  6. Replies
    5
    Views
    995

    Using requestAnimationFrame might make things a...

    Using requestAnimationFrame might make things a little smoother



    <script>
    window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame ||...
  7. 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) {...
  8. Replies
    6
    Views
    903

    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...
  9. Replies
    14
    Views
    1,545

    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.
  10. Replies
    14
    Views
    1,545

    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...
  11. Replies
    6
    Views
    1,286

    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...
  12. Replies
    6
    Views
    3,278

    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...
  13. Thread: Javascript Date

    by iBeZi
    Replies
    2
    Views
    3,427

    This should work for you. #date...

    This should work for you.



    <style>
    #date {
    background: yellow;
    text-align: center;
    vertical-align: center;
    font-size: 20pt;
  14. Replies
    6
    Views
    3,278

    This should work as an alternative to...

    This should work as an alternative to NoEffinWay's solution



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

    Have you tried using the Google Chart APIs...

    Have you tried using the Google Chart APIs?
  16. 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.
    ...
  17. Replies
    7
    Views
    3,118

    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() {
    ...
  18. 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...
  19. Try debugging by outputting a message to the...

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



    console.log('message');
  20. 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...
  21. 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.
  22. Replies
    1
    Views
    1,410

    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...
  23. Replies
    5
    Views
    1,589

    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...
  24. 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...
  25. Replies
    4
    Views
    3,306

    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">
    ...
Results 1 to 25 of 99
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles