balthasar Posted October 28, 2012 Share Posted October 28, 2012 (edited) Hi, I'm trying to insert this simple line of code: <script type="text/javascript" src="http://forms.aweber.com/form/38/1894314738.js"></script> to a cms page but the code get automatically removed. I have managed to show it using those this tag: {literal} {/literal} but the tag show on the page. you can check how it looks on the page here: "removed for SEO purpose" Also, you can't see the {literal} {/literal} tags before & after the newsletter signup form because I have made them white for now, waiting for a better solution... I have been searching for an hour & found nothing, any help is welcome. Thanks a lot. Edited October 28, 2012 by balthasar (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 Just put the tag in your header.tpl file. The tinymce box strips script tags and other tags from being able to work. Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 how will the signup form show on the page I want if I put <script type="text/javascript" src="http://forms.aweber.com/form/38/1894314738.js"></script> in the header.tpl? Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 Is the js file just a library file? Or is it the actual form code? There should be more to it than that. Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 Nevermind, I actually looked at the code, it is the actual form code. I would just edit the cms template file, and use an if statement to determine what page is being loaded and display the code that way. Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 <script type="text/javascript" src="http://forms.aweber.com/form/38/1894314738.js"></script> the above code is all there is, nothing else. Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 (edited) ok but that's of no help to me, i'm not a coder and I don't know how to do what you've said... Edited October 28, 2012 by balthasar (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 Try setting your editor in the back office to source and using the literal tag that way. Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 i did this, but the tags are showing on the page, and if you don't see them it's only because i've made them white, select the form you will see tags showing. Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 When I paste the script in the editor in js mode, it works fine for me. Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 js mode, ok going to try to find out what is that and where is that... Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 (edited) Sorry, it is late for me, I meant html mode. http://screencast.com/t/bUcVDQxrl also see REMOVED that is where i tested it. Edited October 28, 2012 by DesignHaus42 (see edit history) Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 (edited) yep works fine when it's out of a table or any other tags, but as soon as you put the script line between other tags or in a table, it's not working. Edited October 28, 2012 by balthasar (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 Ok, try this, put a space between your table (you should be using divs) and also use a self closing tag. Look at the page I linked above, this works for me on it <div style="position:absolute; top:160px; left:500px;"> <script type="text/javascript" src="http://forms.aweber.com/form/38/1894314738.js" /> </div> 1 Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 Nope it won't work either, i checked in chrome and in IE, the form doesn't show at the same place. Link to comment Share on other sites More sharing options...
balthasar Posted October 28, 2012 Author Share Posted October 28, 2012 (edited) i think i'm just gonna leave it like this, with the white tags showing on the page but invisible i doubt google will penalize the page for this (i hope not) It's bad that we can't use scripts like this one in pages.... thanks a lot for your time Edited October 28, 2012 by balthasar (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted October 28, 2012 Share Posted October 28, 2012 I just marked it up quick with an absolute. you will have to tweak the css you use for cross browser. Link to comment Share on other sites More sharing options...
Recommended Posts