ZeroShade Posted June 16, 2007 Share Posted June 16, 2007 Is it possible to disable all prompt boxes within one page? If so... how can it be done? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 17, 2007 Share Posted June 17, 2007 What do you mean by a prompt box? Are you talking about <input type="text">, or a Javascript popup box, or what are you referring to? Link to comment Share on other sites More sharing options...
ZeroShade Posted June 18, 2007 Author Share Posted June 18, 2007 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 More sharing options...
jesh Posted June 18, 2007 Share Posted June 18, 2007 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 More sharing options...
ZeroShade Posted June 18, 2007 Author Share Posted June 18, 2007 Thats quite the stumble... makes sense though. Thanks!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.