dcsimg
Accessing Property file through Javascript or HTML pages.
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Parvati_Erra
Posted On:   Tuesday, November 9, 2004 05:15 AM


My application need hard coding of few URLs in different places. Because of this I am facing problem, when ever there is a change in URLs I need to change it in all the places.



So I want to know is there any way through which I can store all these URLs in one file and access those through coding, like its done through Properties file in java. In this application we are not suppose to use Java or XML technologies. I am using only HTML pages and a scripting language known as Idoc scripting it is an native language of Stellent content server.



Thank You, Padmaja.

Re: Accessing Property file through Javascript or HTML pages.

Posted By:   Raj_Agarwal  
Posted On:   Wednesday, January 19, 2005 08:13 PM

gfhjdsgfhjdsgfhjgdhfgds
fhjdshgkfdshgkdjfghkdjfkj

Re: Accessing Property file through Javascript or HTML pages.

Posted By:   Anonymous  
Posted On:   Saturday, January 1, 2005 04:42 AM

i have to read a simpe text file from the local machine and after reading the content sending it on the server ...

for that i need the working methodology to accomplise this task....

thanks

Re: Accessing Property file through Javascript or HTML pages.

Posted By:   Anonymous  
Posted On:   Thursday, November 11, 2004 04:58 AM

Reading a file from JavaScript is (almost) as easy as
reading a file from a Java applet. Your script cannot
read files itself; you would have to code a Java applet
that reads files for your script.



In more detail, one of the possible reading mechanisms can work like this:


1-)Your script calls a public method of the applet.

2-)The public method initiates the reading process in
another thread of the applet, and then returns.

3-)The reading process in another thread of the applet
continues.
4-)At the same time, the script keeps asking
the applet whether the reading is complete.

5-)The applet finishes reading and puts the file content in
a public string variable of the applet.

6-)The script sees that the applet completed reading.

7-)The script copies the file content from the applet's
public variable into a Javascript variable.


Note that unsigned Java/JavaScript code can read files only
if the file(s) to read and the code itself have the
same origin. For example, if your unsigned code is published on a Web server, it is allowed to read files from
the same server only. If your code resides on the local
hard disk, it is allowed to read files only from the
same disk (at best).

Re: Accessing Property file through Javascript or HTML pages.

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, November 9, 2004 05:35 PM

If your Idoc scripting runs on the server, then that is the place to do what you want.
About | Sitemap | Contact