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 7982591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:43:02+00:00 2026-06-04T10:43:02+00:00

When I send signals back to the client from an Ajax request, I use

  • 0

When I send signals back to the client from an Ajax request, I use this form:

<!--a_b-->

so if some how I don’t parse it, and it ends up in the html it won’t break anything because it is a comment.

a and b denote values to convey information while _ is a separator.

I can’t but help wonder how others send “control” signals back from an ajax request.

What is the best way to send control signals from the server to the client using ajax?

  • 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-06-04T10:43:04+00:00Added an answer on June 4, 2026 at 10:43 am

    I would just use JSON. Your client has to know how to interpret the response anyway, so encoding it in a html comment isn’t really useful. It just means you need extra work to parse later. The if some how I don't parse it just means you have a bug you should fix.

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

Sidebar

Related Questions

i need to make some kind of virtual keyboard, to send keyboard signals to
Do I have to wait for signals with select() in order to send something
I have two classes evaluated threads but I cannot send a signal from one
I'm trying to send a midi signal from my c# app to a track
I send a mp3 file download url which was taken from database and mailed
I send data in JSON to the server like this: var username = $(#usernameField).val();
I send post parameter like css=request.POST['q'] css=css.encode('utf-8') and css has content like { container:
I have written this short script (which I've stripped away some minor detail for
I have an WPF application. The problem: need program(daemon, service) that send signals by
I have a program that I need to use signals and handlers with. I

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.