Greetings,

I'm trying to insert a javascript code onto my site. It is a job roll ad that I got from a site called indeed.com.

The code itself looks like this

<script type="text/javascript"><!--
indeed_jobroll_format = "120x600";
indeed_jobroll_publisher = "8109288250801882";
indeed_jobroll_keywords = "English";
indeed_jobroll_location = "";
//--></script>
<script type="text/javascript" src="http://jobroll.indeed.com/ads/jobroll2.js">
</script>
<noscript><a href="http://www.indeed.com/">Jobs</a> by Indeed</noscript>

I tried to input it as both Full HTML and PHP code, to no avail. Can anyone recommend how I can get this ad to display so that I can insert it into a panel page?

Comments

vm’s picture

PHP input format should indeed allow js to work in a node as it doesn't block any type of code as far as I can tell. Though the addition of panels may alter this behavior but I don't think it should.

Have you tried the JS on a page content type with the php input format enabled on the node?

joza’s picture

I have tried the JS code on a page content type with php input format enabled.

It seems like it should work but I get this error message every time from Firefox when I try to save it or preview it

The connection was reset 

      
      

      
        
        

          

The connection to the server was reset while the page was loading.     


        
        


    *   The site could be temporarily unavailable or too busy. Try again in a few
          moments.

    *   If you are unable to load any pages, check your computer's network
          connection.

    *   If your computer or network is protected by a firewall or proxy, make sure
          that Firefox is permitted to access the Web.

I've tried it on multiple different computers too, not sure what the problem is.

kaconquest’s picture

The PHP code doesn't have an editor does it? Your Full and Filtered HTML inputs should have an editor, but the PHP one should not. (Check this under admin > site configuration > wysiwyg; The PHP code should read "No editor")

Have you tried putting the code into a regular book page instead of a panel page?

joza’s picture

Yes there is no editor for PHP input - I have tried inputting the same code as a book page and just as a page to no avail

csullivan4242’s picture

I have had the same problem with the javascript code on my site, I have tried many of the same procedures with no success.

The wysiwyg editor is disable on my site but the page still hangs when I try to save.