• Member Avatar for Troy III
    Troy III

    Replied To a Post in Difference between var $name and var name

    Not really. You see, prefixing string-variable names with a certain symbol like $, is not all that bad... Seeing my uncle do that, would feel quite normal to me. -He …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in How to change the theme on an Ace editor

    Ace editor! What's that?
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Difference between var $name and var name

    the difference between var $name and var name is that whenever you see a person using $name in his code instead of normal name, avoid talking to him, avoid conversing …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in javascript code catching game help!

    function keyListener(e) { e = e || event; if (e.keyCode==37 && basketLeft > 0) { ...
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Collaboration Framework

    > You make a Google search and want to make some notes on the content of that page, save them and send them to me so I can also make …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Fixed background image

    Try this: body{background: #000 center/100% no-repeat fixed url(../layout/background.jpg);}
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in java script date format not works

    it's working just fine here, the script output is correct: "20-Oct-2014"
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Adding Two Variable Values in jQuery

    have you tried : 3. var sbtotal = sbheight1 + sbheight2; 4. alert (sbtotal);
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Stop timer on hover

    'tabCarousel' variable points to the timer not to its argument. You need a handle for the function in order to be able to call it ., a named function. illustrating …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Stop timer on hover

    This fiddle is not working on my system but in case it works on an independent page, you can add a *function* containing `clearInterval(tabCarousel);` command to a *mouseover* event on …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Different Logo on Different Domains.

    Wy don't you try posting your question here http://www.daniweb.com/web-development/php/17
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in ClearInterval() does not work immediately

    Your fiddle at (http://jsfiddle.net/qjmDU/14/) isn't doing anything. Can you please provide a working example so that we can try fixing the delay you are having issues with?
  • Member Avatar for Troy III
    Troy III

    Gave Reputation to AQWst in Playing Random MP3 files on a web site

    I am still a bit confused..Do I replace my code in lines 46-49 with this or what? Can you please give me a better explanation?
  • Member Avatar for Troy III
    Troy III

    Gave Reputation to AQWst in Playing Random MP3 files on a web site

    This is still not working..should I repost this question with my complete code rather than the short piece I thought was needed to solve this problem?
  • Member Avatar for Troy III
    Troy III

    Gave Reputation to stbuchok in jquery function(event) firefox

    The event argument (which could be named e, evt, or hocupokus) is optional, actually, all parameters are optional in javascript. Can you elaborate on what your issue is? What is …
  • Member Avatar for Troy III
    Troy III

    Gave Reputation to stbuchok in jquery function(event) firefox

    The event argument (which could be named e, evt, or hocupokus) is optional, actually, all parameters are optional in javascript. Can you elaborate on what your issue is? What is …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in jquery function(event) firefox

    > I've just found this out from triall and error. And no, you didn't! - I told you so. Because there's absolutely nothing else to explain here You my friend …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in jquery function(event) firefox

    So why am I downvoted, if you please care to explain? Thanking me this way for giving you the most accurate explanation posssible, - expecially when taking in account the …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Manipulate via DOM

    > I know you cannot nest a <form> within a <form>. Than, can you please provide us with the original source code fragment instead? Because, (since you already know that) …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in jquery function(event) firefox

    Can you please expand on your example code, (...not enough data to process...) There has to be an alternative approach to the problem, probably not as convenient - but at …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Fires out new array list - without using it

    It is all unclear, can you please provide a testcase ?
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Return in JS

    correct, with the addition that the return statement will also exit the function at the exact point of insertion canceling all other statements that may follow!
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Return in JS

    That's to say the least an incorrect asumption. This function: function doesNothing(){ return; var one = "Hello"; var two = "Orange"; var total = one + two; return total; } …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Return in JS

    Of course you could have left the return statement out of your script syntax and most probably be writing a smaller footprint function to produce the (same) meant result. You …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Return in JS

    > Adding a function to a variable before reading the function. In your second example. the function return; capturing the function **return** onto a variable the value of which you …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Playing Random MP3 files on a web site

    Yes, it's a an obvious replacement of your old long working but recently failing part of the script. And thank you for downvoting. My fault...
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Return in JS

    In reality I'm not calling a variable as a function, I'm calling the function by the name of the variable. They are both references::pointers to the assigned function object. *A …
  • Member Avatar for Troy III
    Troy III

    Gave Reputation to JorgeM in Return in JS

    >I assume that is the main purpose of the 'return' command Troy's example really shows a better example of the role of return. A function is called and the function …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Object literals and functions

    > Imagine what chaos might ensue if all members were in the global namespace. Think how careful you would have to be when using a 3rd party lib not to …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Return in JS

    > Shouldn't the write command be writting the combined scrings of both variables one & two based from the return value ? No, because "total" is a local variable not …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Problem using onbeforeunload in JQuery or Javascript

    var popupWindow = window; its a hack
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Playing Random MP3 files on a web site

    /unknown/i.test(document.createElement('bgsound')) ? document.write("<embed src='"+x+"' hidden autostart loop>") : document.write("<bgsound src='"+x+"' loop>");
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in sorcecode getting

    <html> <head> <title>Wix.com - 404</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="refresh" content="5; URL=http://www.wix.com/"> </head> <body bgcolor="#FFFFFF" text="#000000" link="#000000" class="not-found"> <center> <font face="Arial">Something went wrong...</font><br><br> <font face="Arial" size=-1> The page you …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Problem with modal dialog- submit

    I don't understand what is **Modal** about that div, if anything?!
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in pause copy event and then continue

    You'll need a **true** ***Modal Dialog*** for that; which is either a builtin browser Confirm Dialog, or the customizable *showModalDialog()* command. jQuery uses **fake** Dialogs; Which are in fact no …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in jQuery Code (Pseudo)

    the ***associated element*** of the *event* that must trigger the *function*, may or may not be the element with the id, *ID*.
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in How to hide onmouseover status of an anchor tag

    that will only replace the: > index.php?editid=1; with: > "javascript:void(0)" when the link is hovered. I also am of an opinion that this kind of things should not be allowed. …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in jQuery Code (Pseudo)

    nope, the function is the action that must take place when the associated element is clicked.
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in How to disable typing in datepicker input field

    [datepickerFld].disabled = true; or for browsers which don't support boolean properties in exact maner please use the following syntax: [datepickerFld].setAttribute("disabled", "disabled"); Cheers
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Global Variable not the Same as Local Variable

    He probably didn't, but his question was on a separate subject: how does or can the argument variable named *pcheck* carry or receive the value of a variable named *paycheck* …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in auto calculate

    of course if you tell me what does sagis-girl mean. for a start there's a trasncript redoundant word or brain glitch error during transcription on line 9. var v1=value.value; it …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in creatLink in execCommand()

    mark solved threads general2012
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in enter key problem

    > > Have you tried SHIFT+Enter for a new line instead of a new paragraph? I think you have but you are embarrased to come back and mark the thread …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Global Variable not the Same as Local Variable

    he was off the topic for being busy rediscovering the tap water, as if we never heard of the existing difference between *global* and local *variables*, since like forever. but …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in GET facebook event details

    /* make the API call */ FB.api( "/{event-id}", function (response) { if (response && !response.error) { for( x in response )console.log( x + ": " + response[ x ] ); …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Object literals and functions

    what is its practical use ?
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in how to disable form and if I clicked a button it should be enable..

    ...for IE versions you simply do `<form disabled ... > .... </form>` and the form including all its elements will gray out and be disbled until you decide to enable …
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Java script error with firefox

    Than, problem solved. You should have also maked the thread as such. Regards
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in Syntax help

    > output += '<img src="' + processorStock[i].image + '"/img>'; this one is wrong. will produce: <img src="imagelocation"/img> a malformed img tag.
  • Member Avatar for Troy III
    Troy III

    Replied To a Post in [Prototype] Validating a form before sending it via Ajax

    >> document.observe('dom:loaded', function() { is an overhead since no form gets submited by itself. >>if((new Validation('formDance', {useTitles:true})().validate()); should suffice to allow following statements to execute, in case a form validation …

The End.