Thanks for the new direction, though I'm still having issues. I've
looked at the links and tried to follow their documentation, but still
having issues.
Not only can I not get it to work, it also causes all other functions
I have, to not work either. This is inside an external js file. Btw,
"randy.php" is comparing sendcode (which I want to use via post
method) to some session variable, and then echoing "<div
id=testdiv>Correct</div>" if true. I had that part working with my old
code, but now I don't think the php file is getting the "id" that I'm
trying to send.

Here is the function, any ideas?:

function codeCheck(){

sendcode = document.getElementById('code').value;

new Ajax.request('randy.php',{
    method:'post',parameters:{'id='+sendcode},
    onSuccess: function(transport){
        var test = $('testdiv');
        if("Correct" == test.innerHTML)
           test.update(transport.responseText);
    }

});

}

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to