JavaScript is a dynamically-typed language commonly used for client-side scripting, but (despite the name) is NOT related to Java. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). If a framework or library (such as jQuery) is used, include ...

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

1
vote
1answer
12 views

Making a Same Domain iframe Secure

tl;dr Can I execute un-trusted scripts on an iframe safely? Back story: I'm trying to make secure JSONP requests. A lot of older browsers do not support Web Workers which means that the current ...
0
votes
1answer
6 views

Form input hints conflicting with validation plugin

I'm building an HTML form that validates with the jQuery validation plugin. Minimal Working Example on JSFiddle I'm now trying to add hints to my input boxes so that it's easier for the user to see ...
0
votes
0answers
4 views

Save and restore text selection in Gmail compose in firefox

I'm developing an addon in firefox and I need to save the selection of the page in order to show a panel over it. Im using this code var storedSelections = []; //Guarda en storedSelections los ...
0
votes
0answers
11 views

Get dropdownlist selected option from C# list of objects

I have an list of objects that I receive in my Razor View in C# @model IEnumerable<Project.Models.EvaluationObject> In each object of the IEnumerable I have a property called "MaxValue" that ...
0
votes
4answers
28 views

jQuery - Return once function finishes

I feel like this is a fairly simple thing, but I can't seem to figure it out. I need a function to return it's value after an action has been completed. var msg = my_function(); alert(msg); ...
0
votes
1answer
16 views

Can't get the RegEx right

The function checks out and everything works, I'm really just having trouble getting a pattern search that fits what I want. I'm trying to get a handle on RegEx's but they're a bit confusing to be ...
0
votes
0answers
7 views

Boostrap Tabs not switching

I am trying to place both user registration and user login on one-page. The login would be visible only after the user clicks on the tab to view the login form. I can only get the registration form to ...
-2
votes
1answer
38 views

jQuery element as a variable

I have: function foo(element){ var idName= element.innerHTML.split(" ").join(""); $("#" + idName).fadeToggle(600); } and it is not working. I'm just getting the text in a span and deleting the ...
5
votes
3answers
60 views

In JavaScript, why don't any objects equal each other, except strings?

Everything in JS is an object. I've always known that, and I totally understand that. I know why {} !== {}. It's two different objects. Same as if you were to write out new Object() == new Object(). ...
-2
votes
0answers
11 views

Slight modification to a tabbed content slider for wordpress

I have a tabbed content slider on my wordpress site and would like to modify it to display tiny images/thumbnails instead of text as tab titles. Is that possible? I'm using the "Tabs shortcode" plugin ...
0
votes
2answers
25 views

Get link name and write it down in a div

i want to use the name from the link that was clicked to show in an div. I tried many things but nothing comes out. I also have a little script to show and hide a div that worked fine until I tried to ...
0
votes
0answers
15 views

Google Closure or Vanilla javascript event delegation ala jQuery live/on

Question has been posed on stackoverflow and across web before. A vanilla javascript solution would be great but so far all I've seen are attempts to use event.target to check against child selectors. ...
-1
votes
1answer
22 views

Email-Address-Validation using jQuery Validation Plugin's remote method

I've got a problem coding an email-address validation on a webpage. The first step, checking if the input is like [email protected] works. But the second check, if the email already exists in the ...
1
vote
2answers
27 views

IS there something missing? in Change\Update page contents without refreshing\reloading the page

This question is in reference to HTML - Change\Update page contents without refreshing\reloading the page Since the question is protected, I cant go through it. My question is whether or not ...
0
votes
0answers
15 views

Why should a router's callback methods go to a Controller and not the App object itself?

I'm curious why a Marionette router should utilize another abstraction, the controller, to handle various route callbacks? In my current application my Application object is very thin but my ...

1 2 3 4 5 25302
15 30 50 per page