Tuesday, February 15, 2011

UNICODE ASP files are not supported Error solution

Error Type:
Active Server Pages, ASP 0239 (0x80004005)
UNICODE ASP files are not supported.
/cigna/default.asp, line 1

Solutions:

With your project open, click on File, Advanced Save Options. Select US-ASCII.
Then click to apply to ALL DOCUMENTS.
It will give you a warning that some characters may not play, but you can ignore that and click No.
From that point forward, all saves should be in ASCII and your pages will work fine.


Sunday, February 13, 2011

A semi colon character was expected - XML Error

XML Error: A semi colon character was expected. Error processing resource –

Error Description:

While viewing the xml file in a web browser, sometimes an error "A semi colon character was expected." Occurs.

Reason:

This occurs

1. When using external links on the XSLT sheet which contains the character “&”.

2. When there are html breaks in the content.

3. When there are quotes in the content.

Solution:

1. The work around is to simply replace every instance of & in the link with &

2. The work around is to simply replace every instance of html breaks with any symbol like semi colon ;

2. The work around is to simply replace every instance of single quote with "

Friday, February 11, 2011

Refresh or Reload parent window from child window

To refresh the parent window from pop up window use below.

window.opener.location.reload();

Friday, February 4, 2011

Accessing parent window form elements

Often we come across scenarios where we have to access the parent window form element. Below is the syntax for accessing the parent element.

Syntax:


top.opener.document.forms[0].elements["hdnStatus"].value = "true";

This solution is cross browser compatible and works in all major browsers.

Sunday, January 16, 2011

Javascript pop up window focus

How to focus the pop up window if the same window needs to be refreshed multiple times based on the action?
Give as below:
newwindow = window.open(url, "myWin", "width=600,height=400,toolbar=0,scrollbars=0");
newwindow.focus();