@html-css

Как правильно поставить данную форму?

Пытаюсь поставить эту формуна сайт. Разработчики данного виджета не отвечают.

Подскажите, что сделать? Консоль выдает следующее:

Uncaught TypeError: Cannot read property 'fromCountryId' of undefined
    at application.js:59
    at HTMLDocument.<anonymous> (application.js:63)
    at Function.<anonymous> (jquery-1.3.2_uicore-datepicker-color_1.7.2.min.js:19)
    at Function.each (jquery-1.3.2_uicore-datepicker-color_1.7.2.min.js:12)
    at Function.ready (jquery-1.3.2_uicore-datepicker-color_1.7.2.min.js:19)
    at HTMLDocument.<anonymous> (jquery-1.3.2_uicore-datepicker-color_1.7.2.min.js:19)


Я так понимаю каких-то атрибутов нету.

Код формы:

<!--        - - - - - - -   Начало кода     - - - - - - - -         -->
    <script type="text/javascript">
        function showteztourSearch() {
            var path = 'http://json.tez-tour.com/static/ats/';
            var now = new Date();
            var dateTo = new Date();
            dateTo.setDate(now.getDate()+7);
            var monthes = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
            var teztourSearchSettings = {
                "fromCountryId":[1102],
                "fromCityId":[345],
                "toCountryId":1104,
                "departureDateMin":( now.getDate() < 10 ? "0"+now.getDate() : now.getDate() )+"."+monthes[now.getMonth()]+"."+now.getFullYear(),
                "departureDateMax":( dateTo.getDate() < 10 ? "0"+dateTo.getDate() : dateTo.getDate() )+"."+monthes[dateTo.getMonth()]+"."+dateTo.getFullYear(),
                "nightsMin":7,
                "nightsMax":15,
                "nightsLimits":[2,20],
                "adults":2,
                "adultsLimits":[1,12],
                "children":0,
                "childrenLimits":[0,12],
                "childrenBirthday":[],
                "priceMin":0,
                "priceMax":9999,
                "currency":5561,
                "findByPrice":true,
                "tourId":[1285],
                "hotelClassId":[9006279, 9006280, 9006281],
                "feedId":[9006288, 9006289],
                "hotelId":[0],
                "hotelInStop":false,
                "noTicketsTo":false,
                "noTicketsFrom":false,
                "locale":"ru",
                "partnerLink":"http://vashsite.ru/forma.jsp "
            }
            var JSON=window.JSON||{};JSON.stringify=JSON.stringify||function(obj){var t=typeof(obj);if(t!="object"||obj===null){if(t=="string")obj='"'+obj+'"';return String(obj);}else{var n,v,json=[],arr=(obj&&obj.constructor==Array);for(n in obj){v=obj[n];t=typeof(v);if(t=="string")v='"'+v+'"';else if(t=="object"&&v!==null)v=JSON.stringify(v);json.push((arr?"":'"'+n+'":')+String(v));}return(arr?"[":"{")+String(json)+(arr?"]":"}");}};var url=path+'search_'+teztourSearchSettings.locale+'.html';return('<iframe id="teztourSearchFrame" width="908" height="464" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" name='+JSON.stringify(teztourSearchSettings)+' src="'+url+'"></iframe>');
        };
    </script>

    <div id="teztourSearch" style="width:908px;height:464px;"><script type="text/javascript">document.write(showteztourSearch());</script></div>
<!--        - - - - - - -   Конец кода     - - - - - - - -         -->
  • Вопрос задан
  • 70 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы