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); } |
|
|
|
orglee [jQuery/XMLWriter] Błąd przy odczytywaniu odpowiedzi. 8.04.2009, 12:44:54
lord_t IMHO to wina po stronie js. Pokaż to wywołanie aj... 8.04.2009, 13:48:28
lord_t W odpowiedzi wysyłasz plik xml ale nie odbierasz t... 8.04.2009, 15:19:54
orglee Dzięki.
xml nic nie dało. Skasowanie funkcji head... 8.04.2009, 16:22:56
lord_t Mi w tej chwili nic takiego na myśl nie przychodzi... 8.04.2009, 19:40:26
orglee W sumie chętnie bym się przerzucił na JSONa, ale s... 8.04.2009, 20:25:06
lord_t Nie testowałem (ale jestem pewien), że jeśli wrzuc... 8.04.2009, 20:39:28
orglee Dzięki wielkie. Poczytałem treść z linka który pod... 14.04.2009, 08:17:40 ![]() ![]() |
|
Aktualny czas: 26.12.2025 - 21:47 |