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

Hello! This is kind of off

Hello! This is kind of off topic but I need some advice from an established blog.
Is it very hard to set up your own blog? I'm not very
techincal but I can figure things out pretty fast.
I'm thinking about setting up my own but I'm not sure where
to start. Do you have any ideas or suggestions?
With thanks

Heya i am for the primary

Heya i am for the primary time here. I found this board and I in finding It really helpful & it helped me out much. I am hoping to present one thing again and help others such as you helped me.|

Highly descriptive article, I

Highly descriptive article, I liked that a lot. Will there be a part 2?

Hi! I know this is kinda off

Hi! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in trading links or maybe guest writing a blog article or vice-versa?
My website goes over a lot of the same subjects as yours and I believe we could greatly benefit from each other.
If you are interested feel free to send me an email.
I look forward to hearing from you! Excellent blog by the
way!

Do you have a spam problem on

Do you have a spam problem on this blog; I also am a blogger, and I was curious about your situation; we have created some nice methods and we are looking to trade methods with other folks, why not shoot me an email if interested.|

There is definately a great

There is definately a great deal to learn about this subject.
I like all of the points you've made.

Thank you for the good

Thank you for the good writeup. It in fact used to be a leisure account it.
Glance advanced to far introduced agreeable from you! By the way, how can we keep up a correspondence?

Undeniably imagine that which

Undeniably imagine that which you stated. Your favorite reason seemed to be at the net the easiest thing to take into account of. I say to you, I definitely get annoyed even as people think about concerns that they just don't recognize about. You managed to hit the nail upon the highest and defined out the entire thing with no need side effect , other people could take a signal. Will probably be again to get more. Thank you|

Wow, this paragraph is nice,

Wow, this paragraph is nice, my younger sister is analyzing such things, thus I am going to tell her.

Great items from you, man.

Great items from you, man. I've bear in mind your stuff previous to and you're just too magnificent. I really like what you have obtained right here, really like what you are stating and the way in which through which you say it. You make it enjoyable and you still care for to stay it wise. I can not wait to read much more from you. That is actually a tremendous web site.|

Can you tell us more about

Can you tell us more about this? I'd want to find
out more details.

It's very easy to find out

It's very easy to find out any topic on net as compared to books, as I found this post at this web site.

This piece of writing is in

This piece of writing is in fact a pleasant one it assists new the
web viewers, who are wishing for blogging.

I loved as much as you'll

I loved as much as you'll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get got an impatience over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly a lot often inside case you shield this increase.|

Thanks for your personal

Thanks for your personal marvelous posting! I genuinely enjoyed reading it, you can be a great
author. I will make certain to bookmark your
blog and will often come back very soon. I
want to encourage one to continue your great work, have a nice evening!

When some one searches for

When some one searches for his necessary thing, so he/she desires to be available
that in detail, thus that thing is maintained over here.

Hello there, I discovered

Hello there, I discovered your blog by means of Google whilst searching for a similar topic, your website came up, it appears to be like good. I've bookmarked it in my google bookmarks.

Great article! That is the

Great article! That is the kind of info that are supposed to be shared around the web.
Shame on Google for no longer positioning this submit
upper! Come on over and consult with my website .
Thank you =)

Remarkable! Its truly awesome

Remarkable! Its truly awesome article, I have got much clear idea concerning from this piece of writing.

Nice post. I was checking

Nice post. I was checking constantly this blog and I'm inspired! Extremely helpful information specifically the last phase :) I deal with such info much. I used to be looking for this particular info for a very long time. Thank you and best of luck. |

Remarkable! Its in fact

Remarkable! Its in fact awesome paragraph, I
have got much clear idea on the topic of from this paragraph.

I do not even know how I

I do not even know how I ended up right here, however I believed
this submit was great. I do not recognize who you might be however certainly you're going to a famous blogger should you aren't already.
Cheers!

Thank you for every other

Thank you for every other informative blog. The place else may I get that kind of info written in such a perfect manner?
I have a venture that I am simply now running on, and I have
been on the glance out for such info.

Hey there! I know this is

Hey there! I know this is somewhat off-topic but I had to ask. Does operating a well-established blog such as yours take a massive amount work? I am brand new to writing a blog however I do write in my journal every day. I'd like to start a blog so I can share my experience and thoughts online. Please let me know if you have any suggestions or tips for new aspiring bloggers. Thankyou!|

