Hello,
I use this script to enable tabs.
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div.theme-wrap", {
effect: 'fade',
//fadeInSpeed: 200,
fadeOutSpeed: 400,
rotate: true
}).slideshow({autoplay: true, interval: 5000});
});
The proble...
What are Drupal behaviours at all?
What type of service layer it offers
to module developers?
What type of relation it maps to
jQuery.ready function?
...
I'm using wordpress as cms and mystique theme for my site and use it's tab feature in my code but this tab code is not able to get active tab by url (ex: http://www.animcentral.com/anime/death-note#section-forums it should activate first tab from left but it doesn't)
I wanna Extend this javascript to be able to active selected tab by url...
var $name = ('div#amuchlongername');
$('#wrapper').prepend('<div id="$name"></div>');
Obviously I know this code is wrong lol, but I'm fairly knew to jQuery and I can't seem to find anything about this.
How would one go about achieving a variable name inside a div id?
...
I am using slide out panel that on default is set to display:none. If the trigger is clicked it will toggle the class to "active". That makes the trigger show a red x (for close) that comes from a sprite position.
$(document).ready(function(){
$(".info-panel-left-trigger").click(function(){
$("#info-panel-left").toggle(400);//switching...
I have a div that has content in it.
<section id="latest-news">
<p>Pellentesque habitant morbi
tristique senectus et netus
et malesuada fames ac turpis
egestas.</p>
</section>
But while the page is loading, I want a loading .gif to appear, wait about 5 seconds and the the text. With a fadeIn or slide down animation too. (The ...
Im taking the domain from the HTML of the page using jQuery:
domainUrl = $("p.domain").text();
for the purposes of testing:
<p class="domain">.vl3.co.uk</p>
Which is also the domain Im testing the script on.
This then give an alert containing the correct domain:
alert(domainUrl);
I want to the use that variable to set the domai...
I am looking around on the web but I am not finding anything useful. :(
I am having a problem that I don't understand. I am sure that I am doing something wrong, but I don't know well the syntax of jQuery to understand what is that I am not doing right.
I am using animations with JS and CSS 3, and I am having troubles with empty spaces...
I'm making a tiny script that adds a class of "external" to all external links, then when someone click an external link, it shows a div.question-wrapper that has a div.follow and a div.dontfollow in it, it also displays the url of the link you clicked in the div.question-wrapper. the only problem i'm having is copying the href attr of t...
Hello!
I've manage to get jqGrid 3.8 working in my project(Zend Framework) using json.While basic fetching of data works i failed to see why i can't see the buttons showed on the navigation panel. here is what i've done on client side:
<script type="text/javascript">
$(function(){
$("#roomgrid").jqGrid({
url:'/admin/admin-ro...
Two questions really...
Firstly, which is the better coding style when writing jQuery functions which take object params, should the function take a jQuery object or is it better to pass a standard JavaScript object and have the function itself do the wrapping? I guess I'm just asking if there is a standard here, since it might not alwa...
Hi All,
I am storing an xml file in the xml datatype in table of SQL Server. Now I want to fetch some fragments (using xquery) and then update the fragments with the modified fragments (using xquery). I need some suggestions.
I have the code to delete a node and it is as below but while deleting I need to insert the modified node at th...
I have a series of content and header divs to display some data. In addition each header has a checkbox.
<div id="content-1">
<div class="head"><input type="checkbox" name="check-1"/> Header</div>
<div class="content">Content</div>
</div>
<div id="content-2">...</div>
<div id="content-3">...</div>
I use to following jQuery to ...
I can't get the right sum of two values.I want to sum the cena1 and kolicina. (cena1+kolicina) and (cena1*kolicina)
My jquery code
<script type="text/javascript">
function izracunaj() {
var sum = 0;
$("#kolicina").each(function() {
var cena = $("#artikel").val().split("-");
var cena1 = cena[1]; // HERE I GET VALUE 0....
How to select a part of string?
My code (or example):
<div>some text</div>
$(function(){
$('div').each(function(){
$(this).text($(this).html().replace(/text/, '<span style="color: none">$1<\/span>'));
});
});
I tried this method, but in this case is selected all context too:
$(function(){
$('div:contains("text...
I’m currently using jQuery’s Multiple image uploader for my form in CI. This works superbly however I would like to insert the file names, etc in to the database - anybody any ideas how I can do this?
My controller
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|pdf|doc|bmp|png';
$config['max_size'] = ...
Hi, I'm searching how to clear the contents of a popup on close.
I basically have a page with contacts, of which the details can be shown by clicking on an icon in the list.
So the same popup can be reused several times if I click on an icon several times.
However, when I click a second time on the icon, the data from the previous use...
I need to dynamically update the contents for every few seconds, without reloading the page, so i thought to use jquery load() function, this loads the contents fine but not the js or jquery file from head tag.
Here is sample code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml...
if the mouse stop above a div I need call a specific function, but I need call it all time..
I've tried .mouseover() and .hover() but these work just when the mouse is moving
how keep call the function all time???
...
public ActionResult DoSomething(string[] arr, bool someBool, int someInt) { }
trying to call the above method from jQuery:
var test = [];
test.push('dog');
test.push('cat');
$container.load('MyController/DoSomething',
{ 'arr[]': test, 'someBool': true, 'someInt': 1 },
function(response, status, xhr) {
...