You need to sign in to do that
Don't have an account?
Javascript Error
We have encountered the same javascript error. We think we have determined the problem and have a potental fix. We have to sample attachments. Is it possible to send to you.
Pre-condition:
We have created a Web Integration Link under the Contacts tab, which opens in the salesforce.com window (in frame).
Steps to reproduce:
- Click on the Web Integration Link to go to the specified site.
- Click on a link on the site to go to a different page on that site.
Expected Results:
After this second page completes loading, the javascript error occurs. This can be identified with the Error icon on the bottom left of the Internet Explorer window.
Findings:
This error occurs on every page that is visited on that linked site, except the first page that the Web Integration Link points to. This happens on both salesforce inframe window open options (with sidebar and without sidebar).
We discovered that the following line of code in the doResize() function was causing the error:
ifr.style.height = Math.max(ifr.style.height, newHeight);
We created the attached html pages using the same javascript code and iframe setup found on the salesforce page. The iframe points to www.dell.com.
The error occurs due to the following:
The value of ifr.style.height contains the characters �px� at the end, for example, 672px. This was being compared to the value of newHeight, which didn�t have the �px� at the end. The �px� was possibly causing the �invalid argument� error.
In the attached html file suffixed with �modified�, we replicated the iframe setup and doResize() function used the SalesForce website. Changes were made to the doResize() function such that the �px� is removed before it is passed into the doResize() function. With this change, the error no longer occurs. The html document suffixed with �error� is a copy of the existing SalesForce code � and still causes the error.
There is debugging code in the html files that displays the values of ifr.style.height and newHeight each page loads.
This has been identified as a bug, and development is now working on this fix. We'll keep you posted - hopefully it will be soon.