I am playing with MarkdownDeep .Net/Javascipt Edition for an MVC 3 application. Added it via NuGet. The page renders Markdown sharp box just fine. However I get a weird jump to top of page behavior if any of the icons on the markdown sharp toolbar are clicked. I googled and didn't find anyone else having this issue.
Any thoughts? The script file and css are being loaded properly - no errors in Chrome console.
Have you checked that the microsoft ajax scripts are included in the page and that the web.config file is configured to use it? Try something simple like a ajax.beginform to see if it posts the page or if it calls an ajax post.
Related
Using vs2013 to create an MVC5.2 web app. I'm actually rebuilding an old app using the new mvc framework, so this works fine in vs2010 and MVC3.
In this app, whenever i have something that would trigger an error on the page (usually in a razor syntax, like
#{Html.RenderPartial("mypartial", mymodel);}
instead of getting a compilation error yellow screen when viewing it in a browser, i get a page of symbols:
I created an new web app and it doesn't do it in there, it displays the error as expected. I'm assuming this is caused by something i retrieved/updated via NuGet, but if anyone had any idea of where to start looking, it'd be appreciated.
EDIT: further experimenting seems to indicate that this only happens within areas. If i have a razor syntax error in the root controller, i get a yellowscreen. same error in a view that is in an area results in the symbol display below.
Figured out my problem- I had added a EnableCompression action filter that i was using in MVC3 to my MVC5 controllers. This was causing the weird display- taking it out completely cleared up the problem.
Apparently now gzip compression is handled either in IIS or in the web.config file, I've seen reports of both. At any rate, I no longer have to deal with it in the application itself.
I am using VS Express 2013 for Web with an MVC5 project. I am using Firefox with Firebug enabled. When I run the application I momentarily see Firebug's toolbar icon read there are 2 errors. The errors only appear for a split second so I had to click enable Persist to retain them.
ERROR #1:
The connection to ws://localhost:61468/006ddcd224374fc08d1bf1f084312545/
arterySignalR/connect?transport=webSocketsconnectionToken=AQAAANCMnd8BFdERjHoAw
E%2FCl%2BsBAAAAr%2BL1sc0pfUucJd0c878FCgAAAAACAAAAAAAQZgAAAAEAACAAAACtoiMe%2BbJR
4NDetzo8N8Pl0Q2%2BT3Tvaa5eSG2ms13tOgAAAAAOgAAAAAIAACAAAABWmdgavHsH%2BqOP2eDJfCVWM
pi1BjIrZAeB5ipr95pJMTAAAADLFakFumFaKP3P1ac870jb4lRb26ZFNSYTqg177H7iuFnAM7lBIRTb
GL9sNaSjPZFAAAAAQNNdEXsDdbdEbwompKByoZADTIppqRpGZYpUm1I1kg4F7VYNpu0Bhyo3JM7i4qEKL
6paHsP%2FbVLc8ENAce3CVQ%3D%3D&requestUrl=http%3A%2F%2Flocalhost%3A59655
%2FAccount%2FRequestAccount&browserName=Firefox&tid=8
was interrupted while the page was loading.
...thCredentials:f.withCredentials},url:o,type:f.ajaxDataType==="jsonp"?
"GET":"POST...
ERROR #2:
browserLink (line 62)
no element found
There is a link in the right pane of Firebug and it contains:
http://localhost:61468/006ddcd224374fc08d1bf1f084312545/arterySignalR
/abort?transport=webSockets&connectionToken=AQAAANCMnd8BFdERjHoAwE%2FCl%2BsBAAAAr
%2BL1sc0pfUucJd0c878FCgAAAAACAAAAAAAQZgAAAAEAACAAAACtoiMe%2BbJR4NDetzo8N8P
l0Q2%2BT3Tvaa5eSG2ms13tOgAAAAAOgAAAAAIAACAAAABWmdgavHsH%2BqOP2eDJf
CVWMpi1BjIrZAeB5ipr95pJMTAAAADLFakFumFaKP3P1ac870jb4lRb26ZFNSYTqg177
H7iuFnAM7lBIRTbGL9sNaSjPZFAAAAAQNNdEXsDdbdEbwompKByoZADTIppqRpGZYpUm
1I1kg4F7VYNpu0Bhyo3JM7i4qEKL6paHsP%2FbVLc8ENAce3CVQ%3D%3D
&requestUrl=http%3A%2F%2Flocalhost%3A59655%2FAccount
%2FRequestAccount&browserName=Firefox
The only time I see these errors is when I click on a link or a button that causes the page to reload or navigate to a different page, even just a page refresh causes the errors - but they disappear immediately as soon as the page begins loading.
Something related to Ajax? Seems like such a stupid post, but I just can't see anything wrong in the code.
UPDATE:
There are some posts on this question that infer there is a problem with the content or markup. Since this is happening on every page, I went into _Layout.cshtml and step by step removed all sections of code, yet the problem still occurs.
Its not a problem with your code, it is a new feature in VS 2013 call Browser Link. You can disable it by unchecking the Enable browser link in the following image:
I haven't used it very much, but for more information about Browser Link and its uses, the following MSDN blog covers it pretty well.
EDIT
The blog I linked was for the RTM version of VS 2013, so here is an article from asp.net that provides a little more info past the RTM version.
I am building a site in Joomla (unfortunately) for a client. I have installed a template that uses Bootstrap as its basis, with some integration with Joomla, called H5BPTB. The problem I'm having is that when I visit the homepage on a small screen, and toggle the responsive navbar, it works fine, however after logging in, the navbar will open once, then close, but then no longer responds unless I refresh the page.
I read a few references elsewhere on stackoverflow to this being a problem with missing CSS transitions in the .collapse class in Bootstrap CSS. I checked and they are not missing. I also read another answer that suggested that it was a problem with some other Javascript overriding support.transition in the Bootstrap JS. I also can't find a reference to that in any other JS file. Is there anything else this could be?
Also I should add that the navbar works perfectly well in IE, but not in Firefox or Chrome.
Here is the site: http://avantgardeinternational.eu
I'd recommend just trying to update your Bootstrap files in the theme. They're both on version 2.1.1 and as far as I've seen looking around some people have had similar problems with earlier Bootstrap version.
The files you're looking to change are:
http://avantgardeinternational.eu/templates/h5bptb/css/bootstrap.min.css
http://avantgardeinternational.eu/templates/h5bptb/css/bootstrap-responsive.min.css
http://avantgardeinternational.eu/templates/h5bptb/js/libs/bootstrap/bootstrap.min.js
If that doesn't work, I'd try just looking around and making sure that some scripts aren't conflicting, that could just mean disabling all but the Bootstrap JS. Then seeing if it works fine.
http://twitter.github.com/bootstrap/
Edit: Just attempted this, changing the CSS messed with the styles a bit, and it still didn't work. I don't think it loaded the JS into the page properly though, I'll try that now...
Edit 2: So after giving this a shot, I've concluded there is only one explanation now... I've observed the difference between the page when you're logged in and logged out. When you log in there are various other bits of JS that load into the page.
One of these must be overriding Bootstraps collapse methods, thus stopping it from working. There are a few extra scripts that load when you're logged in and some more styles. It might be working trying to remove these and then trying it again.
I ran into an odd issue where I couldn't get either the Chrome or Firebug debuggers to stop at breakpoints I was setting. The page ran fine, it was writing to the console, just none of my breakpoints would stop the page.
It turned out that if I removed the jQuery Mobile include file:
<script src="lib/jquery.mobile-1.1.0.min.js"></script>
then the debugger worked as expected (I'm using JQM for mobile styling, so if I remove the include file my styles just don't work - no JS errors or anything).
I see no errors in the console related to JQM so I'm not sure why that file is causing problems with the debugger. Any ideas?
The problem is that my html page does not have a div with "data-role=page" in it (those are created by JS in my app). I added an empty div with that attribute and the debugger started working again. I can't take credit for the fix, it belongs to Kin Blas.
See full details here:
https://github.com/jquery/jquery-mobile/issues/4206#issuecomment-5448298
This might happen for anyone using templates through Underscore or Mustache and loading them as separate files with Javascript. I am using Backbone and Underscore.
JQuery Mobile is loading the page dynamically using ajax call and so the JS files are not loaded the standard way. If you don't prevent ajax call using the rel="external", data-ajax="false" or "target" attribute (reference here), you have to stop your javascript code using debugger; statement, that is programmatical breakpoint for Firebug, Internet Explorer Developer Toolbar and of course Chrome Developer Tools.
How do I get the back button from Windows phone to work with PhoneGap 1.2?
Now what the back button does is exit the app.
There is a good post I dont understand or get to work by one of the SO editors: http://www.scottlogic.co.uk/blog/colin/2011/11/handling-the-back-stack-in-windows-phone-7-phonegap-applications/
but I dont understand it and I cant get it to work. (even the sample .sln has an error for me)
My app is a very simple structure of index.html and many html does that come off that one page, so if all the back button did was goto index.html, that would probably work for me.
Is there a solution for idiots? For example - add this framework but only to specific pages. Put this code here, and that code there, and those pages dont need anything. Something like that?
I have recently published a more simple example for back-button handling in applications that contains simple HTML pages:
http://www.scottlogic.co.uk/blog/colin/2011/12/a-simple-multi-page-windows-phone-7-phonegap-example/
In essence, there is some C# code that keeps track of when the browser navigates from one page to another, handling the back-button event in an appropriate fashion. Just drop your code into the www directory and it should work fine.