.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Post New Web Links

How to Suppress the JavaScript error tht pops up while printing the WebBrowser content??

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :ASP.Net
 
Hi All, In my windows application I'm loading more than 100 urls in my web browser control one by one in a for loop and need to print them programatically after each URL gets loaded . But, I keep getting the Javascript error for so many URLs. I'm not sure why this error keep coming. Can anyone help me on how to suppress the javascript error through code and proceed. Thank you.


View Complete Post


More Related Resource Links

Content page control passes as argument to javascript function

  

Here is the content page:

********************************************************************

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="JavaDynamicCopyValue.aspx.cs" Inherits="JavaDynamicCopyValue" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script type="text/javascript" >
 function copyValue(input, output )
{
   ouput.value = input.value;
   return true;
}
 </script>
 <asp:TextBox ID="txt1" runat="server" onchange="copyValue(this,document.getElementById('<%=txt2.ClientID%>'))"></asp:TextBox>
    <br />
    <br />
    <asp:TextBox ID="txt2" runat="server"></asp:TextBox>
</asp:Content>

********************************************************************

I got a javascript run time error says output is undefined. if I view source of the page, the txt1 markup became:

<input name="ctl00$ContentPlaceHol

javascript error

  

this line is giving error in javascript. Please correct it...

  $('#UnlockDetailsPanel').load('/confidentialdetails/UnlockDetailsUpdate.aspx #UnlockDetailsResult', { action: 'decline', request: <%= Request["request"] %> } );

error is _s.my.confidentialdetails is undefined

 

 


Object or Property is not supported in IE8 - javascript error

  

Hello,

I am using following code line in my web app through external javascript file.

 

this.ViewState.removeChild(this.ViewState.firstChild); 

and

window.__doPostBackOld(arguments[0],arguments[1]);

 

both these methods are working fine in IE6 but failing in IE8 with a error: "Object or Property is not supported".

 

any solution would be appreciated!

 

Thanks


BDC + Document Information Panel Javascript Error

  

I hope someone here can shed some light on this one...

 

We have a document library configured with a few content types and document information panels for those items. Also on this list we have a BDC column setup to pull client names from MS CRM. This works fine on the list itself, however, in Word 2007 - the picker does not show up in the DIP, so we cannot easily select clients without knowing the name (first issue).

Secondly, if we enter in a client name, or partial, we recieve the following error:

"There was an error in the validation code" - with the following details:
Document Information Panel cannot complete this action, because of an error
in the form's code.
The following error occurred:

Object required
FileTongue Tiedcript.js
Line:171

Any help is appreciated!


Javascript error on Rich Text Editor of CEWP

  
Hi all,

I have a problem that is really bugging and I wasn't able to find any workaround all day. I'll try to give as many details as possible:

I'm maintaining several site collections on a single server and this problem occurs only on one of the site collections. However it occurs on all subsites of this collection, it occurs on old pages and newly created pages, even on pages containing only one empty CEWP.

When I'm pressing the button for Rich Text Editor of CEWP I get the following error:

Message: Invalid argument.
Line: 5740
Char: 2
Code: 0
URI: http://www.dyrlaegeankenaevn.dk/_layouts/1030/HtmlEditor.js

I've tracked down the error with IE developer tools and I found that the error pops up in HtmlEditor.js at

function RTE2_GenerateLaunchArguments(parameterArray, webUrl, containerID)
{
    ............some code goes here......................
    elem=document.getElementById(containerID);
    ............some code goes here......................
}

I followed containerID down the stack and it comes from:

XML Signature xsd and Validation Error: Wildcard '##any' allows element causes the content model t

  
Hello,I'm trying to generate WCF client from Customer's WCF Service which has XML Signature options enabled.When trying to generate client proxy using svcutil I get following errors: Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152] Copyright (c) Microsoft Corporation. All rights reserved. Attempting to download metadata from 'http://donex:51343/WebServices /Service.svc' using WS-Metadata Exchange or DISCO. Error: There was a validation error on a schema generated during export: Source: Line: 1 Column: 13464 Validation Error: Wildcard '##any' allows element 'http://www.w3.org/2000/09/ xmldsig#:HMACOutputLength', and causes the content model to become ambiguous. A content model must be formed such that during validation of an element informati on item sequence, the particle contained directly, indirectly or implicitly ther ein with which to attempt to validate each item in the sequence in turn can be u niquely determined without examining the content or attributes of that item, and without any information about the items in the remainder of the sequence. Error: There was a validation error on a schema generated during export: Source: Line: 1 Column: 14410 Validation Error: Wildcard '##any' allows element 'http://www.w3.org/2000/09/ xmldsig#:XPath', and cau

