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

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 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器