Hi, i have the following code:
function getArticleContent() {
var toPromote = 'example';
var toReplace = '<a href="/tags/'+toPromote+'">'+toPromote+'</a>';
var content = $(".a-entry").text();
if (content.search(toPromote) > -1)
{
$('.a-entry').html($('.a-entry').html().replace(new RegExp(toPromo...
How to detect IE7 with jQuery possibly using jQuery.browser?
...
Hello all,
I make use of class selectors in JQuery and this works fine but in IE6 this fails as it does not apply the width I would like.
$('.ui-state-default .ui-jqgrid-hdiv').css('width', width);
If I try it one class it works?? But I need to apply that width to a div that has both those classes.
Thanks all for any help.
Upda...
I have the following code which processes a click from a tab and loads contents via ajax:
$(document).ready(function()
{
$("#tab1").click(function()
{
loadTab($(this).attr("href") + "?ajax=1");
return false; // cancel the event
});
$("#tab2").click(function()
{
loadTab($(this).attr("href") + ...
hey
i have a section in my website that needs to be toggled by clicking on the title .
now i wrote this code to toggle when clicking on title
$(document).ready(function(){
$(".toggle_container").hide();
$("h4.trigger").click(function(){
$(this).toggleClass("active").next().slideToggle("slow");
});
});
html part :
<h4 class="tri...
Hello,
I have the following code to create two buttons (one on the left one on the right) for each texbox on the page. Idea is to make an increment/decrement textbox. Code works fine with one textbox but with 2 or more every button increment/decrements all textboxes.
Any idea how to create buttons on the fly and attach them to a textbox...
i have this structure of html table:
<table id="test">
<thead>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</thead>
<tbody>
<tr>
<td><a href="javascript:{}" onclick="addPiece(1)">add</a></td>
</tr>
<tr>
<td></td>
</tr>
...
How to develop confirmation dialog with yes no button using jquery or any other method ?
I need that confirmation when I click on submit button.
...
Hello, I have a structure like this:
<ul id="mycustomid">
<li><a>Item A</a>
<ul class="children">
<li><a>Child1 of A</a>
<ul class="children">
<li><a>Grandchild of A</a>
<ul class="children">
<li><a>Grand Grand child of A</a></li>
...
I have a set of about 40 records in a list which works inside a table with pagination, 10 records per page and sorting enabled on all the columns. My problem is, pagination doesn't appear to work with the sortForce option. When implementing it, the page will "work" (as in load) on the first load, and when clicking on one of the columns...
how to open html page using j-query light box .
...
I hace been looking around on how to make a swipe action with javascript so that it loads $next (the next page). Any ideas? Thanks.
...
Does $('#idOfLememt').outerHeight(); yield same result for all browsers? Any thing different for IE7?
...
Hello,
is there any way I can monitor the entire page (using jQuery 1.3.2) and add a tooltip plugin function to newly created links?
On document.load(), I add a tooltip like this:
$('a').tooltip();
How can I do the same for elements which are added by AJAX? Something using live() perhaps?
Thank you!
...
Hi,
i am still playing around with jquery and what i want is to addClass active and opposite to the href item
inside li. Any thoughts?
$(document).ready(function() {
//Default Action
$(".tab").hide();
$(".menu li:first").addClass("active").show();
$(".tab:first").show();
//On ...
Hi,
$(function() {
$('#IBE1_IBE_NurFlug1_ddl_Abflughafen > option[value*="TR"]').attr("style", "display: none;");
does not hide options in a select. Also .hide does not work. What's wrong here? In Firefox it's ok.
Thx a lot
...
I'm writing a simple example to see how an iphone reacts to Http and Https... but weirdly, I can't get it working as the ajax call doesn't do anything. It works well on everyother browser, including safari, but not on Ipod Touch.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">...
I have a Colorbox (lightbox) loading a specific controller/view. Is there any way for me to close the colorbox from within the controller?
...
I will be using some jQuery below this chunk of code (which I may rewrite as jQuery). jQuery is loaded. But I don't understand why, when I step through this code in the debugger, the debugger jumps into jQuery on the line indicated, and I am get the error that "UL.appendChild" is not a function.
var Dialog = document.createElement('div...
$(document).ready(SetupButtonClicks());
function SetupButtonClicks() {
$('#btnJavaPHP').click(DoPHPStuff());
}
function DoPHPStuff() {
//stuff
}
I have this code in my javascript file, when I debug it I see it call SetupButtonClicks() like it should but after that is done it calls DoPHPStuff(). DoPHPStuff() should only be cal...