java script auto refresh

"Paul Robert Marino" <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
I started to upload patches to implement a java script auto apply for ticket
# 231
there are two more patches that need to be uploaded however i got a message
about too many posts from ip addresses in the last hour so i will try to
upload the last two latter


I changed my idea a little to a auto apply because of several issues due to
some differences between how java script handle refreshes of a page which
was posted. I found the refresh had different results on different browsers
so instead I added an auto submit apply. i also added a field on in the menu
on the left side which specifies how often to apply, I named it "Auto Update
Time" in the menu. the new field takes seconds however it can also take 1:10
for one minute and ten  seconds or 1:20:10 for one hour twenty minutes and
ten seconds, and 0 disables the timer.
there are still two more things to be done these are nice to haves but it is
fully functional and very useful as it is now

1) a check box should to enable/disable the timer
if some one could do the python coding i already have the java script code
to make it work i just had some trouble figuring out how to make the check
box work correctly in the form. it does not have to have any meaning to the
python its self i just had trouble getting the check box to keep state after
an apply. my patches should point out where this code change would have to
happen.

2) stop auto apply from updating the session expiration time
i still haven,t added a method to stop it from updating the session timeout
so if it is enabled  the session will never time out
this is actually a good thing it the console is being used by a 24x7
operations staff working out of a secure operations center however it is not
necessarily ideal for a non secure desktop environment so while this is not
a show stopper in my opinion it is some thing that should be changed in the
future. this will also require an additional hidden field to be added to to
the form as with the first one if some one would write the python code i can
quickly add the java script to use the field

these changes shouldn't take to long it just I have several other projects
to work on and I have already expended the time my employer will allow me to
spend on it right now. most of the work has already been done its just the
last two minor details that have to be finished.
_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.