Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-15 Thread voltron

It works!

After a few days of not staring at the code in puzzlement, I decided
to investigate what Erik and Jose suspected; they were right. Since I
had started developing the app with all the static files in the
applications public folder, I had forgotten to delete them when I
started using Apache for that purpose whilst proxying to the Paste
server. The older, half-finished Javascript files were being loaded
instead, and since they worked to an extent, I did not have the
initial thought to scrutinize exactly where the Javascript files were
coming from, what made matters worse is the fact that I did not
exclude the Javascript folder in the Proxy configuration.

Thank you Jose and Erik for your help, and heaps of praise for Joe
Hewitt for creating FireBug :-))




On Jul 13, 11:56 pm, Jose Galvez [EMAIL PROTECTED] wrote:
 That would be great, I'd be happy to test it here if you want to email it to
 me my email is [EMAIL PROTECTED]
 Jose

 On 7/13/07, voltron [EMAIL PROTECTED] wrote:



  Yes Erik, the javascript is being included because all the validation
  fields work except the checkboxes. I use always FireFox and Firebug
  for testing and debugging, Firebug does not show errors for the page
  for javascript, CSS or HTML, The console is also empty. No errors.

  It is a very strange situation, maybe some wonky stuff going on
  because I´m proxying to the Pylons server.

  @ Jose

  I have´nt put in on a public server yet, its running on a local
  workstation. I could give you the template and content to render in a
  test app though.

  Thanks

  On Jul 13, 10:21 pm, Erik Jones [EMAIL PROTECTED] wrote:
   On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote:

Hi Jose!

Thanks for your reply. Here is a link to the standalone version.
What I mean by standalone is that it is not rendered by Pylons at all.
The static. What drives me crazy is that this static page is an exact
copy of what is rendered from Pylons

   http://www.nhytro.de/val/validation.html

I´m sorry if its in German, but a quick test is to press the submit
button, the page does not get sent as expected, but when this page is
rendered from Pylons, it gets sent no matter what.

Thanks

   Regardless of what's being rendered, are you sure that your jquery and
   other js files, especially register.js are being included?  When
   debugging javascript issues, you really should be working in Firefox
   and using the Firebug plugin.  Load the page, open the Firebug pane,
   click on Script and then click on the little down arrow just above the
   word Script and you can see exactly what files were served.

   When you call $('#register_form').validate(...) in register.js what
   that's essentially doing is using your plugin to set up an event
   handler for when the form is submitted.  So, if any of the js files
   aren't being delivered, things won't work.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
