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

  • Home
  • SEARCH
  • 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 203875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:25:03+00:00 2026-05-11T17:25:03+00:00

I created a widget that users of my site will embed on their web

  • 0

I created a widget that users of my site will embed on their web sites. I want to track the amount of times a widget renders as well as the referring URL. The widget was written in flex and my back end is Rails.

One obvious way to do this would be to have my widget make a service call to the back end to register a hit. However, when my widget loads, it grabs a config XML. If I add another render service call, that will be 3 requests per widget render (one to get the swf, one to get the config, one to render). I could make the config.xml dynamic and just process a render there, and then return the XML…but could this be bad for scaling?

Another would be to make the embed source URL point to a script that processes a hit and then returns a swf…i am pretty sure this is possible. But I am also not sure if this is the best way.

I am interested in any professional advice on this. How do the pros efficiently implement this simple system?

Thanks!

  • 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-11T17:25:03+00:00Added an answer on May 11, 2026 at 5:25 pm

    All of the three options you mention seem like perfectly valid ways to do this, but registering these hits at the same time as returning either the .swf or the .xml config file seems like a smart thing to do because AFAIK most browsers have a pretty low limit to the number of concurrent HTTP requests they can make to the same host (I think it’s two or something like that) so if more requests have to be made in order to render something in the browser, the ones going over this limit will have to wait for the first ones to finish before being initiated. It’d also probably entail slightly less work for you.

    The only difference I can think of is that returning the .swf doesn’t yet mean that a Flash Player instance will render it so “registering renders” when returning the config xml seems like it would give you a more solid measurement of how many times someone’s browser has successfully loaded and shown them this .swf (assuming that the Flash app will initiate the request for this config file after it has successfully been loaded).

    As far as the scaling issue goes, regardless of when you’d be registering the hit it’d still require the same amount of processing on the server (which I can’t imagine being very high for something like this), so I don’t see this as a big concern.

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

Sidebar

Related Questions

The organization I work for has created a small flash widget that we're encouraging
I have created a few small flash widgets that stream .mp3 audio from an
I'm trying to create a form that has an expandable widget. The problem is
If I were to want to create a nice looking widget to stay running
Lets say you want to create a listing of widgets The Widget Manufacturers all
I am trying to create a combobox style widget (jquery-ui compatible) andcurrently I am
I created a program using dev-cpp and wxwidgets which solves a puzzle. The user
I created a few mediawiki custom tags, using the guide found here http://www.mediawiki.org/wiki/Manual:Tag_extensions I
I created a single page (with code behind .vb) and created Public intFileID As
I created an Interop user control in VS2005. When the user control is shown

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.