Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default I want to disable the enter key on my ezpage... where do I find the file to edit?

    I have a form on one of my ezpages. I would like to disable the "enter key" so the form isn't submitted to early as there are a lot of text boxes. can anyone answer these two questions (or one)

    1.) Which file can I edit that will allow me to do this? (ezpage file? under templates? etc)

    2.) Anyone know some good code to allow this to happen? I found this code, will this work?

    <script type="text/javascript">

    function stopRKey(evt) {
    var evt = (evt) ? evt : ((event) ? event : null);
    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
    }

    document.onkeypress = stopRKey;

    </script>
    the link to the page is here...
    http://www.bendisskin.com/index.php?...age=page&id=26

    Thanks!

  2. #2
    Join Date
    Dec 2007
    Location
    Southern Maine
    Posts
    281
    Plugin Contributions
    0

    Default Re: I want to disable the enter key on my ezpage... where do I find the file to edit?

    No idea on the disabling of the key, but have you thought about reducing the height of the picture so the second step can be seen better? There seems to be a lot of space between steps 1 and 2.

    Also, maybe below the upload file button, you could add text...something like: Almost done, please complete Step 2 below. Red text may grab their attention.

  3. #3
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default Re: I want to disable the enter key on my ezpage... where do I find the file to edit?

    Thanks for the comments, I'll be sure to add that text and make the picture smaller.

    One thing I also noticed (maybe I should make a new thread) but my margins are screwed up. Why does my linked page look fine with EI 6 and firefox, but EI 7 screws up the margins. Anything I can fix with that?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: I want to disable the enter key on my ezpage... where do I find the file to edit?

    That page is messed up in both FF3 and IE7. It's being pushed to the right by the large input box (size=155). You should make the 'Short Biography' input a textarea rather than an input box.

  5. #5
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default Re: I want to disable the enter key on my ezpage... where do I find the file to edit?

    funny you mentioned that. I attempted to put a text area "<textarea>" but all code gets deleted after that line for some reason when I update/upload the text on the ezpage admin. It gets really messed up. I started another thread with that same problem but wasn't able to get a solution. I guess no one else tried it. So I just made it a text input.

  6. #6
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default Re: I want to disable the enter key on my ezpage... where do I find the file to edit?

    So an easy solution is to just make the page as a define page instead of ezpage, then add the code I listed in my first reply. Seems to be working great!

 

 

Similar Threads

  1. v155 I am trying to edit the right side box that says Sponsors How do I find the file?
    By bscho in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 19 Jul 2016, 12:26 PM
  2. v150 Where can I find the file to edit product listing template ?
    By hagohn in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Aug 2012, 07:28 AM
  3. Where do I find the to EDIT?
    By BobiD in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 28 Dec 2010, 06:22 PM
  4. Replies: 11
    Last Post: 25 Apr 2010, 08:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg