dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: iBeZi

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. I did not know that, I'd kind of hope most people...

    I did not know that, I'd kind of hope most people would be moving away from ie8 and below now so hopefully it shouldn't be that big of an issue... still, handy to know, thanks
  2. Is indexOf being set anywhere, i.e. I'd expect...

    Is indexOf being set anywhere, i.e. I'd expect there to be something like this somewhere.



    var indexOf = [].indexOf;


    This seems like a really strange way of doing things though, I'm pretty...
  3. Thread: Page Reload

    by iBeZi
    Replies
    3
    Views
    572

    When doing what? The page won't just reload...

    When doing what? The page won't just reload itself...
  4. Replies
    2
    Views
    1,241

    Poll: Use the function name without brackets in the...

    Use the function name without brackets in the event listener.



    document.getElementById("lefter_left_arrow").addEventListener("click",ChangeScript);
    function ChangeScript() {
    var c4439 = "aa"...
  5. Thread: Regex help

    by iBeZi
    Replies
    5
    Views
    637

    Something like this? /sid=6$/

    Something like this?



    /sid=6$/
  6. Yeah that would fix it, you're probably actually...

    Yeah that would fix it, you're probably actually looking for the break statement rather than continue though which will stop the loop completely instead of skipping to the next iteration
  7. Your while loop is iterating until y = 3, the...

    Your while loop is iterating until y = 3, the "continue" is then telling the while loop to ignore everything below and carry on to the next iteration, so y never gets passed 3 and is always less than...
  8. jQuery And to do that encoding you can use...

    And to do that encoding you can use encodeURIComponent



    function get_action (form_element) {
    if ($("#project").val()) {
    var str = $("#project").val();
    ...
  9. Replies
    5
    Views
    936

    1. Does the file exist? 2. Are there any errors...

    1. Does the file exist?
    2. Are there any errors in the file you're including?
    3. Have you checked your error logs?
  10. Replies
    6
    Views
    1,134

    It hasn't and I'll be surprised if they bother...

    It hasn't and I'll be surprised if they bother fixing it for the next version of PHP, they're more likely to just deprecate the function and recommend people use the DateTime class since that already...
  11. Replies
    2
    Views
    577

    You need to tell it which database you want to...

    You need to tell it which database you want to select.



    mysqli_select_db($conn,$dbname) or die("Could not find database");
  12. Replies
    6
    Views
    1,134

    It's probably a good idea to start moving away...

    It's probably a good idea to start moving away from using the strtotime() function and start using DateTime, which is more powerful and isn't affected by the 2038 bug.
  13. Replies
    3
    Views
    656

    ~ is a bitwise operator, it performs a NOT...

    ~ is a bitwise operator, it performs a NOT operation on the bits found in the binary representation of a number and returns the decimal result. This will probably do a better job of explaining it...
  14. Replies
    2
    Views
    475

    There's quite a few, this one looks pretty good ...

    There's quite a few, this one looks pretty good

    https://regex101.com/
  15. Replies
    2
    Views
    491

    I'm going to assume that "e" is an event object...

    I'm going to assume that "e" is an event object passed into a function by an event listener...

    e.target isn't a string, it's a reference to whichever element triggered the event, e.target.tagName...
  16. Replies
    8
    Views
    1,257

    This should work echo " \n"; ...

    This should work



    echo "<table>\n<tr>";
    $counter = 0;
    foreach($mainArray as $subArray) {

    echo "<td>ID: ".$subArray['photo_id']." name: ".$subArray['photo_name']."</td>";
    ...
  17. Replies
    3
    Views
    487

    Like this? var cat = { "legs": 3,...

    Like this?



    var cat = {
    "legs": 3,
    "name": "Harmony",
    "color": "Tortoiseshell"
    };
  18. Replies
    7
    Views
    1,451

    Just use a for loop... for(var i = 0, l =...

    Just use a for loop...



    for(var i = 0, l = locations.length; i < l; i++) {
    console.log(locations[i].latitude);
    }
  19. Replies
    7
    Views
    1,451

    You need to use JSON.parse var locations=...

    You need to use JSON.parse



    var locations= JSON.parse('<?php echo $output; ?>');
  20. Joining tables is standard practice across all...

    Joining tables is standard practice across all database systems, using the comma syntax is incredibly messy as it confuses table joins with your WHERE clause, you should keep the two parts of your...
  21. Replies
    4
    Views
    692

    Honestly, I've never used Behat or Cucumber...

    Honestly, I've never used Behat or Cucumber before so I'm probably not the best person to be asking.

    There are a few Laracasts that go over using Behat with Laravel though so maybe they'll help
    ...
  22. Replies
    4
    Views
    692

    The scenario describes your test, cucumber (or...

    The scenario describes your test, cucumber (or behat as it's apparently known for PHP) uses that to create a test class. Check out this tutorial for more information
    ...
  23. Replies
    2
    Views
    618

    "intervention" is the namespace for the package,...

    "intervention" is the namespace for the package, there's probably a whole bunch of packages under the "intervention" namespace.

    "image" is the name of the package.

    "dev-master" is the version...
  24. Huh, fair enough, I'd never actually looked into...

    Huh, fair enough, I'd never actually looked into repository files before but I can definitely see why you'd want to use them if there was a chance you might want to switch away from Eloquent to a...
  25. @NogDog I agree that complex tasks specific to...

    @NogDog

    I agree that complex tasks specific to a model should definitely be abstracted out of the controllers and into the model, but using simple eloquent queries in the controller is fine as far...
Results 1 to 25 of 253
Page 1 of 11 1 2 3 4
HTML5 Development Center



Recent Articles