Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

ajax - jQuery: first callback isn't fluent (slidedown effect) -


i know must newbie question, since don't know jquery have ask here:

i have element has toggle different content on clicking on different buttons.now i'll post here how call javascript:

onclick="javascript:gotosubonderdeelmenu(this);"

this gets div element, , i'll right id content show. jquery code:

function gotosubonderdeelmenu(obj) {     displaysubmenu(obj.id); }    function displaysubmenu(niveauid) {     $.get("submenu.htm", { niveau : niveauid }, function(data) {         $('#submenu').html(data);         $('#submenu').slidedown('slow',function(){             $('#overzicht').fadeto(500,0.25,function(){});             $('#terugknop').show();         });     }); } 

it fluently slides down expect, except first time it's being called.

anyone got clue on how solve this?

you need .hide() content slides/expands nothing, this:

$.get("submenu.htm", { niveau : niveauid }, function(data) {     $('#submenu').html(data).hide().slidedown('slow',function(){         $('#overzicht').fadeto(500,0.25,function(){});         $('#terugknop').show();     }); }); 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -