473,803 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

button.disabled - firefox vs IE difference


Hi, say we have the code below on a button:

<input type="button" class="btn" value="Continue " onclick="if
(myform.p_name. value=='') alert('You must enter a name for the folder');
else { this.disabled=t rue; submit();}">

Not all the validation can be performed client-side so the button may be
pressed and then server validation is performed - this may result in a
request to the user to hit the back button and correct some data
entered.

Now this isn't the best UI design, I know. But nonetheless we have to
stick with this for a qhile and I have noticed a difference in the way
Fireforx and IE handles the button disbaling. On IE, when you go back to
the page, the button is enabled again whereas in Firefox it remains grey
and disabled.

Can anyone suggest a way in which we can automatically re-enable the
button when the user presses the back button? Is there some code we can
put into the onload perhaps which will go through all buttons on the
form and enable them?

Appreciate your suggestions.

--

jeremy
Mar 24 '06
26 21302
Merennulli wrote:
Thomas 'PointedEars' Lahn wrote:
Not understood. I have never mentioned `onunload' regarding this, I
recommended `onsubmit' (instead of `onclick'). `onunload' code is
executed when one navigates away from the document or the window is
closed. That does not help here because you cannot re-enable the
controls later if the Back feature is used. There is no event to
handle this, at least no interoperable one that I know of.
As I said: "so while the user is going forward it fires, preparing it
for when they come back."
My purpose in mentioning an "onunload" alternative is clear, even
without reading your prior post. Onunload fires as the page is being
exited, [...]


.... or the window is closed. However, one cannot expect that full DOM
access is still possible at this point, so this approach is flawed.
There is no policy statement here of how I should post. [...]
There is. <URL:http://jibbering.com/faq/#FAQ2_3>
[...] rather than dismissing my response as "not wanted". Needless
abrasiveness such as that "not wanted" is what kills online user
groups.


It is of course not your response that is not wanted on Usenet,
and I never said that; it was merely your _posting style_.
PointedEars
Mar 31 '06 #21
Merennulli said the following on 3/31/2006 5:48 PM:

<snip>
Randy, thank you for your later response that took into account the
interface I'm using and requested I accommodate the structure of your
interface rather than dismissing my response as "not wanted".
I did not say your reply was "not wanted". It is the style of posting
that Google Groups encourages that is not wanted here. The lack of quoting.
Needless abrasiveness such as that "not wanted" is what kills online user
groups.


No, what kills "online user groups" is people who want help that won't
follow the accepted conventions of those user groups.

Question: What's the worst thing to happen to Usenet in the last 15 years?
Answer: Google Groups

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 1 '06 #22
> > There is no policy statement here of how I should post. [...]

There is. <URL:http://jibbering.com/faq/#FAQ2_3>


Under the heading "comp.lang.java script tips".

Sorry, but tips != policy.

Further, it even suggests using Google Groups to read replies. Had you
read your own source, we wouldn't be having this discussion.

I'm done arguing this.

Apr 3 '06 #23
VK

Randy Webb wrote:
Question: What's the worst thing to happen to Usenet in the last 15 years?
Answer: Google Groups


<http://groups.google.c om/group/comp.archives/browse_frm/thread/fdc8cfcfde8518e 1/ad173ff36141539 f?lnk=st&q=%22W orld+Wide+Web%2 2&rnum=13&hl=en #ad173ff3614153 9f>

Now the task: by using "World Wide Web" search string (plus date range)
get me this thread out of your most beloved newsreader.

It is a blessure that DejaNews came to the idea. And it is another
blessure that Google took it over. I agree that new owner could be
possibly more generous and more interface caring. But at the dark
after-bubble period it could be as well thrown to the trash as soon as
the owner went under. I know a lot of cases of this kind happened with
rather useful databases and codes at 2000-2001.

Yes Google is pushing for non-quoting posting because they (as DejaNews
before) structure the data by threads and topics, not by individual
messages. But this push is rather soft: no prohibitions, just two extra
click - easy to bypass.

Apr 3 '06 #24
VK said the following on 4/3/2006 2:45 PM:
Randy Webb wrote:
Question: What's the worst thing to happen to Usenet in the last 15 years?
Answer: Google Groups
<http://groups.google.c om/group/comp.archives/browse_frm/thread/fdc8cfcfde8518e 1/ad173ff36141539 f?lnk=st&q=%22W orld+Wide+Web%2 2&rnum=13&hl=en #ad173ff3614153 9f>

Now the task: by using "World Wide Web" search string (plus date range)
get me this thread out of your most beloved newsreader.


You missed the total point of what I meant by not quoting fully (and in
context) what I said.
Yes Google is pushing for non-quoting posting


<snip>

And that is *precisely* the problem with Google Groups now and what
makes it the worst thing to happen to Usenet in 15 years. It is so
widespread (Google Groups) that newbes think its the way it should be
when it isn't.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 4 '06 #25
VK

Randy Webb wrote:
VK said the following on 4/3/2006 2:45 PM:
Yes Google is pushing for non-quoting posting
And that is *precisely* the problem with Google Groups now and what
makes it the worst thing to happen to Usenet in 15 years. It is so
widespread (Google Groups) that newbes think its the way it should be
when it isn't.


The question is why is Google doing it? I dare to guess it is not
because of some anti-Usenet conspiracy. The infospace pullution is one
of biggest problems of Internet. It is so often hard to find some
really iseful info because it is being burried in the "noise" which is
difficult/impossible to filter out even by the best search engines. In
this aspect quoting definitely adds more "infonoise" .

X wrote:
I have a problem A
-----
Y wrote: I have a problem A

Here is solution B
-----
X wrote:
I have a problem A

Here is solution B

<snip>
A have a question about your solution.
-----
Y wrote:
I have a problem A

Here is solution B

<snip>
A have a question about your solution.

Here is my answer.

etc.

It is easy to predict that the search engine will get a hard time to
get the *right* post on request "problem A solution". At the same time
getting the right *thread* will ensure that (after some extra reading)
the right post will be found.

Just don't shoot - first listen! ;-) I am not calling for "drop the
quoting". But IMHO the traditional Usenet quoting rules should be
changed to the most fat-free variant.

Apr 5 '06 #26
VK said the following on 4/5/2006 7:39 AM:
Randy Webb wrote:
VK said the following on 4/3/2006 2:45 PM:
Yes Google is pushing for non-quoting posting And that is *precisely* the problem with Google Groups now and what
makes it the worst thing to happen to Usenet in 15 years. It is so
widespread (Google Groups) that newbes think its the way it should be
when it isn't.


The question is why is Google doing it? I dare to guess it is not
because of some anti-Usenet conspiracy. The infospace pullution is one
of biggest problems of Internet. It is so often hard to find some
really iseful info because it is being burried in the "noise" which is
difficult/impossible to filter out even by the best search engines. In
this aspect quoting definitely adds more "infonoise" .


If Google wants to minimize the space it needs to store data, then they
can start there own forum. But, they are trying to change a very long
standing procedure in Usenet for there own benefit. The ends don't
justify the means.
X wrote:
I have a problem A
-----
Y wrote:
I have a problem A Here is solution B
-----
X wrote:
I have a problem A

Here is solution B

<snip>
A have a question about your solution.
-----
Y wrote:
I have a problem A
Here is solution B

<snip>
A have a question about your solution.

Here is my answer.

etc.

It is easy to predict that the search engine will get a hard time to
get the *right* post on request "problem A solution". At the same time
getting the right *thread* will ensure that (after some extra reading)
the right post will be found.


No, it will find the right post. Google particularly. It doesn't return
individual hits for the same thread, it returns one hit to that thread
(test it).
Just don't shoot - first listen! ;-) I am not calling for "drop the
quoting". But IMHO the traditional Usenet quoting rules should be
changed to the most fat-free variant.
Now, take the reverse side. The people that are in the best position to
actually give good answers don't use Google Groups to post. And they
have become accustomed to quoting, for very good reasons. If a post
isn't quoted, then I have two choices:

1) Ignore the thread
2) Go find the thread and read the entire thread to get an idea about
the conversation.

If the "experts" (I use that term loosely) continue to ignore threads
then Usenet goes to hell. You end up with a bunch of crap answers. And
Usenet is not for the benefit of Google, it is for the benefit of its
users. And the users benefit the most from quoting.

Let me give the flip side of your example though:

X wrote:
I have a problem A
-----
Y wrote:
Here is solution B
-----
X wrote:
A have a question about your solution.
-----
Y wrote:
Here is my answer.

Now, let's assume that each of those four posts are made on different
days. And, that each post is 40 lines long. If I want to know what the
answer was for, I now have to read four posts instead of one to find
out. How is that more efficient than reading this?
Y wrote:
I have a problem A
Here is solution B

<snip>
A have a question about your solution.

Here is my answer.


--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 5 '06 #27

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
28576
by: bart plessers | last post by:
Hello, Somewhere in my code I have <input TYPE="button" NAME="btnFirst" VALUE="<<" OnClick="GetFile('1')" DISABLED> I changed the layout of the INPUT with a stylesheet to INPUT { color: #FFFFFF;
7
1451
by: John Smith | last post by:
As it is now apparently illegal in the UK to produce a website which is inaccessible to the disabled, which includes the JavaScript-disabled and images-disabled, am I right in thinking that the only ASP.NET postback capable control which is now of any use is the Button control? The LinkButton is clearly no good as it uses JavaScript and the ImageButton doesn't work in Mozilla with scripting and images turned off. Am I missing something or...
2
2320
by: xazos79 | last post by:
Hi All, I've come across the problem of not being able to re-enable a radio button with javascript if its initial state has been disabled in the Page_Load() method of the code behind. Might i add that it behaves fine in Firefox, but IE is unable to re-enable the radio button. IE is fine if the radio button starts in an enabled state.
1
6150
by: Phil_Cam | last post by:
Hello All On a webpage I have a standard paypal image button for purchases. I am trying to set it up so that it only shows up or is endabled when text is entered into a textbox and a button is pressed. To do this I set the type to hidden and changed the type of the button using javascipt to image. This works perfectly in Modilla's Firefox but in IE it says there is a scipt error. Here is the javascipt
11
7388
by: Joey | last post by:
Hello, In my C# asp.net 2.0 application, I have a webform with a button server control on it. The webform, like most others in the site, subscribes to a master page. I have determined that the button always renders with an id of "ct100_ContentPlaceHolder1_btnContinue" in both the IE and Firefox browsers. I created the following javascript code segment to disable it when the page loads. I have reasons for not wanting to do this with...
2
7719
by: bay_dar | last post by:
Hi, I have an internal ASP.NET application that I'm are using to send e-mails out based on a single milepost or milepost range entered. I'm trying to do two things when a user clicks on the submit button to submit a form that contains one or two Mileposts: 1) If a Milepost range larger than 5 miles is entered, I would like to pop up a confirmation box to confirm the range.
4
1725
Plater
by: Plater | last post by:
I am up to my neck in javascript troubles these days. Ok so I have a button on my webpage with an onclick event. In the onclick event I do the following: Disable the button (so they can't click it again) Change the text on the button (the value) Perform an xmlHttpRequest.send() (I think it's asynchronous since I do this: http.onreadystatechange = handleSendTestEmailResponse;) And in my statechanger function, when I decide it's done...
1
2252
by: arggg | last post by:
I created a submit form that calls a javascript:AjAX Command that will call the data and submit it without have the page refresh. This works perfect in Firefox however in IE and Opera when the submit button is pressed it just disables the button and does not submit the data. Any idea? <script type="text/javascript" src="<?=$config->getKey('Site_URL')."js/AJAX.js"?>"></script> <form name="EditUser" method="post" accept="text/plain"...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2974
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.