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 - initialization of dojo widget -


i tried create custom widget site. when loaded page says: mixin #0 not callable constructor. clsinfo.cls.prototype undefined can't find information clsinfo, don't know it. maybe problem use dojo google:

and own script located on localhost. when dojo on page initializes goes wrong script. can't find info on dojo, maybe search in wrong places? please me resolve problem

i ran when trying override dijit.dialog bind events controls within it. we've yet see if binding part work, if @ source, happens when 1 of bases passed in second argument fails resolve "[object function]". in case, passing string in.

dojo.declare takes 3 arguments:

  • the name of custom object "class" you're building
  • an array of base classes, parents provide functionality (not string names of classes)
  • a hash of functions , declarations

so if want override dijit.dialog, have do:

dojo.declare("mydialogtype", [dijit.dialog], {     function1() {/*code*/},     function2() {/*code*/} } 

i had ["dijit.dialog"] second argument , problem.

i strongly recommend using web inspector or firebug uncompressed local copies of dojo library rather cdn figure out what's going on , debug these types of problems. dojo's documentation extensive not complete in areas , behaviors have figured out looking @ code expects. that's not intended slight authors; once going it's pretty awesome product, , documentation volunteer work appreciated.


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 -