Feedback on: irt.org FAQ Knowledge Base Q1272
Worth:
Not worth reading
Comments:
I don't understand the explanation. The examples only show functionA but the explaining text speaks of a functionB. Now where is functionB in the code??
Length:
Too short
Technical:
Not technical enough
Comments:
Text and JS samples do not match.
Text refers to 'funtionB(parms)'
Worth:
Not worth reading
Comments:
This was the most confusing, useless bit of information that I have ever read about JavaScript. There may be more out there but this is the first that I have read.
Worth:
Worth reading
Length:
Technical:
Not technical enough
Comments:
To pass parameters and keep things in scope you need to use an anonymous function eg:
var myParam = 'hello';
setTimeout(function(){ myfunction(myParam) }, 100);
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
You have to concatinate the string as seen below.
<!-- Gallery -->
<script>
function LoadGallery(placeHolder,imageFile)
{
new Effect.SlideUp('photoboxgallery');
var t1=setTimeout("document.getElementById('"+placeHolder+"').src ='"+imageFile+"';", 1000)
new Effect.SlideDown('photoboxgallery', { queue: 'end'});
}
</script>
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Exactly what I needed to know. Thanks!