Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6232577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:08:25+00:00 2026-05-24T10:08:25+00:00

We are implementing a fly out messaging system that will normally fly out while

  • 0

We are implementing a fly out messaging system that will normally fly out while the user interacts with a page, but sometimes will need to fly out after a page loads.

For example, after setting a password through AJAX we would like to return to a home page and, once that page is loaded, show a “Your Password has been changed” message.

We will use Coldfusion to create the actual JavaScript calls and write them in the HTML.

My question is if there is a standard way for requesting the execution of scripts through url/form parameters?

I lean in favor of using one form parameter that that is a JSON string containing the proper function call string and parameters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:08:25+00:00Added an answer on May 24, 2026 at 10:08 am

    A good way to do what you’re talking about is to use a convention of “data-” parameters on your <body> tag, or something similar.

    <body data-startmsg='Password successfully changed'>
      <!-- whole page of whatever -->
    </body>
    

    Now your JavaScript — which doesn’t have to be inline script on the page — just needs a “ready” or “load” handler where it can check for a “data-startmsg” attribute on the <body>, showing the popup of it’s there.

    There are lots of variations, depending on the complexity of your messaging system. For example if the popups might require more elaborate layout or form inputs or stuff like that, you could just dump that onto the page as <div> (or <aside> I guess) elements with a class that makes them hidden until the popup code can find them.

    edit — to elaborate further, I think that making your client-side code work as you describe on the bases of components of the URL is probably a fairly bad idea, because it makes your pages potentially more vulnerable to more kinds of XSS attack vectors. By having the JavaScript code take its cues only from parts of the page that were set up completely by secure code on the server, you make it harder for attacks to exploit some weakness in parameter scrubbing, because in that setup the client-side code would happily obey parameters in the URL that you may not have intended.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I`m implementing a custom filesystem on Ubuntu using Fuse, but I need to trap
While implementing a design using nested generic collections, I stumbled across those limitations apparently
Implementing a custom VM and I've come to use registers (these will store pointers
Im implementing NFS and almoste done but the RFC section 3.3.8 says this in
Im Implementing a video broadcasting website. For that I planned to use silverlight player
Implementing a Thread by providing a new class that extends Thread and overriding its
Implementing a web service that uses Transport-level security with WCF over HTTP is pretty
I implementing OLE DB provider for my custom database. It will be used from
In implementing Easy Slider 1.7 with jQuery on a page of mine, I find
While implementing the code from this question on my project I realized there's 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.