![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 999 Pomógł: 30 Dołączył: 14.01.2007 Skąd: wiesz ? Ostrzeżenie: (0%) ![]() ![]() |
Wysyłam metodą $.post() dane do serwera. Niestety przy odczytywaniu odpowiedzi jQuery pluje wyjątkiem.
Cytat Błąd: uncaught exception: Node cannot be inserted at the specified point in the hierarchy (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR) Kod generujący XML wygląda tak:Plik źródłowy: http://localhost/proj1/web/script/query/jquery-1.2.6.js Wiersz: 238 I przy wywołaniu zwraca: Myślałem że błąd leży przy zamknięciu tagu <message> ale kiedy podmieniłem odpowiedź na: Problem pozostał ten sam. Nadal w konsoli Firefox'a widzę ten wyjątek. |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 999 Pomógł: 30 Dołączył: 14.01.2007 Skąd: wiesz ? Ostrzeżenie: (0%) ![]() ![]() |
Kod function DrawingsRequest() { }
DrawingsRequest.page = 1; DrawingsRequest.Pane = new Pane(); DrawingsRequest.Pane.name = 'Drawings - LOG'; DrawingsRequest.Pane.content = '<ul>\n\ <li>Pobieram wyniki: <span class="request-time">0</span></li>\n\ <li class="debug"></li>\n\ </ul>' DrawingsRequest.Counter = new Counter(); DrawingsRequest.Counter.jump = 0.1; DrawingsRequest.Counter.meter = 0; DrawingsRequest.Counter.duration = 100; DrawingsRequest.Counter.eventRegister(function(){ DrawingsRequest.loading(); }); DrawingsRequest.send = function($trigger) { $().ajaxError(function(event, request, $settings){ DrawingsRequest.handleError($settings); }); DrawingsRequest.Pane.open(); DrawingsRequest.Counter.start(); $($trigger).attr('disabled', 'disabled').blur(); $.post(Website.getDomain()+'drawings/', DrawingsRequest.preparate(), function($response) { DrawingsRequest.handleResponse($response); }); } DrawingsRequest.handleError = function($settings) { DrawingsRequest.Counter.stop(); $('.debug', DrawingsRequest.Pane.jquery).html('Błąd połączenia z ' + $settings.url + '.'); } DrawingsRequest.loading = function() { var $time = new String(DrawingsRequest.Counter.meter); $('span.request-time', DrawingsRequest.Pane.jquery).html($time.substr(0, $time.indexOf('.') + 2)); } DrawingsRequest.preparate = function() { return { page: DrawingsRequest.page }; } DrawingsRequest.handleResponse = function($response) { DrawingsRequest.Counter.stop(); $('#drawings').html($response); } |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 15.08.2025 - 01:45 |