04-17-2019
I generally use location='' like Corona688 suggested and not location.replace(). You might also consider location.href='' which tend to use as well.
The main difference between location.href and location.replace() is that replace() removes the URL of the current document from the document history, so then it is not possible to use the "back" button to navigate back to the original document. There are reasons for this method as well.
If you want to erase the prior location history, then consider location.replace()
These 2 Users Gave Thanks to Neo For This Post:
7 More Discussions You Might Find Interesting
1. Web Development
Not sure if this is the right place to ask this but here goes. I am creating a cheat sheet for co-workers. The concept is that you pick wire size and conduit size and the amount of wires that will fit is displayed. I haven't used alot of drop downs and can't quite figure out the way the get id... (3 Replies)
Discussion started by: zero3ree
3 Replies
2. Shell Programming and Scripting
I have a internal wesbite set up and any visitor must enter username / passwd as defined in apache (I've set these up using htpasswd)
I use cgi scripts set up using ksh or javascript to populate pages / tables etc.
I want to be able to get the apache username that the used authorised... (3 Replies)
Discussion started by: frustrated1
3 Replies
3. Web Development
I have tried to create a web page browser window. An example, I copied what the book pretty much wanted but get only the header. What should I change? Also Anyone know any good books for this? Many thanks.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Translation/EN"
... (4 Replies)
Discussion started by: N-Training
4 Replies
4. Programming
Hey All,
What I'm looking for is a way to rotate an image by non 90 degree angles (ie 90, 180, 270, 360). I am able to do it in PHP, but there are errors in the image, some pixels end up colored incorrectly and the image ends up resized and I lose transparency. I've done my share of searching on... (1 Reply)
Discussion started by: pmd006
1 Replies
5. Web Development
I am having some problems. I have been able to learn HTML, but when I try and encode CSS, nothing happens, what is the major issue here.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>MY CSS</title>
<style... (7 Replies)
Discussion started by: N-Training
7 Replies
6. Web Development
Vue Router has some quirks and on of the quirks is that it is not reliable when adding external links using the vue-router library.
After struggling with many solutions, I have found that creating a simple Vue.js component like this one seems to work the best (so far):
Component Example: ... (0 Replies)
Discussion started by: Neo
0 Replies
7. Web Development
While I'm on the subject of Google trends, here is a global trend since 2004 comparing react.js, angular.js, vue.js
It's no secret I'm a vue.js fan and coder, but not because of the trend line (which I just saw for the first time a few minutes ago) My experience is that vue.js, a late arrival... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT CENTOS
mail::spamassassin::plugin::autolearnthreshold
Mail::SpamAssassin::Plugin::AutoLearnThreshold(3) User Contributed Perl Documentation Mail::SpamAssassin::Plugin::AutoLearnThreshold(3)
NAME
Mail::SpamAssassin::Plugin::AutoLearnThreshold - threshold-based discriminator for Bayes auto-learning
SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold
DESCRIPTION
This plugin implements the threshold-based auto-learning discriminator for SpamAssassin's Bayes subsystem. Auto-learning is a mechanism
whereby high-scoring mails (or low-scoring mails, for non-spam) are fed into its learning systems without user intervention, during
scanning.
Note that certain tests are ignored when determining whether a message should be trained upon:
o rules with tflags set to 'learn' (the Bayesian rules)
o rules with tflags set to 'userconf' (user configuration)
o rules with tflags set to 'noautolearn'
Also note that auto-learning occurs using scores from either scoreset 0 or 1, depending on what scoreset is used during message check. It
is likely that the message check and auto-learn scores will be different.
USER OPTIONS
The following configuration settings are used to control auto-learning:
bayes_auto_learn_threshold_nonspam n.nn (default: 0.1)
The score threshold below which a mail has to score, to be fed into SpamAssassin's learning systems automatically as a non-spam
message.
bayes_auto_learn_threshold_spam n.nn (default: 12.0)
The score threshold above which a mail has to score, to be fed into SpamAssassin's learning systems automatically as a spam message.
Note: SpamAssassin requires at least 3 points from the header, and 3 points from the body to auto-learn as spam. Therefore, the
minimum working value for this option is 6.
bayes_auto_learn_on_error (0 | 1) (default: 0)
With "bayes_auto_learn_on_error" off, autolearning will be performed even if bayes classifier already agrees with the new
classification (i.e. yielded BAYES_00 for what we are now trying to teach it as ham, or yielded BAYES_99 for spam). This is a
traditional setting, the default was chosen to retain backwards compatibility.
With "bayes_auto_learn_on_error" turned on, autolearning will be performed only when a bayes classifier had a different opinion from
what the autolearner is now trying to teach it (i.e. it made an error in judgement). This strategy may or may not produce better future
classifications, but usually works very well, while also preventing unnecessary overlearning and slows down database growth.
perl v5.16.3 2011-06-06 Mail::SpamAssassin::Plugin::AutoLearnThreshold(3)