• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

post to a /command

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby todhend » Sun Jul 18, 2010 4:47 am

Im wrote a small upload files script, I've got it working but I'm intersted in moving it to a command so the question is how to post a form to a command in the html template, example

<form enctype="multipart/form-data" action="pfc.sendRequest('/upload');" method="POST">

this does not work, what will ?
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby Jaybird » Wed Jul 21, 2010 2:26 am

it doesn't work that way, if you "post" data, you will have to refresh the browser.. I think you need to read up on prototype.js a little to find your solution.
Jaybird
Member
 
Posts: 65
Joined: Mon Jun 28, 2010 7:59 am
Top

Postby todhend » Wed Jul 21, 2010 2:31 am

yes thats what Im trying to get away from is a refresh
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top

Postby Jaybird » Sun Jul 25, 2010 12:10 am

check out the prototype api. read up on ajax.request and ajax.update
Jaybird
Member
 
Posts: 65
Joined: Mon Jun 28, 2010 7:59 am
Top

Postby todhend » Sun Jul 25, 2010 6:23 pm

thanks took another path altegether, was too simple, just used 2 iframes lol

http://spfldmo.com/sites/no_refresh/
http://nflpick.net free football picks
http://tdah.us free webmail script
todhend
Member
 
Posts: 83
Joined: Tue Jan 19, 2010 9:03 pm
Location: Missouri
  • Website
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 20 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub