LOLWesta, a social media forum


You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

1
$.post help Empty $.post help Sat Jan 17, 2015 10:49 am

Left


Members
Members
Uh, hello there. I need some assistance with ajax. I'll currently made some script that will used for registration form--which has been created with ajax and some HTML. But I'm stuck with it. Someone help me?

Code :

Code:
var textarea = document.getElementById('message textarea');
var input = document.getElementById('subject input');
$.post('/post', 'mode=newtopic&f=forumidhere&post=1&subject='+input.value.replace(/\s/g,"+"), function(data) {
console.log(data); //or another stuff
}
});

2
$.post help Empty Re: $.post help Thu Jan 22, 2015 12:53 pm

LOLWesta


LOLWesta King
You can do something like this..

Code:
$.post('/post', 'mode=newtopic',{
subject:subject,
message:message,
f:forumidhere,
post:1
}).success(function() {
alert('Success');
// random stuffs
});

https://lolwesta.forumotion.com

3
$.post help Empty Re: $.post help Thu Mar 05, 2015 9:49 am

LOLWesta


LOLWesta King
Code:
// eeeeeeee

https://lolwesta.forumotion.com

Sponsored content


View previous topic View next topic Back to top Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum