X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

javascript alert window is too small

Posted

This javascript:

function BadFormAlert(theErrorMessage) {
	var msg;
	msg  = "_____________________________________________________\n\n"
	msg += "The form was not submitted because of the following error(s).\n";
	msg += "_____________________________________________________\n"
	msg += theErrorMessage;
	msg += "\n\n_____________________________________________________\n\n"
	msg += "Please correct these error(s) and re-submit.\n";
	msg += "\n";
	alert(msg);
}

Produces a window that is 330 x 143 pixels in size. It is essentially unreadable. The variable "theErrorMessage" contains the text "- The guest account must not contain blank characters."

I'm using Mac OS X 10.6.8, Firefox 18.0.1, but I saw the same thing in Firefox on Windows XP. Don't know the Firefox version.

I've tried turning off all "Entensions" but that made no difference. This same Javascript has worked unchanged back to Firefox version 2 and as far as I can determine worked fine using Firefox 17

Modified by cor-el

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • View PDF documents within your web browser.

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

Application Basics
Name
Firefox
Version
18.0.1
User Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0) Gecko/20100101 Firefox/18.0
Build Configuration
about:buildconfig
Extensions
Name
Version
Enabled
ID
Adblock Plus
2.2.1
true
{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
BetterPrivacy
1.68
true
{d40f5e7b-d2cf-4856-b441-cc613eeffbe3}
CookieCuller
1.4
true
{99B98C2C-7274-45a3-A640-D9DF1A1C8460}
DOM Inspector
2.0.13
true
inspector@mozilla.org
Flashblock
1.5.15.1
true
{3d7eb24f-2740-49df-8937-200b1cc08f8a}
Ghostery
2.8.4
true
firefox@ghostery.com
QuickPasswords
2.6
true
QuickPasswords@axelg.com
ResizeIT
3.6.2
true
resizeit@sonej
Saved Password Editor
2.6.4
true
savedpasswordeditor@daniel.dawson
Saved Passwords Button
1.2.4
true
savedpasswords@adamfranco.com
User Agent Switcher
0.7.3
true
{e968fc70-8f95-4ab9-9e79-304de2a71ee1}
Important Modified Preferences
Name
Value
accessibility.tabfocus
3
accessibility.typeaheadfind
true
accessibility.typeaheadfind.enablesound
false
accessibility.typeaheadfind.flashBar
0
browser.cache.disk.capacity
1048576
browser.cache.disk.smart_size_cached_value
640000
browser.cache.disk.smart_size.first_run
false
browser.cache.memory.capacity
10240
browser.history_expire_days_min
1
browser.history_expire_days.mirror
180
browser.link.open_newwindow.restriction
2
browser.places.importBookmarksHTML
false
browser.places.importDefaults
false
browser.places.leftPaneFolderId
-1
browser.places.migratePostDataAnnotations
false
browser.places.smartBookmarksVersion
4
browser.places.updateRecentTagsUri
false
browser.search.update
false
browser.startup.homepage
browser.startup.homepage_override.buildID
20130116073211
browser.startup.homepage_override.mstone
18.0.1
browser.tabs.autoHide
true
browser.tabs.warnOnClose
false
dom.disable_open_during_close
true
dom.disable_open_during_load
true
dom.disable_window_open_feature.minimizable
true
dom.disable_window_open_feature.resizable
true
dom.disable_window_open_feature.scrollbars
true
dom.disable_window_status_change
false
dom.event.contextmenu.enabled
false
dom.mozApps.used
true
dom.storage.enabled
false
extensions.lastAppVersion
18.0.1
font.minimum-size.x-western
12
font.name.serif.x-western
Times New Roman
font.size.fixed.x-western
12
font.size.variable.x-western
14
gfx.blacklist.webgl.msaa
4
network.cookie.cookieBehavior
1
network.cookie.prefsMigrated
true
network.http.pipelining
true
network.http.pipelining.maxrequests
100
network.http.proxy.pipelining
true
network.protocol-handler.external.mailto
true
places.database.lastMaintenance
1359051577
places.frecency.unvisitedBookmarkBonus
0
places.history.expiration.transient_current_max_pages
104858
places.history.expiration.transient_optimal_database_size
167772160
places.last_vacuum
1328298164
plugin.default_plugin_disabled
false
plugin.disable_full_page_plugin_for_types
print.macosx.pagesetup-2
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHBsaXN0IFBVQkxJQyAiLS8vQXBwbGUvL0RURCBQTElTVCAxLjAvL0VO
print.print_bgcolor
true
print.print_bgimages
true
print.print_command
print.print_downloadfonts
true
print.print_evenpages
true
print.print_footercenter
&U
print.print_footerleft
print.print_footerright
print.print_headercenter
&T
print.print_headerleft
&PT
print.print_headerright
&D
print.print_in_color
true
print.print_margin_bottom
0.5
print.print_margin_left
0.5
print.print_margin_right
0.5
print.print_margin_top
0.5
print.print_oddpages
true
print.print_orientation
0
print.print_pagedelay
500
print.print_paper_data
0
print.print_paper_height
11.00
print.print_paper_size
1635019107
print.print_paper_size_type
1
print.print_paper_size_unit
0
print.print_paper_width
8.50
print.print_printer
print.print_reversed
false
print.print_scaling
0.70
print.print_shrink_to_fit
false
print.print_to_file
false
print.print_unwriteable_margin_bottom
56
print.print_unwriteable_margin_left
25
print.print_unwriteable_margin_right
25
print.print_unwriteable_margin_top
25
privacy.clearOnShutdown.cookies
false
privacy.clearOnShutdown.offlineApps
true
privacy.cpd.formdata
false
privacy.cpd.siteSettings
true
privacy.donottrackheader.enabled
true
privacy.item.formdata
false
privacy.popups.showBrowserMessage
false
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.promptOnSanitize
false
privacy.sanitize.sanitizeOnShutdown
true
security.disable_button.openCertManager
false
security.disable_button.openDeviceManager
false
security.OCSP.disable_button.managecrl
false
security.warn_entering_weak.show_once
false
security.warn_viewing_mixed
false
Graphics
Device ID
0x 126
GPU Accelerated Windows
1/1 OpenGL
Vendor ID
0x8086
WebGL Renderer
ATI Technologies Inc. -- ATI Radeon HD 6750M OpenGL Engine
AzureCanvasBackend
quartz
AzureContentBackend
none
AzureFallbackCanvasBackend
none
JavaScript
Incremental GC
true
Accessibility
Activated
false
Prevent Accessibility
0
Library Versions
Expected minimum version
Version in use
NSPR
4.9.4
4.9.4
NSS
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSSMIME
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSSSL
3.14.1.0 Basic ECC
3.14.1.0 Basic ECC
NSSUTIL
3.14.1.0
3.14.1.0

cor-el
  • Top 10 Contributor
  • Moderator
10762 solutions 96861 answers

Seems to be working fine here testing in the web console.

What are the dimensions of the Firefox window?

Can you attach a screenshot?

Use a compressed image type like PNG or JPG to save the screenshot.


function BadFormAlert(theErrorMessage) {
 var msg;
 msg  = "_____________________________________________________\n\n"
 msg += "The form was not submitted because of the following error(s).\n";
 msg += "_____________________________________________________\n\n"
 msg += theErrorMessage;
 msg += "\n_____________________________________________________\n\n"
 msg += "Please correct these error(s) and re-submit.\n";
 msg += "\n";
 alert(msg);
}
BadFormAlert("The guest account must not contain blank characters.");

Question owner

Here is what my "Alert()" is creating.

cor-el
  • Top 10 Contributor
  • Moderator
10762 solutions 96861 answers

Try to check for problems with the localstore.rdf file.

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).

  • Do NOT click the Reset button on the Safe mode start window or otherwise make changes.

In Firefox Safe mode these changes are effective:

  • all extensions are disabled
  • the default theme is used (no persona)
  • userChrome.css and userContent.css are ignored
  • the default toolbar layout is used (localstore-safe.rdf)
  • the Javascript JIT compiler is disabled
  • hardware acceleration is disabled