I apologize if this is a very simple question... I'm brand new to Drupal and trying to run a quick test to integrate Drupal with an offer management platform.

Here is the code snippet I'm working with:

<div id="i_offer_1">Test</div>

<script type='text/javascript'>
var interactionDivs = {}; interactionDivs['i_offer_1'] = {space: 'SPC24'};
</script>
<script id='interactionProposalScript' src='http://website.net/interactionProposal.js?env=OE19&n=1&t=53239' type='text/javascript'></script>

The snippet above should replace the contents of the div tag with a unique offer. I'm hoping to put this together in a block so I can place it on the sidebar of my Drupal site. Is this possible?

Thank you!

Comments

vm’s picture

what text format is in use?

sadronmeldir’s picture

I've tried Full HTML and PHP, but neither seemed to work.

vm’s picture

and you're sure the .js works outside of drupal?

when you view the source does does any part of the code show where the block should be?