Webmastersite.net
Register Log In

Javascript generation problem

Comments on Javascript generation problem

morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jun 14, 2005 - 4:12 PM:

Hi,

How do i chmod the javascript folder? I can't seem to find it at ftp. i was trying to use the javascript to generate feeds for my site. Here is my config file for the feed:-

<!-- BEGIN TOPLIST 5 -->
<CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>
{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br>
<!-- END TOPLIST 5 -->

And i name the file as javafeed.js but when i view it, i cant seem to load the feed? Do i need to chmod the files first? And if so, where do the files go? Couldnt find the folder of javascript. I am using aceftp. Tried downloading cuteftp and also couldnt find it

I tried creating the folder but it says it has already existed. I remember last time when i typed in -br in wsftp and some hidden folders will show up or something. Is this the same thing?

Please help.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 16, 2005 - 8:19 PM:

How do i chmod the javascript folder? I can't seem to find it at ftp.

Well, if you don't have one then you'd need to create one. But it's in all recent versions.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jun 16, 2005 - 8:55 PM:

I tried but the aceftp says that folder already existed or error. sad

Any recommendation for ftp software that will show the javascript folder?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 17, 2005 - 2:34 PM:

Erm, that really doesn't make any sense. Perhaps you've somehow got it chmoded to be invisible, though that should be impossible.
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jun 17, 2005 - 11:49 PM:

oK, I somehow managed to make it into the javascript folder.

i input the line
<!-- BEGIN TOPLIST 5 --><CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br><!-- END TOPLIST 5 -->

at the
Automatically generate javascript (.js) files every day for a toplists with these config lines (separate with the 'enter' key):
field

and name as freecontents.js at the second field.

All i get now is document.write(''); when i try to view it at mysite.com/wsnlinks/javascript/freecontents.js

so iw as thinking maybe the enter key makes a difference, so i decided to seperate the line and insert the config line as:-
<!-- BEGIN TOPLIST 5 -->
<CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG>{NUMBER}) <a href="thread/{LINKID}" target="_blank">{LINKTITLE}</a><br>
<!-- END TOPLIST 5 -->

and now the javascript folder contains nothing. shaking head but the field now lists the toplist with the following:-
<!-- BEGIN TOPLIST 5 -->
1) <a href="thread/2124" target="_blank">Link1</a><br>
<!-- BEGIN TOPLIST 5 -->
2) <a href="thread/2123" target="_blank">Link2</a><br>
<!-- BEGIN TOPLIST 5 -->
and so on to link 20

But still i cant view it or call it to freecontents.js

Do i have the correct values for the fields there? DO i insert the toplist config at the first field and the freecontents.js at the second field?

I have already chmoded the javascript folder to 777 and the freecontents.js to 666 permission.

Please Help!
morton82
Forum Regular

Usergroup: Customer
Joined: Jan 21, 2005

Total Topics: 32
Total Comments: 102
Posted Jun 18, 2005 - 12:07 AM:

Ok, i got it working. Seems like i need to exclude the Begin toplist thing. SO the correct code for that field is:-

<CONFIG>links,id,20,descending,,,,0,0,0,100</CONFIG> grin
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.