/    Sign up×
Community /Pin to ProfileBookmark

Populate drop down menu values

Howdy all. I’ll explain this in theory first: I hope to create a dialog interface for Photoshop CS powered by javascript that allows the user to type in prices for products. When submitted, these values will then be sent to a template html document and populate the page’s drop down menu values within a form. I’m new to Javascript, however, this seems doable. Any documentation on this kind of move would be greatly appreciated.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@ExuroNov 26.2004 — [i]Originally posted by thadallender [/i]

[B]When submitted, these values will then be sent to a template html document and populate the page's drop down menu values within a form.[/B][/QUOTE]

It would be much better if this were done server-side with a language like [url=http://www.w3schools.com/php/default.asp]PHP[/url], [url=http://www.w3schools.com/asp/default.asp]ASP[/url], or [url=http://www.w3schools.com/aspnet/default.asp]ASP.NET[/url]. With any server-side language it would be a simple task of reading the values passed in from the form and then writing them to an element of your form.
Copy linkTweet thisAlerts:
@thadallenderauthorNov 26.2004 — Thanks for the suggestions. Unfortunately, running a server side script isn't an option for reasons that I won't get into. I do realize that it would make more sense to run this script from a HTML page rather than inside Photoshop. SInce I'm a newbie, please excuse this question if it's overly obvious: It is possible to create an HTML page with JS that, when submitted, changes data listed in a form's drop-down options inside another HTML page? If so, how? Thanks in advance.
Copy linkTweet thisAlerts:
@ExuroNov 26.2004 — Yes, it is possible. You have to set the form's [FONT=courier new]method[/FONT] property to [FONT=courier new]"get"[/FONT], and then you can read the query string on the second page to populate your form elements.
×

Success!

Help @thadallender 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.17,
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,
)...