Tagged Questions
0
votes
1answer
13 views
Slide left not working
Trying to get the parent div to slide to the left when one of its children is clicked. However, I am receiving the follow error message:
Uncaught TypeError: Property '#' of object # is not a
...
0
votes
0answers
7 views
Ajax login box doesn't call PHP file to continue process
The Ajax function for logging in and validating doesn't seem to get to the .php file for validation.
I'm new to both JS and Ajax and followed a few online tutorials, I then tried to implement this ...
1
vote
0answers
14 views
src in script tag missing “http:” [duplicate]
I've noticed that a lot of links to remote libraries are missing the http: from the src attribute: (this site uses it as well: that's where I got the example below)
<script type="text/javascript" ...
9
votes
5answers
10k views
Delay image loading with jQuery
I have a page with several galleries including accordions and sliders. The problem is that the page takes forever to load. Is there a way of wrapping an image in a bit of code or applying a class to ...
2
votes
1answer
5 views
Changing axis min/max on an existing plot using Flot JQuery Library
I've created a series of plots using the flot library, which are all displayed on a single page. Is there a way to update the X axis min and max options (options.xaxis.min, options.axis.max) values ...
0
votes
2answers
55 views
Attach a variable to an HTML element?
I find a lot of situations where I'd like to attach a variable to a div or another HTML element. For example, I have a div that I'm using as a dialog window to edit a row in a table - something like ...
0
votes
1answer
27 views
How do I print something multiple times with one click?
I would like this iframe to print multiple times when someone clicks print. This is what I have so far, but it is only printing once. Does anyone have any suggestions? Thanks in advance.
...
0
votes
1answer
9 views
CodeMirror getCursor() not working? JQuery Javascript
Using CodeMirror. I cannot get the getCursor() function to work. I have a jsFiddle with codemirror sources attached.
----> see here JSfiddle <----
I'm trying to insert text into the editor, then ...
0
votes
1answer
19 views
Using data-modal to open a modal dialog
I have a js that loads dynamic content from a database and shows the var's in a <li> element:
$("<li id='l_"+marker['__gm_id']+"' class='clinic_list' />")
...
1
vote
3answers
62 views
How can I add links or color changes to a var string in JS?
So, I have a site that has a random on-load slideshow with div containers calling text for each slide. I want to be able to add links and/or color changes to specific words. Here's a JSFIDDLE link of ...
0
votes
2answers
24 views
Clicking on radio button does not issue the alert using jquery
On clicking the radio button nothing happens, why?
<html>
<head>
<link type="text/css" rel="stylesheet" href="css/bootstrap.css" />
<script ...
0
votes
1answer
10 views
JQuery Mobile Menu using “this” Selector Not Working
I'm trying to build a really simple mobile menu but it's not working, and I think it's because I'm trying to use the "this" selector. This seems like something so basic, so I'm not sure what I'm ...
21
votes
6answers
7k views
Cannot set property '_renderItem' of undefined jQuery UI autocomplete with HTML
I'm using the following code to render my jQuery UI autocomplete items as HTML.
The items render correctly in the autocomplete control, but I keep getting this javascript error and can't move past it.
...
0
votes
2answers
33 views
Write something inside input id tag with jquery
I have this:
<input name="input_2" id="input_1_2" type="text" value="" class="medium" tabindex="1">
And i want to jquery write this in my html code:
<input name="input_2" id="input_1_2" ...
0
votes
2answers
24 views
Stretch middle of image horizontally
How do I stretch just the middle of an image horizontally?
For example, I have this image:
I want the rounded corners to be the same as it is now (so stretching the whole image will not work). I ...