If I have some HTML that looks like this:
<div id="text">
This is some text that is being written <span class="highlight">with
a highlighted section</span> and some text following it.
</div>
And I want to remove the "span" leaving the text node within, how would I go about doing that? I tried using jQuery to do the follow...
I have a dynamic list of items that will be used to POST information to the backend using AJAX.
<a href="...">Item 1</a>
<a href="...">Item 2</a>
<a href="...">.....</a>
<a href="...">Item n</a>
I've decided to include a css class and a hidden input on each item so that I can easily assign the handler (using the css class) and so that...
I have a page that has a panel with asp:charts. Below are some links when clicked on, the chart changes (it goes to the database, grabs the data, and displays the selected chart. What I would want to do is use coda-slider to slide between the charts. I am not sure how to do this since I am calling server-side methods.
...
Hi, i have this shouwbox script.
I would like to know how to limit the characters for each message like 70 characters.
And i would also like to know how to do so you have to wait 3 seconds between each message you post.
Here is my script.
Index.html
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-...
So I created a simple menu for a small project I have. When people mouse in and out of the menu on IE6 or IE7 the menu will drop down.. but it will go back up if you move the mouse slowly downwards.
Does anyone know how to prevent this behaviour.. it seems like it thinks its mousing out.. even though it hasnt yet..
the url: http://vas...
Hi guys,
I had more than one css applied to an input, one default and others to customize. I want to disable the css default but not the others. I tried to remove with:
$j('#teste').css("max-width", "");
and
$j('#teste').removeAttr("max-width");
Those ways, remove all css. How can I do this with jQuery?
...
Howdy,
I'm using the Cycle plugin for use in a news-rotator. This means I'm using Div's to populate the slides instead of images.
My ultimate goal is to make a pager where instead of the usual 1, 2, 3, 4, etc. - it instead returns the first H3 tag in the slide.
I know this probably a minor selection issue, but here's what I'm using s...
Hi Masters Of Web,
I have a bit complicated question. Complicated for me. First of all I want to say that I read almost everything here in forum about this, I tried some codes fond here and in web but nothing suits in my case. So:
I have got a site based on one single page (index.php). All content in it is called via show/hide divs with ...
I am attempting to use the hoverIntent plugin to delay some animation effects on progress bars. However, for some reason hoverIntent doesn't seem to be functioning at all.
I have the following in my page header (all paths have been verified):
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery....
If I navigate away from a page in the middle of an $.ajax() request it fires the error callback. I've tested in Safari and FF with both GET and POST requests.
It has been suggested that one could abort all AJAX requests on page unload but the error handler is actually called first so it doesn't seem possible nor practical.
This is pro...
So I now have the following jquery to hide or show a textbox based on specific values selected in a DropDownList. This works except that I need the first display of the popup to always be hidden. Since no index change was made in the drop down list, the following does not work for that. If I code it as visible="false", then it always ...
Hey there,
I must admit, that I'm pretty much newbie to jQuery, though I want to somehow make this work.
I have a igoogle style content with sortable widgets with this code
HTML
<div class="column">
<div class="box">
<div class="box-header">
Header Widget
</div>
<div class="box-content">
<p>
Content wi...
I am trying to convert the following code to work with jquery:
var req = new XMLHttpRequest();
req.open('GET', 'http://jsonip.appspot.com', true);
req.onreadystatechange = function (e) {
if (req.readyState === 4) {
if(req.status === 200) {
var ip = JSON.parse(req.responseText);
alert(ip.address);
...
Hi,
I'm loading pages asynchronously with the jQuery load function, like this:
tree.click(function() {
if ($(this).hasClass("file")) {
tree.removeClass("selected");
$(this).addClass("selected");
content.load("content/"+this.id+".html");
cont...
I'm looking for some advice on designing the above for a RoR application that basically has two sections:
1) Admin Form Builder 2) End User Form (that was created by the admin in step 1)
I've prototyped the JQuery form (end result) I want and it uses "progressive disclosure" (similar to Yehuda Katz's Bamboo example in the JQuery in Ac...
Okay, I just cannot figure this one out. After looking and re-looking at my code for what is probably hours now, I am still not any closer to finding out this strange behavior.
It has to do with the fading of the background and that it is leaving off about 12 of the images that are listed in the array.
The images that are being left o...
so all these time i had no problem with this script. all of sudden today, it began to behave strangely.
so i have a javascript page that loads inside iframe.
this is injected into a page loaded via proxy.
$(top.document).ready(), throws error saying Permission denied...
i was surprised so, i decided to try load a different page.
th...
I'll try to explain what i'm trying to get. I've a div with position:fixed (at the bottom of a page) into that div, there is some other divs. What i want is to show another div (with absolute position) aligned to the right with those divs... in other words, i wan't to know the left position of the divs...
...
Hey folks.
I don't know exactly the reason why it's happening, but in IE the jQuery funcition's behavior isn't working as expected to.
It starts animating and all of a sudden it stops in the middle of the animation.
I still coudn't figure out what is causing the animation to break.
you can see what's happening right here: http://www.glo...
Scriptaculous vs JQuery for rich client side effects.
What would you use and why?
...