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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:09:29+00:00 2026-05-27T03:09:29+00:00

UPDATE: Let me specify a few things. This GET request (to another domain )

  • 0

UPDATE: Let me specify a few things. This GET request (to another domain) should happen after a form submitted through AJAX successfully (it counts the number of conversions coming from a specific referrer). So the response is indeed irrelevant, what matters most is that the GET request is successful, and of course that I keep the code to a minimum.

Quick question, are these two lines pretty much the same thing ? (what I need is a get request to the url) :

$('body').append('<img height="1" width="1" style="border-style:none;" alt="" src="url"/>');

And

$.get(url);

My apologies if this sounds idiotic, but I need to be sure.

Thank you.

  • 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-27T03:09:29+00:00Added an answer on May 27, 2026 at 3:09 am

    are these two lines pretty much the same thing

    In terms of making a GET request to the URL – yes. But in terms of using the data – no.

    One creates an image element with url as the image source. If the response is not valid image data, rendering it will fail. The GET request will always be made, though.

    The other makes an Ajax request to url. If it’s an image resource, the response will contain image data – but you’re going to have a hard time displaying it (you’d have to base64 encode it first and show as a data: URL, or insert it into a canvas element, both of which methods don’t have 100% browser support.) Also, request to remote URLs won’t work.

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

Sidebar

Related Questions

How do you guys update let's say for example a FormView with an ObjectDataSource
Let's assume I browse a specific web page that uses JavaScript to update its
Or vice versa. Update: Hmm, let's assume I have a shopping cart app, the
I have a table, let's call is [MYTABLE] , with an FOR INSERT, UPDATE
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
UPDATE: Let me clarify my files and reiterate my question: main.h #include other.h class
I'm attempting to update a large codebase to properly specify the CultureInfo and/or IFormatProvider
How to fix this error [Err] 1093 - You can't specify target table 'user_log'
Update: This turned into a blog post, with updated links and code, over at

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.