D-Mack Joomla!

D-Mack Joomla! Site Navigation:
Welcome to the Forums! You need to Register on the Forums in order to post. *Note* Please Use the Login or Register links below. It's simple and you will have instant access (no email activation required)! Please POST so we can resolve any issues! Thanks!


Post Reply  Post Thread 


Press key enter for submit
Author Message
JeanAlain
Junior Member
*


Posts: 2
Group: Registered
Joined: Feb 2009
Status: Offline
Reputation: 0
Post: #1
Press key enter for submit

Hello,
I would like to know if some one manage to have the key enter press to convert.

I think is more easy to press enter.

I try to change $valueinputfield by

Code:
$valueinputfield  = '<input style="font-size:'.$valuefontsize.'; background-color:'.$valuebgcolor.'; color:'.$valuefontcolor.'" name="val" type="text" size="'.$valuesize.'" onkeydown="if (event.keyCode == 13) showDataInput()"/>


But it doesn't work

If some one can help me

thank you in advance for your help and your time.

JA

Feb-06-2009 4:31 am
Find all posts by this user Quote this message in a reply
D-Mack
Administrator
*******


Posts: 92
Group: Administrators
Joined: Jun 2008
Status: Offline
Reputation: 1
Post: #2
RE: Press key enter for submit

Hi Jean Big Grin,

Don't quit know what you are asking. But if you want to just change the 'text' that is shown on the 'Convert' button, that can easily be changed in the Admin part of the Component or Module. There is a setting called 'Submit button' or 'Submit Button Text' - just change 'Convert' to whatever other text you want.

Let us know if this was not what you were looking for.

Thanks,

D-Mack


If you use our extensions on your site and find them useful, please take a minute to submit a Review/Rating on the Joomla! Extensions site - It's the best way to help the entire Joomla! Community!! Wink

D-Mack Media - Vancouver Website Design

~ To Err Is Human ~ To Forgive Divine ~ To Forget Will Return The Err ~


Feb-10-2009 1:21 pm
Find all posts by this user Quote this message in a reply
JeanAlain
Junior Member
*


Posts: 2
Group: Registered
Joined: Feb 2009
Status: Offline
Reputation: 0
Post: #3
RE: Press key enter for submit

Hi D-Mack,

Just to be clearer re my previous messages

On the website I have created, i have an issue when using the CurreencyConverter v 1.0x Module. Indeed, when users press the Convert button, the converted results are not showing. For the amount to be showing, they have to type the amount to be converted a second time and press the Enter key. Only then are the results displayed.

I have not been able to solve the problem by myself. Therefore my question to you

Can you help me ?

Thank you for your time

JA

This post was last modified: Mar-23-2009 2:27 am by JeanAlain.

Feb-10-2009 7:04 pm
Find all posts by this user Quote this message in a reply
carlepawell
Junior Member
*


Posts: 2
Group: Registered
Joined: Feb 2010
Status: Offline
Reputation: 0
Post: #4
RE: Press key enter for submit

I’ve looked around and all solutions worked only in IE and I needed it to work in FireFox as well.
<script language="JavaScript">
function disableEnterKey(e)
{
var key;

if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox

if(key == 13)
return false;
else
return true;
}
</script>


boca codes
Feb-12-2010 12:31 am
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: