ajax - In asp.net-mvc, How can I show a loading image while my other image is getting generated from Url.Action? -


मेरे पास निम्न कोड है:

  & lt; img src = "& lt;% = Url.Action ("LocationMap")% & gt; " आईडी = "ओवरले" / & gt;   

और इसके लिए थोड़ा समय लगता है (जैसा कि मैं उड़ने पर एक छवि बना रहा हूं)।

मैं कैसे "लोडिंग" दिखा सकता हूं। छवि या संदेश, जबकि इसे पुनर्प्राप्त किया जा रहा है क्योंकि अभी यह छवि टूटा हुआ है, जब तक कि छवि लोड नहीं होती तब तक यह अच्छा लगता है ।

ऐसा कुछ?

यह सिर्फ निम्नलिखित के जैसा कोड जोड़ने के लिए कहता है:

  & lt; स्क्रिप्ट & gt; $ ('आईएमजी')। लोड (फ़ंक्शन () {// छुपाएँ मास्क छुपाएं;}); & Lt; / स्क्रिप्ट & gt;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -