I check data validity in html form by JS. Something like
for (i=0; i<document.form[0].elements.length; i++) {
chechkValidity(i);
}
Unfortunately, the form[0] has about two thousands elements (it is
statistical questioning form for companies) and execution of this one
cycle takes about twenty seconds.
The problem is, that during these 20 seconds the browser "freezes":
The button activating the cycle disappears and the mouse pointer
doesn't change into "watch" (sandglass) showing that something is
being carried out.
Although after the 20s everything is ok, it is not the nicest behavior
of the form. I don't assume somebody is so impatient to restart during
those 20 seconds. I just want to minimize the users' swearing on my
address and tha's why my question:
How to show the progress of that cursed for-cycle?
i want to use some domain name lets say something like gmail or hotmail ,i Have created aweb page that contain the fields username ,password and display name with this fields in javascript and activex i want to create an account in outlook express .
if some body can help how would i access to outlook express and create an account with javascript or have link that can help or code to use ,i would be very grateful to him/her.
Has anyone tried sending web pages containing javascript to another user also using Outlook Express?
Mine don't work on the other end - although I'm not sure if this is because they don't have Javascript enabled in MS Explorer 6. I save the entire HTML file + script into my Stationery folder. Then I select Message/New Message Using [select stationery file]. Should it work? Say I sent this by email:
<html> <head> <script> alert("Hi there!"); </script> </head> <body> <p>Can you see the alert box? Let me know.</p> </body>
I am facing one problem when i am trying to open the outlook express through javascript.Here i am able to open the outlook express with all the data, but when i press enter on any line of the body if the message, it moves 2 lines.make it to single spacing. The code i have used is given below.
I have a WYSIWYG editor based on the HTMLArea project that uses the cssRules object of a stylesheet to add/update stylesheet rules for table cells. Ever since I upgraded to FireFox 1.5, I get the following error message when trying to access the cssRules object:
"Access to restricted URI denied"
The code I am trying to execute looks like this:
var currStyleSheet = editor._doc.styleSheets[0]; var currRules = currStyleSheet.cssRules; var tdIndex = currRules.length; for(i = 0; i < currRules.length; i++) { if(currStyleSheet.cssRules.item(i).type == 1) { //if it is a style rule var currRule = currRules.item(i) if (currRule.selectorText.toLowerCase() == "td") { tdIndex = i; } }
}
This code is simply looking for any rules for TD elements. I am at a loss as to what is going on and/or what changed if FireFox to cause this error. It worked fine in previous releases of FireFox. The document that I am trying to access the stylesheet for is within an IFRAME, which is what I believe is causing the problem.
We've been using ajaxSubmit to process a login form request (can be found here: [URL] Login Link in navigation). However when we attempted to upgrade from 1.3.2 to 1.4.4, we get the following error whenever we submit the form:
"jQuery(this).ajaxSubmit is not a function"
The only way we've been able to get the form to work again is to go back to vs. 1.3.2.
Has something changed in 1.4.4 that would prevent the form from working? Is "ajaxSubmit()" no longer a valid function?
Why this script no longer works in firefox? It works in the older version but since it got updated to version 3.5.3 it doesnt work anymore. It works fine in IE.
This is then what I add for each of the images ->> <a href="javascript:show_popup(image.jpg','Image Example ','acrylic on masonite','62 X 48 inches',430,564)"><img src="images/thumbs/image_thumb.jpg" alt="Images" width="100" height="128" border="0" align="center" valign="TOP" /></a>
i've built an app using extjs when it a user browses to the url domain.tld/#v=xxxxxx a new tab opens in a extjs panel to show content for the video with id xxxxx as soon as i submit a form from another page or even the same one and popuulate another variable, q, the tab no longer opens when the url looks like domain.tld/index.php?q=some+text#v=xxxxxx why it no longer gets the value of v? i'm using
[Code]...
to get v's value and if it is set then a javascript function is called to open the tab.
I have a page where an alternate address area is kept hidden via JavaScript and CSS divs. If you click that you want to use an alternate billing address, two divs are expanded. One with the form fields for entering in your alternate address, the other area has further info about why we need that alternate address. (Code is below). This works PERFECTLY for my needs....however, if you reload the page, the "show" button remains selected and OFF=ON and ON=OFF if you get my meaning...so when you click the radio that should be hiding the divs, it shows them and vice versa. Additionally if there is an error in the form and the page reloads to display the error, only the billing address area stays expanded (its inside the <form> tags), the text area next to it goes back to being hidden, and the show/hide OnClick no longer works. Ideally, I'd like the two to maintain the same state (i.e. if both we're shown, both stay shown).
CODE (trimmed down of course): Code: <head> <style type="text/css" media="all"> .invis { visibility: hidden; display: none; } .vis { visibility: visible; display: inline; } </style> <script language="javascript" type="text/javascript"> var c = 'invis'; var ids = new Array('id1', 'id2'); // IDs of your <div>s function doSwap() { c == 'vis' ? c = 'invis' : c = 'vis'; for (var i=0; i<ids.length; i++) { document.getElementById(ids[i]).className = c; }} </script> </head> <body>
<div id="id1" class="invis">This is all just plain text that appears when the NO radio is clicked but disappears on reload</div> <form> <table> <tr> <td> <input type="Radio" name=" " value="hide" onClick="doSwap()" id=""> YES <input type="Radio" name=" " value="show" onClick="doSwap()" id=""> NO </td> </tr> <tr id="id2" class="invis"> <td>extra address entry stuff that appears when the NO radio and that stays on page after reload</td> </tr> </table> </body>
Have a web app which consists of a form and have it set up to launch a dialog box containing information next to the subject label text field.Everytime, someone fills out the form and clicks on submit, the form's message body (from the text area of the form) is displayed on top and theform is displayed underneath it. Before, I had it set up as fixed (x,y) for the dialog box to appear next to the subject label. But, now, whenthe page becomes longer, the dialog box doesn't appear next to my subject label text field. It is displayed a lot lower.
Here's the code to find the position:
// Finds the position and adds 40px to the left axis. function findPosition(obj) { var curleft = curtop = 0; if (obj.offsetParent) {
[Code]....
How can I set it so my findPosition() calculation doesn't miscalculate when the page is too long (when scroll bars are needed)?
Is there a way to set the relative positioning to always have the dialog appear 40px right of the subject label?
jQuery using getJSON calls specific handler, lets say MyHandler.ashx $.getJSON(/MyHandler.ashx?param1=someVal, function(data) { some code; }
In Opera and Explorer this is executed immediately. In FireFox it takes over 1s before request is executed. Even when I set breakpoint in my handler it will be hit after 1s... could you tell me why it is so slow? I got latest version of firefox.
i want to add the link address when clicked on the link in web page to the outlook express address book when the outlook window populates. i tried to put
<a href="mailto:enquiry@mydomain.com" > click here </a>
but it only add address to the To section of outlook window, i want it should store the address in the address book.. of outlook express..
I would like the second level of buttons (submenu) to disappear once the cursor is no longer hovering over them - rather than appearing until another button in the top level is hovered over. modify the javascript below to do that?
Trying to develop drop down menu... I'm showing a div, then hiding it. It works perfectly, but I need to set a time delay... that's where the problem exists. When I add SetTimeout() to create a delay, it no longer runs correctly...
how is it possible to do a loading progress bar,the msot simple way, i read taht you can make this in a very simple way using the image class(with the image array) or also using the image array so all your pics would load when the site starts but i think the first solution is easier(loading bar), i have a very simple site that uses html and css and if any of you knew about this simple java script loading bar?
I have an ASP page on my intranet that searches a large database. After you click search it takes a while for the results to display so you just get a blank page and it looks like nothing is happening.
What I want to do is, using javascript, display something that makes it obvious that it is actually doing something. This could be either a progress bar or an animated image that dispappears once the page is loaded.
Does anyone know where I can find a script that will do this?
I am trying to show wait image while your form is submitting.Like in lightbox.js till the image pop up it shows the progress bar and then show the zoomed image similarly i want to show the wait flash button(it moves round and round in) until my form is submitted.
I've got the following problem: i need to build a "progress bar" with JavaScript. So far i have the following configuration: i've got a DIV inside of a DIV. Each DIV has a style attribute that defines its width and other style information.
I need to calculate the size of the incremental block based on various factor like Width of the outside DIV, incremental interval and number of increments. My original solution was to assume that all of the units are in 'px' so i could just deal with integers. However now i hit a brick wall, when i realised that this is anything but scalable.
So what i need to do now is to obtain a width of the DIV from its style attribute (had it hard coded before), do the calculation, and then use the result to increment the size of the inner DIV (width element in the style attribute)...