What's the reason why some JavaScript functions won't work in Google Chrome but works fine in Mozilla Firefox?
Like this..
HTML code:
...
onkeyup="calculateTotal(this.value)"
onclick="clickclear(this, '0')" onblur="clickrecall(this,'0')" value="0"
JS code:
function calculateTotal(price, quantity, cnt) {
if(quantity...
I want to set "div" alignment to center using javascript. The reason using javascript is not working of "margin:auto" in IE.
I have coded :
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>
All Time Set Window
</title>
<script language="JavaScript" type="text/javascript">
$(document).ready...
how to triggered open/save window by using javascript?
...
Hi Everyone,
I need a code which creates me the table row based on the selection of the dropdown lists.For example if i select 3 then i need 3 rows to be create.I am able to create the rows dynamically but on the change of the ddl value i am not able to delete the previous rows which were getting created.How can i achieve that using jqu...
Hello fellow Overflows!
I'm writing an "API" for a website which doesn't have it.
Basically, my PHP code logs into the website and grabs the data I need (two different transfers).
At login time, I'm getting a bit of a problem. The website sets a couple of cookies through HTTP, which I'm capturing using CURL's cookie mechanism.
This se...
what is expandoProperty. I came across this property while reading about javascript memory leaks. It was told that this property is supported only in Internet Explorer and is responsible for circular reference. But I tried to check and found this property not available in any of the browsers. Any help on this property? and how is it link...
function json (url){
$.getJSON(url, function(data) {
return data;
})
}
this function don't see "data"
function MakeAlert(){
data = json('action.php');
window.alert(data.name);
}
this work:
function json (url){
$.getJSON(url, function(data) {
window.alert(data.nam...
In my Document I have a Iframe initially with a height of 700px
This Iframe contains a complex form, with different Selectboxes and Inputfields etc.
For example a Selectbox contains number of Inputfield to be displayed in Iframe.
initially the value is 0, and If I change the number of inputfields by Selecting a Different value from Sele...
Hi,
I have a list of US regions set up as checkboxes. When a user submits the form, I need an array of associated states. This array is used for comparing to another array in my SQL tables.
Using jQuery or javascript, what's the best way to go about this?
I've got the general idea I believe:
//populate region to state arr...
I have started to convert a code on my site to jquery from mootols I would like to include jQuery instead of mootools and then write some functions I'm using in mootools to jQuery so I can use the exact same code. Some of the code I'm using I already converted is for example:
jQuery.fn.addEvent = jQuery.fn.bind;
However I'm having...
Let me explain in detail. I have below an object with me -
{
"OBJECT1" : {
"NAME1" : "VALUE1",
"NAME2" : "VALUE2",
"NAME3" : "VALUE3"
},
"OBJECT2" : {
"NAME4" : "VALUE4",
"NAME5" : "VALUE5"
}
}
From this object, I want to get something like number of elements in OBJECT1 = 3 an...
The coding is in ASP.NET 3.5.
Here is the scenario.
I am modifying a page that populates some data.
In that page there is a table that displays pages.
The pages have sub-pages and these sub-pages again have sub-pages.
So thats three levels of hierarchal data presented.
Example:
Right now its populated using asp:Treeview for easier dis...
I asked this yesterday but could not reply as i was not registered , I tried out the suggestions that HoLyVieR,Ryan Kinal and Vagabond said, but non of them seem to work.
I have taken out the array as that seem to be the suggested problem and solution but now the code does not work at all but shows no error's.
The original question i...
Can any one tell me the difference between these functions?
...
Is there any JSON parser/stringifier for Javascript that does not add anything to the prototype (like Date.prototype)?
Because my script is going to be used as a third party script, I want to eliminate the conflicts it may cause.
I am not keen on writing my own serializer/desrializer beacuse probably this was done somewhere else, and b...
I have a small javascript that changes the title of a input-field to it's value and some other stuff:
function autoFill(id){
if(jQuery(id).val()==""){
jQuery(id).val(jQuery(id).attr("title"))
.addClass("help");
};
jQuery(id).focus(function(){
if(jQuery(this).val()==jQuer...
Ex:
<div id="h" style="background-image:url('images//line.jpg'); background-repeat: repeat-x; width:300px; height:25px; padding-left:10px; color:white;">Frame</div>
Now, I want to get the value of width from style using jQuery. What should be jQuery.
...
Hey Guys,
Having a bit of an issue please see the following code:
window.onload = function () {
var imgHeight = $("#profile_img").height();
var infoPanels = imgHeight - 6;
//include borders and margin etc..
var infoPanelsHeight = infoPanels / 4;
$('.resize').css("height",infoPanelsHeight + "px");
$('.resize2'...
Hello, I'm loading a file into a div with load() function, but after I load the data - the styles for it doesn't want to work.
For example:
index.html:
$("a ").click(
function(e)
{
e.preventDefault();
$("#Display").load('file.html');
$("#Display").show();
});
file.html:
<h1 id="title">Item...
Hello,
we're currently developing an application that makes extensive use of popup windows(*) and have run into an issue on IE (this has been reported before but I couldn't find any solution).
The problem is this: our main window M opens a popup window P and keeps a reference to it. P then registers an event handler on an object in M. ...