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.

javascript - Why are my html buttons moving in I.E? They don't move in Chrome or FF -


we using ajax send data our database. i've added feedback user including spinner (animated .gif) spins during request, , pass/fail text displayed user when request complete.

html:

<center>     <table style="width:350px;">         <tr>             <td style="width:100px; min-width:100px;" align="right">                 <span id="spinner-and-text-displayed-here"></span>             </td>             <td style="width:150px">                 <input type="button" value="submit" onclick="submit();"/>                 <input type="button" value="cancel" onclick="cancel();"/>             </td>             <td style="width:100px"></td>         </tr>     </table> </center>   

when user clicks submit button spinner spins until ajax callback returned. @ point, buttons not shift. once receive callback display text "successful!" (displayed in span using jquery $(el).html("successful!");), causes buttons shift right. message fades out (also using jquery), , once button fades completely, buttons shift original position.

if hardcode "successful!" inside span, buttons shifted, know has text (remember doesn't shift when spinner displayed [which uses img tag]).

it doesn't matter how wide set first td width.

is there way can keep these buttons shifting in ie?

try adding border-collapse:collapse; style definition of table , reduce size of middle cell.

<center>     <table style="width:350px;border-collapse:collapse;">         <tr>             <td style="width:100px; min-width:100px;" align="right">                 <span id="spinner-and-text-displayed-here"></span>             </td>             <td style="width:145px">                 <input type="button" value="submit" onclick="submit();"/>                 <input type="button" value="cancel" onclick="cancel();"/>             </td>             <td style="width:100px"></td>         </tr>     </table> </center> 

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 -