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.

php - Failed to load resource - ajax file upload with Zend Framework -


i using ajax uploader handle image uploads in zend framework based project. ajax uploader takes path controller handles file upload yet when click button attached see "failed load resource" in firebug's console , resource listed file upload controller.

here how call ajax uploader:

 new ajaxupload('addphoto', {                 action: '/admin/pix/upload',                 name:   'photo',                 autosubmit: true,                 onchange: function(file, extension) {                     // sets data , checks few things... reached in code                 },                 oncomplete: function(file, response) {                     // fires after completion... reached in code                 },                 onsubmit: function(file, ext) {                     // fires after submit... reached in code                 }             });   

when try upload photo (in firebug's console):

failed load resource        admin/pix/upload 

now, zend framework project admin module, pix controller , upload action. exist aren't getting reached.

accessing directly: http://myurl/admin/pix/upload works (though complain errors because it's not getting data expects) why failing when try access ajax uploader?

any ideas?


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 -