weixin_33738555 2020-03-13 19:32 采纳率: 0%
浏览 89

MicroUI /前端

thank you for looking at this first of all. Here is what we are trying to do.

  1. Have a Client solution, simple HTML Page with Javascript file making Jquery AJAX Calls
  2. Have a Agency solution .Net MVC (CORS Enabled) which returns Partial View of Jquery.ui Autocomplete Text Box wrapped inside Razor to search agencies for Specific Company (i.e. Zurich, Berkley etc. are company codes passed from Client Website)
  3. Have a Customer solution .Net MVC (CORS Enabled) which return Partial View of Jquery.ui Autocomplete Text Box wrapped inside Razor to search customers for Specific Company (i.e. Zurich, Berkley etc. are company codes passed from Client Website)
  4. Have a Legal Disclaimer Solution .net MVC (CORS Enabled) which return Partial View of Legal Disclaimer wrapped inside Razor for Specific Company (i.e. Zurich, Berkley etc. are company codes passed from Client Website)
  5. Have a Customer Orders solution .Net MVC (CORS Enabled) which returns Partial View (razor) of all orders by customer selected in autocomplete text box in Customer Solution

All solutions (2nd, 3rd, 4th and 5th) work on their own perfectly fine but when client app (1st solution) puts Ajax Calls, SOMETIMES (not all the time), Client App fails to do Autocomplete complaining (in F12 in Chrome) Jquery.Deferred Exception: $(...).autocomplete is not a function.....

enter image description here


Now, all 2nd, 3rd, 4th and 5th Solutions have EXACT SET OF LIBRARIES (Jquery-3.4.2.js, Bootstrap.js, Modernizr.js & Jquery.UI.js) and they are all loaded in AJAX Call from Client APP which loads Partial Views with these libraries.

What works 100% of the time is, if we DON'T LOAD any of the 4 libraries with partial views and let Client App loads them. But this is not optimized solution because we don't control client application in production and their libraries and can't ask them to load our Micro solutions libraries which can vary from solution to solution in practical scenario.

How to solve this? Ideally we will want our Microsolution with its libraries loaded in each of the partial views it serves to client and don't get interfered with other Microsolutions loaded before current one or even with Client App if they have same libraries (of same version or not) Or in other words this Micro solutions should work completely independently with its own libraries.

Your help will be much much appreciated.

Regards.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#python#的问题:求帮写python代码
    • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
    • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
    • ¥15 perl MISA分析p3_in脚本出错
    • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
    • ¥15 ubuntu虚拟机打包apk错误
    • ¥199 rust编程架构设计的方案 有偿
    • ¥15 回答4f系统的像差计算
    • ¥15 java如何提取出pdf里的文字?