Printing div tag using javascript

  
function ClickToPrint()     {        docPrint=window.open("","Print",print_setting);        docPrint.document.open();        docPrint.document.write('<html><head><title>New way Identycard</title>');        docPrint.document.write('</head><body onLoad="self.print()"><left>');        docPrint.document.write('<img src="Image/redTop.jpg" /></left><br/><table width="300px" border=0><tr><td width=60%><left><font face="windings">');        docPrint.document.write(document.getElementById("divIdentyCard").innerHTML);          docPrint.document.write('</td></tr></table></left></font></body></html>');        docPrint.document.close();          docPrint.focus();}  Identity.aspx <div id="divIdentyCard">    <table style="width: 350px; height:200px">                 <tr>     &

Printing Groupbox Content

  
Hello EveryOne ... I want to Print a Group Box Content in a Window Form ... The Group box Contain PictureBox ,Text Box and Lables Every thing Seems To be working Fine But Still I cant get the print...Following is the code for Printing ...    public partial class Frm_VisitorDisplay : Form     {         private System.IO.Stream streamToPrint;         string streamType;         [System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]         private static extern bool BitBlt         (             IntPtr hdcDest, // handle to destination DC             int nXDest, // x-coord of destination upper-left corner             int nYDest, // y-coord of destination upper-left corner             int nWidth, // width of destination rectangle             int nHeight, // height of destination rectangle             IntPtr hdcSrc, // handle to source DC             int nXSrc, // x-coordinate of source upper-left corner             int nYSrc, // y-coordinate

Printing Groupbox Content

  
Hello EveryOne ... I want to Print a Group Box Content in a Window Form ... The Group box Contain PictureBox ,Text Box and Lables Every thing Seems To be working Fine But Still I cant get the print...Following is the code for Printing ...  public partial class Frm_VisitorDisplay : Form     {         private System.IO.Stream streamToPrint;         string streamType;         [System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]         private static extern bool BitBlt         (             IntPtr hdcDest, // handle to destination DC             int nXDest, // x-coord of destination upper-left corner             int nYDest, // y-coord of destination upper-left corner             int nWidth, // width of destination rectangle             int nHeight, // height of destination rectangle             IntPtr hdcSrc, // handle to source DC             int nXSrc, // x-coordinate of source upper-left corner             int nYSrc, // y-coordinate of so

"An error occurred during printing. (0x8000405)" eror - reporting services issue

  
We are getting this error: "An error occurred during printing. (0x8000405)" from time to time - 70% of the time when we are trying to use a printer button within report manager. It happens if we preview report or just print it. We noticed if we restart RS services, the error will stop for a little bit and then starts again. We don't print that much and it will come back after just a few reports printed. Let me know if you had a similar issue. thanks!

modalpopup and javascript error object required

  
Hi!   I Have this error when click on a button to open a popup box in my page: "object required"   Here is my code:   <%@ Page Language="VB" MasterPageFile="~/artm.master" AutoEventWireup="false" CodeFile="artm_principal.aspx.vb" Inherits="artm_principal" title="Principal" Debug="true" MaintainScrollPositionOnPostback="true"%><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AJT" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">                                      <AJT:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></AJT:ToolkitScriptManager>                                        <AJT:ModalPopupExtender ID="ModalPopupExtender1" runat="server"         &

Javascript Error in Internet Explorer but works fine in Firefox

  
Hi All,i was working on one of the project as it is working fine in Firefox but it is giving the javascript exception in internet explorer.Errror:  Error says  "s" is undefined in the s.currencyCode="USD" line but "s" is defined in the external javascript file  s_code.jsCan anyone suggest the solution for this issue:Please find my code where the error is displayed <script type="text/javascript" language="JavaScript" >var s_account="mnsdev"</script><script type="text/javascript" language="JavaScript" src="http://media.world.com/ads/usen/rpt/Omniture/s_code.js"></script><script type="text/javascript" language="JavaScript" >s.currencyCode="USD"s.charSet="ISO-8859-1"s.SEMct = s.getQueryParam('s_kwcid');s.SEMct = s.getValOnce(s.SEMct,'SEM_ct',0);s.clickPast(s.SEMct,'event9','event10');s.SEMvar=s.getQueryParam('s_kwcid');s.SEMdate=new Date;s.SEMdate.setTime(s.SEMdate.getTime()+60*86400000)if(s.SEMvar){s.c_w('SEM_ck','1',s.SEMdate)}s.SEMchk=s.c_r('SEM_ck');if(s.SEMchk&&s.events)s.SEMok='ok';if(s.SEMvar||s.SEMok) s.t()

Get the error 'The Workstation service has not been started' when trying to create a new content d

  
I am running SharePoint on a standalone machine, and the workstation service is up and running. Restarting the service makes no difference. Rebooting the machine hasn't helped either. No errors are being written to the event log.

Interesting error message with content organiser: Cannot resolve mailbox (null) to a valid user

  
Here is a site with content organiser site feature enabled, as well as the email integration feature. Emails are successfully delivered to the "Submitted Email Records" list, but is never routed to the Drop Off Library. (the content organiser web service works fine and the drop off library works as a custom send to destination and happily processes its rules. If I turn up the debug juice I get the error "Cannot resolve mailbox (null) to a valid user" for every item in any "Submitted Email Records" in the site collection. Area: Document managagement Category: Content organiser EventID: 8000 Message: Cannot resolve mailbox (null) to a valid user I have temporarily worked around the problem by email enabling the drop off library but it creates an intermittent race condition (similar to certain workflow and event receiver situations), so its not a real solution (and in fact I assume thats why the Submitted Email Records hidden list exists in the first place). I've run procmon, specifically focusing on OSWTIMER and nothing interesting shows up at all. The error message is intriguing and I can't really think of what it is trying to do. In troubleshooting I noted that this farm had configured inbound email but not outbound email. I have since rectified this and de/reactivated the content organiser features and reset the timer service and IIS, b

Error/Crash While Printing

  
Below code show how i have initiated the Oritn Dialog using comdlg32.dll. PRINTDLG _pd = new PRINTDLG();             _pd.lStructSize = Marshal.SizeOf(_pd);             _pd.hwndOwner = this.Parent;             // Pass the handles to the DEVMODE and DEVNAMES structures from the             // printer settings object to the PRINTDLG so that the current             // printsettings are displayed in the print setup dialog.             _pd.hDevMode = printerSettings.GetHdevmode();             _pd.hDevNames = printerSettings.GetHdevnames();             // indicates that only the print setup dialog should be shown.             _pd.Flags = PrintFlag.PD_ENABLEPRINTHOOK | PrintFlag.PD_NOPAGENUMS | PrintFlag.PD_USEDEVMODECOPIESANDCOLLATE;             // set print to file checkbox visible/not visible         

Javascript "Undefined is null or not an object" error in IE :S

  
I read around and tried everything to figure out the reason of the issue i'm getting, but i give up, the error i'm getting is only on IE and it's the "Undefined is null or not an object" error.This is it:Line: 29Char: 13Error: 'undefined' is null or not an objectCode: 0This is the script:<script type="text/javascript">    function checkV1() {        if (document.getElementById('CB1').checked)            ValidatorEnable(document.getElementById('CheckBoxListValidator1'), true);        else            ValidatorEnable(document.getElementById('CheckBoxListValidator1'), false);    }    function checkV2() {        if (document.getElementById('CB2').checked)            ValidatorEnable(document.getElementById('CheckBoxListValidator2'), true);        else            ValidatorEnable(document.getElementById('CheckBoxListValidator2'), false);    }THIS IS LINE 29---->    fun
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend