Tagged Questions
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.
0
votes
0answers
5 views
Knockout - Accessing length of array “bound to” from inside template
I have different objects/view models that holds similar data but in different properties.
Think of it as an object holding 2 lists;
List of "Something"
List of "Groups"
where a group also ...
0
votes
0answers
8 views
How to set property to struts bean using jsp on click event of button
Hi Experts,
I am newbee to struts and even web application... I want to set the
property of struts form bean using jsp on click event of button . But i am not able to do the same ....
...
0
votes
1answer
13 views
Use AngularJS just for routing purposes
I've just been assigned a website that was made entirely with jQuery. It load asynchronously a few pages, and want to be a SPA.
Now the only thing is that the developer didn't think about URL in ...
0
votes
0answers
15 views
How to stop HTML5 video?
What is the best solution to stop a video, buffering and its reference if I open it from a popup and when I close popup it should be stopped as well as stop buffering. Thanks in advance!
<div ...
0
votes
0answers
21 views
jQuery UI Icon inside <a></a> element
I'm having some trouble with a quick Menu Plugin I've made using jQuery and jQuery UI Icons.
What the menu is supposed to do is have a list of top level items, then a child of any type that can be ...
0
votes
0answers
4 views
Ion Range Slider Get Min and Max vcalue
I am currently using this plugin, I currently have the following:
//Range Selector
jQuery(".range-selector").ionRangeSlider({
type:"single",
hasGrid: false,
hideFromTo: true,
...
0
votes
0answers
7 views
Passing a C++ function to a javascript function in emscripten
I am learning about emscripten and trying to understand it better. As far as I understand the use-case it was mostly designed for is to port existing C/C++-code to a web client (browser) and calling ...
-2
votes
2answers
29 views
Unable to pass string into a function?
My Javascript code is
function ad_cart(nm, mmi, pr) {
alert(imm);
}
The value i'm passing from onclick is this
onclick="ad_cart(Drafting Factory Folders ,2,3.50)"
But it is showing ...
0
votes
0answers
7 views
How to have Masonry adapt to the height of changing elements?
So I have the following code:
function buttonBar(el) {
$(el).on('mouseenter mouseleave', '.entry', function(e){
if(e.type == 'mouseenter'){
...
-3
votes
0answers
45 views
Is JavaScript function default behaviour call by reference?
For past an hour I am facing an issue with global variable passing as function argument.
For example:
var GLOBAL_VARIABLE = {
"foo": "bar",
"test": "test"
}
function test101(a) {
a = ...
0
votes
1answer
21 views
Overlaying am image on top of an image
I'm trying to overlay a logo on top of a background image and I'm having a bit of trouble with it. Here is my html for the background image; the javascript makes the image refresh every second so it ...
1
vote
3answers
33 views
DRY - how to exchange this if-statement into less complex
Let assume that we have those six variables: a,b,c,x,y,z.
Is there a better way to write this if statement which is not so hard-reading?
if (((!a && !x) || a === x) && ((!b && ...
0
votes
0answers
13 views
When I clone my table header, the cloned header will not display the column names in two lines?
I have tried a lot of solutions, to make fixed headers to my table, so when I'm scrolling, the header stays at top.
The solution that works, is when I set the css to make dots (...), if the name of a ...
0
votes
0answers
3 views
The-M-Project 2: Is it possible to get the M.View from the DOM Object?
With version 1.x of The-M-Project it was possible to get a View by its ID from the ViewManager. So it was easy to use this as debug tool in the developer console.
As I've seen so far with Version 2 ...
0
votes
1answer
19 views
php generated html table using ajax to apply user actions like delete, update and edit
I'm new to ajax and would like to use it with php to create a table that a user can edit in the front end of the webapp.
this is what i have so far...
PHP
class genTable{
public function ...