Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-19 21:01:50

girlvsworld
New Member
Registered: 2006-03-25
Posts: 2

insert textpattern tag into javascript

Hi, I’m trying to set up a scrolling image navigation for a client using dhtml..I’ve set up the actual javascript as a form but would like to place the article tag within the javacript as such:

//specify menu content
var menucontents=<code>’&lt;nobr&gt;&lt;txp:article_custom category=“gallery_pic” limit=“1” /&gt;&lt;/nobr&gt;’<code>

but it doesn’t work..if I take the tag out and just put the content in it works.

Anyone have any suggestions? Thank you.

Offline

#2 2006-07-20 01:50:04

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: insert textpattern tag into javascript

try making it in the page rather than the form.

but…..it should work otherwise

Offline

Board footer

Powered by FluxBB