erichexter / twitter.bootstrap.mvc

nuget package to make bootstrap easy with mvc4
Apache License 2.0
248 stars 134 forks source link

dropdown-menu on Azure #71

Open bartdeboeck opened 11 years ago

bartdeboeck commented 11 years ago

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

MisterJames commented 11 years ago

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.

andreaskviby commented 11 years ago

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/#

erichexter commented 11 years ago

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 notifications@github.comwrote:

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 .

andreaskviby commented 11 years ago

Any solution?

Med vänlig hälsning,

Andreas Kviby VD 10FINGERS AB Forsgränd 6, 3 tr 611 32 NYKÖPING andreas@10fingers.se Tel 072-225 60 15

17 mar 2013 kl. 03:26 skrev Eric Hexter notifications@github.com:

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 notifications@github.comwrote:

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.

TomDecreton commented 11 years ago

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

//@ sourceMappingURL=jquery.min.map

//@ 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