ShowModalDialog And Loading DOMDocument Synchronously Causing Error.
Jul 23, 2005
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.
i am trying to refresh a ShowModalDialog that contains information. I have search about it but it never seems to be possible. As anybody got some info., way, idea, documentation about a ShowModalDialog refresh.
i have problem, while loading of page in IE 6. i have software related website http://alisoft7.blogspot.comwhen i opened page. i have seen this error on status bar.
/* Notes: 1. edge & help attributes do not work. 2. "height" & "width" must be entered before "center" 3. if you should choose to set "center=yes" do not put in "left" and "top" 4. Minimize button not hidden, but when clicked the window will not disappear 5. Aside from the aforementioned, all features should react the same *fingers crossed* 6. Still in the works, so don't expect miracles. Any problems/queries/complaints please don't hesitate. Email: x_goose_x@hotmail.com */
Im checking for validation on my page but also trying to submit the data to another form but if theres an error if still loads onto the other page is there any way i can stop this to allow the user to fix the errors?
From some examples, I created a sleep() function which can put a javascript into sleep while it is executing. It is using the IE-only function showModalDialog. Does anybody know a function which does the same in Firefox and other browsers, or a function which also stops the execution of a script temporary?
I created a little script on a section of a website that password protects the page. It gives a user 3 tries to enter the correct password and then if they get it wrong, it moves them to another page that says they don't have access.
Recently, I upgraded it to do a window.showModalDialog instead of just using a plain javascript prompt as they don't look as nice and clear as a customized JSP could.
However, now that we've sent that upgrade out, we're finding that some of our users are not seeing the window.showModalDialog and it just loads the page (not the no access page).
The script is below. When I look through it, it looks to me that a user with an active popup blocker should just be sent straight to the no_access.jsp file, but that isn't what's happening. Code:
I have defined a method in an iframe named as refresh1().In the iframe we are showing records in a table.on clicking a record of table or you can say row a showmodal Dialog object will open which shows the info of clicked record.I want to call refresh1() method onclick of save button whic is defined in modal dialog.I have triedparent.window.dialogArguments.refresh1() but it is not workin.
I was trying to find a browser independent way to raise a modal dialog. I know that MS IE has showModalDialog and Firefox has an attribute modal for window.open but I was wondering if anyone knew of a solution out there that would disallow anyone to browse from a pop-up window without closing it. Disabling the text highlighting and right click are not required, just disabling the user from browsing with the dialog open.
I download the jquery library, when i include it as such:
It loads but i always get some sort of error in the functions in the page or something...as if the js is loaded but not correctly or as if it's missing, even though the download itself is correct
If i change the include path to (which is the exact same file i downloaded):
Everything works fine i am thinking maybe it could be something that has to do with encoding maybe? am not sure...any clue? it's only happening with the jquery JS files, the rest are working fine.
I have a document that I'm using jQuery.load() on to grab some external XHTML.Within this XHTML, once loaded, I want to also load some .js files andexecute some more jQuery.However, when I do that, the browser chokes on the comments in the .js file:
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'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]