Hi,
is there a better way to multiply and divide figures than using the * and / ?
There is a strange behavior in Chrome Firefox and Internet Explorer using those operaters:
x1 = 9999.8
x1 * 100 = 999979.9999999999
x1 * 100 / 100 = 9999.8
x1 / 100 = 99.99799999999999
http://jsbin.com/ekoye3/
I am trying to round down the user input ...
Using CSS or width/height attributes, an img element can be resized within the browser.
Is using this (extensively) a good strategy, what are the drawbacks?
...
Hi,
I am wanting to automatically select the option with the value of fr.
<select class="goog-te-combo">
<option value="">Select Language</option>
<option value="fr">French</option>
</select>
Is this possible with javascript or jQuery ?
...
Don't really know how to formulate the question. A picture is worth a thousand words:
Here, cursor hovers over "Home" item, and the toolbar to the left pops up.
Is there a standard way to do this? Preferably with jQuery.
...
Hi,
I'm trying to create a chain of function calls using two objects.
I've added comments in the code to describe what I'm trying to do:
function Huh(parentContext) {
this.parentContext = parentContext;
this.check = function() {
console.log(parentContext);
}
this.DoWork = function(successFunc) {
console.log('Huh.DoWork');
...
I planned on using the jquery charting library flot; before embarking on this adventure I wanted to check that combination line and bar charts are supported by flot.
Are they ?
If they are not, can anyone recommend a suitable javascript library for supporting such graphs.
An example fo what I mean is here Combi chart with dual axis
A...
I have a complicated regEx inside a string replace and I want to use a variable called "tagname" instead of the word Category, but I don't know how to do this.
$("textarea").val().replace(/\<Category\>(.*)\<\/Category\>/gi, "<Category>TextVariable</Category>");
I have tried something like this, but it didn't work in the first paramet...
Hi,
I'm using the Raphael library to create SVG objects.
To initialise the SVG shape and create a canvas for everything inside, I've used the following line as stated in the documentation:
var paper = Raphael(10, 50, 320, 200);
I now want to animate the paper and everything inside it, just like I would animate a shape which had been...
Hi,
I have a column in a database table that contains several urls and I was wondering what is the best way to get these urls from the database table into a javascript function.
Example code of how to approach this would be much appreciated.
Thanks.
...
ok so here's my problem...
i've been following this tutorial ( http://www.alistapart.com/articles/dropdowns )
to make a css drop down menu with my wordpress blog. everything works fine... except in IE6.
now i know this is normal, and in the link i posted above there is a fix of this which makes use of DOM based scripting... is this java ...
I have written a scroller function which will scroll one div inside another one. The idea is to use the setInterval method to change the margin of the inner element to simulate a scrolling div.
The problem I am facing is that the scrolling is not entirely smooth. Sometimes it stops for a split-second and then it resumes. What can I do t...
Could someone suggest some tool or how to configure firebug to display a list of defined variables in separate window.
I want to see variables, when any variable changes it property, at what line of code it have been changes and so on.
Because code becomes pretty big and following all needed variables is pretty hard now.
Have someone ...
I've developed a ajax enabled site. However, the site does not currently work without javascript. The site works well on any browser that I've tested as well as iPhone/Nokia phones.
However, should I still worry about javascript support?
I know there are techniques that would get my site to work both with or without javascript, but th...
How important is it to gracefully degrade or inversely Progressively Enhance the UI experiance? I mean am I going to lose a LOT of business if I don't? Do you practice this concept? Are there any web 1.0 users still left out there?
Please could you also include if you practice this personally and how much time you've spent relative to t...
Hi Guys,
I have mailto:test@维奈.com on an image which when clicked opens the email client, but the emailID appears as asas@维奈.com .
Any Idea how I can get mailto: link working for IDN domains?.
...
I noticed that some controls (e.g. TextBox) keep their changes between postbacks even if the change is made by a client-side script while some others don't (e.g. ListBox). Can anyone explain me why? Is there any way to extend the first behavior to other controls?
Thank you!
...
var form = document.createElement('form');
(form.isDOMForm()) would evaluate to true.
...
Hi,
I have list of check box as:
test1
test2
test3
is it possible to get all the checkbox having name "abcd_xyz_2_*" thru extjs.
so that i can make them checked or unchecked
THanks All
...
Hi,
Html
<input type="file" name="picture" value="" />
<img id="preview_pic" src="/images/no-image.jpg" alt="" height="100" width="100" />
I can see the "file" input box gets populated with local file path. I want to replace the img src with this new local file path to just give a preview of the image they have selected. If the file...
Hi All,
I have 2 different types doubts here. ( it is for all mobile device web app)
Is it possible to invoke native framework from Javascript in mobile web app? if so guide me any JS lib avilable?
Is it possible to invoke another web/native app from one mobile web app?
Thanks in advance,
sri
...