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

  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • 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

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 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.

Wonderful, what a webpage it

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

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

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

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

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

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!

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.

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!!

I go to see daily some web

I go to see daily some web pages and blogs to read
articles or reviews, however this web site offers quality based posts.

I'm not sure why but this

I'm not sure why but this website is loading incredibly slow for me.
Is anyone else having this problem or is it
a problem on my end? I'll check back later on and see
if the problem still exists.

Good post. I learn something

Good post. I learn something totally new and challenging on sites I stumbleupon every day.
It's always interesting to read articles from other writers and use something from
other web sites.

Do you mind if I quote a

Do you mind if I quote a couple of your posts as long as I provide credit and sources
back to your site? My website is in the very same
niche as yours and my visitors would really benefit from a lot of
the information you present here. Please let me know if this alright with you.
Thanks!

Feel free to surf to my website :: generic tadalafil

Very great post. I simply

Very great post. I simply stumbled upon your weblog and wanted to mention that I have truly enjoyed surfing around your blog posts.
In any case I'll be subscribing in your rss feed
and I hope you write again soon!

Here is my webpage - cialis com

Nowadays, as the development

Nowadays, as the development of high technology, people like to use computer, they use computer to read the news, to play the game buy Yamaha Boat Motors and so on. Now more and more computer functions have been developed, people like to do business on the computer, it saves people a lot of time and it is very convenient for Yamaha Outboards Sale. Shopping online is most people’s choice today, but it has disadvantages. First, the products will be not in good quality, people can’t touch the Suzuki Outboards, they only can see the pictures, so they can’t figure out the real products’ quality. Second, when people pay the money online, they will have the chance to leak out their message, their online account will be attacked by the hackers and thus to lose the money. According to shopping Honda Marine online is more and more popular, we must take care of personal message when shopping online.

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.