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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:52:54+00:00 2026-05-15T11:52:54+00:00

Sorry for the title…..bit difficult to word what I really want to ask. Some

  • 0

Sorry for the title…..bit difficult to word what I really want to ask.

Some websites allow a user to copy and paste some widget for use with their own site. For example, getsatisfaction. Yes, those feedback icons that I hope most of you see in various places.

If you have a look at twitterfeed, on the left there will be a feedback icon, once clicked on a nice modal window comes up. the modal windows content is in an iframe to an external source.

I really like this, but my question is:

I could do the same by using some jQuery library for the modal window and then linking the modal content to a site on my page, but how do I stop this from becoming obtrusive to a sites other javascript files?

For example, let’s say i’m using my js code and the relevant jquery code, and i’ve minified it into one file. The user adds my widget to their site. If they’re using jQuery, how do I make sure my code isn’t going to interfere with theirs?

Would the best way be to use a modal window library which is not very popular?

Thanks very much. Hope that makes sense!

EDIT: I could write my own modal window functionality code, but i’d much rather use a library which already does it.

  • 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-15T11:52:55+00:00Added an answer on May 15, 2026 at 11:52 am

    You can dynamically load jQuery only if it is needed.

    First check for the existance of the jQuery object. If not add the script tag.

    There are some challenges to this, as there is no onload event when adding a script tag to a page, that works consistently accross browsers, so you will have to poll to see if it fully loaded, and only then run your code.

    There is an article on how to do this:
    http://www.squidoo.com/load-jQuery-dynamically

    You may still have an issue if the user has a differnt version of the jquery library though, although you can probably get around this with some additional checks.

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

Sidebar

Related Questions

Sorry if the title is confusing, I am finding it difficult to clearly word
Sorry the title is a bit crappy, I couldn't quite word it properly. Edit:
Sorry about the title, but I don't know how to say what I want.
So I'm sorry the title is so vague I'm not really even sure how
Sorry if my title is not clear, I'm not sure how to word this.
Sorry about the title, couldn't really think of anything else to describe the problem
Sorry if the title is somehow misunderstanding. I am having some problems with a
sorry if the title is worded oddly, not really sure how to say it.
Sorry if the title is misleading, but I really couldn't think of anything better.
Sorry about the title, I couldn't come up with a clean way to ask

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.