Welcome Guest, Not a member yet? Register   Sign In
send data ajax
#1

[eluser]MMCCQQ[/eluser]
hii !

i got two field , one called username and another Messages... i can't send messages field

CI Said The URI you submitted has disallowed characters.


Code:
var url = "http://localhost/S5/index.php/events/send_invite/"+juntos+nuevo_msg;
  
      
  
      var ajax = new Ajax.Request( url, {
  
                                      
                                      method:"get",

                                      onComplete: procesaRespuesta

                                      }

      );


    
    
    
    
}

function procesaRespuesta( resp ){

        /* resp es un objeto XMLHTTPRequest

        resp.responseText es la respuesta en formato texto (puede ser html)

        resp.responseXML es la respuesta en formato XML */    

        $("bien")[removed] = resp.responseText;

}
#2

[eluser]SpooF[/eluser]
I would suggest you use the post method. The message your including in the url probably has disallowed characters.
#3

[eluser]MMCCQQ[/eluser]
[quote author="SpooF" date="1218701645"]I would suggest you use the post method. The message your including in the url probably has disallowed characters.[/quote]

no using ajax?
#4

[eluser]mdowns[/eluser]
Code:
var ajax = new Ajax.Request( url, {
  
                                      //use post here instead of get
                                      method:"post",

                                      onComplete: procesaRespuesta

                                      }

      );
#5

[eluser]MMCCQQ[/eluser]
same problem!
#6

[eluser]mdowns[/eluser]
Code:
var url = "http://localhost/S5/index.php/events/send_invite/"+juntos+nuevo_msg;

What are the values of juntos and nuevo_msg? If these have disallowed characters, then put them in the post body.




Theme © iAndrew 2016 - Forum software by © MyBB