/    Sign up×
Community /Pin to ProfileBookmark

Extracting post data

I am having a short brain f@#t and haven’t been coding js for a while.

What is the correct method for passing named values from a client back to the next client screen without sticking the info as an url query string?

mtg

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@WolfShadeNov 23.2010 — Client-side scripting (JavaScript) cannot access POST data; only servers see that (and server-side dynamic scripting languages like ASP, PHP, ColdFusion.) You can use JavaScript server-side, but that's a different beast. Client-side, the only way you can get form data is if method=GET; then you can parse the URL variables.

^_^
Copy linkTweet thisAlerts:
@KorNov 23.2010 — Probably you mean cookies, if both pages (you named it screens ? ) belong to the same domain.
Copy linkTweet thisAlerts:
@rnd_meNov 23.2010 — cookies, localStorage, window.name, and JSON in hash are all working ways to pass data from one window to the next.
×

Success!

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