...

View Full Version : Dont know if java



bluewalrus
06-30-2008, 05:42 PM
Don't know if this should be java php flash or another language basically i've written a sample of what i want in flash and BASIC language (and written what i dont know how to do) but I can't get it to work in flash (tried the php flash) I want to have a user input text in a text field like "2008-6-30_today" ($file below) i then want that to create 5 xml files with that name each a different name in front and extension at end like "/video/2008-6-30_today.xml" inside that file i have xml script i'm putting in in which that same file name will locate other files.


----display page-----
Name: [input field called $file]
submit button [hit]
---hit state----
on (release) {
create file ("video/$file.xml");
create file ("photo/$file.xml");
create file ("text/$file.xml");
create file ("podcast/$file.xml");
create file ("speech/$file.xml");
in "video/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "photo/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "text/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "podcast/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "speech/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
}
on(keyPress "<Enter>") {
create file ("video/$file.xml");
create file ("photo/$file.xml");
create file ("text/$file.xml");
create file ("podcast/$file.xml");
create file ("speech/$file.xml");
in "video/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "photo/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "text/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "podcast/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
in "speech/$file.xml" write "yadayadayada xml scripts and such" $file "dont want anyspaces between them yadayadayada" $file "more xml etc."
}
Thanks for your help

Philip M
06-30-2008, 07:21 PM
This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names.

JavaScript is purely a client-side language, and has no capability to read from or write to a file (except a cookie), access a database or the client's operating system. And for security reasons JavaScript cannot access anything beyond the domain of the current page. This is known as the "same origin policy" and prevents a document or script loaded from one origin from getting or setting properties of a document from a different origin.

You need a server-side language, or possibly AJAX.

bluewalrus
06-30-2008, 08:09 PM
this doesnt have to be online though is there any other way i could do it cause i dont know ajax



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum