Thread: AJAX Problem
View Single Post
08-18-2007, 08:43 AM
#1
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,694
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old  AJAX Problem

I am using Prototype for an AJAX script I made, the only problem is I have to hit the submit button, I can't hit Enter..

Is there anyway, to find out how to make it when you hit enter it will do it?

I was thinking of doing an if like:
Code:
document.onkeypress = function(){
if(document.getElementById('FORMID').focus){
ajaxCall();
}
}
Only problem is that it doesn't say when and what key it will work on...

I can only show the project to a select few, as it's very close to me. I don't think I would need to show anyone for this though.