> Forums > Active Forums > Community Support > Firefox login
Last Post 03 Sep 2010 02:16 AM by Centralhome.com. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Centralhome.com
Customers
Centralhome.com
Post Count:44

--
02 Sep 2010 09:09 PM
    On my site, in header, I have a search box ... as this is usually only form on page, we trap the enter key and make it hit the search icon.
    Now, everyone will tell me you can't have a form with in a form on DNN.
    But on my login page, if you enter username, password in IE, and hit enter, you are logged in and taken to your profile page.
    However, if you do the same thing in Firefox, it doen't work - you are not logged in but taken to the search page.
    Is there anyway to make Firefox behave the same way as IE? Personally, don't use Firefox as it's slow and cumbersome compared to IE but have some users who do.
    Will, how did you get this form within a form to work in IE? Can we do same for FF?
    I suppose I could rewrite DNN template not to have a search form on sign up page.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7666

    --
    02 Sep 2010 09:36 PM
    I don't think it has anything to do with the forms, but rather what object is grabbing the key event last. Are you using javascript to catch the keypress/down event or are you just letting the browser decide? If you are letting the browser decide then now you know that browsers handle form focus/actions differently. The best way is to use javascript. If you are already using javascript then now you see the browsers respond to key events differently and the script you are using isn't supported for all browsers. It could also be the way you are trapping the enter key event. You want to trap the enter key based upon the focus of the current form field not the page itself.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Centralhome.com
    Customers
    Centralhome.com
    Post Count:44

    --
    03 Sep 2010 02:16 AM
    I think it is vbscript? Not sure, the search engine people wrote it, works great if there is only 1 form. Great search engine but their knowledge of DNN is minimal.
    <input maxlength="255" size="20" onkeypress="if (event.keyCode==13) {window.location='http://edmontonkids.com/Site-Search?zoom_query=' + this.form.zoom_query.value; return false;}" name="zoom_query" type="text" id="dnn_dnnSEARCH_txtSearch" /> <br /> Any hint where to look on web for similar javascript?
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > Firefox login
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy