Font on Page Becomes Bold After Javascript Alert -- Why?

In .Net 3.5 I have a web page that has several checkboxes, text boxes, dropdown boxes etc on it. When a user clicks on the search button, I run some basic validation on the page. If any validation fails, I invoke a javascript alert letting them know what they did wrong and I return them to the page. However, when the page reloads, all of the text on the page is now larger and bold, even the text inside the menu and which resides in a master page. I removed every instance of the word "bold" from the project but it still becomes bold after the alert fires. Any idea what could be causing this to happen? It shouldnt matter but here is a sample of the alert I use:
Response.Write("<script language='javascript'>alert('You must check at least one column to display');</script>")
Any help is greatly appreciated.
thanks

More Related Resource Links

I have an HTML <div> container that I float to the right of a gridview. When the browser window is maximized, it looks fine. When minimized, the gridview positions below the floating container and most of the data is pushed off the bottom of the browser - you have to scroll down to see it.

If I position the floating container above the gridview it looks fine in a minimized window, but looks real bad when maximized.

What I want to do is use a javascript: onresize event to re-position the floating container up or down depending on the window.inner.width AND do it with a Master/Content page structure AND do it for only the one page where needed.

I can capture the onresize event and display the window dimensions but haven't figured-out how to do it with a Content page that still uses the Master page. I think I'm having a very "thick" week...

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn't allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull content

does anyone have any working code that uses javascript to open and close a cpe when the CPE is in a masterpage? It seems like the javascript never is able to find the CPE when it is on a master page. I have an DropDownList on the page and when certain items are selected, i want to collapse or expand when others are selected. It seems to work fine on a regular page, but not when it is a page nested in a master page. It is adding a suffix to the CPE and javascript is unable to find it. any help would be much appreciated!<script type="text/javascript" language="javascript"> function ExpandCollapse() { var e = document.getElementById("<%=DropDownList.ClientID%>") var strUser = e.options[e.selectedIndex].value; var collPanel = document.getElementById("<%=CPE.ClientID%>") if (collPanel = null) alert('No panel found'); if (strUser = "Collapse") &nbsp

In a client-side function that initializes a 3rd-party control, I want to detect whether the page is being loaded for the first time or as the result of a post back. If it is a post back, I want to know if on posting the original page was valid.
I tried using Page_ClientValidate() within the function, but that validates the page, and fires the RequiredFieldValidator, which isn't what I want to do at all!
many thanks,

In another post (http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/83ec9566-0357-4f40-9388-f364e87c1bd4/) I've learnt how to make simple web pages in MOSS 2007.
Then I want to "subscribe" some users using the "alert me" function but it doesn't seem to work. Do I miss something or "alert me" doesn't work with simple web pages?

I am trying get the selected value from a radiobuttonlist on a content page using javascript. Here is my initial code, which does not recognize the control. The js is located in a separate file and there is a link on the content page pointing to the js file.
Thanks,
function GetRadioButtonValue() {
var radio = document.getElementsByName('<%=rblPayType.ClientID%>');
for (var j = 0; j < radio.length; j++) {
if (radio[4].checked) {
alert();
return;
}
else {
return;
}
}
}

So at first, I installed the below:
http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en
Which is .net framework 4 (web installer), then I believe I tried the standalone.
But then after I did the Redistributable 2.0 installer for Windows XP SP2, but I have SP3, does that just mean its included already?
(http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en)
My friend told me I needed this before I install Office 2010... I dont know!!
So after I installed these different .net frameworks and then office.
I have Mozilla crashing me, I disabled the framework assistant plug-in and still happens. Then, my FONT for desktop and start menu icons turns (larger/bold) but not within folders, only what shows without clicking into anything.... so..
1.System Restore is not an option, that restore point is overwritten now...
2. This is not an appearance tab/settings issue with a larger DPI set or anything like that... Because, sometimes I click on my computer to restart and the font is all fine and will continue to be, othertimes, some program or something causes this to happen,
I restart the PC and then its fine again... Can anyone tell me what I did wrong and how to fix it, easily.. if possible :)
I have searched all over and while I've noticed people with simila

I hope I put this in the correct forum.
I am experiencing the following error when attempting to change the layout of an existing SharePoint 2010 page. But it does not seem to happen on all page types, just publishing pages. This error is happening on both the development server and both test
servers. I have look in to the logs, since if it a javascript error there was nothing, which would be expected but I had to try. I have look at the cui.js file but was unable to spend enough time trying to figure out what exactly is going on in this file.
Error being received ...
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; .NET4.0C; .NET4.0E; InfoPath.3)
Timestamp: Tue, 7 Sep 2010 21:10:54 UTC
Message: Object required
Line: 2
Char: 6422
Code: 0
URI:
http://devintranet2010.myconexus.ca:85/_layouts/cui.js?rev=wvoVpqlQb30nGo4DjDk8Kg%3D%3D
If anyone has any ides or can point me in a direction that will allow me to productively continue my investigation, the information would be greatly appreciated.
Regards Kyle

Hi!
In Excel the width of texts in bold font cells have the same width as regular font ones.
My question is how to do that programmatically (in a DataGridView, labels, paint event, anywhere...).
I can do this if I draw the string twice in the paint event (1 pixel shift for the second draw), but it requires 2 drawings of course, which I think is not too efficient.
Is there any other solution? Some trick in creating the bold font?
Thank you,
Feri

helloi have javascript file 'script.js' where i have writt en a function for print. but this function is working fine if i am not using master page in my report page but the question is i want to use master page for my report page where i am calling javascript function but it is not working . Do help me regarding MasterPage and Javascript function.

I am a web designer and I was asked to design a page for our internal sharepoint server. I created a spry page using Dreamweaver CS5, and I need to add the .js and .css to the head of the sharepoint document. I created the sharepoint page, and added my
html code to the html webpart, the content displays, but I need to add the external files to the <head> tag so the content displays correctly. I tryed to open the page in SP Designer 2007, but I can't edit or add to the head tag. Help