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.

Using JavaScript to perform a GET request without AJAX -


out of curiosity, i'm wondering best (easiest, fastest, shortest, etc; make pick) way perform request in javascript without using ajax or external libraries.

it must work cross-browser , it's not allowed distort hosting web page visually or affect it's functionality in way.

i don't care headers in request, url-part. don't care result of request. want server side effect when receives request, firing matters. if solution requires servers return in particular, that's ok well.

i'll post own suggestion possible answer, love if find better way!

have tried using image object? like:

var req = new image(); req.onload = function() {     // not required if you're interested in     // making request , don't need callback function } req.src = 'http://example.com/foo/bar'; 

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 -