I'm writing a plugin for jQuery. Turns out that in order to use it a page HTML must containt the following code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<?import namespace="v" im...
Hi everyone,
I was wondering which was the fastest way to apply a class on body and, let's say, all paragraphs. We can use simple selectors such as:
$("body").addClass("foo");
$("p").addClass("bar");
But also traversing methods like:
$("body").addClass("foo").find("p").addClass("bar");
Is there any difference in term of performanc...
I'm searching and displaying results from an xml file using combination of javascript and jquery. The results are displayed as thumbnails which upon clicking should bring up more information in jquery colorbox. The information in the colorbox comes from inline hidden div(#affInfo). I'm trying to append a new div(pWindow) to the hidden di...
THIS IS THE CODE SNIPPET:
To call the translation edit:
$directEditClass = WGet::classes('output.directedit');
$text = $directEditClass->editTrans( $text,'library.'.$this->you.'view', 'name', 'yid', $this->yid );
The function itself:
/**
* Use to create an editable field for the translation to be edited
* @param string $...
my jquery
jQuery(function(){
jQuery('div.class a').click(function() {
alert("hello");
});
});
google ads link
<a id="aw0" class="adt" target="_top" onmouseover="return ss('','aw0')" onmousedown="st('aw0')" onfocus="ss('','aw0')" onclick="ha('aw0')" href="/aclk?sa=l&ai=BH3xd2ZmTSvrMC5iKqAO2v7XDBv6jtl-mg...
I am trying to make this captcha jquery plugin to work. The a certain line of code is executed, the error pops up.
This is the line of code that causes the error :
$(".ajax-fc-" + rand).draggable({ containment: '#ajax-fc-content' });
What I am assuming is that there is some kind of conflict with the javascript reference, but can't de...
Hello.
I am developing webapp using jQuery.
I have functionality that adds new row of 3 input fields. After creating these DOM elements I want to focus one of input fields. I am doing it with calling jQuery focus() function on necessary input field.
Problem is that calling focus() works fine in IE6 and FF3.5, but not working in IE8.
I...
Hey
Im trying to return the value that a $ajax call returns, from a function but it only returns "undefined". If a alert the "reponse" from the ajax call it returns the rigth value. Here is the code, what am i doing wrong?:
$(".insertCandidate").live("click", (function(e) {
var ids = this.id.toString().split("|");
...
I want to append item to sortable list by script. Users can drag item to list directly, and can check some checkboxes and press "Send to list" button. First approach works, second is not.
The problem is if I pass $(ui.draggable) to function, it works. But if i point to draggable element by jQuery chain ($(this).parent().parent().find('...
Hi all
I'm developing a web site using drupal cms.
I have installed a module called slider module which is used to slide a page with
sliding effect, it uses jquery.
But it doesn't work in internet explorer 6, it doesn't display anything and no sliding effect.
Does anyone know what the problem might be?
Thanks
...
Thanks for taking the time to read this.
I have an unknown number of (dynamically inserted) input elements in a form, to each of which I want to attach the datepicker widget included in jQuery UI.
All of the input elements that I want to attach the datepicker to have a class of "date-pick". Obviously because we have more than one match...
I have a page where I need to create a large amount of HTML that's not already present in the page.
Using jQuery I've been building the page with JS piece by piece, adding divs here and there, etc, until I get my layout.
Right now I'm thinking rather than do all that in JS, I can create the layout in a separate HTML file and then load ...
By default shows a minimized view inside a div,
when user click on the div,the form pop up for user to edit.
How to implement this?
Or is there a ready plugin to achieve this with jQuery?
...
Given: I load a queue of messages at page load.
With jGrowl, how can I display each message, one message at a time, in a drip-like fashion?
...
If I have a table which has selectable cells
$("#selectTable").selectable({ filter: ">*>tr>td"});
and one of the cells contains a draggable div
$(".dragMe").draggable({});
HTML like so:
<table id="selectTable">
<tr>
<td>
1
</td>
<td>
2
</td>
<td>
3
</td>
...
Does $.get() work if I'm working with ASP.NET MVC?
If so, would someone please give me an example? I have written an aspx page that I wish to call using $.get(), in which I intend to call some function and send a response back to the page.
If not, then would someone please point out an alternative?
...
Hi there,
I've currently got your basic, run-of-the-mill menu tree as follows:
<ul id="nav">
<li>
<a href="#">home</a>
<div class="controls">Some controls go here</div>
<ul>
<li>
<a href="#">item 1</a>
<div class="controls">Some controls go here</div>
</li>
<li>
<a href="#">item 2</a>
<div class="controls">Some co...
If i have a lot of functions on startup do they all have to be under one single:
$(document).ready(function() {
or can i have multiple:
$(document).ready(function() {
statements?
...
i am trying to replicate "DEMO 3" in this page:
http://www.mudaimemo.com/p/simpledialog/
it works great except that i am filling up the checkbox list dynamically and sometimes i have more checkboxes than fit on the page. is there anyway to make this scrollable so there is a max size as right now it just goes off the screen.
EDIT:
whe...
I am working with an ASP.NET MVC application.
There is a requirement that a user be able to select an item from a ListBox that could contain over 30,000 entries.
Is there a dynamic way to populate the contents of this ListBox using an Ajax call - that would perform well?
Would I be better off just populating the ListBox control on th...