I am using the following code in the button_click event in xxxxx.htm page which is URL for the showModalDialog window.
function btnAddComment_Onclick() { var user_info = new ActiveXObject("Msxml2.DOMDocument"); user_info.async = false; *****causing the error. user_info.load("../xml/userinfo.aspx"); }
user_info.asyc = false is throwing the error (Object doesnt support the method or property. Do you want to debug?) This is happening only on the production region and after I choose not to debug and click on the button once again it is working fine.
The error here that if i gave each radio button different name the function will work but if i gave all the radio button the same name but different values the function stop working ......
<script type="text/JavaScript"> <!-- function OU() { day = new Date(); id = day.getTime(); x=document.form1 fn = x.a.value alert (fn) ln = x.k.value
submitOK="True" var url="vote.php" url=url+"?qid="+fn url=url+"&R1="+ln alert (url) eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=1,statusbar=0,menubar=0,resizable=0,width=750,height=200,left = 301,top = 332');"); } //--> </script>
Here is a suggestion for the documentation. It can be added to General_Guidelines. This is important because, for me at least, I had to figure it out on my own how to deal with radio buttons. A suggestion in the documentation would have saved me a chunk of time. [URL] Error Placement for Radio Buttons (and perhaps checkboxes). If the default placement of the error message doesn't work for your radio buttons, here is a suggestion.
First, here is my customized message, in jQuery("#frm").validate. Notice the <br> tag. messages: { x_gender: " Select One<br/>", },
Also in the validate function. // the errorPlacement has to take the table layout into account // "error" is the error message, as a jQuery object. The element is the first of the group of radio inputs. errorPlacement: function(error, element) { if ( element.is(":radio") ) { error.prependTo( element.parent() ); } else { // This is the default behavior of the script error.insertAfter( element ); }}
I propose this as the default method for radio buttons. And perhaps checkboxes. This way, in my form html at least, the error message appears on a line just above the first radio button. Otherwise, it appeared immediately to the right of the button, between the button and the label.
I am trying to setup a form with radio buttons. Each radio button has an OnClick event. When a radiobutton is clicked the current set of radio buttons will be replaced with a new set using document.createElement("input"). Each new radio button needs the same onclick event addedas in the initial set of radio buttons. I first tried:
I have 10 buttons on a page, and 10 more "onmouseover buttons" that correlate to the first set. Each button or onmouseover button is only 1-2KB! But I can still hold the mouse over a button for a couple seconds until it loads the onmouseover button. I'm using javascript to have the buttons change. The page does load a 2MB video. Could that be the cause? Can I tell it to load the buttons first somehow?
I'm really hoping someone out there can help me with an unusual, frustrating XP problem that I just can't seem to fix.
When certain web pages are opened with my Internet Explorer 6, it causes the CPU to jump up to 100% usage, and my computer comes to almost a halt. The culprit, according to Task Manager, is always IEXPLORE.EXE, or at least one of the IEXPLORE.EXEs if there are multiple instances.
I've noticed a common thread to virtually all sites that cause the CPU to run at 100% -- Javascript. Pages containing Javascript are virtually always the problem. Examples:
1) almost all pop up windows 2) Yahoo! Mail 3) Match.com Searches 4) All Music Guide
I'm not a computer expert at all, so I've only done what I can think of, or what has been suggested to me. I've checked/removed spyware/malware with multiple pieces of software (Spybot, etc.) I've defragged. I've checked for viruses using both NAV and PC-cillin. I've used my System Mechanic program to go through almost all fixes/maintanance/optimizers. The only thing i haven't been able to do is Windows ChkDisk, because it gets stuck every time I try to use it.
I am using ASP.NET for data retrieval and jQuery to perform various functions/animations (error bar, slide menu, table sorter, etc...). Everything is working great until the pages are viewed over and SSL connection. When viewing over SSL, some of the margins/padding stops working and the hover effects on tables stop working correctly (leaving cells coloured, not colouring others). After spending a day looking for the solution in Google, I haven't found anything that will fix the issue. No errors/warnings are displayed on the page.
I am building a wordpress theme that utilizes a theme options panel. The theme has a area where someone can enter in their email address, and when they do a Thank You message displays. One of the sections in the theme options panel allows the users to modify that message. Right now the message is formatted like this: "Thank you for your interest!<br />As soon as as we are ready we will send you an email with all the details."
And the page source shows this: $('#right').html("<div id='submitted'></div>"); $('#submitted').html("Thank you for your interest!<br /> As soon as as we are ready we will send you an email with all the details.") .hide() .fadeIn(1000, function() { });
(I bolded the thank you message) now the form functions properly the way it should and the thank you message appears accordingly when someone submits their email. However, if the person modifies the message via the theme options panel and uses "Enter" for a return or line break the code looks like this: $('#right').html("<div id='submitted'></div>"); $('#submitted').html("Thank you for your interest!
As soon as as we are ready we will send you an email with all the details.") .hide() .fadeIn(1000, function() { }); And this causes the form not to function properly. The thank you message will not show up.
I'm writing some code so that my comments section automatically updates every 10 seconds. The code i wrote does update it but sends off about 40 request every 10 seconds until it eventually crashes the browser.
I have a html list displayed in a div and I want to make the list cycle through items, i.e the first item in the list becomes the last item while the second one becomes the first, and this should continuously happen.
I wrote a small bit of jQuery to accomplish this, but the problem with this code is that is causes the block to continuously resize vertically. Does anyone know of a correction I could make to the code below to remove this glitch. Here is what I have written.
Code JavaScript: $(document).ready(function() { /** * Removes the first element of the news-ticker elements and then calls * addLast() to add it to the end of the list.
I just don't see any possibility to change the height of a button. I am developing an application to list many articles. The height of the collapsible buttons/select buttons is therefore to large, i want the buttons to be as small as possible.
I've got a strange problem in IE that I wonder if anyone has seen before. Basically, I've got a two window scenario. The parent window opens the child via window.open(). The child contains a form and submissions are processed in the child window. When the child window form is submitted and the results are returned, an alert box is thrown up via setTimeout("alert(....)", 2000). For some odd reason, when this alert is displayed, focus is transferred back to the parent window with the alert box on top. When you press the OK button on the alert, focus is transferred back to where it should be; on the child window. This doesn't happen all the time. But it happens. Is there something I can do to solve this mystery?
I have a situation where i need to locate a radio button by it's value and check it. The solution below works in all browsers. However, in IE 6 & 7 (not 8), if there's an apostrophe it blows up.It's happening for me in both jQuery 1.6.4 and 1.7.1. Here's an example. var diagnosis = "Huntington's Disease"; $(...).find('input[value="' +diagnosis+ '"]').attr('checked','checked'); I've tried diagnosis.replace("'","'") and that seems to have no affect.
I believe I'm having an issue with the jQuery Cycle plugin. For the duration of the occurrence of a transition, the page appears to be "jumping" due to the fact that the site content is centered vertically and horizontally and the transition is making (inactive) scrollbars disappear entirely. I have not witnessed this personally in Safari/Firefox on Mac or Firefox/IE8 on Windows, but a colleague took a video of it happening on their machine with Firefox (Mac). Some see this problem, and others don't—I haven't been able to narrow it down. I also can't put overflow:hidden; on <body>, as I need the site to scroll if the browser window is too small.Here's the video, it's a 1.8 MB QuickTime file:[URL]
I am implementing a fairly large Javascript file that has many if/than's that decide whether to load new content into div's. I have noticed this is causing high client side CPU utilization. Is there any better way to do this besides having the example script below repeated many times... i need to keep CPU usage down.
Code: <script> $(document).ready(function() { //ajaxTime.php is called every second to get time from server
I want to make a piece of text fade from black to white while someone puts their mouse over it and change it back to black when they move their mouse away. I did it with the following code, but I'm wondering if anyone would do some (or all) of it a different way.
//convert RGB values to hexidecimal function RGBtoHex(color) { var digits = /(.*?)rgb((d+), (d+), (d+))/.exec(color); var R = parseInt(digits[2]);
I have an internet key on my keyboard, and I'm sure others do too. When I push it, it opens Internet Explorer to my homepage. If I am already in internet explorer, and the page is focused, and I push the internet button, then it changes the location of the page to my homepage.
I want to prevent it from doing this for my users whom visit my site. I have a popup, and while in that popup, it is likely they push that button, or start internet explorer. Is there anyway to detect this, and either block it, or blur the page before it takes effect in Javascript?
It DOES NOT happen if I push START>Internet Explorer since when I click Start, it blurs the webpage.
I'm using a CSS layout from one of the tutorial articles from this site (the butterfly one).
I cleared out the existing css menu, leaving only the empty space for it and threw a DHTML menu (hvmenu v5.4.11 from DynamicDrive.com) on top of the space.
As long as my content is less than 1 page, the menu will be perfectly centered. Once the content goes over a page, and the side scrolling bar appears, the menu (and only the menu) will get pushed 10 pixels to the right in Firefox and Opera. In IE the menu still remains centered. Both the css layout and the menu are set to be certered on the page, but the menu seems to center without taking into account the scrollbar (in firefox and opera only).
It is supposed be just 2 different lines of changing buttons. I was planning to use the "+" and "-" buttons to add/subtract button lights from a column. Unless I did something wrong, I think it should work, but it doesn't... Why?
In order to allow users to filter content, I've created a small checkbox list. To each checkbox is attached an ID, and too some divs on the page are attached these id's too (in the class attr that is); one div can be attached to multiple id's, and so have multiple classes.
In order to show or hide my div's I wrote : function couponsVisibles(){ $('.checkInteret').each(function(){ var coche = $(this).attr("checked"); if (coche) { var idCoupons = $(this).attr("id"); $(".zoneCoupon , div[class='" +idCoupons+ "']").each(function(){ $(this).fadeIn(); }); }}); } $(".checkInteret").click(function(){ var coche = $(this).attr("checked"); if (!coche) { var idCoupons = $(this).attr("id"); $(".zoneCoupon , div[class='" +idCoupons+ "']").each(function(){ $(this).fadeOut(); }); }couponsVisibles(); }); It looks like my selector "$(".zoneCoupon , div[class='" +idCoupons+"']")" doesn't work, but I can't figure out why. I've started using the [attribute*=value] selector, but this selector doesn't seem to make a difference beetween class='8 10' and class='8 1'...
Major JQuery noob here. I'm working on a directory for a client's site and for some reason, in Firefox, the page is running really long with extra whitespace at the bottom where each tabbed div should end.[URL]...