[Hỏi đáp] Avatar ajax post

  Bài viết hay nhất1
hi is possible send new avatar in ajax form

Code:
$.post('/profile?mode=editprofile&page_profil=avatars', {
    tid: ,
    enctype: ,
    coppa: "",
    username: ,
    email: ,
    page_profil: "avatars",
    mode: "editprofile",
    agreed: "true",
    user_id: _userdata.user_id,
    current_email: ,
    avatarurl:,

})

help me please
Tags: #javascript
  Bài viết hay nhất2
@Zzbaivong
  Bài viết hay nhất3
what do you want ?? i don't understand anything you said @@
  Bài viết hay nhất4
The path location name is only /profile, param location must be proproperties inside ajax

Code:
$.post('/profile', {
    tid: ,
    enctype: ,
    coppa: "",
    username: ,
    email: ,
    page_profil: "avatars",
    mode: "editprofile",
    agreed: "true",
    user_id: _userdata.user_id,
    current_email: ,
    avatarurl:,

})
  Bài viết hay nhất5
not works :(
  Bài viết hay nhất6

@DooGy00 wrote:not works :(

Fix demo:
Code:
$.post('/profile', {
    page_profil: "avatars",
    mode: "editprofile",
    user_id: _userdata.user_id,
    avatarurl: 'http://r28.imgfast.net/users/2816/63/36/82/avatars/18-57.jpg',
    submit: 1
});

you can run the test code in the console browser.
  Bài viết hay nhất7
thanks a lot man!!
You cannot reply to topics in this forum