Questions tagged [flash-message]

Flash messages are used to notify the user that something has occurred. For example, a record has been created or they attempted to access something they were not authorized to do.

408 questions
2
votes
1 answer

Cakephp3 pass (custom) validation to flash message

It is simple to pass a message to flash via: $this->Flash->error(__('The user could not be saved. Please, try again.')); But when there are more errors from: $package->errors(); I use just a simple foreach loop: foreach ($package->errors() as…
pt0
  • 175
  • 1
  • 14
2
votes
1 answer

Rails: delete a flash message inside a custom error controller

I have a custom error controller to show dynamic error pages (for 404, 422,500, etc), everything works fine but I cannot delete a flash message (according to…
John
  • 588
  • 1
  • 6
  • 22
2
votes
1 answer

What's the best way to handle Node.js flash messages?

I am a beginner with Node.js and i absolutely love it. I wonder how can i handle flash message the best and easiest way. I used connect-flash package in my site. Does it have better ones? I always put my flash messages in my render function like…
Mike Boutin
  • 5,297
  • 12
  • 38
  • 65
2
votes
0 answers

setting flash messages on wordpress

I'm migrating from drupal to wordpress and I'm new on coding wordpress. I need a function that works similar to drupal_set_message() to display a message on on a failed custom login(not site/wp-admin) but i can't find any.
user3173855
  • 43
  • 1
  • 10
2
votes
1 answer

connect-flash and jade: unable to show flash messahe

I'm starting to use Express now, and want to show a simple flash error message, which is just not working. app.js var flash = require('connect-flash'); ... var app = express(); // create an express app // configure…
KGo
  • 18,536
  • 11
  • 31
  • 47
2
votes
2 answers

Flask: Flash function ignoring the 'category' argument

So I write the controller: @app.route('/') def index(): flash('Hello world!', 'success') return render_template('index.html') then in my template I output the flash messages like this: {%- with messages =…
c00p3r.web
  • 808
  • 3
  • 10
  • 21
2
votes
1 answer

Flash messages in Devise and Twitter bootstrap

I have installed Devise but there is no flash messages are shown and I am also using twitter bootstrap , how can I make them appear ?
2
votes
1 answer

Flash messages showing up inconsistently in IE

I have a weird problem with flash messages not showing up in IE (tried 8 and 9): it always works with other browser the problem is only on one page (this page renders different forms based on a parameter) the flash message always appears on…
Robin
  • 21,667
  • 10
  • 62
  • 85
2
votes
2 answers

Flash message if a user clicks a link?

I have a couple of links of my home page to different parts of my site that are restricted to those who are logged in. If you are not logged in then you are redirected to the sign up form. This isn't great however so i'd like to first of all…
Keva161
  • 2,623
  • 9
  • 44
  • 68
1
vote
1 answer

Laravel 10 Breeze - Throw custom flash message if user is not active

What I am trying to do is throw a custom error message if the user is not active. This is the method: public function authenticate(): void { $this->ensureIsNotRateLimited(); if (! Auth::attempt($this->only('email', 'password') +…
1
vote
2 answers

Show message in flask while using AJAX

I have this code: (template) // Send the changed input data to the server (function() { window.addEventListener('DOMContentLoaded', () => { document.querySelectorAll('input').forEach(elem => { elem.addEventListener('change',…
parmer_110
  • 325
  • 2
  • 11
1
vote
0 answers

Vue3 Uncaught TypeError: t is not a constructor

I've been having this issue for a few hours now, I'm trying to use vue-flash-message in my Vue app, but it keeps throwing this error: 'Uncaught TypeError: t is not a constructor'. I don't know where, or how this is happening. This is my main.js, and…
user123
  • 73
  • 1
  • 1
  • 5
1
vote
0 answers

Even after unset flash messages coming in codeigniter-3

I am new to the codeigniter framework, i am using flash messages it's displaying correclty but even after redirecting to another page still the same flash message is displaying for this issue i was trying to fix by following this accepted answer but…
sai sa
  • 171
  • 1
  • 5
1
vote
1 answer

Laravel 8 Flash Session not working on Request

I wonder in my application can't show flash message. I have tried many solutions on stackoverflow but my problem is not solved.
1
vote
0 answers

connect-flash shows [ ] instead of a message (express)

... newArticle.save((err,newArticle)=>{ if(err){ req.flash('error','Sorry , an error has occured. Thamk you try again later') //when i use console.log(req.flash('error')) it shows normally in the terminal …