Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser - Internet Explorer "Script Error"
SWT Browser - Internet Explorer "Script Error" [message #648808] Fri, 14 January 2011 15:32 Go to next message
James Peltzer is currently offline James PeltzerFriend
Messages: 43
Registered: July 2009
Member
I have a few pages that seem to occasionally throw a "Script Error" in the
SWT Browser control running under Windows. I don't like that the dialog
pops-up at all (supposedly fixed way back in SWT 3.1). What I like even
less is that I can't actually dismiss the dialog or close the editor window
I have open.

The page doesn't generally have JS errors but when it does, this dialog
cannot be closed no matter which button you press (it almost looks like the
clicks to Yes/No aren't being sent). The dialog also never actually seems
to take focus.

Has anyone else experienced anything like this? Any solutions?

Dialog Details:
"Script Error"
An error has occurred in the script on this page.
Line: 1
Char: 1
Error: Unspecified error.
Code: 0
URL: (long private intranet URL)
Do you wish to continue running scripts on this page?
[Yes] [No]

RCP and Machine Specifics:
Windows 7 32-bit
Java 6 update 23
Internet Explorer v8.00.7600.16385
SWT v3.6.1

Thanks for your help.

James
Re: SWT Browser - Internet Explorer "Script Error" [message #649090 is a reply to message #648808] Mon, 17 January 2011 15:40 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi James,

Yes, this should have been fixed a long time ago. Can you check the
following:

- run stand-alone IE
- invoke Tools > Internet Options, go to Advanced tab
- are Disable Script Debugging (Internet Explorer) and Disable Script
Debugging (Other) checked? And if not, does checking them make the test
case stop showing the prompter?

Failing the setting values above, I wonder if your url being on your
intranet is causing a different code path or sequence to run that is not
helped by the old fix. It would be helpful to know if you ever see this
prompter with a page containing a JS error that comes from outside of your
intranet.

This issue can be investigated if you log a report with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT
and can provide info that could be helpful in tracking this down (eg.- does
it happen for pages outside of intranet, a subset of the page containing the
JS error, any IE settings changes you're aware of, etc.)

Grant


"James Peltzer" <jpeltzer@hotmail.com> wrote in message
news:igppvj$80v$1@news.eclipse.org...
>I have a few pages that seem to occasionally throw a "Script Error" in the
>SWT Browser control running under Windows. I don't like that the dialog
>pops-up at all (supposedly fixed way back in SWT 3.1). What I like even
>less is that I can't actually dismiss the dialog or close the editor window
>I have open.
>
> The page doesn't generally have JS errors but when it does, this dialog
> cannot be closed no matter which button you press (it almost looks like
> the clicks to Yes/No aren't being sent). The dialog also never actually
> seems to take focus.
>
> Has anyone else experienced anything like this? Any solutions?
>
> Dialog Details:
> "Script Error"
> An error has occurred in the script on this page.
> Line: 1
> Char: 1
> Error: Unspecified error.
> Code: 0
> URL: (long private intranet URL)
> Do you wish to continue running scripts on this page?
> [Yes] [No]
>
> RCP and Machine Specifics:
> Windows 7 32-bit
> Java 6 update 23
> Internet Explorer v8.00.7600.16385
> SWT v3.6.1
>
> Thanks for your help.
>
> James
>
Re: SWT Browser - Internet Explorer "Script Error" [message #668273 is a reply to message #649090] Wed, 04 May 2011 18:38 Go to previous message
Gary is currently offline GaryFriend
Messages: 3
Registered: May 2011
Junior Member
We see the same thing occasionally but it hasn't happened frequently enough to give any meaningful information. It might only happen when running the code via an attached debugger, but not sure.

If I get more information, I will post a bug report.

Environment:
Windows 7 32-bit
Java 6 update 20
Internet Explorer v8.00.7600.16385
SWT v3.5.2

[Updated on: Wed, 04 May 2011 18:41]

Report message to a moderator

Previous Topic:OleClientSite with Excel to edit CSV files
Next Topic:How to know when a child of Composite is removed
Goto Forum:
  


Current Time: Sun Jul 05 10:58:19 GMT 2020

Powered by FUDForum. Page generated in 0.02043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top