Write more, thats all I have

Write more, thats all I have to say. Literally, it seems as though you relied on the video to
make your point. You obviously know what youre talking about, why throw away your intelligence on just
posting videos to your site when you could be giving us something enlightening
to read?

Hello there! Do you know if

Hello there! Do you know if they make any plugins to safeguard against hackers? I'm kinda paranoid about losing everything I've worked hard on. Any suggestions?|

I'm gone to tell my little

I'm gone to tell my little brother, that he should also
visit this website on regular basis to take updated from
latest news update.

Does your blog have a contact

Does your blog have a contact page? I'm having a tough time locating it but, I'd like to shoot you an e-mail. I've got some creative ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it develop over time.|

Asking questions are truly

Asking questions are truly pleasant thing if you are not understanding something totally,
except this article offers pleasant understanding
yet.

Hmm is anyone else

Hmm is anyone else encountering problems with the pictures on this blog loading? I'm trying to find out if its a problem on my end or if it's the blog. Any suggestions would be greatly appreciated.|

Very nice post. I just

Very nice post. I just stumbled upon your blog and wanted to mention that I've really loved surfing around your blog posts.
In any case I'll be subscribing for your feed and
I hope you write once more very soon!

Hi there, I wish for to

Hi there, I wish for to subscribe for this web site to get most recent updates, thus where can i do it please help.|

Hello, its good article

Hello, its good article regarding media print, we all be aware of media is a
wonderful source of facts.

What's up Dear, are you

What's up Dear, are you actually visiting this site on a regular basis,
if so after that you will definitely obtain pleasant knowledge.

Hello, I read your blog on a

Hello, I read your blog on a regular basis. Your humoristic style is witty, keep it up!|

Nice post. I learn something

Nice post. I learn something totally new and challenging on blogs I stumbleupon on a daily basis.
It's always exciting to read through articles from other writers and practice something from other web sites.

wonderful issues altogether,

wonderful issues altogether, you simply won a new reader.
What could you suggest about your publish that you just made
a few days ago? Any certain?

Thanks very nice blog!

Thanks very nice blog!

Hey there would you mind

Hey there would you mind stating which blog platform you're
working with? I'm going to start my own blog in the near future but I'm having a
difficult time deciding between BlogEngine/Wordpress/B2evolution and Drupal.
The reason I ask is because your design and style seems different then most blogs and I'm looking for something unique.
P.S Apologies for getting off-topic but I had to ask!

Heya i am for the first time

Heya i am for the first time here. I found this board and I find It really useful & it helped me out much. I hope to give something back and aid others like you helped me.|

Thanks for finally writing

Thanks for finally writing about >Válasz a hozzászólásra

It's really a great and

It's really a great and useful piece of information.
I am satisfied that you simply shared this helpful
information with us. Please stay us informed like this.
Thank you for sharing.

Why people still use to read

Why people still use to read news papers when in this technological world the whole thing is accessible
on web?

Hello to all, the contents

Hello to all, the contents present at this web page are truly awesome for people knowledge, well, keep up the nice work fellows.|

Yes! Finally something about

Yes! Finally something about %keyword1%.|

This web site definitely has

This web site definitely has all of the info I needed about this subject and didn't know who to ask.

First off I want to say

First off I want to say fantastic blog! I had a quick question in which I'd like to ask if you do not mind. I was interested to find out how you center yourself and clear your head before writing. I've had a tough time clearing my mind in getting my thoughts out there. I truly do take pleasure in writing but it just seems like the first 10 to 15 minutes are usually lost simply just trying to figure out how to begin. Any recommendations or tips? Thanks!|

I have read a few good stuff

I have read a few good stuff here. Definitely worth bookmarking for
revisiting. I wonder how much attempt you set to make one of these wonderful informative site.

What i do not understood is

What i do not understood is in fact how you
are now not really a lot more neatly-favored than you may be now.

You're so intelligent. You realize thus considerably on the subject
of this topic, made me individually consider it from numerous numerous angles.
Its like men and women aren't involved unless it's something to do with Lady gaga!
Your individual stuffs outstanding. Always care for it up!

Fabulous, what a website it

Fabulous, what a website it is! This webpage presents valuable facts
to us, keep it up.

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.