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

0
votes
0answers
2 views

ClientScript.RegisterStartupScript not working

I have searched SO & google, but I can't seem to get this to work. The code is in the codebehind click event of a "Cancel" button in my asp.net application but does not seem to close the popup ...
0
votes
0answers
13 views

changing background of internet site with javascript file

So, i wanna make button on my site(html). With clicking button u could change the background of the site. I wanna make function of that in *.js file. Any suggestions or ideas how to do it are welcome. ...
0
votes
0answers
6 views

javascript drag and drop: detect if dropped outside of window

I have two lists of items - each list in a separate browser window. I have Drag n Drop working between them - which lets me move the items between the windows. Sometimes I just move the items within ...
0
votes
0answers
8 views

Regarding multiple master pages in mvc4

I have one master page named Site.Master in which I have tabs logic <div id="menubar"> @Html.SimpleNav(new[] { new SimpleNavItem{Text="Home", Action="Index", Controller = ...
0
votes
1answer
33 views

unable to call jquery function on Click event

i have a div where i am running a for loop. Which is creating the below divs based on the number of rows in the fields. <div class="parent"> <p style=" font-family: Times ...
0
votes
0answers
2 views

Create a break in graph in flot

My data for the graph drawn in flot can be discontinuous - some measurements can be missing. I am not allowed to interpolate over them - there must be a discontinuity, no value, no link between ...
1
vote
0answers
23 views

How do I get the how many days until my next birthday?

I tried this but it fails var diffDays1=(function(){ var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds var secondDate = new Date(new Date().getFullYear()+1,4,5); var firstDate = new ...
1
vote
1answer
14 views

What's the good practice to add html content of popup box in JS code?

I'm new to HTML and javascript. When I try to initiate a popup window, I find the usual way to do is like this: var popup = new Popup(title, content); where content is string of html containing the ...
0
votes
0answers
19 views

console.log(array) shows different array contents than iterating the array and displaying the individual elements

I have the following code: console.log("start"); for(var i = 0; i < array.length; i++){ console.log(i + " = " + array[i]); } console.log(array); console.log("end"); This gives me the ...
0
votes
1answer
25 views

<input type=“file”> , changing the value

there is sth like this on my website: <input type="file" name="file_1" id="file_1"> when I click on it and choose a file , is there any property that changes in it? if so , can I change ...
0
votes
0answers
10 views

Audio player jQuery Fancybox

So i have a pretty cool little 'e-brochure' if you will coming along nicely, and i've got the youtubes to work in a fancybox, and i have audio inline (later on in the brochure) BUT... When I put the ...
0
votes
3answers
26 views

Javascript error when minified

I'm minifying Javascript in production with jsMin.php https://github.com/rgrove/jsmin-php/ Here is the unminified JS code: function arc(r, p, a) { return "A" + r + "," + r + " 0 " + +(a > ...
0
votes
1answer
24 views

Why does my HTML5 aside section not display in my page?

I added the following into my _SiteLayout.cshtml, just above the section: <aside class="amazad"> <script type="text/javascript"> </aside> and added this to Site.css: ...
0
votes
0answers
22 views

Javascript .onload not firing in IE? window.open reference issue?

I haven't been able to make sense of the answers to related questions so far(down to my knowledge level), so... I have a simple script(using jQuery) that opens a new window and adds certain content ...
0
votes
0answers
9 views

Hooks Execution Priority Behavior on Javascript onsubmit

i've been searching everywhere for information about this but i can't seem to find the answer. here is the situation: for example you have a form that already had an event handler attached to the ...

1 2 3 4 5 24929
15 30 50 per page