HI there... From the effects.js file in prototype.. i am able to do things like this.. Event.addBehavior({ // click on the green div (for fun ;-) ''div.example:click'' : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); on the div (example) in this case, as you can tell .. it simply highlights... but what id like to do it use it in a function so that i can pass the id of the div into it.. IE: function menu_action(item){ var menuitem = ''div.''+item+'':click''; Event.addBehavior({ // click on the green div (for fun ;-) menuitem : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); } I am having problems with : var menuitem = ''div.''+item+'':click''; it simply wont work... may someone please tell me what im am doing wrong ? Thanks for any help! :) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Stripe-man a écrit :> I am having problems with : var menuitem = ''div.''+item+'':click''; > > it simply wont work... may someone please tell me what im am doing > wrong ?The ''.'' selector is for classes. If you''re going for ID''s, use this instead: var menuitem = ''div#'' + item + '':click''; -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks so much for your reply... for some reason .. its still not working.. I will provide more info: Ref: this link... <div id="item1" class="navlink" onclick="menu_action(''item1);greet2(1)"> <a id=nav1 href="#">Link For Page 1</a> </div> When clicking on that div (id=item1) should call the function: function menu_action(item){ var menuitem = ''div.'' + item + '':click'' //This does not work. //var menuitem = ''div#'' + item + '':click''; //This does not work :( - same result Event.addBehavior({ // click on the green div (for fun ;-) menuitem : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); } Normally.. you use this...and the CLASS name is feed into this arguement... ( ''div.example:click'' ) Event.addBehavior({ // click on the green div (for fun ;-) ''div.example:click'' : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); But I need the documentID to be feed into this... Is this possible? On 12/2/06, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> > > Stripe-man a écrit : > > I am having problems with : var menuitem = ''div.''+item+'':click''; > > > > it simply wont work... may someone please tell me what im am doing > > wrong ? > > The ''.'' selector is for classes. If you''re going for ID''s, use this > instead: > > var menuitem = ''div#'' + item + '':click''; > > -- > Christophe Porteneuve a.k.a. TDD > "[They] did not know it was impossible, so they did it." --Mark Twain > Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Stripe-man a écrit :> onclick="menu_action(''item1);greet2(1)">Look at your quoting: the closing single quote is missing after ''item1... Your JS is invalid and compensated, in a half-assed way, by the browser. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks yet again for reply.. (especially so fast..) BTW the effects im trying to use are from the effects.js from prototype Sorry about that.. it was a typo because i had to correct what i had pasted in .. should look like this: <div id="item1" class="navlink" onclick="menu_action(''item1'');greet2(1)"> <a id=nav1 href="#">Link For Page 1</a> </div> Thanks for catching that. Issue remains .. Terry On 12/2/06, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> > > Stripe-man a écrit : > > onclick="menu_action(''item1);greet2(1)"> > > Look at your quoting: the closing single quote is missing after > ''item1... Your JS is invalid and compensated, in a half-assed way, by > the browser. > > -- > Christophe Porteneuve a.k.a. TDD > "[They] did not know it was impossible, so they did it." --Mark Twain > Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Stripe-man, I think your error lies here: <a id=nav1 href="#">Link For Page 1</a> Your id is not escaped. The above should read: <a id="nav1" href="#">Link For Page 1</a> May I suggest that in the future you validate your XHTML (using http://validator.w3.org/ for example) ...and check for errors in your JavaScript syntax (Firebug with Firefox is great for that: http://www.joehewitt.com/software/firebug/) before posting your question. You''ll spend much less time waiting for an answer, and if you actually have a real problem, or have encountered a bug of some sort, people will be much more willing to get interested and help you out. Regards, Tobie -- Tobie Langel http://tobielangel.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 12/1/06, Stripe-man <remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> function menu_action(item){ > > var menuitem = ''div.''+item+'':click''; > > Event.addBehavior({ > // click on the green div (for fun ;-) > menuitem : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > > }); > } >This does not work, as { foo: "bar" } equals { "foo": "bar"}. The property part of the object literal does not get extrapolated. Event.addBehavior({ // click on the green div (for fun ;-) ''div#''+item+'':click'' : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); should do it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tks for the reply.. and your time. Thanks also for your suggestions you have made to me.. i will be sure that I properly format my html. However.. the JS console does not return ANY errors. The suggestion didnt work. Please advise... I have attached the files for this web thing im doing.. (concept only) for learning. The files that are being address here are index.php and test_b.js I hope someoene can figure this out! LOL Even it its me being block headed about it. Terry On 12/2/06, Martin Bialasinski <klingeling-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On 12/1/06, Stripe-man <remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > function menu_action(item){ > > > > var menuitem = ''div.''+item+'':click''; > > > > Event.addBehavior({ > > // click on the green div (for fun ;-) > > menuitem : function(event) { > > new Effect.Highlight(this, { queue: ''end'' }); > > } > > > > }); > > } > > > > This does not work, as { foo: "bar" } equals { "foo": "bar"}. The > property part of the object literal does not get extrapolated. > > Event.addBehavior({ > // click on the green div (for fun ;-) > ''div#''+item+'':click'' : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > > }); > > should do it. > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
tobie wrote:> Hi Stripe-man, > > I think your error lies here: > > <a id=nav1 href="#">Link For Page 1</a> > > Your id is not escaped.It doesn''t have to be escaped to be valid HTML. "In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them." <URL: http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2 > [...]> May I suggest that in the future you validate your XHTML (using > http://validator.w3.org/ for example)A good suggestion, but who mentioned XHTML? The OP didn''t mention it, the vast majority of pages claiming to be XHTML on the web are served as HTML, I''ve yet to hear a valid reason for its use. To the OP: use HTML 4.01 strict, validate your markup, qoute attributes - it''s usually required and always good practice. -- Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Dec 2, 11:02 pm, Stripe-man <rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The suggestion didnt work. Please advise...I had a quick glance at the files you''ve sent. Although it''s spaghetti and I didn''t even get the slightest idea what you''re trying to accomplish, I have an advice for you: Be more clear about what you''re doing. Use Firefox with Firebug and log stuff what happen with console.log(). When you supply examples or example files, please keep them minimal, and don''t require us to run PHP to see it. Also, maybe you should take it slowly - the learning curve of JavaScript is not so flat and trying to pack a single page with as many features and effects as you can isn''t going to get you somewhere real quick... instead, it''ll get you nowhere real slow. -- Mislav --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Stripe-man wrote:> HI there... > > From the effects.js file in prototype.. i am able to do things like this.. > > Event.addBehavior({addBehavior comes from lowpro.js, which you may have added to your prototpye.js file a some time and forgotten about.> > // click on the green div (for fun ;-) > ''div.example:click'' : function(event) { > new Effect.Highlight(this, { queue: ''end'' });Effect is from effect.js, which is part of scriptaculous. Perhaps if you put those in your subject you''ll attract responses from people who know about those libraries.> } > > }); > > on the div (example) in this case, as you can tell .. it simply > highlights... > > but what id like to do it use it in a function so that i can pass the id of > the div into it.. > IE: > > function menu_action(item){ > > var menuitem = ''div.''+item+'':click''; > > Event.addBehavior({ > // click on the green div (for fun ;-) > menuitem : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > > }); > } > > I am having problems with : var menuitem = ''div.''+item+'':click''; > > it simply wont work... may someone please tell me what im am doing wrong ?As mentioned elsewhere, the property name in an object literal is not evaluated, so the object you pass has a property of menuitem, not ''div.example:click''. If you want to use an expression as a property name, you have to use square bracket notation: function menu_action(item){ var tObj = {}; Event.addBehavior( tObj[''div#'' + item + '':click''] = function(event) { new Effect.Highlight(this, { queue: ''end'' }); } ); } However, there is something in how addBehavior adds the event that means it doesn''t. I think your issue lies somewhere in scriptaculous, hopfully the changed subject will attract someone who knows about that. In regard to posting on usenet, it is considered bad form to have a signature of more than 4 lines. Also, don''t post attachments. Post a minimal example that shows your issue, or a link. -- Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Fred wrote:> It doesn''t have to be escaped to be valid HTML. > > "In certain cases, authors may specify the value of an > attribute without any quotation marks. The attribute value > may only contain letters (a-z and A-Z), digits (0-9), hyphens > (ASCII decimal 45), periods (ASCII decimal 46), underscores > (ASCII decimal 95), and colons (ASCII decimal 58). We > recommend using quotation marks even when it is possible > to eliminate them."Well, as we don''t know whether he is using XHTML or HTML, suggesting he puts quotes around his attribute values is a good start as in XHTML, "All attribute values must be quoted, even those which appear to be numeric." (http://www.w3.org/TR/xhtml1/#h-4.4) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for the Replies... (again) "Although it''s spaghetti and I didn''t even get the slightest idea what you''re trying to accomplish.... " Spaghetti ? Whats spaghetti? Its fairly clean code. As I have mentioned... its concept. Not production code. I am simply trying to do an onlick on the div ID that does the same thing as the right content does. Yes.. i have included previous attempt of the code IN the code commented out so that i know not to try it again. But Spaghetti ? Can you enlighten me as to how the code should look ? "..maybe you should take it slowly -..." . I am trying to take it slow. But trying to hit this hard. I am excited and energized by prototype! I have tried desperately to put into words what im trying to do (see first few messages).. in plain English.. This ask for help is the first serious attempt to write to this list (or any list for that matter) I will attempt to be more clear in the future. Again.. I appreciate any assistance, or suggestions on figuring out my problem. What do i need to specify, clarify, or fix so that and we can get back to the matter at hand ? Thanks so much for your time and patience again... Terry On 12/3/06, Mislav <mislav.marohnic-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Dec 2, 11:02 pm, Stripe-man <rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > The suggestion didnt work. Please advise... > > I had a quick glance at the files you''ve sent. Although it''s spaghetti > and I didn''t even get the slightest idea what you''re trying to > accomplish, I have an advice for you: > > Be more clear about what you''re doing. Use Firefox with Firebug and log > stuff what happen with console.log(). When you supply examples or > example files, please keep them minimal, and don''t require us to run > PHP to see it. > > Also, maybe you should take it slowly - the learning curve of > JavaScript is not so flat and trying to pack a single page with as many > features and effects as you can isn''t going to get you somewhere real > quick... instead, it''ll get you nowhere real slow. > > -- > Mislav > > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Terry, If you want assistance: 1. explain clearly what you want to do. 2. isolate the issue that is causing problems. 3. provide a link to a test case of that issue. 4. make sure your code and markup are valid. 5. remove anything that is useless or not pertinent to the issue at hand. I''d be most happy to help you once you provide the above. Have you downloaded and used Firebug? Regards, Tobie -- Tobie Langel http://tobielangel.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tobie... thanks for the reply... 1. What I want to do is:When i click on one of the navigation links on the left: <div id="item1" class="navlink" onclick="menu_action(''item1'');greet2(1)"> <a id="nav1" href="#">Link For Page 1</a> </div> I want the div (item1) to highlight Yellow like the main content part of the page does... That all im trying to do... 2. The problem seems to be coming from an improperly called(formatted?) effect behavior: Below is formated as suggested earlier: var menuitem = ''div#'' + item + '':click''; Event.addBehavior({ menuitem : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); Currently I have this wrapped in a JS function because I want to set ''item'' dynamically. Item should be the ID of the div that is wrapping the link thats to be clicked. (see above link and div): function menu_action(item){ var menuitem = ''div#'' + item + '':click''; Event.addBehavior({ menuitem : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); } 3. Test case... http://www.brotherstrust.com/stripe-man/Ajax_PageNavUpdated/ 4. I do believe my code is now valid. 5. Useless code.. well I have tried to keep my code fairly clean... though .. comments have been left because.. well .. they help me.. 6. I have just now installed firebug. though it does not seem any more informative than the js debugger.. I hope this is enough info :) Terry On 12/3/06, tobie <tobie.langel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi Terry, > > If you want assistance: > > 1. explain clearly what you want to do. > 2. isolate the issue that is causing problems. > 3. provide a link to a test case of that issue. > 4. make sure your code and markup are valid. > 5. remove anything that is useless or not pertinent to the issue at > hand. > > I''d be most happy to help you once you provide the above. > > Have you downloaded and used Firebug? > > Regards, > > Tobie > > -- > Tobie Langel > http://tobielangel.com > > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Guys, clearly Stripe-man is doing his best. Let''s try to concentrate on what his real issue is rather than belittling his approach to asking for help, and/or attaching demeaning adjectives to the quality of his work, ok? Stripe... I think it best at this point to provide a live link to a little page isolating the problem. I too, have looked at your files, and at first blush thought it could be solved by Martin''s suggestion. I don''t run PHP so I can''t fire through this stuff without extracting to .html first. On 12/3/06, tobie <tobie.langel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi Terry, > > If you want assistance: > > 1. explain clearly what you want to do. > 2. isolate the issue that is causing problems. > 3. provide a link to a test case of that issue. > 4. make sure your code and markup are valid. > 5. remove anything that is useless or not pertinent to the issue at > hand. > > I''d be most happy to help you once you provide the above. > > Have you downloaded and used Firebug? > > Regards, > > Tobie > > -- > Tobie Langel > http://tobielangel.com > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Terry, try: Event.addBehavior({ ''.navlink:click'' : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); regards, Tobie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for replying... Um.. no.. im sorry to report that didnt work :( On 12/3/06, tobie <tobie.langel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi Terry, > > try: > > > Event.addBehavior({ > ''.navlink:click'' : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > }); > > regards, > > Tobie > > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Terry, I''m sorry, but I really don''t get what you are trying to do and what doesn''t work. Please try to explain what you want to do more clearly. Please post a link with that ONLY. Thanks, Tobie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Using addBehaviour, you don''t need to add an onclick directly to your div html. Instead, try this: THE JAVASCRIPT /* a behaviour class that will handle all the events fro the menu div element */ var menuButtonBehaviour = Behavior.create({ onclick : function(e) { new Effect.Highlight(this.element, { queue: ''end'' }); greet2(this.element.id); } }); /* Apply the event classes to the DOM as the elements become ready */ Event.addBehavior({ ''div.navlink'' : menuButtonBehaviour , }); THE HTML <div id="item1" class="navlink"> <a id="nav1" href="#">Link For Page 1</a> </div> Hope that helps, FA Stripe-man wrote:> Tobie... thanks for the reply... > > 1. What I want to do is:When i click on one of the navigation links > on the left: > > <div id="item1" class="navlink" > onclick="menu_action(''item1'');greet2(1)"> > <a id="nav1" href="#">Link For Page 1</a> > </div> > > I want the div (item1) to highlight Yellow like the main > content part of the page does... > That all im trying to do... > > 2. The problem seems to be coming from an improperly > called(formatted?) effect behavior: Below is formated as suggested > earlier: > > var menuitem = ''div#'' + item + '':click''; > > Event.addBehavior({ > menuitem : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > > }); > > Currently I have this wrapped in a JS function because I want to > set ''item'' dynamically. Item should be the > ID of the div that is wrapping the link thats to be clicked. (see > above link and div): > > function menu_action(item){ > var menuitem = ''div#'' + item + '':click''; > > Event.addBehavior({ > menuitem : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > > }); > } > > > 3. Test case... > http://www.brotherstrust.com/stripe-man/Ajax_PageNavUpdated/ > > 4. I do believe my code is now valid. > > 5. Useless code.. well I have tried to keep my code fairly clean... > though .. > comments have been left because.. well .. they help me.. > > 6. I have just now installed firebug. though it does not seem any > more informative than the js debugger.. > > I hope this is enough info :) > > Terry > > > > > > > > On 12/3/06, *tobie* <tobie.langel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > <mailto:tobie.langel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote: > > > Hi Terry, > > If you want assistance: > > 1. explain clearly what you want to do. > 2. isolate the issue that is causing problems. > 3. provide a link to a test case of that issue. > 4. make sure your code and markup are valid. > 5. remove anything that is useless or not pertinent to the issue at > hand. > > I''d be most happy to help you once you provide the above. > > Have you downloaded and used Firebug? > > Regards, > > Tobie > > -- > Tobie Langel > http://tobielangel.com > > > > > "In the 60''s, people took acid to make the world weird. Now the > world is weird and people take Prozac to make it normal." ..unknown > _____________________________ > Terry Remsik > stripe-man.dyndns.org <http://stripe-man.dyndns.org> > remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
matthew.heidemann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Dec-04 00:35 UTC
Re: Prototype question....
Hi Terry, So a few things: function menu_action(item){ var menuitem = ''div#'' + item + '':click''; Event.addBehavior({ --> menuitem : function(event) { new Effect.Highlight(this, { queue: ''end'' }); } }); } In the addBehavior method you create an object with properties as functions but in your object you created property called ''menuitem'' literally not ''div#item1:click''. So if I had code like: var id = ''matt'' var h = { id: function(){ alert(id) } } h.matt() ----> fails h.id() -----> alerts ''matt'' So the nice thing with Event.addBehavior is that it allows you to add behaviors without doing so inline. Setting the onclick property in HTML is duplicating efforts. If you want to keep the code inline but make your html fat, I would say onclick="new Effect.Highlight(this); greet..." should work else I would change your id''s to ''item_1'' that way you could do something like this Event.observe(window, ''load'', function(){ Event.addBehavior({ ''.navlinks:click'' : function(event) { new Effect.Highlight(this, { queue: ''end'' }); greet2(this.id.split(''_'')[1]) } }) }) Good Luck, Matt On Dec 3, 1:25 pm, Stripe-man <rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for replying... > > Um.. no.. im sorry to report that didnt work :( > > On 12/3/06, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > Hi Terry, > > > try: > > > Event.addBehavior({ > > ''.navlink:click'' : function(event) { > > new Effect.Highlight(this, { queue: ''end'' }); > > } > > }); > > > regards, > > > Tobie-- > "I have learned that you should''nt compare yourself to others - they are > more screwed up than you think." ...unknown > > "In the 60''s, people took acid to make the world weird. Now the world is > weird and people take Prozac to make it normal." ..unknown > _____________________________ > Terry Remsik > stripe-man.dyndns.org > rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
WOW>.. two awsome suggestions both work!!!! (I dont have the files updated yet on the demo link provided yet) Just 1 issue with each!! (sorry) Peters Example Works great and does exactly what I need.. with one draw back It pernamently changes the BG color for that div clicked to the color to the hover color specified in the css. odd. There isnt anything that is specifying this to change to green. This behavior (of the bgcolor turning into the hover color) is not consistient. If i dump this css property . its fine.(i like the hover!) In Mattews example.. It performs the desired function but the content does not stay. It appears for a split second then hides going back to the default content (as when you reload the page). Summary: I have decided to go with Peters Example. I just have to figure out why the dbcolor turns to the hover color. I will update my code on that site as soon as I can. Question: Can someone please tell me what teh difference between these are: Event.observe(window, ''load'', function(){ //Please note yes.. i am aware of teh { after function() and Event.observe(window, ''load'', init, false); //Please note.. yes i am aware of the termination of that line ( ; ) Thanks so much for your input, comments and your help. Terry On 12/4/06, matthew.heidemann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <matthew.heidemann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Hi Terry, > > So a few things: > function menu_action(item){ > var menuitem = ''div#'' + item + '':click''; > > Event.addBehavior({ > --> menuitem : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > } > > }); > } > > In the addBehavior method you create an object with properties as > functions but in your object you created property called ''menuitem'' > literally not ''div#item1:click''. > > So if I had code like: > var id = ''matt'' > var h = { id: function(){ alert(id) } } > h.matt() ----> fails > h.id() -----> alerts ''matt'' > > So the nice thing with Event.addBehavior is that it allows you to add > behaviors without doing so inline. Setting the onclick property in HTML > is duplicating efforts. If you want to keep the code inline but make > your html fat, I would say > onclick="new Effect.Highlight(this); greet..." > > should work else I would change your id''s to ''item_1'' that way you > could do something like this > > Event.observe(window, ''load'', function(){ > Event.addBehavior({ > ''.navlinks:click'' : function(event) { > new Effect.Highlight(this, { queue: ''end'' }); > greet2(this.id.split(''_'')[1]) > } > }) > }) > > Good Luck, > Matt > > > On Dec 3, 1:25 pm, Stripe-man <rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thanks for replying... > > > > Um.. no.. im sorry to report that didnt work :( > > > > On 12/3/06, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > Hi Terry, > > > > > try: > > > > > Event.addBehavior({ > > > ''.navlink:click'' : function(event) { > > > new Effect.Highlight(this, { queue: ''end'' }); > > > } > > > }); > > > > > regards, > > > > > Tobie-- > > "I have learned that you should''nt compare yourself to others - they are > > more screwed up than you think." ...unknown > > > > "In the 60''s, people took acid to make the world weird. Now the world > is > > weird and people take Prozac to make it normal." ..unknown > > _____________________________ > > Terry Remsik > > stripe-man.dyndns.org > > rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry.. meant to say that Im using Mattews Example.. Thanks again so much for providing an example Peter... On 12/4/06, Stripe-man <remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > WOW>.. two awsome suggestions both work!!!! (I dont have the files > updated yet on the demo link > provided yet) > > Just 1 issue with each!! (sorry) > Peters Example Works great and does exactly what I need.. with one draw > back > > It pernamently changes the BG color for that div clicked to the color to > the hover color specified in the css. > odd. There isnt anything that is specifying this to change to green. > This behavior (of the bgcolor turning > into the hover color) is not consistient. > > If i dump this css property . its fine.(i like the hover!) > > > In Mattews example.. It performs the desired function but the content > does not stay. It appears for a > split second then hides going back to the default content (as when you > reload the page). > > > Summary: > I have decided to go with Peters Example. I just have to figure out why > the dbcolor turns to the hover color. > I will update my code on that site as soon as I can. > > Question: > Can someone please tell me what teh difference between these are: > > Event.observe(window, ''load'', function(){ > //Please note yes.. i am aware of teh { after function() > > and > > Event.observe (window, ''load'', init, false); > //Please note.. yes i am aware of the termination of that line ( ; ) > > Thanks so much for your input, comments and your help. > > > Terry > > On 12/4/06, matthew.heidemann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <matthew.heidemann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > wrote: > > > > > > Hi Terry, > > > > So a few things: > > function menu_action(item){ > > var menuitem = ''div#'' + item + '':click''; > > > > Event.addBehavior({ > > --> menuitem : function(event) { > > new Effect.Highlight(this, { queue: ''end'' }); > > } > > > > }); > > } > > > > In the addBehavior method you create an object with properties as > > functions but in your object you created property called ''menuitem'' > > literally not ''div#item1:click''. > > > > So if I had code like: > > var id = ''matt'' > > var h = { id: function(){ alert(id) } } > > h.matt() ----> fails > > h.id() -----> alerts ''matt'' > > > > So the nice thing with Event.addBehavior is that it allows you to add > > behaviors without doing so inline. Setting the onclick property in HTML > > is duplicating efforts. If you want to keep the code inline but make > > your html fat, I would say > > onclick="new Effect.Highlight(this); greet..." > > > > should work else I would change your id''s to ''item_1'' that way you > > could do something like this > > > > Event.observe(window, ''load'', function(){ > > Event.addBehavior({ > > ''.navlinks:click'' : function(event) { > > new Effect.Highlight(this, { queue: ''end'' }); > > greet2( this.id.split(''_'')[1]) > > } > > }) > > }) > > > > Good Luck, > > Matt > > > > > > On Dec 3, 1:25 pm, Stripe-man <rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Thanks for replying... > > > > > > Um.. no.. im sorry to report that didnt work :( > > > > > > On 12/3/06, tobie <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > > > > > > > > > > > Hi Terry, > > > > > > > try: > > > > > > > Event.addBehavior({ > > > > ''.navlink:click'' : function(event) { > > > > new Effect.Highlight(this, { queue: ''end'' }); > > > > } > > > > }); > > > > > > > regards, > > > > > > > Tobie-- > > > "I have learned that you should''nt compare yourself to others - they > > are > > > more screwed up than you think." ...unknown > > > > > > "In the 60''s, people took acid to make the world weird. Now the world > > is > > > weird and people take Prozac to make it normal." ..unknown > > > _____________________________ > > > Terry Remsik > > > stripe-man.dyndns.org > > > rems...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > > > > > > > > > > -- > "I have learned that you should''nt compare yourself to others - they are > more screwed up than you think." ...unknown > > "In the 60''s, people took acid to make the world weird. Now the world is > weird and people take Prozac to make it normal." ..unknown > _____________________________ > Terry Remsik > stripe-man.dyndns.org > remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Did I say that I love this community? You don''t see a thread like this on a "newb" question too often elsewhere. Please keep it up. :) *slapsbacks* Best, Thomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thomas Fuchs wrote:> Did I say that I love this community? > You don''t see a thread like this on a "newb" question too often > elsewhere.Of course the flip-side is why does it take 20-odd responses to answer a "newb question"? -- Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I''d say, better too many than none. I guess he just didn''t quite get across what the problem was. :) -Thomas Am 04.12.2006 um 13:42 schrieb Fred:> > > Thomas Fuchs wrote: >> Did I say that I love this community? >> You don''t see a thread like this on a "newb" question too often >> elsewhere. > > Of course the flip-side is why does it take 20-odd responses to answer > a "newb question"? > > > -- > Fred > > > >-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
And as in many lists like this, he was suffered with several pedantic comments from people on how he was posting wrong, or doing this wrong, or etc... But the net result was good :) On 12/4/06, Thomas Fuchs <t.fuchs-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote:> > > I''d say, better too many than none. I guess he just didn''t quite get > across what the problem was. :) > > -Thomas > > Am 04.12.2006 um 13:42 schrieb Fred: > > > > > > > Thomas Fuchs wrote: > >> Did I say that I love this community? > >> You don''t see a thread like this on a "newb" question too often > >> elsewhere. > > > > Of course the flip-side is why does it take 20-odd responses to answer > > a "newb question"? > > > > > > -- > > Fred > > > > > > > > > -- > Thomas Fuchs > wollzelle > > http://www.wollzelle.com > > questentier on AIM > madrobby on irc.freenode.net > > http://www.fluxiom.com :: online digital asset management > http://script.aculo.us :: Web 2.0 JavaScript > http://mir.aculo.us :: Where no web developer has gone before > > > > > > > >-- Ryan Gahl Application Development Consultant Athena Group, Inc. Inquire: 1-920-955-1457 Blog: http://www.someElement.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I just wanna say that I am very appreciative of the help.. I hope in the future I can be more to the point and simplistic in my request and explaination so that I might get the fastest help possible.. LOL I must say though.. this ''thread'' has a lot of attention ! ? <blushes> lol Thanks guys!! :) Now if i can just figure out why that clicked div sometimes stays highlighed to the hover color!! Terry On 12/4/06, Ryan Gahl <ryan.gahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > And as in many lists like this, he was suffered with several pedantic > comments from people on how he was posting wrong, or doing this wrong, or > etc... But the net result was good :) > > On 12/4/06, Thomas Fuchs <t.fuchs-moWQItti3gBl57MIdRCFDg@public.gmane.org> wrote: > > > > > > I''d say, better too many than none. I guess he just didn''t quite get > > across what the problem was. :) > > > > -Thomas > > > > Am 04.12.2006 um 13:42 schrieb Fred: > > > > > > > > > > > Thomas Fuchs wrote: > > >> Did I say that I love this community? > > >> You don''t see a thread like this on a "newb" question too often > > >> elsewhere. > > > > > > Of course the flip-side is why does it take 20-odd responses to answer > > > a "newb question"? > > > > > > > > > -- > > > Fred > > > > > > > > > > > > > > -- > > Thomas Fuchs > > wollzelle > > > > http://www.wollzelle.com > > > > questentier on AIM > > madrobby on irc.freenode.net > > > > http://www.fluxiom.com :: online digital asset management > > http://script.aculo.us :: Web 2.0 JavaScript > > http://mir.aculo.us :: Where no web developer has gone before > > > > > > > > > > > > http://www.someElement.com > > > > > >-- "I have learned that you should''nt compare yourself to others - they are more screwed up than you think." ...unknown "In the 60''s, people took acid to make the world weird. Now the world is weird and people take Prozac to make it normal." ..unknown _____________________________ Terry Remsik stripe-man.dyndns.org remsikt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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... Fred, usually because newb questions are unclear, confused and so is their code... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---