1
vote
1answer
6 views
knockout.js and fixed left scrolling binding on element
I have this binding that goes on about 60+ rows. When I scroll left the lag is kind of slow and jumpy. Anyway to fix this or make it smoother?
<!-- ko foreach: Times -->
...
0
votes
2answers
13 views
File isn't Downloading
I'm attempting to download a CSV file through Yahoo Finance with this code.
$(function () {
$(document).ready(function() {
...
0
votes
1answer
22 views
jquery: reset css when new item is clicked
I'm modifying this script to have the overlay fade out completely when clicked. The problem is if the css is changed to display:none I can't get it to return to display:block.
Here is the bit in ...
-1
votes
0answers
26 views
jQuery function $.ajax shows many alerts when success
I have following problem with jQuery $.ajax
$.ajax({
type: "POST",
url: "secSubmit.php",
data: canvasMaker.serialize(),
success: function(data) {
fullShadow.css('display', ...
0
votes
0answers
10 views
casperJS failed Injecting jQuery
Does anyone know how come I am encountering
[warning] [phantom] Failed injecting %s client side.
Failed injecting includes/jquery-1.10.2.min.js client side
when I have included
...
0
votes
1answer
34 views
What's the best JS replacement of frameset in HTML [on hold]
I am working on a internal management system with a menu in the left and different forms in the right. On click of item in menu, right block should reload corresponding page. <frameset> can do ...
0
votes
0answers
8 views
How can I detect where the text baseline is positioned
If I have a set of HTML that looks like this:
<div>
This is some text, followed by an image
<img src="some image with height greater than the text" />
</div>
And the image ...
-1
votes
1answer
18 views
How to get the parent element too with getElementByClassName?
I have certainly extremely simple problem and I'm a little ashamed of not being able to solve it by myself.
HTML:
<div>
<ul class="test">
<li>1</li>
...
0
votes
0answers
8 views
QUnit test in Firefox 23: “TypeError: document.setUserData is not a function”
My QUnit test suite (source here) is failing in Firefox 23 and later with the error TypeError: document.setUserData is not a function. See this screenshot for more information.
Mysteriously, a ...
-3
votes
0answers
33 views
Mmorpgs php movements
I was thinking on making an mmorpg, actually the basic rpg is done, still some bugs to finish but since I dont want it ot be local and want it to be mmorpg not rpg I was wondering how to make that all ...
0
votes
2answers
33 views
Where do you put the relative url in a jQuery code?
I have to reference my two html documents in divs to a primary html and I can't get my other htmls to render.
This is my script in the head:
<script ...
0
votes
4answers
27 views
jQuery AJAX call not returning data
I feel a little silly here. My ajax call is running the error: function every time. I know that the data is coming back as JSON, but i've done the datatype as jsonp to allow for cross origin stuff. I ...
0
votes
2answers
11 views
Is it possible to create javascript audio player with multiple tracks playing in same time?
I want to create custom player with 10 sounds for example. All 10 tracks are components of one music composition, created by different instruments.
For each track I want to have on/off switcher. ...
1
vote
0answers
7 views
How to get jQuery tagit to create tag on pressing Enter only if nothing has been selected in autocomplete
I'm using jQuery tagit with Autocomplete. I would like it so that when the user hits enter it will create a tag out of what's been entered if they don't select any of the autocomplete suggestions. If ...
1
vote
0answers
11 views
is it possible to unlike a comment via facebook's graph API?
I'm working with the facebook graph api to display a user's feed and comments.
I'm able to like and unlike posts just fine, using the same code (obviously with a comment ID instead of the post id) ...
0
votes
2answers
26 views
href HTML call to page “UP” Directory
This question is simple, but confusing to explain. Feel free to edit the question.
I'm making a django site and want to link to my admin site.
current url structure is /livestream/... ...
0
votes
1answer
29 views
How do you reference an html document to another html document in a div using jQuery?
this is my html:
<!DOCTYPE html>
<html>
<head>
<title>Free Jokes!</title>
<meta charset="utf-8">
<link href="final%20project.css" ...
0
votes
1answer
22 views
Is there a js function I could use that would make the placeholder attribute work in IE?
Right now I have a bunch of input tags in my project that use a placeholder, like this:
<input id="Name" name="Name" placeholder="Name Goes Here" type="text" value="">
Is there a js function ...
-3
votes
1answer
28 views
JavaScript/jQuery suddenly stopped working
I've made no edits to my site (that I know of) and all of a sudden, jQuery and JavaScript have stopped working.
I'm using a number of jQuery plugins to create calendars and dynamic datatables which ...
-1
votes
2answers
31 views
Learning/applying jQuery before JavaScript [on hold]
NOTE: I am not in any way asking whether or not I should learn JavaScript before jQuery. I understand that jQuery is simply a framework for JavaScript and as such JavaScript should be learned first.
...
0
votes
4answers
31 views
Jquery/Javascript: Find cursor/focus field on click
How do you capture the location of a cursor via an event listener?
In other words, if my user clicks a button, is it possible to find the location of the cursor at that time? If so, how?
UPDATE
I am ...
-1
votes
0answers
30 views
HTML assign a button value from an array
I have this code and I need to assign a value from this array to a button randomly.
function choices(){
var numOfButtons = 4;
Random myRandom = new Random();
var buttons = new List<Button> { ...
0
votes
0answers
23 views
convert rgb color to hex using js or jquery when jquery .css gives rgb [duplicate]
I have problem with jQuery, when I am getting color using jQuery css like this
$('#myElement').css('background-color')
it gives me RGB color and in my HTML, I use hex colors.
<div ...
-1
votes
1answer
20 views
Customize scrollbars for iframe
I was wondering if is possible to customize the scrollbars for an iframe. Both the iframe and the page are on the same domain so there are no issues there. If so, what route should I take and is this ...
1
vote
1answer
24 views
How to slide a popup (html) with parameters and php
I have in my webpage this html popup:
<div class="popup1" id="popup_calendar">
<div class="bg_popup"></div>
<div class="content_popup">
<a ...
0
votes
2answers
56 views
Passing multiple values through J Query and displaying in them in a div
I’m attempting to pass multiple values through J Query and displaying in a div. The code below works fine for single values.
<script type="text/jscript">
function get1() {
...
1
vote
2answers
17 views
Passing Backbone Fetch/Initialise Variable to the view
Using Backbone to gather collections from a JSON service, I have using the view initialise to activate the fetch, however I now want to pass the JSON Array back to the view, but I'm unsure how to ...
0
votes
3answers
26 views
Checking all inputs after un-checking them all
I'm having problems creating a checkbox which is able to check and uncheck all other checkboxes.
The checkbox is able to uncheck all inputs but is unable to do the same in reverse.
jsFiddle: ...
-1
votes
1answer
18 views
parsing xml using jquery javascript
I have a xml file. I want to parse it and get the text
in the tags.
For example I want to extract "2.6" from the tag infoModelversion.
"echo=hi hello" from the tag ns:description .
My xml file is ...
1
vote
1answer
13 views
Is it possible to change the X background position and not affect the Y background position of an element in JS or jQuery?
My first idea was to see if there's some sort of background-position-x property in CSS, but apparently not. See:
Is background-position-x (background-position-y) a standard W3C CSS property?
Is it ...
0
votes
4answers
19 views
How to show value of LI by jquery selectable->select event
I have this html, representing list of words:
<ul id="words">
<li>word1</li>
</ul>
There is jquery-ui script I try to use to show selected value (in my case ...
0
votes
0answers
31 views
Countdown Timer for auction site not working
I am working on an auction website and each product in the homepage has a countdown timer
i managed to get a script to implement this from here(stackoverflow)
But all the counters dont work at once
...
-3
votes
3answers
44 views
how to disable mutliple buttons when one is clicked
I have two buttons currently and when either one is clicked i'd like both to be disabled.
currently im using:
<button type="button" class="disapprove-button" id="123abc" ...
-1
votes
2answers
55 views
IE9 not correctly running .each() jQuery function
I have two muti-selects where I can tranfer items back-and-forth, which is working perfect in all browsers. My problem is in IE9 the .each() does not seem to be running. Basically what I'm doing is ...
0
votes
2answers
35 views
Jquery to copy first link to second ul and then change class of first link
Short question:
http://jsfiddle.net/wF4FH/2/
What I want is for Page1 to be right above Page2 and Page10 above Page 20 before I change the classes. This should work for any number of elements.
The ...
0
votes
0answers
13 views
AJAX responseXML empty with jQuery UI Modal Form
I have a jQuery ajax call to a SharePoint web service that I use to append "search" results to a table. With only a simple html table everything works fine and the results are added, but when I try to ...
-1
votes
2answers
37 views
Button Not Active Until Mouseout
I'd like to say right off the bat that THIS IS NOT A CSS PROBLEM. The following is simply to demonstrate with css the kind of problem I'm having.
In an html page filled with javascript and css, ...
0
votes
1answer
20 views
jQuery iframe load local iframe url with escaped characters
I'm loading a custom page type that is just comments for a post. This is so I can use Disqus threads for easier usability when multiple loop posts are on a single page.
When loading an iFrame with ...
0
votes
5answers
48 views
How Can I Transfer Text From Input Box to Text Area?
I'm making a prototype for a chat client. At this stage, I'm just learning how to append the user's input to the text area above. However, no matter what I do, it doesn't seem to work. The only time ...
5
votes
2answers
47 views
youtube video id from url
I have obtained these codes from other stackoverflow pages to correct youtube links but they dont work for my url:
https://www.youtube.com/watch?v=r2dRQHJ-aAk
code:
<script>
...
1
vote
5answers
35 views
Replace all links within a div to a post
I have several links on a page im interested in replacing all the links within a specific div to point to a main.php with the link placed as a post to the link...
Example.php:
<div ...
0
votes
2answers
18 views
Why won't my jQuery-ui modal dialog display two custom buttons?
I have a generic Javascript function for displaying a jQuery-ui modal dialog with two buttons -- essentially "Continue" and "Cancel", though the text varies. I'm calling it in three places in my ...
1
vote
0answers
39 views
Rotating a div using jQuery that's supported by IE9
I have some divs (basically just images) that I fade in as they rotate 360 degrees. Everything works perfectly in all major browsers, just not IE.
CSS3 code that works
#box
{
width: 400px;
...
0
votes
1answer
34 views
How do I determine exactly which method throws this error: Javascript: Object doesn't support this property or method
I'm trying to upgrade to JQuery 1.10 from a much older version. Unfortunately, upgrading causes previously working code to fail with this error:
Microsoft JScript runtime error: Object doesn't ...
1
vote
1answer
8 views
JSQueryUI sortable from one ul to another
I am building a menu planner Using JSQuery UI draggable and sortable.
Please take a look at the fiddle:
http://jsfiddle.net/mikepmtl/2fy9H/
<div class="day" id="Monday">
...
2
votes
2answers
22 views
confirm before onbeforeunload
I need to prompt the user before he leaves the page, on confirmation close the tab and if not do nothing. I want to send an ajax call on onbeforeunload.
My only idea was to write handlers for both ...
0
votes
0answers
7 views
JqGrid - Rendering Issue
I'm using JqGrid in my ASP.NET MVC application using VS2010.My Grid does not seem to render properly on my view and does not allow me to access other controls(including entire page) on the view. See ...
2
votes
1answer
40 views
How to parse a JSON path with a “@” in it?
I'm trying to output JSON from an API which looks like this.
I'm using Javascript, the JS I've been using is below the picture.
<p>"stations": [</p>
<p ...
0
votes
1answer
23 views
jQuery-UI DateTimePicker doesn't work
I'm needing to develop a datetimepicker Input with jquery-ui. I already developed a datepicker, and the same is working perfectly. The problem is that the DateTimePicker is displaying a datepicker, so ...
2
votes
3answers
44 views
Replace words of a sentence with formatted html
I have this string:
var text = "Altough I am the eldest son, they stil see me as kdi.";
and this array:
var errors = ["Altough", "stil", "kdi"];
I would like to replace the words in the sentence ...