var pars= "text1="+jQuery("#Text1").val();
should be a normal object!
var pars= {text1:jQuery("#Text1").val()};
or a result from $.serialize



On 6/19/07, oscar esp <[EMAIL PROTECTED]> wrote:


Hi finally I got a public server to puplish the link:

http://www.grupofusion.com/testcharset/testtBlock.asp

the code:
_____________

testtBlock.asp


<html>
        <head>
            <META http-equip="Content-Type" content="text/html;
charset=iso-8859-1">
                <title>Generación Cartel</title>
                <script
src="/InmoFusion2/libs_Ext/jquery/jquery.js"></script>
                <script>
        jQuery.noConflict();
                </script>
                <script
src="/InmoFusion2/libs_Ext/jquery/jquery.form.js"></script>
        <script src="/test/testpo.js"></script>
        </head>
        <body>
                <form id="test1" action="test2.asp" method="post">
                        <INPUT id="Text1" type="text" name="Text1">
                        <INPUT id="td" type="button"
onclick="guardarApunte();"
value="Submit" name="Submit1">
                </form>
                <div id="dRes">
                </div>
        </body>
</html>
________________

the js

function guardarApunte()
{
debugger;
jQuery.ajaxSetup({contentType: "application/x-www-form-urlencoded;
charset=iso-8859-1"}) ;
    jQuery.pair = function(f,v) {return escape(f) + "=" + escape(v)};
        var url = "test2.asp"
        var pars= "text1="+jQuery("#Text1").val();
                jQuery.ajax({
                        type: "post",
                        url: url,
                        data: pars,
                        async: false,
                        success: function(data)
                        {
                                debugger;
                                jQuery("#dRes").html(data);
                        }
        });

}

______________________

the page that get the post

<META http-equip="Content-Type" content="text/html;
charset=iso-8859-1">
<%
Response.AddHeader "Content-Type", "text/html; charset=iso-8859-1"

Response.Write("response: "+request.Form("text1").item)
%>





--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to