Jump to content

Disable All Prompt Boxes


ZeroShade

Recommended Posts

Well... I'm using a predesigned text editor by a company called Obout. But in one of my pages I'm using it in combination with multiple dropdown lists. When you do a pick something in the dropdown list, the corresponding value is associated with the editor and then binded to the data table. But if someone were to choose the first option out of the dropdown list which is "Select" whose value is -1 a javascript box comes up and says that the object is set to null and cannot be set to null. There is way too much code to go through for the editor to try and figure it out and its all in one line as well. Therefore, I was wondering if there is a way to say in the page with the editor to cut off all javascript pop-up boxes. Is there something else I can do?

Link to comment
Share on other sites

I stumbled upon this at one point. It may help:

function alert(){	// do nothing.}

If you put that in the head, then it will overwrite the default alert function and any time alert() is called, it won't really do anything and the alert messages will be disabled.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...