views:

201

answers:

2

I've created a vb.net program that navigate web pages with the help of a tutorial I found on the net. Now I'm trying to navigate the php scripts that I've created. But there is always this internet explorer script error that I am seeing. Which I cannot see when I access the php scripts on firefox or in any other browser. What do I do with this, what might be the cause? I cannot use the browsers because I'm not yet good at designing in php so I use vb.net as my interface.

A: 

Without knowing the "this" in your "there is always this internet explorer script error that I am seeing":

You are aware that PHP scripts need to be executed by the server, for example by Apache with mod_php? When not having the server execute the PHP code, your browser will not get just HTML, but also the non-executed PHP code that is still embedded within that HTML, which it does not understand. So: where does your program fetch the PHP files from?

(If I understand your problem correctly then you would see the same effect when just dragging local PHP files into your browser, without using any server. Does that indeed give you the same problem?)

Arjan
A: 

Turn off script error notifications.

Uncheck "Display a notification about every script error":


Click for larger image

That way you won't see script errors in Internet Explorer.

Ian Boyd
This is not a real solution - if what-ever causes the script error remains then this will affect other IE users who do not have the option turned off if the script/page is made publically available. The problems shoudl be located and fixed rather than hidden.
David Spillett
@David. Granted. But given that the OP didn't give any code, or the actual error he was seeing, it sounded like he didn't want it fixed per se. It sounded like, to me anyway, that he wants the errors hidden. Especially when he's careful to point out it's in ie.
Ian Boyd