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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:04:58+00:00 2026-05-20T10:04:58+00:00

Introduction I am planning to create a widget much like, Facebook provides for likes

  • 0

Introduction

I am planning to create a widget much like, Facebook provides for likes, share etc. Basically the requirement is:

  1. The client will include JavaScript provided by us.
  2. The client can, now, put our widgets in the page having the JS. The widget placeholder looks like <nw:fav id="911"/>.
  3. When page gets loaded, the JavaScript replaces the placeholders with actual HTML. The JavaScript also keeps this DIV updated with dynamic (perhaps using long polling) content.

Problem

I am not sure how to do step #2.

  1. How JavaScript will get all the <nw:... tags and all the attributes of it?
  2. How to replace the tag with real HTML tag?

Constraints

  1. I am trying to avoid JQuery or any other JS library, since we may cause conflict if the client is also using JQuery, may be some other version.
  2. I don’t really want to use IFrame.

I am looking for approaches. Open for suggestions.

  • 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-20T10:04:59+00:00Added an answer on May 20, 2026 at 10:04 am

    The facebook connect JS SDK is open source. You might find the xfbml.js file useful. See this link.

    Basically when the document loads, the code walks the dom looking for elements that have a specific namespace (FB uses fb, you appear to want to use nw). Find those elements and then replace them with whatever content you need.

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

Sidebar

Related Questions

I have a section: \section{Introduction} \label{sec:introduction} I'd like a link to the section where
Introduction I've always been searching for a way to make Visual Studio draw a
Introduction In my current organisation, we have many desktop and web applications all feeding
Has the introduction of the .net framework made raw programming in COM and DCOM
Can anyone point me to a good introduction to coding against the paypal API?
I'm working on getting an Introduction to Groovy presentation ready for my local Java
I'm reading through A Gentle Introduction to Haskell, and early on it uses this
I am looking for some material giving introduction to DAO and ADO usage in
I'm looking for a laymen's introduction to computer hardware and organization. Here are some
I'm looking for a good 10 minute introduction to Unobtrusive Javascript using JQuery. I'm

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.