twitter.bootstrap.mvc icon indicating copy to clipboard operation
twitter.bootstrap.mvc copied to clipboard

dropdown-menu on Azure

Open bartdeboeck opened this issue 12 years ago • 5 comments

Hi,

I've deployed the mvc sample on Azure and noticed that a dropdown-menu does not work on Azure, it does, however, work if the solution is deployed locally. The dropdown-toggle button is displayed on Azure, but nothing happens if clicked.

Has anyone seen similar behavior?

Thanks, Bart

bartdeboeck avatar Feb 23 '13 18:02 bartdeboeck

Haven't seen this. Can you point us at an URL and I'll take a look? Also, check your F12 tools in IE or Chrome, or FireBug if you use FireFox. See if you're getting any JavaScript errors and let us know what you see.

MisterJames avatar Feb 23 '13 20:02 MisterJames

Hey Have you got this to work? I have the same error, works like a charm locally but when deployed to Azure it breaks the navigation menu both in Chrome and on iPhone. My url is on: http://weddingday.azurewebsites.net/#

andreaskviby avatar Mar 17 '13 00:03 andreaskviby

looks like there is a javascript error.. something wrong with the minified javascript.

  1. Uncaught TypeError: Cannot set property 'unobtrusive' of undefined js:1http://weddingday.azurewebsites.net/js?v=ysFAkO-uvknVns4kF9rcQ1RecsxJEoOhCYDGTxWHCEA1
    1. (anonymous function)js:1http://weddingday.azurewebsites.net/js?v=ysFAkO-uvknVns4kF9rcQ1RecsxJEoOhCYDGTxWHCEA1
    2. (anonymous function)

Eric Hexter

blog | http://Hex.LosTechies.com info | http://www.linkedin.com/in/erichexter

On Sat, Mar 16, 2013 at 7:10 PM, Andreas Kviby [email protected]:

Hey Have you got this to work? I have the same error, works like a charm locally but when deployed to Azure it breaks the navigation menu both in Chrome and on iPhone. My url is on: http://weddingday.azurewebsites.net/#

— Reply to this email directly or view it on GitHubhttps://github.com/erichexter/twitter.bootstrap.mvc/issues/71#issuecomment-15014620 .

erichexter avatar Mar 17 '13 02:03 erichexter

Any solution?

Med vänlig hälsning,

Andreas Kviby VD 10FINGERS AB Forsgränd 6, 3 tr 611 32 NYKÖPING [email protected] Tel 072-225 60 15

17 mar 2013 kl. 03:26 skrev Eric Hexter [email protected]:

looks like there is a javascript error.. something wrong with the minified javascript.

  1. Uncaught TypeError: Cannot set property 'unobtrusive' of undefined js:1http://weddingday.azurewebsites.net/js?v=ysFAkO-uvknVns4kF9rcQ1RecsxJEoOhCYDGTxWHCEA1
  2. (anonymous function)js:1http://weddingday.azurewebsites.net/js?v=ysFAkO-uvknVns4kF9rcQ1RecsxJEoOhCYDGTxWHCEA1
  3. (anonymous function)

Eric Hexter

blog | http://Hex.LosTechies.com info | http://www.linkedin.com/in/erichexter

On Sat, Mar 16, 2013 at 7:10 PM, Andreas Kviby [email protected]:

Hey Have you got this to work? I have the same error, works like a charm locally but when deployed to Azure it breaks the navigation menu both in Chrome and on iPhone. My url is on: http://weddingday.azurewebsites.net/#

— Reply to this email directly or view it on GitHubhttps://github.com/erichexter/twitter.bootstrap.mvc/issues/71#issuecomment-15014620 .

— Reply to this email directly or view it on GitHub.

andreaskviby avatar Mar 17 '13 09:03 andreaskviby

I got my dropdown working by deleting the following 2 lines :

  • from jquery-1.9.1.min.js

//@ sourceMappingURL=jquery.min.map

  • from jquery-migrate-1.1.1.min.js

//@ sourceMappingURL=dist/jquery-migrate.min.map

The reason why it fails is explained here:

http://stackoverflow.com/questions/14402741/jquery-1-9-0-and-modernizr-cannot-be-minified-with-the-asp-net-web-optimization

TomDecreton avatar Mar 28 '13 15:03 TomDecreton