Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Form and Enter key in IE7
Old 11-17-2007, 01:54 AM Form and Enter key in IE7
CapnChkn's Avatar
Average Talker

Posts: 17
Trades: 0
Yes, I am back with more Internet Explorer 7 nonsense. I have re-written my flute hole calculator to use a form instead of a Prompt because IE7 has removed all support for Prompts.

After beating the thing out, polishing all the crud, and making sure the/my eye's were all dotted, I have spent 3 days trying to get the field to submit with an Enter or Return key press.

It submits with a keypress in NS, Opera, and FF, but again, not in IE7! I've been through all the stuff I can think of and am still stopped at every turn. In IE the page refreshes instead of writing up the rest of the page.

All mentioned browsers display the page properly with a mouseclick.

I have to say that in NS and FF the page does finish writing with a keypress, but then I can't use the cursor keys on my keyboard to scroll the page.

Example page and code in a textarea are at this URL:

http://www.captainchicken.com/werk/flute/5holcalc.html

TIA!
Cap'n!
CapnChkn is offline
Reply With Quote
View Public Profile Visit CapnChkn's homepage!
 
 
Register now for full access!
Old 11-17-2007, 10:51 AM Re: Form and Enter key in IE7
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Actually, IE7 is probably the one that's handling it correctly, and it is submitting the form. The key piece of information is in the URL once it's refreshed (you'll see whatever was in the input box in the querystring, because you're using a GET).

By default, "return (function name)" will return true, so what you probably need to do is specify "return false" as the last line of the function (right after document.close()).
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-18-2007, 04:46 PM Re: Form and Enter key in IE7
CapnChkn's Avatar
Average Talker

Posts: 17
Trades: 0
Hey Adam!

Well, I've pretty much exhausted all the combinations I can think of. Placing the "return false;" after the document.close I end up with no output from the scripts. Placing "return true;" after any onSubmit, or onClick handlers get no response either.

I feel like I'm playing some adventure game where I go over and over the stuff in my inventory, back and forth on the scene only to get the walkthrough and find out I was supposed to give the thumbtack to the monkey.

I see what you're saying about the IE7 location/address bar, it puts the input at the end of the URL thus:

http://www.captainchicken.com/werk/flute/5holcalc.html?inputbox=15

I also notice Firefox and Netscape display a strange window in the upper right corner with the input value which just sits there with no response from any click or keypress.
CapnChkn is offline
Reply With Quote
View Public Profile Visit CapnChkn's homepage!
 
Reply     « Reply to Form and Enter key in IE7
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.12198 seconds with 12 queries