dear all am new to prototype and am getting this error when using this snippet $(OpenedTabs+"Div").hide(); it says $(OpenedTabs+"Div") has no properties i think its in the concatination thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
a) is OpenedTabs an element id?
b) is OpenedTabs being passed in as a function variable that is supposed to
reference an element id?
if so then OpenedTabs should really be $(''OpenedTabs'')
if not, then more code please
On Tue, Feb 26, 2008 at 7:16 AM, Zerodev
<tariq.khairallah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> dear all am new to prototype and am getting this error when using this
> snippet
>
>
> $(OpenedTabs+"Div").hide();
> it says $(OpenedTabs+"Div") has no properties i think its in the
> concatination
>
> thanks
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
Zerodev, Can you be little more clear about the elements are? --src http://codingweb.blogspot.com On 2/26/08, Zerodev <tariq.khairallah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > dear all am new to prototype and am getting this error when using this > snippet > > > $(OpenedTabs+"Div").hide(); > it says $(OpenedTabs+"Div") has no properties i think its in the > concatination > > thanks > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
a) is OpenedTabs an element id? yes its a Div elem b) is OpenedTabs being passed in as a function variable that is supposed to> reference an element id?it basicly a var OpenedTabs one string ex. mgmtab here is a fucntion tat giving the error function ChangeTab(MyID,Datalayer){ var elem = $(MyID).id; $(Datalayer).innerHTML= "<img src=''images/loading.gif''/> Loading..." var ajaxMe ; switch(elem) { case "Howtog": ajaxMe = "/some url" break; case "Business": ajaxMe = "/some url" break; case "WordDay": ajaxMe = "/some url" break; case "votes": ajaxMe = "//some url" break; case "Events": ajaxMe = "/some url" break; case "research": //ajaxMe = "/some url" ajaxMe = "/some url" break; case "Indecators": ajaxMe = "/some url" break; default: ajaxMe = "/some url" }; var UpdateMe = new Ajax.Updater(Datalayer, ajaxMe, { method: "get",evalScripts:true }); //var eff=document.getElementById(Datalayer); //new Effect.Highlight(eff, {startcolor:''#DFEBFA'', endcolor:''#F5FAFF'',duration:0.9}) try { $(OpenedTabs).hide(); //var OpenedTabsDiv =OpenedTabs; //OpenedTabsDiv.concat(''div''); ///$(OpenedTabsDiv).hide();// note: tabs data container must have tha same naming of its div so i can match. $(OpenedTabs+"Div").hide(); OpenedTabs = Datalayer; $(rightTabs).className="inactivtabs"; rightTabs=$(MyID).id; $(MyID).className="ActiveTab"; $(Datalayer).show(); $(Datalayer+"div").show(); } catch(err) { } } On Feb 26, 4:11 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> a) is OpenedTabs an element id? > b) is OpenedTabs being passed in as a function variable that is supposed to > reference an element id? > > if so then OpenedTabs should really be $(''OpenedTabs'') > > if not, then more code please > > > > On Tue, Feb 26, 2008 at 7:16 AM, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > dear all am new to prototype and am getting this error when using this > > snippet > > > $(OpenedTabs+"Div").hide(); > > it says $(OpenedTabs+"Div") has no properties i think its in the > > concatination > > > thanks- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
well, in the instance you listed below, OpenedTabs has no value...therefore $(OpenedTabs).hide(); is not going to do squat... On Wed, Feb 27, 2008 at 7:43 AM, Zerodev <tariq.khairallah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > a) is OpenedTabs an element id? > yes its a Div elem > > b) is OpenedTabs being passed in as a function variable that is > supposed to > > reference an element id? > > it basicly a var OpenedTabs one string ex. mgmtab > > here is a fucntion tat giving the error > > function ChangeTab(MyID,Datalayer){ > var elem = $(MyID).id; > $(Datalayer).innerHTML= "<img src=''images/loading.gif''/> > Loading..." > var ajaxMe ; > switch(elem) > { > case "Howtog": > ajaxMe = "/some url" > break; > case "Business": > ajaxMe = "/some url" > break; > case "WordDay": > ajaxMe = "/some url" > break; > case "votes": > ajaxMe = "//some url" > break; > case "Events": > ajaxMe = "/some url" > break; > case "research": > //ajaxMe = "/some url" > ajaxMe = "/some url" > break; > case "Indecators": > ajaxMe = "/some url" > break; > default: > ajaxMe = "/some url" > }; > var UpdateMe = new Ajax.Updater(Datalayer, ajaxMe, { > method: > "get",evalScripts:true }); > //var eff=document.getElementById(Datalayer); > //new Effect.Highlight(eff, {startcolor:''#DFEBFA'', > endcolor:''#F5FAFF'',duration:0.9}) > try > { > $(OpenedTabs).hide(); > //var OpenedTabsDiv =OpenedTabs; > //OpenedTabsDiv.concat(''div''); > ///$(OpenedTabsDiv).hide();// note: tabs data > container must have > tha same naming of its div so i can match. > $(OpenedTabs+"Div").hide(); > OpenedTabs = Datalayer; > $(rightTabs).className="inactivtabs"; > rightTabs=$(MyID).id; > $(MyID).className="ActiveTab"; > $(Datalayer).show(); > $(Datalayer+"div").show(); > } > catch(err) > { > > } > } > > On Feb 26, 4:11 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > a) is OpenedTabs an element id? > > b) is OpenedTabs being passed in as a function variable that is supposed > to > > reference an element id? > > > > if so then OpenedTabs should really be $(''OpenedTabs'') > > > > if not, then more code please > > > > > > > > On Tue, Feb 26, 2008 at 7:16 AM, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > dear all am new to prototype and am getting this error when using this > > > snippet > > > > > $(OpenedTabs+"Div").hide(); > > > it says $(OpenedTabs+"Div") has no properties i think its in the > > > concatination > > > > > thanks- Hide quoted text - > > > > - Show quoted text - > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
well sorry i forgot to mention there is default values for them var rightTabs ="Events" ; var Datalayer="TabsData"; var OpenedTabs = "TabsData"; they load on page load when the js file loads and its working in IE6 + 7 the error appers on the concat string any iDeas How to overcome this On Feb 27, 4:26 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> well, in the instance you listed below, OpenedTabs has no value...therefore > $(OpenedTabs).hide(); is not going to do squat... > > > > On Wed, Feb 27, 2008 at 7:43 AM, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > a) is OpenedTabs an element id? > > yes its a Div elem > > > b) is OpenedTabs being passed in as a function variable that is > > supposed to > > > reference an element id? > > > it basicly a var OpenedTabs one string ex. mgmtab > > > here is a fucntion tat giving the error > > > function ChangeTab(MyID,Datalayer){ > > var elem = $(MyID).id; > > $(Datalayer).innerHTML= "<img src=''images/loading.gif''/> > > Loading..." > > var ajaxMe ; > > switch(elem) > > { > > case "Howtog": > > ajaxMe = "/some url" > > break; > > case "Business": > > ajaxMe = "/some url" > > break; > > case "WordDay": > > ajaxMe = "/some url" > > break; > > case "votes": > > ajaxMe = "//some url" > > break; > > case "Events": > > ajaxMe = "/some url" > > break; > > case "research": > > //ajaxMe = "/some url" > > ajaxMe = "/some url" > > break; > > case "Indecators": > > ajaxMe = "/some url" > > break; > > default: > > ajaxMe = "/some url" > > }; > > var UpdateMe = new Ajax.Updater(Datalayer, ajaxMe, { > > method: > > "get",evalScripts:true }); > > //var eff=document.getElementById(Datalayer); > > //new Effect.Highlight(eff, {startcolor:''#DFEBFA'', > > endcolor:''#F5FAFF'',duration:0.9}) > > try > > { > > $(OpenedTabs).hide(); > > //var OpenedTabsDiv =OpenedTabs; > > //OpenedTabsDiv.concat(''div''); > > ///$(OpenedTabsDiv).hide();// note: tabs data > > container must have > > tha same naming of its div so i can match. > > $(OpenedTabs+"Div").hide(); > > OpenedTabs = Datalayer; > > $(rightTabs).className="inactivtabs"; > > rightTabs=$(MyID).id; > > $(MyID).className="ActiveTab"; > > $(Datalayer).show(); > > $(Datalayer+"div").show(); > > } > > catch(err) > > { > > > } > > } > > > On Feb 26, 4:11 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > a) is OpenedTabs an element id? > > > b) is OpenedTabs being passed in as a function variable that is supposed > > to > > > reference an element id? > > > > if so then OpenedTabs should really be $(''OpenedTabs'') > > > > if not, then more code please > > > > On Tue, Feb 26, 2008 at 7:16 AM, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > > dear all am new to prototype and am getting this error when using this > > > > snippet > > > > > $(OpenedTabs+"Div").hide(); > > > > it says $(OpenedTabs+"Div") has no properties i think its in the > > > > concatination > > > > > thanks- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
OH MY GOD I GET IT its My eyes it was on this line $(Datalayer+"div").show(); it should be $(Datalayer+"Div").show(); div Div :p On Feb 28, 9:31 am, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> well sorry i forgot to mention there is default values for them > var rightTabs ="Events" ; > var Datalayer="TabsData"; > var OpenedTabs = "TabsData"; > they load on page load when the js file loads and its working in IE6 + > 7 > the error appers on the concat string any iDeas How to overcome this > > On Feb 27, 4:26 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > well, in the instance you listed below, OpenedTabs has no value...therefore > > $(OpenedTabs).hide(); is not going to do squat... > > > On Wed, Feb 27, 2008 at 7:43 AM, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > a) is OpenedTabs an element id? > > > yes its a Div elem > > > > b) is OpenedTabs being passed in as a function variable that is > > > supposed to > > > > reference an element id? > > > > it basicly a var OpenedTabs one string ex. mgmtab > > > > here is a fucntion tat giving the error > > > > function ChangeTab(MyID,Datalayer){ > > > var elem = $(MyID).id; > > > $(Datalayer).innerHTML= "<img src=''images/loading.gif''/> > > > Loading..." > > > var ajaxMe ; > > > switch(elem) > > > { > > > case "Howtog": > > > ajaxMe = "/some url" > > > break; > > > case "Business": > > > ajaxMe = "/some url" > > > break; > > > case "WordDay": > > > ajaxMe = "/some url" > > > break; > > > case "votes": > > > ajaxMe = "//some url" > > > break; > > > case "Events": > > > ajaxMe = "/some url" > > > break; > > > case "research": > > > //ajaxMe = "/some url" > > > ajaxMe = "/some url" > > > break; > > > case "Indecators": > > > ajaxMe = "/some url" > > > break; > > > default: > > > ajaxMe = "/some url" > > > }; > > > var UpdateMe = new Ajax.Updater(Datalayer, ajaxMe, { > > > method: > > > "get",evalScripts:true }); > > > //var eff=document.getElementById(Datalayer); > > > //new Effect.Highlight(eff, {startcolor:''#DFEBFA'', > > > endcolor:''#F5FAFF'',duration:0.9}) > > > try > > > { > > > $(OpenedTabs).hide(); > > > //var OpenedTabsDiv =OpenedTabs; > > > //OpenedTabsDiv.concat(''div''); > > > ///$(OpenedTabsDiv).hide();// note: tabs data > > > container must have > > > tha same naming of its div so i can match. > > > $(OpenedTabs+"Div").hide(); > > > OpenedTabs = Datalayer; > > > $(rightTabs).className="inactivtabs"; > > > rightTabs=$(MyID).id; > > > $(MyID).className="ActiveTab"; > > > $(Datalayer).show(); > > > $(Datalayer+"div").show(); > > > } > > > catch(err) > > > { > > > > } > > > } > > > > On Feb 26, 4:11 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > a) is OpenedTabs an element id? > > > > b) is OpenedTabs being passed in as a function variable that is supposed > > > to > > > > reference an element id? > > > > > if so then OpenedTabs should really be $(''OpenedTabs'') > > > > > if not, then more code please > > > > > On Tue, Feb 26, 2008 at 7:16 AM, Zerodev <tariq.khairal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > wrote: > > > > > > dear all am new to prototype and am getting this error when using this > > > > > snippet > > > > > > $(OpenedTabs+"Div").hide(); > > > > > it says $(OpenedTabs+"Div") has no properties i think its in the > > > > > concatination > > > > > > thanks- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---