I have a question about markItUp!'s preview function.
Inside jquery.markitup.js i have these settings:
previewTemplatePath:'~/templates/preview.php',
previewParserPath:'~/templates/preview.php',
previewParserVar:'data'
I'm not sure what to do with previewParserPath and previewParserVar. Is it possible to grab the content sent by mark...
I have spent two days on this, so I will be disheartened if there is a simple answer. I am trying to put a span tag around every letter in a div, while leaving the rest of the tags intact.
<div id="div">
<p>
Of course some of the <strong>text is in other tags</strong> and <strong>some
is in <em>nested tags</em>, etc.</...
I have a click function bound to many elements. It is possible that sometimes these elements may sit within one another. So, the click event is bound to a child and also bound to its parent. The method is specific to the element clicked. Naturally, because of event bubbling, the child's event is fired first, and then the parents. I ca...
I am using flot to do some graphing and I am trying to animate the graph into steps. I want to take a multi-dimensional array with say 3 objects where each of those objects has 3 objects. So I have this:
array1[0][0] = 30
array1[0][1] = 30
array1[0][2] = 10
array1[1][0] = 35
array1[1][1] = 35
array1[1][2] = 15
array1[2][0] = 40
array1[2...
This is my code:
$("input[name=donationmode]").change(function() {
$(".setpaymentOptions").children().addClass("fadeout");
$(".setpaymentOptions").children().children(".inputfield").children("input").attr("disabled", "disabled");
$(".option-"+$(this).val()).removeClass("fadeout");
$(".option-"+$(this).val()).children("....
I was recently listening to a podcast which made a comment on using $() vs using jQuery(). It was stated that every time $() was used a new object would be created and when jQuery() was used this was not the case. I google'd around but couldn't find anything on this specific topic.
I realize this is not a typical example, but the follow...
I added a click event to all elements on the page and now want to send the clicked target element to a server.
If the clicked element has an ID, then I can just send the ID, but if the element doesn't have an ID, class, name, ... , then how can I send an identifier (or selector) to the server which points to this exact element?
I tried ...
Hey Everyone,
I seem to have a strange problem. I am working on a simple dashboard that is using JQuery tabs to organize and display Google Visualization graphs. I am using a modified PHP wrapper to generate the JavaScript for the Google Vis side of things. The Google Visualization graph renders correctly in Chrome, Safari, and Safari f...
I know I have seen something similar to this online but I don't have a good example. I was hoping there might be some sort of plug-in with the structure set I could design around.
Looking to accomplish something like this: http://dl.dropbox.com/u/904456/2010-06-04_1520.swf
Any ideas?
...
I have a vertical menu (html list) with an arrow image (as a div). I would like the arrow to slide vertically to the clicked position.
Should be a pretty simple animate!
...
JQgrid outputs this html for a left aligned cell - but it is too hard to the left and touches the grid lines:
<td title="P-1" class="grid-text" style="text-align: left; width: 92px;"
role="gridcell">some text content</td>
How can I style that so that there is a little bit space on the left hand side?
I have tried:
.grid-text ...
Hello,
I would like to count number of elements on remote page:
For example remote page:
test.html with following structure
<div id="Layout">
<div class="product">...</div>
<div class="product">...</div>
<div class="product">...</div>
</div>
Then I would like call from test2.html
<script type="text/javascript">
...
I just playing with masonry and infinitescroll and only IE(8) give me back an error.
the page is here:
http://unknoweb.com/clienti/danive/en/collection/FallWinter_1011/
on IE masonry and infinitescroll don't start and ruin all the other code.
The error is:
Messaggio: Property o method not supported by the object
Linea: 15
Carattere: ...
I'm trying to add multiple thumbnail galleries to a page, but they all show in one slideshow window. I have it working (on two...still in test stage), but the initial slide from each gallery shows when initialized. It's fine once you click on the galleries.
I tried the cycle(), as can be seen commented out at the bottom, but can't see...
Hello all,
I'm trying to work with youtube's javascript api and am having a problem initializing it/getting a callback when it's ready. Api documentation can be found here.
I'm getting the videos from the json provided by youtube and embedding them like this:
//insert flash object in video element
$(video_elm_arr[i]).ap...
I'm using the jQuery DataTables plugin, which is working really great so far. However my table is quite long so I want to repeat the headers every ~30 rows or so. I tried it and got this alert when I loaded the page:
DataTables warning: Unexpected number of TD elements. Expected 5230 and got 4980. DataTables does not support rowspan ...
I'm retreiving a JSON string and parsing it with jQuery with $.getJSON.
After I get the data in a variable, can I add or remove rows? An example:
{"one": [{"sid":"1","name":"NAME 1"},{"sid":"2","name":"NAME 2"}],
"two": [{"sid":"3","name":"NAME 3"}]}
Can I delete sid 1 from "one" and place it in "two"? How about sorting by sid? I'm ...
I'm trying to use jqGrid with local data and I'm finding a couple of issues:
I'm initializing the thing like so:
function refreshGrid($grid, results)
{
$grid.jqGrid({
data: results,
datatype: "local",
colNames:['#','File', 'Category', 'Line Number', 'Message Text','Detailed'],
colModel:[
{name:...
I'm getting a JS error because my $(function () {...}) handler is being fired seemingly before the prerequisite plugin script is loaded. Only happens in IE (testing in IE7).
I have some HTML in my <head> that looks like this:
<script type="text/javascript" src="../resources/org.wicketstuff.jwicket.JQuery/jquery-1.4.2-special.js"></scri...
I know this is easy, just drawing a blank.
If you look at this page (all JS/CSS is on the one page), http://dl.dropbox.com/u/904456/expander.html
You can see what I have. Basically I would like to do two things differently.
A.) I would only like to show the .module .caption for the .module hovered, not both of them when either is hove...