JavaScript is a dynamically-typed language commonly used for client-side scripting. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.

learn more… | top users | synonyms (5) | javascript jobs

0
votes
0answers
39 views

javascript string replace method

I have a problem with the js string replace method, i tried alot, still dont have a clue what is wrong. plz give me some advice. thx basiscly i have a Question string and an array of answer, i want to ...
0
votes
0answers
11 views

Send file with php without POST but in use with type=file

i got such problem, that I must create file sending system in browser, but for big files (>50M). I have POST_MAX_SIZE set at 32M butFILE_MAX_SIZEis 128M. So I must put type file button and read FULL ...
0
votes
0answers
3 views

Dojo datagrid: Multiple values in a single field

I am using Dojo 1.7 and I have a field in a datagrid that can have no values, one value or multiple values. I am trying to use data formatted this way: //data var store2 = new ...
0
votes
0answers
4 views

ScrollTop ok in firefox, nok in chrome when page is short: javascript

I've just created a bar for pagination in order it stays fixed once it get to the needed point... When the page is long enough as 20 articles per page, everything is ok... When the page is shorter ...
0
votes
2answers
20 views

Submitting form after changing input by jQuery

I got HTML like this: <table> <form action=\'food.php\' method=\'POST\'> <tr><h4> <td><span><input type="submit" name="food_edit" ...
0
votes
1answer
8 views

Why is jsonCallback value not used?

i'm having problems with this callback that jquery adds to the url. usually it's something like callback=Jquery123123. The problem is that since the callback change everytime I can't cache the pages, ...
-1
votes
1answer
23 views

Fading a background with jQuery

I am wondering, because I am not good with JavaScript or jQuery, how to I fade a background of this: html { background-image:url(image.png); } to a different background image without fading the ...
0
votes
2answers
17 views

Unable to append image to div element, throws exception

I am trying to make an image appear within a div that already contains a different image. var enemies = $(".enemy"); var animateAll = function (hits) { for (var i = 0; i < enemies.length; ...
0
votes
0answers
2 views

How to send message from content script to panel?

I got some problems with the messaging among the main.js, page-mod's content script and panel's content script in my firefox addon.I transfer the chrome extension code to firefox addon. What is the ...
-1
votes
0answers
17 views

Why is RegExp.test consuming a lot of time in IE?

When using jQuery to load HTML into an element, I am seeing very poor performance in IE. Chrome is not showing any performance problems. Changing the IE browser mode does not appear to improve the ...
0
votes
0answers
4 views

gapi.client.load not calling callback: An invalid or illegal string was specified error in console.log

I have code - unchanged from yesterday - that just stopped working. Odd, I know. But I've looked at it over and over. And nothing in my code has changed. I am using the Javascript API Client library ...
3
votes
0answers
19 views

How to chain exceptions in javascript (ie add cause like in java)

Is there a standard / best practice way to add a cause of an exception in javascript. In java you might do this: Throwable t = new Exception("whatever"); t.addCause(previouslyCaughtException); throw ...
0
votes
1answer
18 views

YSlow & Firebug score 99 / 100 (the holygrail last point)

I am testing this website סוכנות דוגמנות with YSlow (firebug). I have only 1 (last) issue to fix (score 99 instead of 100). There is 1 static component without a far-future expiration date. enter ...
0
votes
2answers
27 views

javascript jquery function trigger solution

I have a function that is currently triggered by a focusout of an input element via $('#wrapper').on('focusout','input[name=state]',function(){ /* execute function */ }); The problem I am ...
0
votes
2answers
22 views

Image is not changing in browser

$('#profileImage').attr('src',data.result.imageUrl+'?'+Math.random()); <img id="profileImage" data-src="holder.js/300x200" src="${picurls}"> Why in browser the image is not changed by the ...

1 2 3 4 5 27573
15 30 50 per page