Well remember
your original code
$(document).ready(function() {
function myFunction(){
}
));
is keeping "myFunction" closed within the anonymous function defined
in the ".ready()" line...
So what I suggested and you used to get it working in no way is a hack
or "workaround", it's sim
Yeah thanks... I just did that as a work around... But am still
wondering if there is any cleaner way to handle this :D
On May 4, 11:32 am, MorningZ wrote:
> Hmm.. without more code to show, that doesn't make much sense... but
> anyways
>
> doing something like
>
> var M7 = {}; //"Global" va
Hmm.. without more code to show, that doesn't make much sense... but
anyways
doing something like
var M7 = {};//"Global" variable accessible to all
$(document).ready(function() {
M7.function = myFunction() {
};
});
You can now say call:
M7.myFunction(); from anywhere on th
Because there is a property.. which another function sets for a login
panel, which changes the height...(in html) I am resizing the flash
object accordingly. So i need access to this aswell..
On May 4, 11:07 am, MorningZ wrote:
> why aren't you putting "myFunction" outside of ".ready()"?
>
> On
why aren't you putting "myFunction" outside of ".ready()"?
On May 4, 12:06 am, Mech7 wrote:
> I have a function within the
>
> $(document).ready(function() {
>
> function myFunction(){
>
> }
>
> ));
>
> But I want to call it from Flash? What name should I use?
> jQuery.myFunction does not seem
5 matches
Mail list logo