Dear voltron,
Routes uses the rules to figure out what controller and action to pass the
request to.  I can get complicated, but once your request has been passed to
your controller routes does very little.  I'm not sure what you mean by the
standalone html works but a rendered page does not.  I'm not familir with
jquery (I'll look that up right now), but I would assume the problem your
having is with links back to the plugin not working? could you post some
example code of what works and what does not?
Jose

On 7/13/07, voltron [EMAIL PROTECTED] wrote:


 This is making me go crazy.

 I have a form that is using Jquery and a plugin for validation. from
 the server, rendered from pylons, clicking on the submit buttons just
 send the form, no matter what. The same form, embedded in a standalone
 HTML file works very well, and never tries to submit the form till it
 is properly validated, I have been at this for almost two days now and
 the problem seems to be by Pylons/Routes. I have made several diffs of
 the rendered page and the standalone, no difference.

 My questions; what exactly gets triggered when one clicks on a submit
 button? What are the chain of events.does anyone have any idea what I
 ´m doing wrong?

 Thanks


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
Which plugins are you using?

On 7/13/07, voltron [EMAIL PROTECTED] wrote:


 This is making me go crazy.

 I have a form that is using Jquery and a plugin for validation. from
 the server, rendered from pylons, clicking on the submit buttons just
 send the form, no matter what. The same form, embedded in a standalone
 HTML file works very well, and never tries to submit the form till it
 is properly validated, I have been at this for almost two days now and
 the problem seems to be by Pylons/Routes. I have made several diffs of
 the rendered page and the standalone, no difference.

 My questions; what exactly gets triggered when one clicks on a submit
 button? What are the chain of events.does anyone have any idea what I
 ´m doing wrong?

 Thanks


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron

I´m using this plugin

http://bassistance.de/jquery-plugins/jquery-plugin-validation/




On Jul 13, 9:15 pm, Jose Galvez [EMAIL PROTECTED] wrote:
 Which plugins are you using?

 On 7/13/07, voltron [EMAIL PROTECTED] wrote:



  This is making me go crazy.

  I have a form that is using Jquery and a plugin for validation. from
  the server, rendered from pylons, clicking on the submit buttons just
  send the form, no matter what. The same form, embedded in a standalone
  HTML file works very well, and never tries to submit the form till it
  is properly validated, I have been at this for almost two days now and
  the problem seems to be by Pylons/Routes. I have made several diffs of
  the rendered page and the standalone, no difference.

  My questions; what exactly gets triggered when one clicks on a submit
  button? What are the chain of events.does anyone have any idea what I
  ´m doing wrong?

  Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
I bet thats whats going on too, can I get a link the the actual pylons
rendered page?
Jose

On 7/13/07, Erik Jones [EMAIL PROTECTED] wrote:


 On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote:
  Hi Jose!
 
  Thanks for your reply. Here is a link to the standalone version.
  What I mean by standalone is that it is not rendered by Pylons at all.
  The static. What drives me crazy is that this static page is an exact
  copy of what is rendered from Pylons
 
  http://www.nhytro.de/val/validation.html
 
  I´m sorry if its in German, but a quick test is to press the submit
  button, the page does not get sent as expected, but when this page is
  rendered from Pylons, it gets sent no matter what.
 
  Thanks

 Regardless of what's being rendered, are you sure that your jquery and
 other js files, especially register.js are being included?  When
 debugging javascript issues, you really should be working in Firefox
 and using the Firebug plugin.  Load the page, open the Firebug pane,
 click on Script and then click on the little down arrow just above the
 word Script and you can see exactly what files were served.

 When you call $('#register_form').validate(...) in register.js what
 that's essentially doing is using your plugin to set up an event
 handler for when the form is submitted.  So, if any of the js files
 aren't being delivered, things won't work.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Erik Jones

On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote:
 Hi Jose!

 Thanks for your reply. Here is a link to the standalone version.
 What I mean by standalone is that it is not rendered by Pylons at all.
 The static. What drives me crazy is that this static page is an exact
 copy of what is rendered from Pylons

 http://www.nhytro.de/val/validation.html

 I´m sorry if its in German, but a quick test is to press the submit
 button, the page does not get sent as expected, but when this page is
 rendered from Pylons, it gets sent no matter what.

 Thanks

Regardless of what's being rendered, are you sure that your jquery and
other js files, especially register.js are being included?  When
debugging javascript issues, you really should be working in Firefox
and using the Firebug plugin.  Load the page, open the Firebug pane,
click on Script and then click on the little down arrow just above the
word Script and you can see exactly what files were served.

When you call $('#register_form').validate(...) in register.js what
that's essentially doing is using your plugin to set up an event
handler for when the form is submitted.  So, if any of the js files
aren't being delivered, things won't work.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread voltron

Yes Erik, the javascript is being included because all the validation
fields work except the checkboxes. I use always FireFox and Firebug
for testing and debugging, Firebug does not show errors for the page
for javascript, CSS or HTML, The console is also empty. No errors.

It is a very strange situation, maybe some wonky stuff going on
because I´m proxying to the Pylons server.

@ Jose

I have´nt put in on a public server yet, its running on a local
workstation. I could give you the template and content to render in a
test app though.

Thanks



On Jul 13, 10:21 pm, Erik Jones [EMAIL PROTECTED] wrote:
 On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote:

  Hi Jose!

  Thanks for your reply. Here is a link to the standalone version.
  What I mean by standalone is that it is not rendered by Pylons at all.
  The static. What drives me crazy is that this static page is an exact
  copy of what is rendered from Pylons

 http://www.nhytro.de/val/validation.html

  I´m sorry if its in German, but a quick test is to press the submit
  button, the page does not get sent as expected, but when this page is
  rendered from Pylons, it gets sent no matter what.

  Thanks

 Regardless of what's being rendered, are you sure that your jquery and
 other js files, especially register.js are being included?  When
 debugging javascript issues, you really should be working in Firefox
 and using the Firebug plugin.  Load the page, open the Firebug pane,
 click on Script and then click on the little down arrow just above the
 word Script and you can see exactly what files were served.

 When you call $('#register_form').validate(...) in register.js what
 that's essentially doing is using your plugin to set up an event
 handler for when the form is submitted.  So, if any of the js files
 aren't being delivered, things won't work.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes/Pylons shortcircuiting Javascript validation

2007-07-13 Thread Jose Galvez
That would be great, I'd be happy to test it here if you want to email it to
me my email is [EMAIL PROTECTED]
Jose

On 7/13/07, voltron [EMAIL PROTECTED] wrote:


 Yes Erik, the javascript is being included because all the validation
 fields work except the checkboxes. I use always FireFox and Firebug
 for testing and debugging, Firebug does not show errors for the page
 for javascript, CSS or HTML, The console is also empty. No errors.

 It is a very strange situation, maybe some wonky stuff going on
 because I´m proxying to the Pylons server.

 @ Jose

 I have´nt put in on a public server yet, its running on a local
 workstation. I could give you the template and content to render in a
 test app though.

 Thanks



 On Jul 13, 10:21 pm, Erik Jones [EMAIL PROTECTED] wrote:
  On Jul 13, 2:22 pm, voltron [EMAIL PROTECTED] wrote:
 
   Hi Jose!
 
   Thanks for your reply. Here is a link to the standalone version.
   What I mean by standalone is that it is not rendered by Pylons at all.
   The static. What drives me crazy is that this static page is an exact
   copy of what is rendered from Pylons
 
  http://www.nhytro.de/val/validation.html
 
   I´m sorry if its in German, but a quick test is to press the submit
   button, the page does not get sent as expected, but when this page is
   rendered from Pylons, it gets sent no matter what.
 
   Thanks
 
  Regardless of what's being rendered, are you sure that your jquery and
  other js files, especially register.js are being included?  When
  debugging javascript issues, you really should be working in Firefox
  and using the Firebug plugin.  Load the page, open the Firebug pane,
  click on Script and then click on the little down arrow just above the
  word Script and you can see exactly what files were served.
 
  When you call $('#register_form').validate(...) in register.js what
  that's essentially doing is using your plugin to set up an event
  handler for when the form is submitted.  So, if any of the js files
  aren't being delivered, things won't work.


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---