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 - Ebook in iOS using CSS multi-column (calculate range of text in different column) -


my first question here. correct me if i've done wrong.

i've found source here demonstrate how paginate html using css multi-column. http://groups.google.com/group/leaves-developers/browse_thread/thread/27e4bf5ff3c53113/f137dc01b6d853b7

my question is: how calculate range / location of text in different column (page)?

for example, when changing font size, text in current page jump page. solve this, program should save current text location, , move correct page (column) after reformatting web page.

it useful implementing bookmark function.

i think should done javascript, i'm new javascript.

any suggestions , tips welcomed.

this bit of general question, , hard answer, i'll try point in direction might try.

i have no idea how layout of page might or function, 1 way theoretically checking text node of 'column' whenever change font-size (presuming font size change implimented button click). so, instance, have div w/ id #column_1, whenever clicks button ui element evaluate first several characters of #column_1, search string find text, , load whatever no. of characters have defined 'page' around text , call render method 'turn' page. flow of function might this:

zoomcontrol.click(click event){ //do when click zoom control var text = findtextofcurrentpage() //get first bit of text of current 'page' renderlargertextsize() //re-render 'page' w/ larger text (for user feedback purposes) renderpagewith(text) //render/navigate 'new' page wherein text in variable 'text' can found } 

obviously super generic 'idea' of functions/methods might use make happen, think if dug js , jquery sort of thing done relatively easily.


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 -