www.webdeveloper.com

Search:

Type: Posts; User: astupidname

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    2,356

    A few things jump out at me here. First, in the...

    A few things jump out at me here. First, in the xml snippet you provided I do not see anywhere that you have an attribute by the name of 'file_name' which you are looking for in your php file:

    So...
  2. Replies
    7
    Views
    1,002

    Sorry I have no interest in commenting on or...

    Sorry I have no interest in commenting on or fixing that particular code as you are doing it all wrong right from the very beginning. You should just use the array's sort() method with a specail...
  3. Replies
    4
    Views
    1,379

    I would consider it bad idea to use extract() on...

    I would consider it bad idea to use extract() on $_GET (or $_POST) as it may potentially contain things you did not expect. You should know what variables to expect from $_GET and then only allow the...
  4. Replies
    1
    Views
    601

    Should do the trick: $Hours = explode(':',...

    Should do the trick:

    $Hours = explode(':', $Hours);
    $Hours = $Hours[0].'.'.$Hours[1];
    //output $Hours
  5. Replies
    3
    Views
    5,007

    First, note it's not actually Javascript, but is...

    First, note it's not actually Javascript, but is Microsoft's proprietary JScript which is indeed very similar to Javascript.
    May need you to clarify, are you using in Internet Explorer and are you...
  6. Replies
    7
    Views
    1,038

    That would be a horrible idea, as it hard codes...

    That would be a horrible idea, as it hard codes in the name of a specific variable which is created far outside the current scope within the constructor (I assume you actually kinda mis-spoke there,...
  7. Replies
    7
    Views
    1,751

    True, there are after all many ways to skin a cat...

    True, there are after all many ways to skin a cat (supposedly, though I've never tried)! But this is not always a desirable pattern of coding and there are many times you would not want to do that.
    ...
  8. Replies
    7
    Views
    1,751

    Sounds like a good time to use my loadScript...

    Sounds like a good time to use my loadScript function, which allows you to know when a dynamically loaded script has actually loaded:

    /***
    * loadScript function for loading external script...
  9. Hard to get a syntax highlighter working with a...

    Hard to get a syntax highlighter working with a syntax error in your code for displaying it, eh? :D

    I'm thinking theres a "t" missing there, should most likely be: SyntaxHighlighter.highlight();
  10. May I inquire what browser & version, plus how...

    May I inquire what browser & version, plus how were you accessing the file? It does work for me from a server (just checked in IE 7, 8 & 9, Firefox 5, Safari 5 & Chrome 14) but from local file Chrome...
  11. True, only because that code attempts to obtain...

    True, only because that code attempts to obtain the offsetHeight of an element with id of 'lorem' which is presumed to be in the iframes document:

    Now, if you happen to set the src of an iframe to...
  12. Replies
    6
    Views
    2,888

    That's kinda cool and clever, did not know an swf...

    That's kinda cool and clever, did not know an swf could be used as a dataURL. I knew images can. Does that still work (swf's as dataURL)?



    Actionscript IS flash at it's core, and...
  13. Replies
    6
    Views
    2,888

    Flash still works cross browser as far as I know,...

    Flash still works cross browser as far as I know, and I use this combination of flash and javascript called ZeroClipboard
    Oh, actually just re-read the question and should clarify ZeroClipboard is...
  14. Try it like this: function Hesapla() { ...

    Try it like this:

    function Hesapla() {
    //use var statement to localize variables
    var yuzdefaiz, ayliktaksiti, geriodeme1,
    //since I assume you want to allow...
  15. Replies
    5
    Views
    1,811

    Apologies, rnd_me, for the tongue out, was just...

    Apologies, rnd_me, for the tongue out, was just being playful and hope you did not take offense. Just noticed looking at this again and even though the o.p. has not requested parsing of floats within...
  16. Replies
    5
    Views
    1,811

    Don't forget to include your definitions of...

    Don't forget to include your definitions of filter and map prototype methods for backwards browser compatibility.... :p
  17. Replies
    1
    Views
    1,342

    Where is $values defined?

    Where is $values defined?
  18. Replies
    5
    Views
    1,811

    Sorry I can't directly answer the 'why' as I did...

    Sorry I can't directly answer the 'why' as I did not feel like debugging that code, as:

    Yah, time for the power of regular expressions, no doubt:

    //string may contain signed integers and/or...
  19. Replies
    2
    Views
    1,385

    That does not work in javascript that way, sorry....

    That does not work in javascript that way, sorry. You can provide defaults within the functions variables though.

    function modify(id, step) {
    var id = (id !== null) ? id : 'someId';//default...
  20. If your daily images are named "mypic" + a number...

    If your daily images are named "mypic" + a number from 1 to 31 + ".jpg" all you really need do is:

    <script type="text/javascript">
    window.onload = function () {
    ...
  21. Replies
    2
    Views
    1,345

    function DataCollection() { var obj = this;...

    function DataCollection()
    {
    var obj = this; //reference to the created instance of DataCollection
    this.points = []; //or you could do: obj.points = []; here within the constructor code
    ...
  22. Replies
    2
    Views
    1,504

    I believe you may be going down the wrong path...

    I believe you may be going down the wrong path here (that's o.k. though, part of learning, right?). The only reason one could have to utilize an ActiveXObject for this task is if you would literally...
  23. Allow me to play devils advocate here a moment......

    Allow me to play devils advocate here a moment... :)
    1. Array.prototype.map is not backwards comatible with all browsers, you totally left out the part about having to actually include the...
  24. Replies
    3
    Views
    2,097

    AJAX You need to output it as a javascript array, and...

    You need to output it as a javascript array, and get the quote marks right around the strings names of the elements.

    Should be:

    <?php echo "['".implode("', '", $array)."']"; ?>
  25. I stuck it in there because it was only needed...

    I stuck it in there because it was only needed for that particular function, so secondsAsTime basically contained everything it needed and no need to remember to have a pad function globally...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles