These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Form input onclick not supported by IGB?

Author
Azrael Semahr
xell network seven
#1 - 2015-05-02 03:07:36 UTC  |  Edited by: Azrael Semahr
Hello,

i'm building a small helper tool and it seems to work so far just fine, but i'm running into some problems with the IGB.
I've got a form but the IGB doesn't properly react onto all the functions.

<form method="post">
<input type="submit" name="submit" value="Submit">
<input type="submit" name="delete" value="Delete" onclick="return confirm('Really delete?');" id="delete">
</form>


Here the confirmation box is never shown.
Another approach instead of the onclick is with JQuery:
Quote:

$("form").submit(function(e) {
var submitbutton = $(document.activeElement);
var name = submitbutton.attr("name");
if(name == 'delete')
{
return confirm('Really delete?');
}
});


Here the "name" is always undefined, no matter what i try.

Can you give me some hints how i could get this working in the IGB?

Best regards
Azrael
Azrael Semahr
xell network seven
#2 - 2015-05-02 22:14:39 UTC
After a lot of testing and debugging i figured it out.
The IGB of EVE doesn"t support the JS-function "confirm".
As soon as i substituted it, everything works like a charm.

Greetings
Ayrael