I am pretty new to jQuery.
How do I pass parameters to a function?
I found some jQueryUI demos and I got it working except "view" link.
I have a problem with passing parameters to and show them in modal popup windows.
I have "Create New User" button and "View" link on the page. Clicking "Create New User" does pass the parameters and s...
HTML:
<ul class="dropdown">
<li><a href="#">Item 1</a></li>
<li>
<a href="#">Item 2</a>
<div class="submenu">something</div>
</li>
</ul>
jQuery:
$j("ul.dropdown li").hover(function () {
$j(this).addClass("hover");
$j('div.submenu', this).css('visibility', 'visible');
}, function () ...
Hey,
I've got problems with the jQuery scrollTo plugin.
I've got 2 DIVs (nav2 and content) and I'm filling them via ajax calls:
var myJs = { ...
getWithAjax : function( targetFile, targetDivId, anchorId ) {
// get is jquery function and wraps ajax call
$.get(targetFile, function(data) {
$('#'+targetDivId).html( data );...
Does anyone have any ideas about how I could go about randomising an list each time the page is refreshed?
A jQuery solution would be perfect as I'm already using it.
Any advice appreciated!
...
The code below is (hopefully) a minimized testcase of my original problem. I'm trying to set up a system where you drag list items from the left menu (draggable items) and then drop'em to the box on the right hand side. Once they're dropped, you should be able to click the "draggable item" text and expand their fieldsets.
The problem is...
Hi Guys,
I'm new to Jquery. I have a project that has checkboxes and if their status change, then I update some sql table.
But i decided to start with the simple things first to learn how this works...
So, I want to pass to a Jquery function, a php variable if a checkbox status changes.
I have this code:
<?php ?>
<HTML>
<HEAD>
<...
I am trying to use the focusout(http://api.jquery.com/focusout/) function in jQuery, to perform a function after the user focus away from an input form field, but it's not working.
Here is my code:
$("#employee_id").focusout(function(){
var employeeId = $("#employee_id").val();
if(employeeId == '') {
$("#employee_id").after('<d...
I am having a very specific problem in JQuery
The code below is used to Show/Hide a div. The trigger to show/hide the div will have the same ID as the div, and have classes (as selectors) showTrigger/hideTrigger respectively.
wireActionPanelv3 = function(panel, fnDoThisOnShow, fnDoThisOnHide) {
var id = $(panel).attr("id");
var showTr...
I use this script to equalize heights of elements:
(function ($) {
$.fn.autoheight = function () {
var height = 0,
reset = $.browser.msie ? "1%" : "auto";
return this.css("height", reset).each(function () {
height = Math.max(height, this.offsetHeight);
}).css("height", height).each(fun...
Hello all i'm turning objects "on (adding the class .active) and off" on a html page with html objects, not forms. And on every click i want it to create an array of the items with the class .active but i can't seem to get any results?!
is this in the right direction?
var data = $('li.tagToggle.active').serializeArray();
// li id forma...
I have a problem with populating an autocomplete list based on a previous input.
Basically, I have about 40 or so different arrays containing car models and I want to populate the autocomplete list based on the previous input. What I want to do is:
Get the value of the previous input (the name of this is the same name as one of the a...
I want to display date like this in my website "Wednesday, March 03, 2010 05:44:15 PM".
If I use JavaScript it will take lengthy code. Is there any other way to do this?
...
What are other ways to embed Google maps?
...
...or more specifically, how are they able to create animations via javascript, which is synchronous, without holding up the next javascript statement.
It's just a curiosity. Are they using a chain of setTimeout()? If so, are they set early, each one with a slightly longer duration than the previous, and running parallel? Or are they be...
I want a div element, in a bottom of window. like a div in bottom page of old facebook.com. or like a chat div of initial facebook.com
...
Hi,
I have the following HTML code based on a tab menu format, i.e:
<div id="listnav">
<ul id="nav">
<li id="home"><a href="#" id="current">Home</a></li>
<li id="features"><a href="#">Features</a></li>
<li id="whysp"><a href="#">Why sP</a></li>
<li id="screenshots"><a href="#">Screen Shots</a></li>
<li id="f...
Hello All,
Here is jquery code which hides my table cells with the ID of .style2:
$('#myRadioButtonList').change(function() {
if ($(this).attr('checked') == true && $(this).val() == "HB") {
$('.style2').hide("slow");
};
});
and here is my radiobuttonlist
<asp:RadioButtonList ID="myRadioButtonList" runat="se...
Hello there,
I am currently developing an opensocial gadget and got some troubles with creating an activity notice.
After submitting a form I want a new activity to show up for my friends/contacts using this function of mine:
function create_activity() {
console.log("invoke create activity");
var data = {};
data[opensocial.Activ...
I have a previous html code.
<table width="600px" cellspacing="0" border="1" id="mainTable">
<tr>
<th>
Name
</th>
<th>
full Name
</th>
<th>
Type
</th>
...
Hi, I asked a related question previously, but the question I need answering now seems to have gone on a bit of a specific tangent so I thought it would be better to make a new question.
I am trying to prevent form submission until all ajax calls on a page have returned successfully.
I have a simple test for this (add 1 to a counter wh...