Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-18 Thread Peter Sysko
> > http://monkeypanel.com/demo <> usually works before the 'com' hehe >> > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To view this discussion on the web visit https://groups.google.com/d/msg

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-18 Thread Peter Sysko
Thanks Dave, I'm still not sure why my visible() comparison wrapper was registering as null when i originally first attempted to perform the functions, because that looks something like what I first tried. Thanks again to Jason suggestions to use a Hash, I have since modified the interface to u

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Dave Kibble
To answer your OP directly (not sure if it has been, I didn't notice it). open_div = 'system'+k+''; ... if ($(open_div).visible()==true) { if there is no item with id 'system'+k then $(open_div) returns null (correctly) and so $(open_div).visible() throws an error. (for example if nothin

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
fpr what its worth, these are some the handler functions I have created. the logic s fine, but your suggestion is much less work, it seems, and there are a few bugs which i commented out. i am not an expert in JS, its not veryintuitive for me function get_system_states() { var ref = docum

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Peter Sysko
right, i found it: http://api.prototypejs.org/language/dollar-H/ i am used to the idea of assuming zero data persistence in a runtime environment so i'm not sure how this works outside the function scope. in php you have to serialize variables, use a global or superglobal array, use database, fil

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Jason Westbrook
to be clear - the example I put is not a javascript array but a Prototype Hash you should be able to do the same thing with a javascript array though Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Mon, Oct 15, 2012 at 5:25 PM, Peter Sysko wrote: > whoa i had no idea you could do

Re: [Proto-Scripty] Re: Hi, new to group. Having an issue with visible() method. any suggestions?

2012-10-15 Thread Jason Westbrook
I've never had a problem with putting variables into the $() function but I do have a suggestion for keeping your open/minimized/closed panels straight try declaring a global array or hash and using that as the status variable - all the javascript functions can use it natively and you don't have