Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [js] Poszukuję dobrego, sprawdzonego...
code46
post
Post #1





Grupa: Zarejestrowani
Postów: 88
Pomógł: 0
Dołączył: 21.04.2005

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


Cześć,
szukam jakiegoś dobrego, szybkiego i sprawdzonego frameworka do JS+AJAX. Słyszałem o jQuery - dobry jest? Ważna jest także prostota bo nie znam JS.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
siemakuba
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 112
Pomógł: 20
Dołączył: 10.04.2005

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


Cytat(Jarod @ 18.03.2008, 16:54:55 ) *
Rozumiem. Gdzię znajdę spis wszystkich tych znaczników? I nawet jeśli dopasuję kilka poprawnie działających to jak zapisać warunki dla każdej przeglądarki osobno?

Np. tu:
http://developer.mozilla.org/en/docs/Gecko_DOM_Reference
http://msdn2.microsoft.com/en-us/library/m...055(VS.85).aspx
Cytat(Jarod @ 18.03.2008, 16:54:55 ) *
Niby tak, ale:
-zmuszasz się do wrzucania całości do swojego projektu
-jquery umie tylko chyba obrazki (galerię zdjęć) w ten sposób wyświetlać.

Będziesz tak miły i podasz linka do dokumentacji, gdzie jest opisane zastosowanie takiego rozwiązania?


Wrzucenie całości jQuery? To niewielkie obciążenie dla transferu - wersja spakowana to niecałe 30kb.
Czy umie tylko obrazki? Nie doceniasz ;) http://jquery.com/demo/thickbox/

pozdr.
Go to the top of the page
+Quote Post
Jarod
post
Post #3





Grupa: Zarejestrowani
Postów: 1 190
Pomógł: 27
Dołączył: 23.04.2005

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


Cytat(siemakuba @ 19.03.2008, 01:04:31 ) *
Np. tu:
http://developer.mozilla.org/en/docs/Gecko_DOM_Reference
http://msdn2.microsoft.com/en-us/library/m...055(VS.85).aspx
Wrzucenie całości jQuery? To niewielkie obciążenie dla transferu - wersja spakowana to niecałe 30kb.
Czy umie tylko obrazki? Nie doceniasz (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) http://jquery.com/demo/thickbox/

pozdr.

Te strony to widziałem - myślałem, że jest coś więcej. Co do thickbox'a to także widziałem. Chciałem sam ugryźć temat. Dzięki za poświęcony czas (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)


Cytat(NoiseMc @ 19.03.2008, 05:22:46 ) *
Zobacz tutaj metode getHeight () i jak wykorzystuje ja w showLoading () moze pomoc z ustalaniem wysokosci okna

http://www.laurarosephotography.com/javasc.../Ajax/common.js
BTW ... po co echo-ujesz HTML ?


@NoiseMc: Ten skrypcik co podałeś, działa super w FF, jak się doda dodatkowo 30px do wyniku pageHeight (return pageHeight+30;) to działa dobrze w IE. Natomiast Opera kaszani się (na dole zostaje około centymetr białego paska - niezasłoniętego).

Co do drugiego Twojego pytania.. Kod, który podawałem skopiowałem ze skryptu, żeby nie pisać od początku. Trafiłem na skrypt, w którym dużo warunków za pomocą php jest sprawdzanych, a tam gdzie większość kodu generowana w php nie wychodzę z php tylko treść wyświetlam za pomocą echo - podobno lepiej wyświetlać strukturę (czyt. szybciej) dokumentu za pomocą echo niż otwierać i zamykać często sekcję php (<?php ?>).




ROZWIĄZANIE PROBLEMU:
index.php
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <meta http-equiv="Content-Language" content="pl" />
  5. <meta name="Robots" content="all" />
  6. <meta name="Pragma" content="no-cache" />
  7. <meta name="Cache-Control" content="no-store, no-cache, must-revalidate" />
  8.  
  9. <link rel="stylesheet" href="index.css" type="text/css" />
  10. <!--[if gte IE 6]><link rel="stylesheet" href="index_ie.css" type="text/css" /><![endif]-->
  11.  
  12. </head>
  13.  
  14. <div id="loader"></div>
  15. <!-- DODATKOWY BLOK POTRZEBNY DLA IE ŻEBY NIE IGNOROWAŁ MARGINESÓW !!! -->
  16. <div>
  17. <div id="content">
  18. What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). Where does it come from? Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
  19. To jest przykładowy tekst
  20. </div>
  21. </div>
  22.  
  23. </body>
  24. </html>


