Recently, a project was developed using ajax.net. The user dynamically performs query operations on the ASPX page. The query conditions and returned results are carried out in Ajax mode, and the returned data is JavaScript objects, to make this module cross-platform universal, I analyzed the ashx (actually JavaScript) generated by Ajax during runtime) CodeAnd then copy the data to a project that only contains HTML and JS. The project that provides data runs in.. NET Server, But I can copy the calling code to any server to implement cross-platform calling.
However, in use, I found a difficult problem to solve. I used this pure HTML and JS stripped-out project. If the project and the project that provided the data source are not on one server, each time you request data, the system will prompt "information outside the access control area, which is dangerous; whether to continue". If you select no, the data cannot be transmitted.
I think cross-Origin data calling is a problem that every Ajax project will encounter. If this problem cannot be solved, Ajax applications will also begin with restrictions. I don't know where it will be experienced, by the way, I found several related URLs, which are recorded here first.
Http://www.duduwolf.com/catalog.asp? Tags = Ajax
Http://www.blueidea.com/bbs/newsdetail.asp? Id = 2359848
Http://www.hibernate.org.cn/viewtopic.php? T = 15641 & Highlight = % BF % E7 % D3 % F2