www.webdeveloper.com

Search:

Type: Posts; User: bsmbahamas

Page 1 of 5 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    788

    Unable to get value of the property 'x': object...

    Unable to get value of the property 'x': object is null or undefined " almost always means that the object you are referring do does not exist or doesn't have that particular property. try using an...
  2. Replies
    6
    Views
    788

    the splice method of the built in Array object...

    the splice method of the built in Array object won't accept will only accept an integer or a variable storing the integer. this may not solve your problem but these lines(139 & 140) and few others...
  3. i think Location in the header should be lower...

    i think Location in the header should be lower case, and all this code needs to appear in php tags at the top of the file, if it appears after the head tags it may not work and say something like...
  4. Replies
    2
    Views
    666

    Thanks for the response, i truly appreciate it,...

    Thanks for the response, i truly appreciate it, but could you be a little more specific please, maybe provide a link to this area of facebook or even better a link to a tutorial.

    i can code it...
  5. Replies
    2
    Views
    666

    FB Like or share auto redirect

    Hi guys can anyone assist me with finding a facebook like or share plugin that will aoto redirect to another page on/off my site after the user has clicked like or share?

    I suppose i could use...
  6. Replies
    35
    Views
    1,526

    thanks it was fun. one important change is...

    thanks it was fun.

    one important change is that you should use $_REQUEST instead of GET or POST, if javascript is turned off the data will be sent via POST since the form used method="post"...
  7. Replies
    6
    Views
    685

    i know right? blame the browser makers and o/s...

    i know right? blame the browser makers and o/s makers i guess.

    i'm stuck at work using IE7 and the shorcut to this page has an image shortcut:

    the actual code in the shortcut is:
    ...
  8. Replies
    6
    Views
    685

    as far as i know, as long as you copy the link to...

    as far as i know, as long as you copy the link to your desktop using right-click, or just drag it over, it should use your favicon as long as your favicon normally works when you book mark your site...
  9. Replies
    9
    Views
    849

    from your original code it seems that you are not...

    from your original code it seems that you are not using a blog like wordpress but seem to be building a custom site with pages that load templates based on the query string e.g. ?p=1 or ?p=2, etc.
    ...
  10. Replies
    5
    Views
    709

    go only accepts an integer -1, -3, etc. ...

    go only accepts an integer -1, -3, etc.

    perhaps you can create a div in the page like this <div id='searches'> and then when they click search have it call a function that appends the search to...
  11. Replies
    5
    Views
    709

    the history object...

    the history object does not support that method. you should append the search to the url query string or maybe even the hash tag.

    javascript can't keep input, once the page changes the input is...
  12. Replies
    9
    Views
    849

    i agree with this line of thinking, i offered it...

    i agree with this line of thinking, i offered it since he was already using includes. personally i'd just use unique classes and ids if it really had to be so conditional, or maybe even have php...
  13. Replies
    9
    Views
    849

    you don't need cases, just use an if in the head...

    you don't need cases, just use an if in the head section:



    <head>
    <?php
    if( isset( $_GET['p'] ) ){
    $cssfile = 'css/' . $_GET['p'] . '.css';
    if( file_exists($file) ){
    include $file;
  14. Replies
    9
    Views
    628

    i could never really wrap my head around cron...

    i could never really wrap my head around cron jobs, i really did try hard though, lol. what i ended up doing is just creating a simple script that checked the date, and compared it to a date stored...
  15. Replies
    2
    Views
    454

    yup, i think that technically you only need to...

    yup, i think that technically you only need to create a new image object and set it's src property to force the browser to cache the image.

    all the other stuff above is just to make it easier to...
  16. Replies
    5
    Views
    709

    yup 2 actually! 1. you can't do that with the...

    yup 2 actually!

    1. you can't do that with the history object.

    2. you can't wrap double quotes in double quotes

    this won't work...

    <A...
  17. Thread: loop body?

    by bsmbahamas
    Replies
    3
    Views
    457

    not to show off, but you could even simulate a...

    not to show off, but you could even simulate a calculator,
    in this case the addition button doesn't do anything, you'd
    have to add a way to switch the mode which isn't that hard
    and give the...
  18. Replies
    6
    Views
    685

    the issue is that some browsers assume that you...

    the issue is that some browsers assume that you are trying to save a copy of the image by default, try using a background image, or better yet asking the user to right click and copy shortcut or add...
  19. Replies
    5
    Views
    1,574

    maurycy is correct, you can read all about the...

    maurycy is correct, you can read all about the location object here. some of the characters in the url may be interpreted as html when you try to alert/write out the url to the screen, but it is all...
  20. Replies
    5
    Views
    607

    cool, didn't know that the location object...

    cool, didn't know that the location object had a pathname property, thanks for sharing, silly me, i've been using the split method in the rare cases that i needed to work with it.
  21. Replies
    35
    Views
    1,526

    i understand that you want to make a pretty alert...

    i understand that you want to make a pretty alert box, i was saying to display it with a custom function instead of rewriting the normal alert box, so it would still pull up your custom box, but...
  22. i don't know any straight forward way to search...

    i don't know any straight forward way to search the source code, especially if you use php or javascript, as the page may have the code in the source and it could be overwritten as it loads into the...
  23. Replies
    35
    Views
    1,526

    from my testing using a custom alert function...

    from my testing using a custom alert function seems to work best:

    <script type="text/javascript">
    function customAlert(msg,id){
    alert( 'msg: ' + msg + ', id: ' + id );
    }
    </script>

    <a...
  24. Replies
    35
    Views
    1,526

    i just tried a file with only this in it and it...

    i just tried a file with only this in it and it pops up the message and id:

    <a onclick="id='hhdgfbcjeffch';alert('Delete hhdgfbcjeffch - name 1 '+','+id);return false;"...
  25. Replies
    35
    Views
    1,526

    ok, make sure you declare var id; at the top of...

    ok, make sure you declare var id; at the top of your page in the js code, then have your button set the id in the onclick like this:

    <a onclick="id='hhdgfbcjeffch';alert('Delete hhdgfbcjeffch -...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles