Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-01-17 16:57:52

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Trying to use a script in an article

Hi there,

I’m hoping you can help me

I am using a 3rd party web form site to create a data entry form. I have tried to embed it using a script they have provided in an article but all I get is a blank page. (http://www.ndmtennis.co.uk/shop/201101)

When I tried it at page level it worked fine. (http://www.ndmtennis.co.uk/shop1)

Any suggestions as to why its not working at article level and how it can be rectified would be greatly appreaciated

Kind Regards

Chris

Last edited by manncj (2011-01-17 22:28:01)

Offline

#2 2011-01-17 17:27:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,254
Website GitHub Mastodon Twitter

Re: Trying to use a script in an article

can we see the embedded code snippet somewhere?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2011-01-17 17:37:03

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: Trying to use a script in an article

<a name=“form1120849162” id=“formAnchor1120849162”></a>
<script type=“text/javascript” src=“https://fs22.formsite.com/include/form/embedManager.js?1120849162”></script>
<script type=“text/javascript” EmbedManager.embed({key:“https://fs22.formsite.com/form_app/FormSite?EParam=IRLY%2BVpkNNgGlFMPzwe1pSPoPJMOjxIEKm8qHSeyW8AZ%2BUAR4qS3Zonjqh0%2BizcTK5oMHUOxJy8%3D&1120849162”,width: “100%”});
</script>

Offline

#4 2011-01-17 17:54:48

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: Trying to use a script in an article

Hi i think it s a textile problem, try escape textile or disable textile in that article.

Cheers

Offline

#5 2011-01-17 17:58:55

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: Trying to use a script in an article

how do I go about that?
Sorry if I’m being thick!!!

Offline

#6 2011-01-17 18:01:43

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Trying to use a script in an article

notextile. <a name="form1120849162" id="formAnchor1120849162"></a>
<script type="text/javascript" src="https://fs22.formsite.com/include/form/embedManager.js?1120849162"></script>
<script type="text/javascript" EmbedManager.embed({key:"https://fs22.formsite.com/form_app/FormSite?EParam=IRLY%2BVpkNNgGlFMPzwe1pSPoPJMOjxIEKm8qHSeyW8AZ%2BUAR4qS3Zonjqh0%2BizcTK5oMHUOxJy8%3D&1120849162",width: "100%"});
</script>

Remember that a blank line will end the notextile block.

Last edited by jsoo (2011-01-17 18:01:59)


Code is topiary

Offline

#7 2011-01-17 18:11:39

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: Trying to use a script in an article

tried that… it didnt work :(

if you want to have a look in textpattern:
user: deleted
pass: deleted

deleted user/pass for your security

Last edited by colak (2011-01-17 18:55:02)

Offline

#8 2011-01-17 18:49:11

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Trying to use a script in an article

The script is there, and the embedManager.js?1120849162 script is loading. It isn’t otherwise working because you didn’t close the opening script tag for the second script.


Code is topiary

Offline

#9 2011-01-17 18:50:14

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Trying to use a script in an article

I went ahead and fixed it for you.


Code is topiary

Offline

#10 2011-01-17 19:13:34

manncj
Member
From: Buckinghamshire, England
Registered: 2007-10-23
Posts: 48
Website

Re: Trying to use a script in an article

thank you very much!!!!

Offline

Board footer

Powered by FluxBB