Sign in to follow this  
AndyBrew

Problem With Fusioncharts.js Include?

Recommended Posts

Hi

 

We have a content page which uses a master page and when we include the FusionCharts.js file we get the following error on page load: -

 

Microsoft JScript runtime error: Sys.ArgumentException: An element with id 'form1' could not be found.

Parameter name: elementOrElementId

 

this error is raised within the following script block: -

 

$type.resolveElement = function DomElement$resolveElement(elementOrElementId, containerElement) {

/// <summary locid="M:J#Sys.UI.DomElement.resolveElement">Returns the element with the specified Id in the specified container, or the element if it is already an element.</summary>

/// <param name="elementOrElementId" mayBeNull="true"></param>

/// <param name="containerElement" domElement="true" optional="true" mayBeNull="true"></param>

/// <returns domElement="true"></returns>

var e = Function._validateParams(arguments, [

{name: "elementOrElementId", mayBeNull: true},

{name: "containerElement", mayBeNull: true, domElement: true, optional: true}

]);

if (e) throw e;

var el = elementOrElementId;

if (!el) return null;

if (typeof(el) === "string") {

el = Sys.get("#" + el, containerElement);

if (!el) {

throw Error.argument("elementOrElementId", String.format(Sys.Res.elementNotFound, elementOrElementId));

}

}

else if(!Sys.UI.DomElement.isDomElement(el)) {

throw Error.argument("elementOrElementId", Sys.Res.expectedElementOrId);

}

return el;

}

 

Our graph will build without issues and we get the error even when removing the graph from the page, any ideas?

 

Thanks in advance

 

Andy

Share this post


Link to post
Share on other sites
Guest Angshu

Hi Andy,

 

Thanks for your post.

 

Could you please share with us a scaled down sample so that we can check and debug directly?

 

Awaiting for your response.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this