Welcome, Guest. Please login or register.

Author Topic: need help with gW3S scripts  (Read 1746 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline jumpshipTopic starter

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 781
    • Show only replies by jumpship
    • http://onlyamiga.kicks-ass.net
need help with gW3S scripts
« on: January 30, 2003, 11:30:41 PM »
I am quite new to Arexx and would like to ask for some help! Basically what I would like to do is to consturct a website that is easy to update. The way I would like to do this would be by having an XGI script that setup the layout for the page and then have it display a text file (with any html formatting) where ever it may be needed.

For example on my exsisting website I have a "News" colom, so basically the XGI script would generate the page then call the text file that held the news and print it on the page.

Like I say, I am new to Arexx (not to programming in generall although maybe a bit rusty!) and would like to know if a) this is possable, and b) how I would go about opening the text file and then "printing" it into the document.

Thanks!  :-)
 

Offline jumpshipTopic starter

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 781
    • Show only replies by jumpship
    • http://onlyamiga.kicks-ass.net
Re: need help with gW3S scripts
« Reply #1 on: January 31, 2003, 05:28:40 PM »
No one?

 :-(
 

Offline carls

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show only replies by carls
Re: need help with gW3S scripts
« Reply #2 on: January 31, 2003, 05:57:43 PM »
This would be easier to do with inline ARexx.

Here's an example:
http://carls.1av10.nu/w3s/example/

html_layout.txt - this would be the HTML file that executes the inline ARexx.

getnews.rx - this is the script that reads the news

newslist.txt - the news (one news item per line)


This is just a very simple example, but at least it's a start! If you are new at ARexx I would also recommend you to download ARexxGuide from Aminet, it's a great AmigaGuide with both tutorials, examples and a language reference!

Happy hacking :-)
Amiga: Too weird to live, too rare to die.
 

Offline jumpshipTopic starter

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 781
    • Show only replies by jumpship
    • http://onlyamiga.kicks-ass.net
Re: need help with gW3S scripts
« Reply #3 on: January 31, 2003, 07:09:07 PM »
now that is perfect!

You are a star!

have a :pint: of finest on me! :-)

Now all I need to do is find out how to host this using my cable connection while going through a Win2k with Internet sharing!
 

Offline carls

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show only replies by carls
Re: need help with gW3S scripts
« Reply #4 on: January 31, 2003, 07:20:42 PM »
Actually, I have a couple of beers on cooling...
But I'd better save them for tomorrow. :-)
Amiga: Too weird to live, too rare to die.