OK, I''ve got the following function: var showForm = function(fn,identifier) { $(''input''+fn+identifier).show(); $(''output''+fn+identifier).hide(); $(''waiting''+fn+identifier).hide(); } that works great in Firefox and Safari. In IE, however, the hide() statements work just fine, but show() does not. If I remove the hide () statements, then show() works, but if there as soon as I add hide () back in, show() fails in IE 6 & 7. Is there an issue here I don''t know about? Thanks! --Josh --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The same malfunction happens in Opera, but it works great in Firefox and Safari for Windows and OSX. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If it would be helpful, you can test it for your self by going to http://www.prebeltway.org/login.php and using [username: demo, password: test], and then clicking Your Profile in the list at the top. As you will see, there is an onload event that hides the divs containing input forms and waiting indicators. Clicking the red buttons should hide the output info and show the forms, and then clicking again submits the form data and hides it, shows the waiting indicator, and then hides the waiting indicator and shows the refreshed output data again. ...Just not in IE or Opera. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Any ideas on this? I''m still stuck. Nothing I try seems to work. I appreciate all the help you all have given already! --Josh On Aug 17, 3:19 pm, Josh Carroll <j...-LE8aq9gSDEq61VtY7fu8aA@public.gmane.org> wrote:> OK, > > I''ve got the following function: > > var showForm = function(fn,identifier) > { > $(''input''+fn+identifier).show(); > $(''output''+fn+identifier).hide(); > $(''waiting''+fn+identifier).hide(); > > } > > that works great in Firefox and Safari. In IE, however, the hide() > statements work just fine, but show() does not. If I remove the hide > () statements, then show() works, but if there as soon as I add hide > () back in, show() fails in IE 6 & 7. > > Is there an issue here I don''t know about? > > Thanks! > > --Josh--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It looks to be like your form tag closes with </form)> This is going to be causing problems. Aside from that, your input field is actually nested inside your output element, so if you hide output, all its children (including input) will be hidden as well. See this screenshot from IE Developer toolbar for reference. (form.jpg) I''ve seen improper nesting caused when you short-close tags as well. eg: <div id="somediv"/> which is invalid markup as far as I know. Hope this helps some. Gareth On 8/19/07, Josh C <josh-LE8aq9gSDEq61VtY7fu8aA@public.gmane.org> wrote:> > > Any ideas on this? I''m still stuck. Nothing I try seems to work. > > I appreciate all the help you all have given already! > > --Josh > > > > > On Aug 17, 3:19 pm, Josh Carroll <j...-LE8aq9gSDEq61VtY7fu8aA@public.gmane.org> wrote: > > OK, > > > > I''ve got the following function: > > > > var showForm = function(fn,identifier) > > { > > $(''input''+fn+identifier).show(); > > $(''output''+fn+identifier).hide(); > > $(''waiting''+fn+identifier).hide(); > > > > } > > > > that works great in Firefox and Safari. In IE, however, the hide() > > statements work just fine, but show() does not. If I remove the hide > > () statements, then show() works, but if there as soon as I add hide > > () back in, show() fails in IE 6 & 7. > > > > Is there an issue here I don''t know about? > > > > Thanks! > > > > --Josh > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ahh! That''s it! Thank you so much! That ) actually CAUSED the improper nesting because the form element didn''t close until the > of the </div> tag that should have closed the output element. Thanks again! --Josh On Aug 18, 2007, at 10:19 PM, Gareth Evans wrote:> It looks to be like your form tag closes with > </form)> > This is going to be causing problems. > Aside from that, your input field is actually nested inside your > output element, so if you hide output, all its children (including > input) will be hidden as well. > > See this screenshot from IE Developer toolbar for reference. > (form.jpg) > > I''ve seen improper nesting caused when you short-close tags as well. > eg: <div id="somediv"/> which is invalid markup as far as I know. > > Hope this helps some. > > Gareth > > > > > On 8/19/07, Josh C <josh-LE8aq9gSDEq61VtY7fu8aA@public.gmane.org> wrote: > > Any ideas on this? I''m still stuck. Nothing I try seems to work. > > I appreciate all the help you all have given already! > > --Josh > > > > > On Aug 17, 3:19 pm, Josh Carroll <j...-LE8aq9gSDEq61VtY7fu8aA@public.gmane.org> wrote: > > OK, > > > > I''ve got the following function: > > > > var showForm = function(fn,identifier) > > { > > $(''input''+fn+identifier).show(); > > $(''output''+fn+identifier).hide(); > > $(''waiting''+fn+identifier).hide(); > > > > } > > > > that works great in Firefox and Safari. In IE, however, the hide() > > statements work just fine, but show() does not. If I remove the > hide > > () statements, then show() works, but if there as soon as I add hide > > () back in, show() fails in IE 6 & 7. > > > > Is there an issue here I don''t know about? > > > > Thanks! > > > > --Josh > > > > <form.jpg>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---