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.
1
vote
1answer
12 views
Web RPG - Storing dialog
I'd like to create an RPG in JavaScript. The RPG will have a lot of dialog in it. I have no experience using XML, and a good amount of experience with PHP and MySQL.
My questions are:
Would it be ...
0
votes
0answers
5 views
Can you retrieve the Collection Event Script in Deployd as a string for documentation?
I have been using Deployd for a week or so, and was curious if I could expose the contents of the Collections Event Script itself, from the API. (the contents of the ...
0
votes
0answers
5 views
Use of Imager module in node.js
I wanted to use one of the modules, Imager, available for node. Yet, I don't understand exactly how to use the upload method. The method is described as the following.
...
0
votes
0answers
7 views
Why is Visual Studio loading a different Javascript file than the one in the solution?
I've been working on a fairly simple ASP.net project with some javascript to show and hide some content on the page. Every now and then I'll make some changes to my javascript and they won't show up ...
0
votes
3answers
13 views
Javascript prime number error?
Could someone please help me find the error in this code? I'm reading through what I came up with and it logically makes sense to me each step of the way, but it's not producing the desired result. At ...
0
votes
0answers
29 views
replace href in loaded html whit javascript
I need a code for replace href inside my div or in full html document (its same). for some reason my connection by ftp are not working and solving it, I need to change the href urgent
Mi content is ...
0
votes
1answer
16 views
Allow touchmove for child element
I want to disable scrolling for my entire jqm web app but if you try to scroll on a div with a certain class, then scrolling is allowed
So my scrolling div, .info has overflow:scroll applied to it ...
0
votes
3answers
26 views
Start and stop with the same div (javascript-jquery)
I want to start and stop an animation when click on the same div.
$('div').click(function(){
//if is the first click -->do animation in loop
//if is the second click--->stop animation
});
...
0
votes
0answers
4 views
Fixed Header and Footer hidden on input element JQuery Mobile 1.3.1 when using Desktop Browser
I have a JQuery Mobile (1.3.1) App which runs on desktop browsers (as well as tablets), mainly Chrome and FF.
The main page consists of a header, footer and multiple rows of input data (somewhat like ...
0
votes
0answers
13 views
How to draw a two paragraph div onto a canvas
I'm trying to get it where a whole two paragraph div can be drawn onto a canvas. Then I want to save it using the toDataURL(). I'm mostly having problems with getting the div on a canvas without ...
2
votes
6answers
38 views
Detect if a string contains a table
I have a question regarding checking the string.
The string is from a ckeditor so user can input anything.
The variable name is htmlData and it is like:
test here<br />
<table border="1" ...
0
votes
3answers
37 views
Wildcards (.*) with two optional (?) regex parts
I want to have two optional parts in my regex - either of them can be found in matching string, and also both of them can at the same time.
Both of those optional parts consist of a wildcard (I wrote ...
0
votes
0answers
3 views
Tooltip is not able to view on Translate position after panning Image on Canvas? Edited code
Following is the edited code of the above question.
In this transX and transY is the translate co-ordinates which I am passing in the else statement.
After panning when I hover on dataJSON points ...
0
votes
0answers
5 views
Making a nested/hierarchical set of tables using D3
I have some data which I want to display in html tables using d3. My data is laid out like this:
var dataset = [
{
'name': 'foo',
'children': [
{
...
0
votes
1answer
23 views
Working with .js.erb
I have my controller
def grafico_gantt
mapa = Hash.new
mapa[:tasks] = []
@projeto.atividades.each do |a|
mapa[:tasks] << {
id:a.id,
...