Jump to content

Populating Forms Using JavaScript

- - - - -

  • Please log in to reply
2 replies to this topic

#1
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
Hello all,

I want to implement Minecraft functionality through my website's login.

Basically, I want to know how to complete a form using JavaScript. Also, submitting this data to Minecraft and retrieve the result (login success, login failure, etc.).

I have a sound knowledge of JavaScript (perhaps not libraries such as jQuery or Prototype and such).

Thanks.
Jack
Creator, Owner, Webmaster
Brezerd.net

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
You would likely need to use something such as JQuery to send POST data to an external form, and then retrieve its results. This would normally be done using a server side language, although you could certainly use AJAX (as a general term) to do this.

I would have a look at this:
jQuery.post() – jQuery API

I am personally unaware of security implications with this, it may only allow you to POST to your own domain in this case a server side option would be better suited. It may use SSL to in which that may not work.

Edited by Alexander, 18 May 2011 - 12:21 AM.
More information added.

Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
hetra

hetra

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 298 posts
  • Location:Australia
  • Programming Language:C, C++, PHP, Python, Delphi/Object Pascal, Assembly
  • Learning:Python, Assembly
I also have a very sound knowledge of PHP. I'm not against using server-side languages (I just thought that JavaScript was would be used).
Jack
Creator, Owner, Webmaster
Brezerd.net




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users