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

The Archive Base Latest Questions

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

i have integrated in my system an external script to allow my users to

  • 0

i have integrated in my system an external script to allow my users to receive credits after watched a video. After they clicked a link, a popup will load the video. After the video finished there is a callback “callback_on_conversion”. I need to hide the button but it’s not really easy. Reading the integration guide, i found:

“This asynchronous behavior has a limitation: The javascript code that
you can run in these callback functions may not use the document.write
function as that will not work. Instead, we recommend that for
creating/inserting new elements (e.g. fallback AdTags) in the page you
use DOM and jQuery.”

This is the actually script. Again, i don’t know how to hide the “a” link when video finished.

       <script src="http://iframe.sponsorpay.com/javascripts/widget/v1/widgets.js" charset="utf-8"> </script>
        <script type="text/javascript">

        var sp_object = new SPONSORPAY.Video.Iframe({
            api_host: 'iframe.sponsorpay.com',
            asset_host: 'iframe.sponsorpay.com',
            appid: 'xxxx',
            uid: 'demouser',
            width: '750',
            height: '750',
            display_format: 'bare_player',
            callback_on_start: function() { alert('Video Ready'); },
            callback_on_conversion: function() { alert('finished'); },
            callback_no_offers: function() { alert('No video avabile.'); }
        });

        sp_object.backgroundLoad();
</script>

<a href="#" id="showvideo" name="showvideo" class="showvideo" onClick="sp_object.showVideo()">Load</a>

What should i do to prevent code breaking? 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-24T23:03:13+00:00Added an answer on May 24, 2026 at 11:03 pm

    jQuery has LOTS of functions to manipulate the DOM tree. For instance, this selects the attribute with ID = ‘showvideo’ and removes it.

    $('a#showvideo').remove();
    

    Note that if there’s more than 1 such element, only the first will be taken, but you can also select using a class:

    $('a.showvideo').remove();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this external module of my system and I thought to integrate it
I need to integrate an external SOAP Service into my system. I have only
We have an integrated system (at least is that what we call it), which
We have a third party device we are trying to integrated into our system
i have integrated facebook in a web system (facebook login and some social plugins
I have successfully integrated the Silent Post feature with our system for ARB subscriptions.
I have a shop system that integrates PayPal in the usual way, i.e. the
I have integrated a Silverlight Navigation Application in an ASP.NET MVC web. However when
I have integrated CKeditor with my admin panel (php) I have writtien a function
I have recently integrated the .NET NLog logging component into one of our applications

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.