Jump to content
Fórum Script Brasil
  • 0

Ajax remove os espaços entre palavras


Roteiro Virtual

Question

Olá amigo, sempre acompanho o IMASTER. Estou com um grande problema, meu ajax combo dinamica remove o espaço existente entre duas palavras, tipo joao carlos, fica: joaocarlos

Este é o código que faz a requisição e passa o valor submetido fique sem espaço em branco entre palavras.

Qual o problema? segue meu código:

function comboimovel()
 {
 var comboimovel = createXMLHTTP();
 comboimovel.open("post", "objimovel.asp", true);
 comboimovel.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
 comboimovel.onreadystatechange=function(){
 if (comboimovel.readyState==4){
 document.all.divcomboimovel.innerHTML = comboimovel.responseText;}}
 comboimovel.send("codestado="+document.frm1.codestado.value+"&codcidade="+document.frm1.codcidade.value);

 }

Edited by fercosmig
add tags
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...