This I can''t fathom: I have a Rails application which renders the following two links ro create new objects as part of a taskbar <b> <a onclick="new Ajax.Request(''/items/new'', {asynchronous:true, evalScripts:true, parameters:''item_type='' + ''Diary_date'' + ''&authenticity_token='' + encodeURIComponent (''lvGwTrO1QEp1zJOSY3UngizQIJ9KQ7YGFq5oRh5OYkg='')}); return false;" href="#">date</a> </b> | <b> <a onclick="new Ajax.Request(''/items/new'', {asynchronous:true, evalScripts:true, parameters:''item_type='' + ''File_upload'' + ''&authenticity_token='' + encodeURIComponent (''lvGwTrO1QEp1zJOSY3UngizQIJ9KQ7YGFq5oRh5OYkg='')}); return false;" href="#">file</a> </b> | But when the page renders, the first link is clickable, while the second isn''t. But this only seems to be the case in Windows Firefox, not Mac or IE. The ERB which produces the links, and the links themselves are identifical to my eye, except for the fact they deal with different models. Any ideas?
On Tue, Oct 20, 2009 at 11:03 AM, theambler <tom.symonds-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Any ideas?Can you validate the page (say, at http://validator.w3.org/)? When I''ve run into weird things like this, I have restarted by development server on port 80 and pointed the validator at the page on my development server just to see what it spits out. oh... you wanted "good" ideas. Sorry, I don''t think I can help you there. :-) --wpd
No thats a good idea. How can I get an application with secure session-based login validated by W3 -- the validator just ends up validating the login page. On Oct 20, 4:17 pm, Patrick Doyle <wpds...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Oct 20, 2009 at 11:03 AM, theambler <tom.symo...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > Any ideas? > > Can you validate the page (say, athttp://validator.w3.org/)? When > I''ve run into weird things like this, I have restarted by development > server on port 80 and pointed the validator at the page on my > development server just to see what it spits out. > > oh... you wanted "good" ideas. Sorry, I don''t think I can help you there. :-) > > --wpd
2009/10/20 theambler <tom.symonds-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>:> > No thats a good idea. > > How can I get an application with secure session-based login validated > by W3 -- the validator just ends up validating the login page.Just get to the page then view the source and copy it, then paste into the ''direct input'' page at W3 Colin> > On Oct 20, 4:17 pm, Patrick Doyle <wpds...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Tue, Oct 20, 2009 at 11:03 AM, theambler <tom.symo...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> > Any ideas? >> >> Can you validate the page (say, athttp://validator.w3.org/)? When >> I''ve run into weird things like this, I have restarted by development >> server on port 80 and pointed the validator at the page on my >> development server just to see what it spits out. >> >> oh... you wanted "good" ideas. Sorry, I don''t think I can help you there. :-) >> >> --wpd > > >
On Tue, Oct 20, 2009 at 8:41 AM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:>> How can I get an application with secure session-based login validated >> by W3 -- the validator just ends up validating the login page. > > Just get to the page then view the source and copy it, then paste into > the ''direct input'' page at W3The Firefox Web Developer Toolbar has a "Validate Local HTML" method to make this easier, FWIW. Also, if your markup and CSS validate, and there''s no JS errors showing, try turning off CSS. Either the link is receiving the event and the action isn''t taking place for some reason - or - the link never gets the event at all because some element is "above" it and capturing the event. Turning off CSS will help determine if the latter is true. Or add a listener to the body that alerts the target of a click event -- then try to click on the link and see what captures the event. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan
All good. Thanks. Will test later. On Oct 20, 4:56 pm, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Tue, Oct 20, 2009 at 8:41 AM, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > >> How can I get an application with secure session-based login validated > >> by W3 -- the validator just ends up validating the login page. > > > Just get to the page then view the source and copy it, then paste into > > the ''direct input'' page at W3 > > The Firefox Web Developer Toolbar has a "Validate Local HTML" > method to make this easier, FWIW. > > Also, if your markup and CSS validate, and there''s no JS errors > showing, try turning off CSS. > > Either the link is receiving the event and the action isn''t taking place > for some reason - or - the link never gets the event at all because > some element is "above" it and capturing the event. Turning off CSS > will help determine if the latter is true. > > Or add a listener to the body that alerts the target of a click event -- > then try to click on the link and see what captures the event. > > HTH, > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > twitter: @hassan
Couldn''t find any validation problems on those lines. IN the end I moved the links around a bit, and the one in question does now trigger -- but only from the first couple of letters. Really strange. On Oct 20, 5:26 pm, theambler <tom.symo...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> All good. Thanks. Will test later. > > On Oct 20, 4:56 pm, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > On Tue, Oct 20, 2009 at 8:41 AM, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > >> How can I get an application with secure session-based login validated > > >> by W3 -- the validator just ends up validating the login page. > > > > Just get to the page then view the source and copy it, then paste into > > > the ''direct input'' page at W3 > > > The Firefox Web Developer Toolbar has a "Validate Local HTML" > > method to make this easier, FWIW. > > > Also, if your markup and CSS validate, and there''s no JS errors > > showing, try turning off CSS. > > > Either the link is receiving the event and the action isn''t taking place > > for some reason - or - the link never gets the event at all because > > some element is "above" it and capturing the event. Turning off CSS > > will help determine if the latter is true. > > > Or add a listener to the body that alerts the target of a click event -- > > then try to click on the link and see what captures the event. > > > HTH, > > -- > > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > twitter: @hassan > >