Ajax Panel for web part

Faris Rjoub asked on May 20, 2017 01:56

Hi,

I am using My account web part to edit the user settings. I need to make the user edit his information without refresh the whole page, using AJAX feature. And is there any way to change TABS text . for example : orders to : my orders

Image Text

Thanks

Correct Answer

Brenden Kehren answered on May 20, 2017 16:06

In the Localization app add new records for these keys and add the text you want in there. In the code in the MyProfile webpart these keys are defined as localization keys.

  • MyAccount.MyPersonalSettings = settings
  • MyAccount.MyDetails = details
  • MyAccount.MyAddresses = addresses
  • MyAccount.MyOrders = orders
  • MyAccount.MyCredit = credits
  • MyAccount.ChangePassword = change password
  • MyAccount.MyNotifications = notifications
  • MyAccount.MyMessages = messages
  • MyAccount.MyFriends = friends
  • MyAccount.MyAllSubscriptions = subscriptions
  • myaccount.mymemberships = memberships
  • MyAccount.MyCategories = categories
0 votesVote for this answer Unmark Correct answer

Recent Answers


Faris Rjoub answered on May 20, 2017 17:15

Thanks Brednden,

What about use Ajax updates , after click an update button , I need to just update that area, and not to refresh whole page.

I tried that using Ajax settings for My Account web part. But it seems not that easy to do.

Thanks

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 20, 2017 17:34

On the my account webpart, at the bottom, click the use update panel. The webpart will then be wrapped in an update panel and not do a full page postback.

0 votesVote for this answer Mark as a Correct answer

Faris Rjoub answered on May 20, 2017 17:46

I tried that , But no chance, the button is renders the whole page again , not partial render. What is i missed?

Thanks for your help

Thanks

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 20, 2017 17:51

Ok after looking at the webpart more, the tabs are actual links which means navigation will take place vs. a postback so an update panel won't do anything since it's navigating to a different URL. You'd have to update the webpart's code to accommodate that so it doesn't redirect and only posts back.

0 votesVote for this answer Mark as a Correct answer

Faris Rjoub answered on May 20, 2017 18:14

It seems that way, Thanks.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.