views:

16

answers:

1

I am sending a request using post, but on firebug I see the request type is OPTIONS.
How do I avoid that?
Here is the code I am using:

var Req = new Request.HTML({'onSuccess':function(responseTree){
                                                        $('my_id').innerHTML='';
                        $('my_id').adopt(responseTree);
     },'url':'/home/takecare.php'}).post($('Form-id'));

I am using SSL (i.e. the url is https://somthing.com/v.php)

A: 

As Dimitar Christoff implied, the error was due to submission from https url to http. Changing that fixed the problem.

Itay Moav