- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- Pressing enter on form with commandButton not work...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Pressing enter on form with commandBut ton not working in IE
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-24-2010 01:53 PM
Hi,
Pressing enter key on form with commandButton not working in IE, but it works fine in firefox. Its a search box and when I type something I want to hit enter to initiate the search. Any pointers...that I can try...
Solved! Go to Solution.
Re: Pressing enter on form with commandBut ton not working in IE
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-24-2010 02:14 PM
Now I tried using inputText and onKeyEvent, even this worked in firefox but not in IE
Re: Pressing enter on form with commandBut ton not working in IE
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-25-2010 03:06 AM
Hi Swapnil,
Try the following code in input text (Assuming you have "Go" button for search)
<apex:inputText value="{!searchKey}" onkeyup="initiateSearch()"/>
<apex:commandButton id="gobtn" value="Go" action="{!performSearch}"/>
<script type="text/javascript">
function initiateSearch(){
var goBtn = document.getElementById('{!$Component.gobtn}');
if(window.event.keyCode == 13){
goBtn.click();
}
}
</script>
window.event.keyCode == 13
Re: Pressing enter on form with commandBut ton not working in IE
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-25-2010 07:58 AM
Hey Thanks, this worked..
Re: Pressing enter on form with commandBut ton not working in IE
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-17-2012 12:18 AM
Hi Sarge,
I am also facing the same issue. I have a custom object. i am override the 'view' link with visual force page. In my visual force page i have a command link. when i click on the command link it shows the list of child records. It is worked properly in google chrome and mozilla firefox. But in IE it is not working. when i click on the command link its just refresh the screen and displays the same screen.it does not open the child records panel. Please help me out how to solve this.
Thanks,
Lakshmi