index.css
  1. div#loader {position: fixed; top:0px; left:0px; background: #000000; width:100%; height:100%; z-index:9999;
  2. filter:alpha(opacity=60); -moz-opacity:0.6; opacity: 0.6;}
  3.  
  4. div#content {margin: 30px auto 0 auto; width: 200px; min-height: 500px; height: auto; color: #000000;
  5. background-color: red;}


index_ie.css
  1. body { margin: 0; padding:0; width: 100%; height:100%; overflow-y:auto;}
  2. html {overflow-x:auto; overflow-y:hidden;}
  3. * html div#loader {position:absolute;}



Działa pod FF, Operą i IE. Stawiam wirtualnego browarka dla tego kto potrafi mi wytłumaczyć, dlaczego ten dodatkowy blok <div> w kodzie index.php jest potrzebny, aby IE nie olewał marginesów? (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)

Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie
- code46   [js] Poszukuję dobrego, sprawdzonego...   16.03.2008, 14:24:06
- - Cezar708   Cytat(code46 @ 16.03.2008, 14:24:06 )...   16.03.2008, 14:36:31
- - Piniek   mootools   16.03.2008, 14:45:44
- - code46   A co myślicie o jQuery? Poszukuję skryptu, który ...   16.03.2008, 14:52:01
- - janek1230   Kiedyś używałem mootools i jQuery, i z jQuery byłe...   16.03.2008, 15:01:43
- - Piniek   wedlug testow w phpsolutions to mootools jest najs...   16.03.2008, 15:07:20
- - janek1230   Co do innych to nie wiem, ale ja z tych 2-ch (moot...   16.03.2008, 15:10:13
- - code46   A wiecie może jak za pomocą JS wykonać takie przyc...   17.03.2008, 14:03:56
- - siemakuba   Jeżeli chodzi o bibliotekę to zdecydowanie polecam...   17.03.2008, 14:10:44
- - code46   Dziękuje za odpowiedzi. Jeśli chodzi o ten efekt, ...   17.03.2008, 21:54:39
- - siemakuba   1. napisz style odpowiednie dla tego DIVa, który b...   17.03.2008, 22:03:37
- - code46   Próbuję coś naskrobać i nawet pomysł fajny. Nawet ...   17.03.2008, 23:03:23
|- - Jarod   Cytat(code46 @ 17.03.2008, 23:03:23 )...   17.03.2008, 23:06:44
- - siemakuba   Cytat(code46 @ 17.03.2008, 23:03:23 )...   17.03.2008, 23:26:12
|- - code46   Cytat(siemakuba @ 17.03.2008, 23:26:1...   17.03.2008, 23:31:51
- - siemakuba   Cytat(code46 @ 17.03.2008, 23:31:51 )...   17.03.2008, 23:45:16
|- - code46   Cytat(siemakuba @ 17.03.2008, 23:45:1...   18.03.2008, 16:01:34
- - siemakuba   Nie działa - domyślam się że nie wyświetla się obr...   18.03.2008, 16:06:20
- - Jarod   Z tym obrazkiem to zrobiłbym tak. [HTML] pobierz, ...   18.03.2008, 16:40:54
- - siemakuba   @Jarod: widzisz, wpadłem na taki pomysł i na szybk...   18.03.2008, 16:51:04
|- - Jarod   Cytat(siemakuba @ 18.03.2008, 16:51:0...   18.03.2008, 16:54:55
- - siemakuba   Cytat(Jarod @ 18.03.2008, 16:54:55 ) ...   19.03.2008, 01:04:31
|- - Jarod   Cytat(siemakuba @ 19.03.2008, 01:04:3...   19.03.2008, 14:19:23
- - NoiseMc   Zobacz tutaj metode getHeight () i jak wykorzystuj...   19.03.2008, 05:22:46


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

 



RSS Aktualny czas: 13.03.2026 - 09:51