Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alert changing form width 1

Status
Not open for further replies.

TruthInSatire

Programmer
Aug 12, 2002
2,964
US
I have a js function that runs onsubmit.
if the function causes an alert box to pop, it appears to change the width of the form. this ofcourse causes scroll bars Anyone know why the form is expanding?

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
This really isn't an HTML/CSS question. You'll probably have better luck in the javascript forum: forum216

-kaht

Looking for a puppy?

[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
 
the code doesn't do anything aside from popping up an alert, or so i thought, and i'm the only one alowed to be sarcastic here.

And i found the problem, it was a css issue, and it was the text area within the form.


Got it taken care of. thanks.


We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Maybe Vragabond posts as Vragabond AND as TruthInSatire. In which case he could be as sarcastic as he wants. It's in the rules and all......

-kaht

Looking for a puppy?

[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
 
Actually, in the annex 13 to the article 72 paragraph 4 to the original law, it is stated that in addition to TruthInSatire the forum's top MVP is allowed one sarcastic comment per thread. This law was passed only a couple of days ago and I guess that's why most people haven't heard of it yet.
 
hahaha, love this forum.
Thanks for the laugh guys :)

the function wasn't supposed to do anything aside from an alert. however someone snuck a className = into the script to change the class of the field in question. I'm not the only one working on the project so i didn't know it was there. I asked a general question as i'm not overly familiar with css. wasn't expecting an analysis of my JS in the CSS forum, thats just silly.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Sounds like it's time for some versioning software... But that's way out of the expanse of this forum.

- George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top