model view controller - MVC Rails Planning - i'm starting rails , i'm building app stores films info, user can watch film , give grade on web application. i have coded cinema model, controller , views. now, have 2 questions: should need create model , controller grading? in case, should create or should wait , create first users model , controller? yes, on model , controller grades. that'd feasible way maintain track of who's graded what. it's create first, i'd start users, since grades depend on both films , users. ruby-on-rails model-view-controller
html - Submenu setup with jquery and effect 'fold' - i want open submenu jquery effect fold, problem if user "hover effect" fast menu remain open, how can avoid this, jquery code is: $('ul.mainmenu li').hover( function() { $(this).children('ul').show('fold', 570); }, function() { $(this).children('ul').hide('fold', 500); } ); my jsfiddle link is: http://jsfiddle.net/9wkbf/ updated fiddle the reason behind problem is, first event $(this).children('ul').show('fold', 570); queued , until completes, sec animation not start. the next snippet can workaround $('ul.mainmenu > li').hover( function() { $(this).children('ul').show('fold', 570); }, function() { $('ul:not(.mainmenu)').hide('fold', 500); } ); *important note : work current scenario. jquery html css
get url id in php and display result in html - hi have written code in order news id url , display news result id stored in mysql. dont know doing wrong. getting output. have test query running fine in mysql.i doing little misatke not able identif may syntax or quotation somewhere. thanks. here url: http://autodo/admin/news.php?id=2043 here code: <?php $id=$_get['id']; $sql=" select distinct ad_news.datum, ad_news_texte.text, ad_news_texte.headline, ad_news_texte.id autodo.ad_news_texte, autodo.ad_news ad_news_texte.id =".$id." grouping ad_news_texte.text, ad_news_texte.headline, ad_news_texte.id"; echo $sql_select=mysql_query($sql); if($row = mysql_fetch_assoc($sql_select)){ $news_id= $row['id']; $news_datum= $row['datum']; $news_text= $row['text']; $news_headline= $row['headli...
Comments
Post a Comment