Calendar/naptár blokkban lapozás AJAX segítségével

  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Snippet

Ez a kis kód segít abban, hogy a blokkba helyezett calendar nézet miatt ne kelljen mindig újra újratölteni az oldalt, ha a naptárban lapoz valaki. A kód akkor fog működni ha nem az eredeti calendar modul által létrehozott nézetet használod (amúgy sem módosítunk bele modul által létrehozott nézetbe), hanem klónozod my_calendar néven, majd az eredetit letiltod.
sajat.js file-ba írandó, majd a sminkben hozzáadandó, lusták a page.tpl.php-be is beszúrhatják.
[geshifilter-javascript] <script type="text/javascript"> $(document).ready(function() { $.ajaxSetup ({cache: false}); // Display animated loading gif during the load event. Change the "path-to-loader-pic" text to a real path to the ajax-loader.pic var loading = "<center><img class='loading' src='path-to-loader-pic/ajax-loader.gif' alt='loading...' /></center>"; function nextLoad(){ // Get the nextURL from the pagers next link var nextUrl = $(".view-display-id-calendar_block_1 .date-next a")[0].href; // Identify the content/container you wish to replace $(".view-display-id-calendar_block_1") // Add the loading image .html(loading) .css({ opacity: 0 }).fadeTo("normal",1) // Load the nextUrl + return the specific content by specifing the css class or id + bind the click function tp the newly loaded //content .load(nextUrl+ "#block-views-my_calendar-calendar_block_1 .view-display-id-calendar_block_1 .calendar-calendar", bindClick ); }; function prevLoad(){ var prevUrl = $(".view-display-id-calendar_block_1 .date-prev a")[0].href; $(".view-display-id-calendar_block_1") .html(loading) .css({ opacity: 0 }).fadeTo("normal",1) .load(prevUrl+ "#block-views-my_calendar-calendar_block_1 .calendar-calendar", bindClick ); }; function bindClick(){ $(".view-display-id-calendar_block_1 .date-prev a").click(function(){ prevLoad(); return false; }); $(".view-display-id-calendar_block_1 .date-next a").click(function(){ nextLoad(); return false; }); }; // Append the click function to the on the initial page load bindClick(); }); </script> [/geshifilter-javascript]
Az eredeti kód innen van: http://drupal.org/node/339279#comment-2006476 viszont ét kellett alakítani, különben naptár oldalon a naptár blokk nem viselkedett valami jó.

Hozzászólások

I treasure the details on

I treasure the details on your web sites. Regards. sites:ggglese.com
Billige Fodboldtrøjer http://www.codiscosaudio.com/UserProfile/tabid/43/UserID/1628243/Default...

The info is extremely useful.

The info is extremely useful.

Astonishingly individual

Astonishingly individual pleasant site. Huge information offered on few gos to.

With thanks for sharing this

With thanks for sharing this neat web page.

Thanks meant for offering

Thanks meant for offering these sort of wonderful write-up.

You've gotten impressive

You've gotten impressive thing listed here.

I adore this site - its so

I adore this site - its so usefull and helpfull.

You've the most impressive

You've the most impressive web sites.

Great web website! It looks

Great web website! It looks extremely expert! Maintain the helpful work!

slphg24t fotbollströjor

slphg24t fotbollströjor 0wxfcv 7y95a1 maglie calcio poco prezzo 6vt0l2 2n4yaq1ht7 fodboldtrøjer 1nzx3eb 2p59kmc6oj fotballdrakter zdgtfaw9

Great internet site! It looks

Great internet site! It looks really good! Keep up the good work!

Great web website! It looks

Great web website! It looks extremely expert! Keep up the great job!

Really....such a useful

Really....such a useful web-site.

billiga fotbollströjor

fotbollströjor fodboldtrøjer

nemoadministrativerecord.

ysiaq. m2u.

Thanks pertaining to

Thanks pertaining to supplying this type of substantial written content.

I love this site - its so

I love this site - its so usefull and helpfull.

amoremjewelry. ankorona.

amoremjewelry.

I love this site - its so

I love this site - its so usefull and helpfull.
playeatpartyproductions.com http://playeatpartyproductions.com/groups/billige-fodboldtrojer-norine/

Great looking site. Assume

Great looking site. Assume you did a great deal of your own html coding.

bemanipiracy. clevio.

mohaaaa. exodium.

Heya! I know this is somewhat

Heya! I know this is somewhat off-topic but I needed
to ask. Does operating a well-established website such as yours require a lot of work?
I am completely new to operating a blog however I do write in my diary everyday.
I'd like to start a blog so I can easily share
my own experience and views online. Please let me
know if you have any ideas or tips for new aspiring bloggers.

Appreciate it!

Just wished to say I'm just

Just wished to say I'm just lucky I stumbled upon your web page.|

3anvygk8q5 billige

3anvygk8q5 billige fodboldtrøjer q9xien neumj6po fotbollströjor barn rxthz34ay nakw5vxo maglie calcio mbp16y0g mai8ub25 fotballdrakter barn ptclzb2

You're an extremely helpful

You're an extremely helpful site; could not make it without ya!

gemlikemlak. kenal.

perfochip.

You could definitely see your

You could definitely see your expertise within the article you write.
The world hopes for even more passionate writers such as you who aren't afraid to say how they believe.
Always go after your heart.

Your advice is amazingly

Your advice is amazingly fascinating.

4hx9e8f17 billiga

4hx9e8f17 billiga fotbollströjor 1ehbnvs2o0 4xfial fodboldtrøjer børn gklcxn 2gvhuesi0 billige fotballdrakter akv9ycqt t4azbsm maglie del calcio gsrdnei4q1

Love the site-- very

Love the site-- very individual friendly and whole lots to see!

gameduaxe. vatal. tokenfrm.

Wonderful, what a webpage it

Wonderful, what a webpage it is! This web site gives helpful information to
us, keep it up.

You have superb stuff these.

You have superb stuff these.

u4t71a5jl

tgmdoa5 fodboldtrøjer børn

tgmdoa5 fodboldtrøjer børn oep4sv0 p3rm0d9y fotbollströjor 71viton5z 6plzox billige fotballdrakter e7m8ht 3eqckrl1m maglie calcio poco prezzo qvnoei4

Great website! It looks very

Great website! It looks very expert! Maintain the excellent job!

gamedabong. afterservice.

sewpopular. funerare.

I just couldn't go away your

I just couldn't go away your site prior to suggesting that I extremely loved the standard info
an individual supply for your guests? Is going to be again frequently in order
to investigate cross-check new posts

Passion the website-- very

Passion the website-- very individual pleasant and whole lots to see!

poshwedconnect. markit.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.