Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-19 07:41:10

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Plugin Request: Javascript Manager

I would like to request for a “javascript manager”, something like managing txp styles. (Even a hack would be great). Can somebody help?


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#2 2005-11-19 08:52:57

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: Plugin Request: Javascript Manager

u know u can use your ‘stylesheets’ for javascript, right? make a new stylesheet called “js” then just bung this in your head:
<script src="http://www.domain.com/textpattern/css.php?n=js" type="text/javascript"></script>

maybe not for the purists but it works and life is short

Offline

#3 2005-11-19 09:08:37

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: Plugin Request: Javascript Manager

Nardo, thanx for the tip. Looks like browsers do not like it, because “css.php” defines the output as a Style sheet.

<blockquote>
maybe not for the purists but it works and life is short
</blockquote>

Well, I’m not a purist, but I’m trying to become one. I thought I’d request for a plugin before giving the “Stylesheet” approach a go :)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#4 2005-11-19 09:43:21

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: Plugin Request: Javascript Manager

I’m using this technique for a site and I know it works! what browser did u have probs in… maybe you know something I don’t : )

Offline

#5 2005-11-19 09:45:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Request: Javascript Manager

Someone was discussing a simple mod for this just a little while ago. I’ll see if I can find it.

Offline

#6 2005-11-19 10:03:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Request: Javascript Manager

Well, I can’t find it. The basic idea was you make a copy of css.php, adjust it to output the correct header, and just use the existing style manager to hold your javascript.

A plugin would be neater, though.

Offline

#7 2005-11-19 10:07:33

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: Plugin Request: Javascript Manager

header('Content-type: text/css');
bugger

Offline

#8 2005-11-19 10:36:06

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: Plugin Request: Javascript Manager

Nardo & Mary. Thanks.

I found <a href=“http://textpattern.org/tips/333/external-javascript-in-txp”>this</a>. Looks like I’m not the only one who requires a JS manager (see the comments). It would be really cool if a plugin could be made to manage js scripts.

Who else is with me on this?

Edit:

<blockquote>I’m using this technique for a site and I know it works! what browser did u have probs in… </blockquote>

Nardo, It sure does work. I was only saying that browsers get suspicous and secondly it doesnt seem to validate.

Last edited by creativesplash (2005-11-19 10:45:43)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#9 2005-11-19 18:10:43

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Plugin Request: Javascript Manager

I’d be down. It would prove really useful in upcoming client work, although, it seems just as easy to put it in a JS file.

?

Matthew


Offline

#10 2005-11-20 02:12:07

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: Plugin Request: Javascript Manager

Matthew, I agree with you. It is quite easy to throw in a js file. But what if you are not able to access your FTP and you want some changes in the script? Its gives you quite a headache!

So is anyone willing to work on such a plugin?


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#11 2005-11-20 04:35:15

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

Re: Plugin Request: Javascript Manager

I’ll third the request. B neat, useful, intentional, and simple.


“If you build it, they will come.”

Offline

#12 2005-11-21 02:28:11

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: Plugin Request: Javascript Manager

Anyone else?


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#13 2005-11-21 05:49:17

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin Request: Javascript Manager

Finally. I found it.

Offline

#14 2005-11-21 09:49:34

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: Plugin Request: Javascript Manager

Thanx. I had a look at it. I have no knowledge in PHP. But I’m still gonna have go at it. So I’ll post here if I figure things out. :)


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#15 2005-11-23 16:16:06

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Plugin Request: Javascript Manager

I do think theres a general need for this feature for all users. I think it’s just good housekeeping.

I mentioned it in April 05, and it generated precisely zero buzz here

Let’s just have another tab called behaviours and make it work like the style tab for javascripts.

Offline

Board footer

Powered by FluxBB