• amegh
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

Hi All

 

I am using recaptcha on my visualforce page.And in controller i am using ApexPages.currentPage().getParameters().get('recaptcha_response_field') and ApexPages.currentPage().getParameters().get('recaptcha_challenge_field') to get the value of input of captcha.Its working fine for Chrome and Firefox.But for IE i am getting these value null.

 

Any idea?

 

Thanks 

Anil

  • March 07, 2013
  • Like
  • 0

 

Requirement: We need to send some data from HTML input fields to Apex.
We have used JS remoting method to acheive this.
In a VF page, we have html input field. Submit button call a JS function which executes Remote method of Apex.
It is working well .
Problem we are facing is that we have a container VF page, through which we display dynamic content for page.
And page shows at site level.
Now, while same html input fields we are adding in container VF and submit button on click is calling javascript, then Remote action is not executing.


Error: TypeError: b is undefined
Source File: http://p-united-developer-edition.ap1.force.com/jslibrary/1351189248000/sfdc/VFRemote.js
Line: 118

Our HTML:
<form class="cmxform" id="signUpForm" >
<fieldset class="ui-widget ui-widget-content ui-corner-all">
<legend class="ui-widget ui-widget-header ui-corner-all">Please provide your information in the form below to sign up</legend>
<p>
<label>Firstname</label>
<input name="Firstname" id="Fname" type="text" maxlegth="15" size="60" />
</p>
<p>
<label>Last Name</label>
<input name="Lastname" id="Lname" type="text" size="60" />
</p>
<p>
<input type="button" onClick="signUp();" value="Submit" class="button" />

</p>
</fieldset>
</form>


JS remote script:

function signUp()
{
alert("MFS");
var firstName = document.getElementById('Fname').value;
var lastName = document.getElementById('Lname').value;

alert("MFS : "+firstName+"::"+lastName);
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.MyController.myMethod}',
firstName,lastName,
function(result, event){
alert("MFS function called"+event.status);
if (event.status) {
alert("MFS event.status"+event.status);
} else if (event.type == 'exception') {
alert("MFS exception: "+event.message+event.where);

} else {
alert("MFS else ");
}
},
{escape: true}
);
}
</script>

  • November 06, 2012
  • Like
  • 0

I want to remove records from sobject using enhancedlist.

 

iam looking for that functionality.Anyone who can help in this regard would be great

  • September 13, 2012
  • Like
  • 0

Hi,

 

I have a date input field in a popup window. Issue that i am facing is the date picker is not inligned with the text field. Could any one please address this issue

 

Thanks and Regards,

Neha

Followed the instructions here to build a modal dialog in my page. Its working as expected. Issue is, when I add a Date field to the dial dialog and place the cursor in the field, datepicker is positioned correctly. It does not appear right below the field. It appears at some random position. Anybody with the same issue?

  • June 10, 2010
  • Like
  • 0