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 am using a simple form to submit values to another website. This has been working without any problems. I now have added a second form to the page. I have separated the text boxes and duplicated the information from one form to another. The problem is, when I click on the link that use to submit the information, nothing happens. Before the addition of the new form a new window would open with the search that I had submitted. Am I missing something to point to one form or the other? The following is the code that i am using in the form that no longer submits.
<script language="javascript"> function submitPostLink() { document.postlink.submit(); }
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?
I am developing a web-application using ASP.NET 3.5,javascript,ajax I have a form with two textboxes with ID's firstname and lastname. Both of them have the attribute runat="server". When the user types, I use AJAX to request the possible names. For example if the user types an 'a' in the textbox with ID firstname the textbox will trigger a javascript function that uses AJAX to get the first person in the database wich firstname starts with an 'a'. The callback function recieves this firstname and fills it in in the textbox. When i do this the content of the textbox will be the requested name and the cursor is at the end of the textbox. This prevents the user of continuing typing the rest of the name. Is it possible to select a part of the text in a textbox?
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 have this bit of code,[code]So in another word, the function correct is triggers when a user select an answer. And value are assigned to the answer. In the inside the correct function, this value is added to the myScore.But instead of adding, the value is contacted like a string.If the value of the answer selected in 3, myScore generated 03 instead of 3. And then value of the next question is 2, I get 032 instead of 5.How can force val.value to be integer or real number. I even tried parseInt function and it didn't work.
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?
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>
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.
flashvars.targetURL = [URL] to try and get a link on my flash animation. I use swf object. Everything works until I put the targetURL code in. How can I make it work
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?
I'm displaying 2 iframes on a page with content from other pages on the same domain. I'm using jQuery to apply a stylesheet to the 2 iframes by appending it to the head.
I'm trying to write a function that takes a word and adds a space between each letter e.g space becomes s p a c e. I have written below but when I call the function it says the argument is not defined.
Code: function insertSpaces(string){ var currentCharacter; var resultString; resultString = '' //a line to loop through each charcther in the string agument for (var position = 0; position < string.length; position = position + 1){ // set current characther as the first charcter in the string and add a space currentCharacter = (string.charAt(position) + ' ') //store the currentcharcter and add followng characthers resultString = currentCharacter + resultString } return resultString }
I'm working with a javascript/jquery framework that allows me to build crossbrowser plugins.What i'm looking to do is add a floating DIV onto every page the browser loads. I know that to add css onto a page, normally you need to grab a class or id. However, in this case i do not know what classes/div's are available.What would be the best way to add css onto a loaded page after the page is loaded without knowing any classes/id's?
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...
I have a javascript function which adds a label and value to a select widget in its parent window. The function is working fine in firefox and chrome without any errors or warnings. But it is not working in internet explorer.
I'm using a function to load a page into a div. When I add the class of the element I want to show (.contentpaneopen) Chrome and Safari show no content. It works OK in IE and FF.When I ommit the class it works on all browsers.
function loadContent(elementSelector, sourceUrl) { //Works in Chrome en Safari: $(""+elementSelector+"").load(""+sourceUrl+"");
Basically, I have it so that when you click something, then it expands and then shows text. The part I am having trouble at is the text being a php include. Here is the line that works for pre-typed in information:
I have two problems that I suspect will be bread-and-butter problems for the more experienced guys on here, but I'm not the greatest with js.
NB: Code snippets at the bottom
The first problem is that after a bit of fiddling I'm getting am 'Object Expected' error when I click on the Depot dropdown which I can't seem to get round. The code I had was working OK but then I cut it all out, tidied it all up, and put it back in and now it doesnt work.
The second problem is a 'How do I...'. I'm using an XML data island to retrieve some data without submitting the form. In the first example, when the user selects a Customer, the Depot list is updated with all the depots for that customer; This all works fine. What I want to do now is retrieve some more data when the Depot is selected.
I have the XML bits working; the js code snippet correctly output a series of msgboxes with the correct value in (or at least it did until I introduced the Object Expect error!).
However, I'm unsure as to how to display this information on the page. The XML contains a series of Part No's and Quantities, which I'd like to display in a table towards the bottom of the screen. The problem is that I don't know how to dynamically create and populate this table.
The only caveat is that I dont want to show the table if no values are returned from the query....