Hi,  in the last months i have been using the prototype framework.
But at some points i havent been able to write unintrusive
code(separating javascript from the pages).  Here is an example of
what i am trying to do.


function onBlurObject(){
        var url = "pag/newPage.php";
        var pars = "txtCedula="+$F('txtCedula');
        var myAjax = new Ajax.Updater( 'charging', url, { method: "post",
parameters: pars, evalScripts: true  });

Event.observe(window, 'load', function() {
  Event.observe('txtCedula', 'blur', onBlurObject);

Until know it is unintrusive.  But the thing is that in the page
newPage.php i have some fields that i should react to certain events
like the onblur or change.  What is the correct way create another
event.observe('fieldNewPage','blur',function), cause i believe writing
any javascript on newPage.php wouldnt be correct or is it?

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to