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

Introduction: I am currently developing a document classifier software in C/C++ and I will
Introduction I have a Client-Server architecture where the server stores its data in different
Introduction: I have a flat ArrayCollection of object's, which i group to create the
I am currently taking a course that gives an introduction to project planning. It
Introduction Android provides two ways for me to use speech recognition. The first way
Introduction: I'm working on an API which provides access to Picasa, Flickr and some
Introduction I would like to implement a dynamic multiple timeline queue . The context
Introduction DOMError is an interface defined by the DOM. I would like to check
Introduction I am basically coming from two sides of the development teams. I started
Introduction : I have a Server [ WCF service library ] and Client [

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.