New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • mrhaw, thanks! smiley
      samurai smiley
    • Hallo, me again smiley Is it possible to add capcha to this form?
        samurai smiley
      • Hello, i'm having a problem with eform and ajax...



        I have a form with a jQuery code that I'm using to validate and call some content using Ajax into a <option field:

        <form method="post" action="[~[*id*]~]" id="bookingForm" name="bookingForm">
        <input name="forxmid" type="hidden" value="bookingForm" />
        ...
        more code
        ...
        var loadToPlaces = function (fromPlaceId) {
        
            var params = {"method":"loadToPlaces", "fromId":fromPlaceId};
            $.ajax({
                [b]type: "POST",[/b]
                url: "[~208~]",
                data: params,
                dataType: "json",
                success: function(data) {
                    $('#toSelect').empty();
                    $.each(data.places, function(index, value) {
                        $('#toSelect').append('<option value="' + value.id + '__' + value.location + '">' + value.name + '</option>');
                    });
        
                    $('#toSelect').change(
                            function() {
                                var dataArray = $(this).val().split("__");
                                setMarkerPosition(dataArray[1], false);
                            }).trigger('change');
                }
            });
        };


        Everything works perfect, BUT the SEND button is not sending the form, the problem is this:

        type: "POST",


        If i change it to GET for example, the form works perfect, but the <option will not get the info....

        ANY IDEAS???
        Thank you very much.
          --
          ysanmiguel.com
        • Great Tut, it really worked for me! smiley smiley

          I'm just having one problem. I want the shareform to automaticlly load when I open the page. Window unload doesn't work. Can somebody please help me?