This is my script to get color tag ! Which works in Firefox but in IE shows error.
<code>
document.documentElement.className += 'js_active';
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(".color_tag_cloud a").each(function(){
var links = jQuery(this).attr("href");
jQuery(this).removeAttr("title");
jQuery(th...
How to hide adsense iframe/div when no ads for this box are available?
...
I want to set "div" alignment to center using javascript. The reason using javascript is not working of "margin:auto" in IE.
I have coded :
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>
All Time Set Window
</title>
<script language="JavaScript" type="text/javascript">
$(document).ready...
How to pass a php json encoded variable to a jquery function using codeigniter? My code
$data['customerlist'] = $this->customerlist->customerchart();
//print_r($data['customerdata']);
$data['encoded_data'] = json_encode($data);
//print_r($data['encoded_data']);
if(empty($data['encoded_data']))
{
$data['comment...
I use jquerys cookie plugin, and I set a cookie on page 1 and when I come to page 2 the cookie is null. The pages are iframed and the javascript is in external files. What can the issue be? Any suggestions?
...
Hi Everyone,
I need a code which creates me the table row based on the selection of the dropdown lists.For example if i select 3 then i need 3 rows to be create.I am able to create the rows dynamically but on the change of the ddl value i am not able to delete the previous rows which were getting created.How can i achieve that using jqu...
how do i get the child divs and put it in a array?
<div id="parent">
<div id="child1"></div>
<div id="child2"></div>
</div>
var array = $('#parent > div').... (im stuck).
thanks!
...
function json (url){
$.getJSON(url, function(data) {
return data;
})
}
this function don't see "data"
function MakeAlert(){
data = json('action.php');
window.alert(data.name);
}
this work:
function json (url){
$.getJSON(url, function(data) {
window.alert(data.nam...
Hi,
I have a list of US regions set up as checkboxes. When a user submits the form, I need an array of associated states. This array is used for comparing to another array in my SQL tables.
Using jQuery or javascript, what's the best way to go about this?
I've got the general idea I believe:
//populate region to state arr...
I have started to convert a code on my site to jquery from mootols I would like to include jQuery instead of mootools and then write some functions I'm using in mootools to jQuery so I can use the exact same code. Some of the code I'm using I already converted is for example:
jQuery.fn.addEvent = jQuery.fn.bind;
However I'm having...
Hi There,
I have some jquery that loops manipulates a bunch of html. Part of this process involves taking the html content of a div and copying it elsewhere. The problem is that jQuery seems to remove the img tag from the html during the copying process.
The img tag looks as follows:
<img src='/images/mouse/mouse_three.gif' alt='The r...
I try to make a common solution for the following task: onclick event listener for element
<a href="#">Some text</a>
must return false. It can stop page scrolling after click.
$("a[href='#']").bind("click", function () { return false; });
It can stop scrolling but "return false" stop bubbling too! So, if I have the following cod...
Hi guys
here is my problem.
I'm using MVC and in a lot of Index Views i have a 'Delete' button/logo with a URL. So I wanted to make this delete function work with jQuery and AJAX.
my button:
<a class="delbtn" href='<%= Url.Action("Delete", new {id=item.Vrst_ID}) %>'>
<img src="<%= Url.Content("~/img/cancel.pn...
$.post('testeUpdate.php', 'autocomplete',
function(dadosResposta) {
$('#ns-nome').val(dadosResposta.nsName);
$('#ns-endereco').val(dadosResposta.nsAddress);
},
"json");
I'm trying to understand this. So, and having the jquery $.post reference link near me:
1) A post request is send to teste...
I have a small javascript that changes the title of a input-field to it's value and some other stuff:
function autoFill(id){
if(jQuery(id).val()==""){
jQuery(id).val(jQuery(id).attr("title"))
.addClass("help");
};
jQuery(id).focus(function(){
if(jQuery(this).val()==jQuer...
I have a web method in one of my aspx pages:
[WebMethod]
public static string AddDebt(int userId, int type, string description, float amount)
And in the aspx page I have the JQuery
$(".addDebt").click(function (e) {
e.preventDefault();
var userId = $("[id$='txtUserId']").val();
var type = $("[id$='...
Ex:
<div id="h" style="background-image:url('images//line.jpg'); background-repeat: repeat-x; width:300px; height:25px; padding-left:10px; color:white;">Frame</div>
Now, I want to get the value of width from style using jQuery. What should be jQuery.
...
<label><input type="radio" name="group1" selected="selected" /> one </label>
<label><input type="radio" name="group1" /> two </label>
<fieldset id="one"> one </fieldset>
<fieldset id="two"> two </fieldset>
I'd like to show one fieldset at a time based on the radio selected. I know how to do with <a>s but radios seem difficult.
Thank...
Hey Guys,
Having a bit of an issue please see the following code:
window.onload = function () {
var imgHeight = $("#profile_img").height();
var infoPanels = imgHeight - 6;
//include borders and margin etc..
var infoPanelsHeight = infoPanels / 4;
$('.resize').css("height",infoPanelsHeight + "px");
$('.resize2'...
Hello, I'm loading a file into a div with load() function, but after I load the data - the styles for it doesn't want to work.
For example:
index.html:
$("a ").click(
function(e)
{
e.preventDefault();
$("#Display").load('file.html');
$("#Display").show();
});
file.html:
<h1 id="title">Item...