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 on 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
}
});

View user profile

2
Re: $.post help on 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
});

View user profile http://lolwesta.forummotions.com

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

LOLWesta


LOLWesta King
Code:
// eeeeeeee

View user profile http://lolwesta.forummotions.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