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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:10:37+00:00 2026-06-08T03:10:37+00:00

I have developed a custom YouTube player. with that player I have implemented a

  • 0

I have developed a custom YouTube player. with that player I have implemented a question and answer system which saves data to my database by calling php functions using ajax.

the following is the html code

<div id="player">
</div>

    <div id="commentArea">
    <div class="question ui-corner-all">
        <textarea id="comment" rows="10" cols="50" style="width: 100%"></textarea>
        <div id="btnSave" class="player-button" style="float: right">
            Send</div>
        <div style="clear: both">
        </div>
    </div>
</div>

for this to work I have to reference 3 style sheets and 3 script files. But I want the end user to embed this code easily rather than putting stuff in the header and putting the above html code in the body.

Will it be possible for them to just put an embed code, which will bring the above html and also the references to the js and css files? If so what is the best way to do it?

Thank You for any help in advance

Best Regards,
Amila

  • 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-06-08T03:10:38+00:00Added an answer on June 8, 2026 at 3:10 am

    You could create a little javascript to fetch the necessary files by adding them to the header. Something along the lines of:

    <script type="text/javascript" src="..."></script> <!-- jQuery -->
    <script type="text/javascript">
      $(document.head).append('<link rel="stylesheet" type="text/css" href="...">');
    </script>
    ...
    

    Of course, browsers support <style> tags anywhere on the page (so just putting the tags on the page would work), but the HTML4 spec doesn’t allow that.
    Also, you may want to not load jQuery again if it is already present, but then you have to delay your code until jQuery is actually loaded. Not sure how to do that – the <script>‘s load event, perhaps?

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

Sidebar

Related Questions

I have developed an application which starts a custom service that fires a countdowntimer.
I have developed a custom target, that needs to run only if the compilation
We have our own custom calendar in our portal which is developed in Java.
We have an ASP.NET MVC application for which we have developed our own custom
I have developed a custom binding which works over http and therefore returns http
I have developed an app which uses my own custom keyboard (well, a view
We have developed a custom control in monotouch (inherited from UITextField, but that shouldn't
I have developed a custom webpart which is being displayed correctly and has some
I am using Joomla 1.5 . I have developed a custom component that's basically
I have a custom developed WordPress plugin that is using jQuery 1.4 and for

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.