Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input text options, calling cgi file

Status
Not open for further replies.

isaac48723

Technical User
Mar 17, 2002
6
US
OK, I have a text box on my main page. It is "input text" and has a variable box and HTML check, Border/Bg check, and Word Wrap check options. If the news.cgi file is located in the /home/httpd/fragsters/cgi-bin/news path, what do I have to put in the text options tab in flash to call the news file. Note: I have to have the news file where it is-outside the cgi-bin. Thanx for the help if any.
 
An input textbox, is for a user to input text in your movie, and not to retreive info from some file. Try using a dynamic textbox instead. The html box shouldn't be checked unless you're using html1.0 formatting in your news text file.
Assign a variable name in the variable box such as my_news or whatever.

Now your news text file should start with that variable name, something like:

my_news=This is the text from the cgi news text file. Bla... bla... Bla!

Then from a button or from a frame action in your movie use the loadVariables action, something like:
Code:
loadVariablesNum ("[URL unfurl="true"]http://www.yourserver.com/home/httpd/fragsters/cgi-bin/newspath/news.txt",[/URL] 0);

Regards,
new.gif
 
Im a little bit unclear about the My_news part. All I have is a file called news.txt, that is where all the news will be stored. That file will be called up to diplay its contents in the text box. Now, when I was installing the perlscript on the server, I named the page "Fragsters News", would that have anything to do with it.
 
my_news (it could be anything you like!) is only the name of the variable in the variable box in the Text Options panel. Your news.txt file is fine! All I'm saying is that your news.txt file as to start off with the variable name you use when defining your dynamic textbox, thus, whatever text in inside the news.txt file has to start with the variable name used:

my_news=Fragsters News. Bla...Bla...Bla! etc... etc...

Regards,
new.gif
 
I think im getting closer, I am using newspro to do all of this, i login to my newspro in the cgi-bin, enter the news then submit. It sends the news to the news.txt file. So i made the first news post and this was the first group of characters in the file <!-- NP v3.8 --> does that mean I should put my_news=<!-- NP v3.8 --> in the variable box in flash?

The readme says that I should use this but I think they are referring if I am using HTML
<!--#include virtual=&quot;/mypage/cgi-bin/newspro/news.txt&quot; -->
 
I'm not very good at server side scripting, and have yet not really tackled ASP, CGI or whatever else...
Once again, I'm only trying to explain what your news.txt should look like in order to be displayed in a dynamic textbox in Flash.
For the purpose of this test, why don't you just first type out your news.txt (in Notepad or whatever! - and the way I suggested above), stick it on your server, and try to get it displayed in Flash.
Once you get that working, you'll at least know what your news.txt file has to look like. Now to get Newspro to format the news.txt that way, is another story! I've never used Newspro either, and until you can get it to format your news.txt somewhat exactly as I proposed above (i.e. the whole thing starting off with the variable's name used in the textbox), guess it will never work!
Furthermore if your intention is to use current version html formatting in this display, remember that Flash only supports a few tags from html1.0, and using any other current tag, will keep your file from being displayed in Flash.

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top