Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [AJAX]$.ajaxStart is not a function
Twist
post 9.07.2012, 16:28:04
Post #1





Grupa: Zarejestrowani
Postów: 174
Pomógł: 11
Dołączył: 12.10.2008
Skąd: Dublin

Ostrzeżenie: (0%)
-----


Po kolei:

  1. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
  2. <script src="@Url.Content("~/Scripts/jquery.blockUI.js")"></script>
  3. <script src="@Url.Content("~/Content/js/rx.common.2.js")"></script>


Wszytskie skrypty includuja sie poprawnie.

Dalej:
  1. <script type="text/javascript">
  2. $(document).ready(function () {
  3. $.ajaxStart(
  4. $.blockUI({
  5. message: '<span class="loader green" original-title="Loading, please wait…"></span><h3> Please wait...</h3>'
  6. })
  7. );
  8. $.ajaxStop($.unblockUI);
  9.  
  10. });
  11.  
  12. </script>


Wyskakuje "lightbox"
  1. <div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>
  2. <div class="blockUI" style="display: none;"></div>
  3. <div class="blockUI blockOverlay" style="z-index: 1000; border: medium none; margin: 0px; padding: 0px; width: 100%; height: 100%; top: 0px; left: 0px; background-color: rgb(0, 0, 0); opacity: 0.6; cursor: wait; position: fixed;"></div>


ale... AJAX sie wykonuje, a ekran dalej czarny + w konsoli mam:
  1. $.ajaxStart is not a function


O co chodzi?

Go to the top of the page
+Quote Post
CuteOne
post 9.07.2012, 16:50:48
Post #2





Grupa: Zarejestrowani
Postów: 2 958
Pomógł: 574
Dołączył: 23.09.2008
Skąd: wiesz, że tu jestem?

Ostrzeżenie: (0%)
-----


http://api.jquery.com/ajaxStart/#comment-61464202
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 15.07.2025 - 11:11