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 - Bypassing the AJAX Same-Origin Policy - A particular case -


while trying refresh page contents dynamically using ajax/jquery, have learned s-o-p issue , restrictions, wondering if there way solve little problem.

to make easier understand first explain workflow.

i receive web pages via email, html emails. web pages contain html forms in such way, once form complete sent proper web server (php) store data.

i use outlook 2007 email client (don't here, know!!!), security restrictions, iframes disabled when "opening" email. have circumvented problem using vba script copies whole page content, saves on filesystem stand-alone web page , loads browser (firefox).

once page loaded browser, address bar shows local/filesystem url, such

file:///c:/users/bob/desktop/outlookpage.htm 

till here no problem, works fine; problem:

i wished dynamic update page contents using ajax, using jquery.load, that's s-o-p comes in. php page being loaded dynamically update web page seen running on domain, being blocked.

i wondering how circumvent this.

that's not going work because in order bypass same origin policy, need use proxy on same domain, communicate page that's handling data on different domain. there's no way generate proxy script on user's computer (or @ least, there shouldn't way). either post form normally, open user's default browser, or provide link online form in email. link should provided anyway, in case email client doesn't support html email.


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 -