1

In Visualforce page I have an ajax call to reset user password's

$j.ajax({
   crossDomain:true,
   url:"https://test.salesforce.com/secur/forgotpassword.jsp?un=user@myOrg.com",
   type:"GET"
}); 

If I test this in Chrome or Firefox, when I click on the submit button, I receive the e-mail from salesforce but not in IE7/8

Any ideas why and for a workaround ?

Thanks

1

Try this:

 $j('<img src="https://test.salesforce.com/secur/forgotpassword.jsp?un=user@myOrg.com" with=1 height=1 >').appendTo('body');

I think is a security limitation of IE, but if the method is GET you can use this trick.

  • Martin, where I can add this ? thanks – melmoussaoui Jan 29 '14 at 16:24
  • Replace the ajax call for this code. I suppose you have a link or button to call it. – Martin Borthiry Jan 29 '14 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.