Hello,
I am trying to use the title element of an anchor to determine which block element the target gets loaded into via ajax, currently it looks like this:
$(document).ready(function() {
$('#content').load('overview.php'); //by default initally load text from overview.php
$('body').delegate('a.ajax', 'click', function(e) { //...
Hi im trying to figure out how to hide and show content using multiple links. Ex.
<a href="#">Content 1</a>
<a href="#">Content 2</a>
<a href="#">Content 3</a>
<div class="show">content #1</div>
<div class="hidden">content #2</div>
<div class="hidden">content #3</div>
So when someone clicks Content #2, it shows content #2 and hides c...
So I've got a plugin I've been working on that takes a select box and then hides it and makes a div with anchor links in it. (The dropdown part and such is working just fine).
When I create the anchor elements, where should I store what option value they represent? When they are clicked, I need to be able to put the data back into the s...
Hi, all!
I use jQTouch (and its built-in animations) in developing iPhone version of a website. So, I have a static menu:
<ul class="rounded">
<li class="arrow"><a href="#item1" class="fade">Item 1</a></li>
<li class="arrow"><a href="#item2" class="fade">Item 2</a></li>
<li class="arrow"><a href="#item3" class="fade">Item 3</a><...
Hi all
I could move an object using jquery ui draggable, but I only want to move the object in x axis, now it moves on both x and y axis
Thank you
...
I am facing a really weird problem. I am using swfupload to upload multiple images to the imageshack server. I am also storing the returned URLs in the database. How do i show the URL returned from imageshack to the user as soon as i receive it? Is there any way to make swfupload return the URL once upload finishes? Here is the code that...
I have a script that notifies the console log whenever a given div is in the browser window, it is not pretty, but here it is:
$(window).bind('scroll', function(){
var $canvas = $('div#example');
var pos = $canvas.offset();
var total = pos.top + $($canvas).height();
var wndtop = $(this).scrollTop();
if(wndtop <= pos...
i have added html elements at run time using append
Code:
function addFormField() {
$("#inputss").append("<strong>asif</strong>"); }
but how can i add a select element at run time that looks like this..
PHP Code:
<select name="pre_req" id="pre_req" class="inputs"
value=<? if($this->uri->segment(2)=='update') echo $resu...
Dear all,
i have a scence:
when click into Link in my page
call webservices through jquery to get database
cooked result and insert into html and insert into using jquery
in cooked result i insert "" using thickbox to keep a parent page.
Result when i click html just generated, they just opened in a new window not get result like n...
How do you replace an attribute within a specific tag in a known class/id?
example, replace the src in img with a different file:
<div class="apple" id="poisoned">
<img border="0" width="25" height="25" src="default.png"></div>
But there are also other elements with the same id...
<div class="pear" id="poisoned"><img border="0" widt...
Hi,
i am working in php. I have written code for displaying combo box like this :
<select name="country" id="idCountry" class="clsCountry" >
<?php foreach($objCountries as $objCountry):?>
<option value="<?php echo $objCountry->getId()?>" ><?php echo $objCountry->getName()?> </option>
<?php endforeach;?>
</select></td>
For chang...
I want to be able to capture the current url and/or the url of all open tabs.
Can I do this in JavaScript or JQuery or am I going to need a plugin in FireFox/Chrome
...
How can we hide the column of the table by using jquery
< table >
< tr >
< td id="td_1" >name</ td >
< td id="td_2" >title</ td >
< td id="td_3" >desc</ td >
</ tr >
< tr >
< td id="td_1" >Dave</ td >
< td id="td_2" >WEB DEV</ td >
< td id="td_3" >Blah Blah</ td >
< /tr >
< tr >
< td id="td_1" >Nick< /td >...
I have filled data enclosed in a SPAN tag and BR tag for line break, in a DIV control. From the DIV, I wanted to remove a patricular text, ie removing the whole SPAN and BR associated with the text too using jquery or javascript. I tried .remove() in jquery. It seems not working. I dont know what is the correct way.
The script I used f...
Hi All,
I wanted to know how to send e-mail using javascript.
I dont want to use long functions with tag n all other stuff. Interested in only one/two liner statement which will allow me to send mail.
I have used something like that earlier :
function sendmail(_frm)
{
var eml="[email protected]";
var bod="&body="+_frm.selOne.value+...
I couldn't find this anywhere, partly because it's keywords are pretty common. Can somebody help me with this pretty simple question?
$('.pause_button').text('<img src="../imgs/icons/control_pause_blue.png" alt="Resume" /> Resume');
I want it to print this as html and not convert the brackets and apostrophes? Thanks!
...
Hi,
I am trying to use jquery validate plugin on my 5 questions quiz form. But I have issue with how to display the validated error message for require field.
My form is something like this:
<form id="quiz">
<table width="100%">
<tbody>
<tr id="qntr">
<td id="qntd">My question 1</td>
<!-- if field is empty, validate error mess...
Hi,
following code:
// also tried function getDeletedDates()
var getDeletedDates = function()
{
var s = new Array();
$(".deleted").each(function(i, e) {
s.push($(e).attr("data-day"));
});
};
$(function()
{
$("#delete_send").click(function() {
alert("drin");
$.ajax({
...
Hi Guys,
I am stuck with a problem of formatting jQuery UI Calendar. The format for the calendar is based on the user preference. If the user selects the Date format from the first select box, then the UI calendar format should be based on that... Please share ideas on how to achieve this.. thanks in advance..
jQuery Code
jQuery(functi...
Hi All,
I'm working on one web application, I dont have through idea about how to get users information like Session's data, cookies , and others..
I want to know :
Is there any way ? and how ? to get above information and client side information using javascript/jquery.
What are others client side data can i access using javascript/...