473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

I'm really disappointed with this language or it least its implementation

First working:

http://www27.brinkster.com/hesterloli1/

When you enter something in the User ID box and go to mousedown Reset you will find that the button depresses like a normal Dialog box's button should.

Second Broke:

http://www27.brinkster.com/hesterloli1/default1.asp

When you enter something in the User ID box and go to mousedown Reset you will find that the button does NOT depress like a normal Windows Dialog box's button should.

Why?

The first does not have the following in the onmousedown event of the <input id="reset1" ...> tag.:

ctrlUID.setAttribute('title','Enter your User ID',0);

where it comes after this statement:

ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';

as the broken one does.

Why is this statement
ctrlUID.setAttribute('title','Enter your User ID',0);

interfering with this statement
ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';?

Thanks.

--
George Hester
__________________________________
Jul 20 '05 #1
2 1078
On Sun, 04 Jan 2004 04:47:08 GMT, "George Hester"
<he********@hotmail.com> wrote:
First working:

http://www27.brinkster.com/hesterloli1/

When you enter something in the User ID box and go to mousedown Reset you will find that the button depresses like a normal Dialog box's button should.

Second Broke:

http://www27.brinkster.com/hesterloli1/default1.asp

When you enter something in the User ID box and go to mousedown Reset you will find that the button does NOT depress like a normal Windows Dialog box's button should.

Why?

The first does not have the following in the onmousedown event of the <input id="reset1" ...> tag.:

ctrlUID.setAttribute('title','Enter your User ID',0);

where it comes after this statement:

ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';

as the broken one does.

Why is this statement
ctrlUID.setAttribute('title','Enter your User ID',0);

interfering with this statement
ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';?


Looks like a regular depressed button to me.

Use a meaningful subject line next time.

Regards,
Steve
Jul 20 '05 #2
No if you try the two you will see that the broken page is different then the not broken page. The broken page that statement:

ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')'

is NOT being accessed. In the fixed one it is. Actually I fixed the issue just by switching which of these statements come first:

ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')'; ctrlUID.setAttribute('title','Enter your User ID',0);

broke.

ctrlUID.setAttribute('title','Enter your User ID',0); ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';

fixed.

You know what I think the reason for it is. We must address elements in these events for controls in the order in which they occur from the top of the page down. In this case ctrlUID comes before ctrlreset1 in the page and the form. Thus if I am going to manipulate these controls in a javascript statement in one event, then the order in which this is done MUST correspond to the order in which they appear in the form from the top down. This example is proof of that.

My fixed one will not be uploaded. Just assurred it is fixed and done so by changing the order of the javascript statements in the onmousedown event for the reset button.

Sorry about the subject. I had started out the message and then redid the whole thing and forgot to change the subject.

--
George Hester
__________________________________
"Steve van Dongen" <st*****@hotmail.com> wrote in message news:ot********************************@4ax.com...
On Sun, 04 Jan 2004 04:47:08 GMT, "George Hester"
<he********@hotmail.com> wrote:
First working:

http://www27.brinkster.com/hesterloli1/

When you enter something in the User ID box and go to mousedown Reset you will find that the button depresses like a normal Dialog box's button should.

Second Broke:

http://www27.brinkster.com/hesterloli1/default1.asp

When you enter something in the User ID box and go to mousedown Reset you will find that the button does NOT depress like a normal Windows Dialog box's button should.

Why?

The first does not have the following in the onmousedown event of the <input id="reset1" ...> tag.:

ctrlUID.setAttribute('title','Enter your User ID',0);

where it comes after this statement:

ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';

as the broken one does.

Why is this statement
ctrlUID.setAttribute('title','Enter your User ID',0);

interfering with this statement
ctrlreset1.style.backgroundImage = 'url(\'reset03.gif\')';?


Looks like a regular depressed button to me.

Use a meaningful subject line next time.

Regards,
Steve

Jul 20 '05 #3

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

Similar topics

63
by: Tristan Miller | last post by:
Greetings. Do any popular browsers correctly support <q>, at least for Western languages? I've noticed that Mozilla uses the standard English double-quote character, ", regardless of the lang...
9
by: vincent wang | last post by:
Microsoft has been pushing very hard behind .Net, but why haven't we seen any real action or plan that Microsoft is going to port its own software, especially Office onto .Net? If they don't want...
10
by: Chris Martin | last post by:
Background: Our main menu is built using a simple unordered list containing other ULs. There is a table on a page that holds the subnav. Because of certain circumstances, I need to build the subnav...
31
by: N.Davis | last post by:
I am very new to Python, but have done plenty of development in C++ and Java. One thing I find weird about python is the idea of a module. Why is this needed when there are already the ideas of...
38
by: Martin Marcher | last post by:
Hi, I've read several questions and often the answer was 'C knows nothing about .' So if C knows that little as some people say, what are the benefits, I mean do other languages know more...
86
by: Randy Yates | last post by:
In Harbison and Steele's text (fourth edition, p.111) it is stated, The C language does not specify the range of integers that the integral types will represent, except ot say that type int may...
131
by: pemo | last post by:
Is C really portable? And, apologies, but this is possibly a little OT? In c.l.c we often see 'not portable' comments, but I wonder just how portable C apps really are. I don't write...
50
by: Tomás | last post by:
#include <string> #include <iostream> using std::cout; using std::endl; void FunctionThatModifies(std::string &a) { a = "You've been modified."; }
8
by: Vincent RICHOMME | last post by:
Hi, first I would like to apologize about my question because usually I hate specific implementation but in this case I really would like an answer. Besides my example is an example of what's...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.