Welcome to WebmasterWorld Guest from 54.158.35.222

Forum Moderators: incrediBILL

Message Too Old, No Replies

Get/Post Javascript?

get, post, java, javascript

     
9:41 pm on Aug 6, 2013 (gmt 0)



I have been coding html, js and css for a while but it's all been pretty much client side. I now need to know how to 'write' to a network location.

This is going to be a simple 10 question quiz. What I need after they're done with the quiz:
1) A score only posted back to the user (I can get this done)
2) The answers back to a network location - webpage - ?

I've read a lot and I can't do php, Ajax. So I don't think I can create a file. But what I was thinking was that I could 'post' the information to a webpage.

So my questions are:
1) Is that possible?
2) I understand the form submit code but how to I 'pick' up the transmitted info and load it onto a page?
3) Since there will be around 30 people taking this 'test' at the same time can I post ALL their results to the same page or will I have to have different pages for each user?
4) Is this the best solution or is there and easier way?

I don't think I can use any true 'server side' programming like PhP etc. due to some 'security' issues.
11:39 pm on Aug 14, 2013 (gmt 0)

WebmasterWorld Senior Member penders is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



If you want something more than just a client-side quiz and to be able to "write" something permanently somewhere at a "network location" as you appear to require, for these users results to interact with each other in some way, then you are going to need some server-side scripting technology, like PHP.

By using just HTML, CSS and JavaScript, you are limited to client-side scripting in the browser.

Security issues?
7:20 am on Apr 1, 2014 (gmt 0)



Hey hi !
When you are using get() then,requests can be bookmarked
should never be used when dealing with sensitive data.
There is in this method length restrictions,used only to retrieve data

Post() is quite opposite to get()
Post() requests never remain in the browser history,cannot be bookmarked and no restrictions on data length.
11:49 am on Jun 3, 2014 (gmt 0)



In your case, Either THIS or THAT is possible...

If you don't want to use server side scripting, Than you can't passed & get value to another page,
And if you are using only HTML,CSS and jQuery than you can't get all the results on one page and even security is low in HTML and jQuery, Because it's client side,
So for better result you must have to use PHP, Or you have to forgot functionality and stick with HTML,CSS and jQuery....
 

Featured Threads

Hot Threads This Week

Hot Threads This Month