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

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

It's perfect time to make

It's perfect time to make some plans for the future and it
is time to be happy. I have read this post and if I could I desire to suggest
you few interesting things or advice. Perhaps you could write next articles
referring to this article. I desire to read even more
things about it!

The info is extremely useful.

The info is extremely useful.

Hi to all, since I am truly

Hi to all, since I am truly eager of reading this weblog's post
to be updated daily. It carries pleasant material.

Astonishingly individual

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

It's remarkable to go to see

It's remarkable to go to see this website and reading the views of all friends about this piece of writing, while I am also eager of
getting knowledge.

With thanks for sharing this

With thanks for sharing this neat web page.

Thank you for your curiosity

Thank you for your curiosity in Investment Recommendation.

Wow, awesome weblog format!

Wow, awesome weblog format! How lengthy have you
ever been blogging for? you made running a blog look easy.

The whole glance of your web site is wonderful, let alone the content material!

Thanks meant for offering

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

Everything is very open with

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

It was really informative. Your website is useful.
Thank you for sharing!

I am really impressed with

I am really impressed with your writing skills as well as with the layout on your weblog.
Is this a paid theme or did you customize it yourself?
Either way keep up the excellent quality writing, it's rare to see a great blog like this
one nowadays.

You've gotten impressive

You've gotten impressive thing listed here.

A financial advisor is your

A financial advisor is your planning accomplice.

This is true for investment

This is true for investment recommendation as effectively.

Hi! I simply wish to offer

Hi! I simply wish to offer you a huge thumbs up for your great info
you have got here on this post. I will be returning to your website
for more soon.

I adore this site - its so

I adore this site - its so usefull and helpfull.

What's up, just wanted to

What's up, just wanted to tell you, I liked this post.
It was funny. Keep on posting!

Now it is time to decide your

Now it is time to decide your specific investments.

You've the most impressive

You've the most impressive web sites.

If you wish for to obtain

If you wish for to obtain much from this article then you have to apply these strategies to your won website.

Great web website! It looks

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

Hi there! I understand this

Hi there! I understand this is kind of off-topic but I had to ask.
Does managing a well-established website such
as yours take a massive amount work? I'm brand new to operating a blog but I do write in my journal on a daily basis.
I'd like to start a blog so I will be able to share my personal experience and thoughts online.
Please let me know if you have any kind of suggestions or tips for brand new aspiring blog owners.
Thankyou!

Thank you for the auspicious

Thank you for the auspicious writeup. It in truth was a amusement account
it. Look complicated to more brought agreeable from you!
By the way, how can we be in contact?

slphg24t fotbollströjor

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

Very energetic article, I

Very energetic article, I loved that bit. Will there be a part 2?

Great internet site! It looks

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

Today, I went to the beach

Today, I went to the beach front with my children. I found a
sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put
the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

This is my first time pay a

This is my first time pay a visit at here and i
am genuinely happy to read all at single place.

Great web website! It looks

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

Great goods from you, man. I

Great goods from you, man. I have understand your stuff previous to and you're just extremely wonderful.

I really like what you've acquired here, certainly like what
you are stating and the way in which you say
it. You make it entertaining and you still care for to keep it sensible.
I can't wait to read far more from you. This is actually a tremendous website.

Really....such a useful

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

billiga fotbollströjor

I pay a visit each day a few

I pay a visit each day a few websites and
information sites to read content, however this website
presents feature based posts.

fotbollströjor fodboldtrøjer

Hello i am kavin, its my

Hello i am kavin, its my first time to commenting anyplace, when i read this
piece of writing i thought i could also create comment due to
this brilliant piece of writing.

nemoadministrativerecord.

Hi there! I just wanted to

Hi there! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing several
weeks of hard work due to no backup. Do you have any
solutions to stop hackers?

ysiaq. m2u.

We absolutely love your blog

We absolutely love your blog and find the majority of your post's to be exactly what I'm looking for.

can you offer guest writers to write content for you?

I wouldn't mind creating a post or elaborating on a lot of the subjects you write with regards to
here. Again, awesome blog!

Thanks pertaining to

Thanks pertaining to supplying this type of substantial written content.

A financial advisor is your

A financial advisor is your planning partner.

I love this site - its so

I love this site - its so usefull and helpfull.

When someone writes an post

When someone writes an post he/she keeps the thought of a user in his/her brain that how
a user can know it. So that's why this paragraph is amazing.

Thanks!

amoremjewelry. ankorona.

Schwab Intelligent Portfolios

Schwab Intelligent Portfolios invests in Schwab ETFs.

Do you mind if I quote a few

Do you mind if I quote a few of your posts as long as I provide
credit and sources back to your blog? My blog is in the very same area of
interest as yours and my users would genuinely benefit from
some of the information you provide here. Please let me know if this
alright with you. Cheers!

amoremjewelry.

I blog quite often and I

I blog quite often and I seriously appreciate your content.

This article has really peaked my interest.
I'm going to bookmark your site and keep checking for new information about once a week.
I opted in for your Feed as well.

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.