/    Sign up×
Community /Pin to ProfileBookmark

Since this is more of a java script question, I’ve moved it ehre from the HTML forum.

Is there a way to load the arrays in Khalid’s example at [url]http://68.145.35.86/skills/javascripts/DropdownListDisplayRadioSelection.html[/url] from a .txt file? If so, please share.

Thanks again for all your help everyone!!

Tom

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaMay 30.2003 — [b][font=arial][color=maroon]With Javascript, the only way to interact with the FSO (FileSystemObject) object is to use ActiveX, and this would only work on the local machine. Instead, you should use a server-side language.[/color][/font]



Jona[/b]
Copy linkTweet thisAlerts:
@khalidali63May 30.2003 — Yep, exactly that,You do have another option of using JavaApplet and that can work cross browser,however for that you have to have signed applet to work on all machines,the better solution is to use server side language,there are tones of 'em out there,

JSP,ASP,PHP.....so many of them
Copy linkTweet thisAlerts:
@AdamGundryMay 30.2003 — You could simply put the code that generates the arrays in a seperate JS file, and then include it using

<script type="text/javascript" src="filename.js"></script>

That might give more or less what you want, depending on exactly how the data needs to be stored. Of course, you can't save the data to the file.

Adam
×

Success!

Help @BrainDonor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...