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
MVC 4 javascript not rendering
I cant seem to get these (js files) rendered.
Layout.cshtml
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>@ViewBag.Title - My ASP.NET ...
0
votes
0answers
4 views
Catching POST request in Django CreateView
Here is a simplified version of my code:
post_form.html
<form method="post" action="">
.....
<input type="submit" value="save" />
</form>
And then my javascript file:
...
0
votes
1answer
10 views
JavaScript performance difference with time(int) declaration?
What it is the difference in having:
setInterval(function(){
},5000);
and:
setInterval(function(){
},5E3);
I know that 5E3 is like saying 5*1000 but is there is any benefits one from another ...
0
votes
0answers
10 views
How can I render a partial inside a ruby loop using js.haml?
I'm trying to render a partial for every object in array of hashes:
My controller:
@active, @not_active = @objects.partition{ |obj| obj['active'] == 'true' }
My js.haml file:
# this code works
- ...
0
votes
1answer
38 views
When clicked on bold or italic tag cursor to be in middle?
I'm using this code in one of my torrent websites.
When u will click on 'B' TAG code shows like [b][/b].But the problem is cursor will go on left side of the tags i want the cursor to be in middle of ...
0
votes
0answers
5 views
SVG Scaling with AnimateTransform
I'm just getting to grips with SVG but have a quick question regarding an animation I'm trying to put together.
Basically, what I want to achieve is:
Image A scales from 0 to full size
User clicks a ...
0
votes
0answers
7 views
Refinery CMS-Adding HTML Web peroject
I have web project with '5 pages' and i must create this in 'Refinery CMS'.
I try to create home this is work but i cannot get my other pages.
Maybe I used wrong way for creating project?
Here my ...
0
votes
1answer
12 views
Proxying 3rd party GUI
My issue is the following: I need to incorporate GUI of 3rd party product into the GUI of my product and need to remove some of the 3rd party GUI components on the fly. Thought about using iframe, but ...
0
votes
2answers
17 views
Is it possible to put 'number of chosen checkboxes limitation' in multiple forms into the loop?
I'am creating a page on which the user will fill form consisting of multiple forms. Each of these forms has different maximal number of possible answers. How to minimize the number of lines of code ...
1
vote
6answers
57 views
How to validate a currency input
I am creating a form, and that includes salary, I need to check if the input value for salary is a valid currency and has two decimal places because that is what the database accepts. If the input for ...
0
votes
0answers
10 views
Ember textfield events not working when using init
I'm trying to initialize my ember text field view to prefill it with the query string. But whenever i add an init function to my view all other defined events stop triggering.
How do i get my events ...
0
votes
1answer
8 views
primefaces 3.5 calendar hour minute pattern javascript error
I'm using PF3.5 and when I use a calendar component with a pattern including HH:mm I get the following javascript error and the caalendar selctor icon is'nt shown:
Uncaught Unexpected literal at ...
0
votes
0answers
6 views
Multiple force-layout graphs with d3 in seperate svg/div's
I've a problem with creating multiple force layout graphs using d3 and reading data from a json file. I use a for loop to iterate over the graphs, create a separate div containing a svg for each. The ...
0
votes
1answer
16 views
What are ways to minimize popup window using javascript?
I have a popup window.There is a screenshot functionaltity being done in the popup so there's a button in the popup window like take screenshot,on click of button screenshot of the entire page is ...
0
votes
0answers
4 views
How to increase the timeout in CasperJS
I am using waitFor() . Cade as below:
casper.waitFor(function check() {
return this.evaluate(function() {
return this.evaluate(someFunction, 'variable 1','variable 2','variable 3') === ...