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.

ruby on rails - RoR : JQuery and Ajax request -


i fan of ruby on rails , looking tutorials adding ajax page. tried this tutorial, source there. kinda understand code, on computer, after sliding stock-list not update , keeps on displaying entire stock list, values passed around correctly, can check in controller.

i tried modifying code , adding jrails in app/views/index.js.erb instead of

respond_to |format|   format.html   format.js     render :update |page|       page.replace_html 'x_stock_list', :partial => 'stocks/stock_list', :locals => { :stocks => @stocks }     end 

or adding simple alert js function file, shows plain text, when force use file (by deleting 'format.html' line above). apparently, javascript did not executed.

according lot of tutorials ryan bates (railscasts) , line had added application.js:

jquery.ajaxsetup({  'beforesend': function(xhr) 

{xhr.setrequestheader("accept", "text/javascript")}})

to force javascript executed, did not either.

has idea or on pc slider not update?

move format.html down last format in list. had problem while , apparently order matters.


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 -