dajaxice

Making jquery plugins work after an Ajax call

元气小坏坏 提交于 2019-12-05 20:02:35
It's gonna be a long post, but I really had enough of trying to fix this. I'm really looking for some help solving my case. First: fade.js : $(document).ready(function(){ $(".gallery ul li img.a").fadeTo("slow", 0.5); // This sets the opacity of the thumbs to fade down to 30% when the page loads $(".gallery ul li img.a").hover(function(){ $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover },function(){ $(this).fadeTo("slow", 0.5); // This should set the opacity back to 30% on mouseout }); }); The problem here is after the ajax call of the next page, the fade stops

Getting object value for AJAX call using Dajaxice

旧城冷巷雨未停 提交于 2019-12-04 06:53:15
问题 I have a Song model with a votes attribute. I have a Vote as Favourite button displayed below each Song object. I want when a user clicks on the Vote as Favourite button the votes attribute associated with that Song object should increment by 1 and all the Vote as Favourite buttons should be disabled. HTML {% for song in dj_song_list %} <div> <p class="song"><h3><strong>{{ song.name }}</strong></h3></p> <p><strong>Artist: </strong>{{ song.artists}}</p> <button type="button" class="btn btn

Getting object value for AJAX call using Dajaxice

被刻印的时光 ゝ 提交于 2019-12-02 13:14:08
I have a Song model with a votes attribute. I have a Vote as Favourite button displayed below each Song object. I want when a user clicks on the Vote as Favourite button the votes attribute associated with that Song object should increment by 1 and all the Vote as Favourite buttons should be disabled. HTML {% for song in dj_song_list %} <div> <p class="song"><h3><strong>{{ song.name }}</strong></h3></p> <p><strong>Artist: </strong>{{ song.artists}}</p> <button type="button" class="btn btn-default btn-custom" id='vote' onclick="Dajaxice.hunt.disable_button(Dajax.process)">Vote as Favourite<

Dajaxice javascript core file not getting parsed

末鹿安然 提交于 2019-11-30 21:57:12
I've been looking everywhere for answer to my questions last few hours and couldn't find anything, so i decided to ask. I followed installation instruction in docs of Dajaxice, got everything setup exacly the same, but unfortunetely my Dajax.core.js file is not getting parsed, so when i click on the javascript link in page html source it still contains template tags. I included the Dajaxice finder in staticfiles_finder(actually i ve got everything setup like in the ins instruction. I am using django 1.4.1 develop server at the moment for testing and the latest Dajaxice version which is 0.9, is