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.

jsp - Using jquery pagination plugin -


i want use this plugin, don't know if it'll meet of requirements.

i know have use json fetch data server , use @ client side, right?. now, that's fine, because have few records, when have thousands of ; convenient bring data @ once? know :

  • is there way query database every time press number of specific page? ask cause don't think idea load data in 1 go, it?
  • i used pass id of record going edit this

:

 <td align="center">        <c:url value="edititem.htm" var="url">               <c:param name="id" value="${item.id}"/>        </c:url>        <a href="<c:out value="${url}"/>"><img src="images/edit.png" width="14" height="14" alt="edit"/></a>   </td> 

but don't know not how it.

i hope can me out.

thanks in advance.

... i'll give shot. how this? if @ source of demo page, there's member.js file , think that's mock data demo. has 1 variable 'members' that's used plugin. you're right, ajax call how need data server. think that's bummer since it's hard coded :-(

from documentation:

callback callback function called when user clicks on pagination link. function receives 2 parameters: new page index , pagination container (a dom element). if callback returns false, event propagation stopped. default value: function(){return false;}. callback function essential functionality of pagination! should contain code updates content. fast user experience should not load content via ajax in function. instead, pre-load content pages , switch between them function.

... 2 sentences problem though:

for fast user experience should not load content via ajax in function. instead, pre-load content pages , switch between them function.

... pre loading content might non starter in situations, defeating purpose of using pagination :-( wold on own rolling callback function data sets.

did try contacting author server side interaction samples?


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 -