I have a problem with Chrome only(with IE and Firefox the page works fine), in aspx page that uses "asp:HtmlEditorExtender" tag and the ajaxcontroltoolkit assembly is included.
The error message on the Chrome console is :
Uncaught DOMException: Failed to execute 'collapse' on 'Selection': There is no child at offset 3.
and the line of js code indicated is the following:
sel.collapse(this._editableDiv.firstChild, char);
I follow the workaround suggested in this link:
http://guerriandrea.blogspot.com/2015/01/problem-between-chrome-and.html
but the problem remains when saving the formatted content within the text area; the error remains client.
I tried to update the ajaxcontroltoolkit library and the bug doesn't show up ... the problem is that I would like to avoid updating this library as it is used by almost every page of my application and I would have to test all the functions again.
Thank you very much
Related
I m using wkhtmltopdf using the .net import.
When I try to render a PDF from a internal webpage, I have sometimes issue : the load of the page is blocked to 90%.
The page is using jquery.ajax to load data. When I have more than 1 ajax call, the bug occurs else the pdf is render well.
I try Pechkin and TuesPechkin but same issue.
Also interesting part, I add a break point on the last ajax call (c# service function) and the break point is reached.
Do you have an idea why I get this error ?
How can I solve it ?
I had exactly the same issue. The reason why wkhtmltopdf never finish is because the web page never complete loading. The reason why the page never complete loading is because it is running a signalR browser link.
All i had to do was to disable the signalR browser link and it works.
To disable the browser link, add the line below to appSettings in your web.config file
<add key="vs:EnableBrowserLink" value="false" />
I haven't encountered any problem so far on my application while using IE7+ and Google Chrome until I discovered that one of my module has a bug in my ToolkitScriptManager when using Mozilla Firefox.
The best way to understand the error is to show a screen shot:
This is the very first time I saw this error. I tried debugging this by replacing ajax:ToolkitScriptManager to asp:ScriptManager and I think it has something to do with AsyncFileUpload but I can't pinpoint where and how.
This error is specific only to Firefox.
If you need more info, just comment below. Thank you.
Try setting the width of the AsyncFileUpload control using css:
Follow below Steps:
Apply CssClass on ajaxToolkit:AsyncFileUpload like
"imageUploaderField"
Write Css(".imageUploaderField input{width:100%!important;}")
If the result is the same, update your ajax toolkit with the latest
edition.
References:
AsyncFileUpload with Firefox 22.0b1
If it still doesn't work then it could be a Firefox bug.
Do you have some huge javascript under execution?, this may be a cause as it happened once to a colleage where he was looking 1Million*1Million times and was getting the same error.
Try to find out any piece of code that is taking too long..
If you install the latest version of ajaxtoolkit it will fix this bug
`Have you any idea why the following code snip I use doesn't produce the expected graph on the browser ?
I have added script tag pointing to latest jquery and kangamodeling's js scripts already.
http://jsfiddle.net/y94Qy/
Thank you for any instructions.
from what I've found so far is that it doesn't seem to work in IE. At least for me using IE9 - simulating IE7 and IE8.
However, for Jsfiddle, the script needs to looks like:http://jsfiddle.net/anAgent/6BcQR/
Just put the include script in the HTML box.
I have a results page only working in IE. It is developed using C# and js in visual studio. So I select a search parameter from the drop down list and search. The results from the DB are displayed in a results page. Those results seem to only be displayed when I use IE. Chrome and fireFox allow for everything else to work except the results:/
Any ideas what could be occurring? Something i need to check with my web.config perhaps?
Thank you in advance=)
C
This is likely an html issue and unrelated to ASP.NET. You should examine the generated HTML. It will be especially easy to see if the data is in the DOM by using Chrome and Firebug.
In Chrome (since it's a place where it's not working) bring up the page and press CTRL+SHIFT+I - this will bring up the DEVELOPER TOOLS. Once up, attempt to use the page and watch the CONSOLE tab of the developer tools. You most likely have scripting errors and the Console will point them out. Many times, you can even click on the console-report to go directly to the offending code (but sometimes you cannot). Regardless, the developer console should help you find the trouble.
If it's a CSS issue, the first tab will be the most helpful to you instead - you can find the generated code in HTML and click on it, then all CSS styles will be on the right and you can review them (and even change them if you need to for testing purposes) to find and eliminate trouble items.
I have a asp.net application which is located on a server.
It was working but then I added a whole bunch of stuff and now I get:
XML-parser error: no element found
Address: http://www.dtm.se/payex/Default.aspx
Row 1, Column 1:
(I have translated this error message from Swedish so it might not be 100% accurate)
The error occurs in Firefox when I upload the code to "my" site.
In IE 8 and Google Chrome I get blank pages.
When I compile it it locally it runs without issues.
I have set up IIS (7.0) on my machine and it works there to.
I have checked the files on the server just in case there was something wrong with the upload but the code was there.
I also have tried to remove the code I have added to see if I can get it to work again.
But no. Of course I am not 100% sure I got everything back to the way it was.
It doesn't matter which file I am trying to load all of them get this error message.
Hmm, when I write this I get the feeling it might be something wrong with the way the asp.net application i set up on the server.
But since it worked from the beginning...
There is a lot of code so I don't know really what to upload here but maybe someone recognize this error message and knows what it is or maybe point me in the right direction.
Your Default.aspx page appears to have the following output:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
</body>
</html>
It appears that Firefox assumes this to be an XML document (with no data) and throws an error in this case (Maybe something to do with the DOCTYPE). It is also possible that .NET generates a response type of "application/xml" in this case, though I cannot confirm that. IE 7 shows a blank page as expected.
What you should look into is why your page is giving blank output. Are you sure that the site is configured to run with the correct version of ASP.NET?
The error was that I was using MySql and when I added the reference to the connector it added a line in web.config, but it didn't add the dll in the bin folder.
So when the server tried to access the file it thru this error.
So I added the file manually to the bin folder and, tada, it started working.
I disinctly remember VisualStudio adding the files when I choose add reference.
But maybe I had it mixed up with something else.