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

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

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!

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.

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.

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.

sfcus. gamehay. mercury.

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

tecnicosinside. phim.

opf. mercury. cdte44.

Everything is very open with

Everything is very open with a really clear explanation of the issues.

It was definitely informative. Your website
is extremely helpful. Thank you for sharing!

Feel free to visit my web blog ... www.canadiandrugstore.com

Great looking site. Presume

Great looking site. Presume you did a lot of your own html coding.

clearfusioncms.

clevio. cdte44.

Definitely consider that that

Definitely consider that that you said. Your favourite justification appeared to
be on the net thee simplest thkng to consider of.

I say to you, I definitely get irked while people think about
worries that they just do not understand about. You controlled to hit the nakl upon the highest aand also defined out the
whole thing with no need side effect , folks can take a
signal. Will probaably be back to get more.
Thanks

Here is my webb site ... benicar medication

Wow because this is really

Wow because this is really great job! Congrats and keep it up.

bitcoinzap. marvicsupply.

vins-zink. duaxe3d.

That is a very good tip

That is a very good tip especially to those new to the blogosphere.
Short but very precise info… Thanks for sharing this one.

A must read article!

You have got possibly the

You have got possibly the best web sites.

pixelon. florapos. azatweb.

I am sure this paragraph has

I am sure this paragraph has touched all the internet people, its really really fastidious paragraph on building up new weblog.

hy991. unisotong.

onsystem. shegoday. phim.

Oh my goodness! Amazing

Oh my goodness! Amazing article dude! Thanks, However I am encountering problems with your RSS.

I don't understand the reason why I cannot subscribe to it.

Is there anyone else having the same RSS issues? Anybody who knows the solution will you kindly respond?
Thanx!!

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.