I have been looking at
http://jqueryui.com/demos/sortable/#default
most of the day. I would imaging updating a database with the new values is what most would want. As I am using ASP.NET my idea is to use the serialize to send the new values to a page that updates the database. Here is the script:
<script type="text/javascript">
j...
Trying to implement the excellent jQuery bidirectional infite scroll as explained here:
http://www.bennadel.com/blog/1803-Creating-A-Bidirectional-Infinite-Scroll-Page-With-jQuery-And-ColdFusion.htm
For the server-side, which returns JSON, the example is in ColdFusion. Trying to implement it in PHP.
I need to find out what the format ...
I have textbox that I want to run some jquery when the textbox loses focus, so after the user clicks out of the text box.
I have tried to do this
$("#textbox").focusout(function () {
alert("hello");
});
but I get an error saying Object doesn't support this property or method.
How can I do this then?
...
I want to only allow users to select Fridays. Basically they are choosing the start date for a schedule, and the schedules always must start on a Friday.
I am not really concerned with whether the other days are displayed or not as long as if they are displayed, then they are disabled.
...
I'm trying to get the current directory of the file in Javascript so I can use that to trigger a different jquery function for each section of my site.
if (current_directory) = "example" {
var activeicon = ".icon_one span";
};
elseif (current_directory) = "example2" {
var activeicon = ".icon_two span";
};
else {
var activeicon = ".icon_...
Hi,
I'm writing a website for iPhone and I use jQuery for image resizing and to scroll to the top.
Both are working in the Firefox on Mac but not on the iPhone. I don't know why because it's the same document and jQuery should be cross plattform...
Any guesses?
Best regards, Sebastian
EDIT:
This is my Code:
var width_max = $('#sti...
I am working with dynamic tabs in jQuery. When the user opens a new tab, the content is loaded via ajax:
function addTab(tabId) {
$("#tabs").tabs('add', tabId, tabId);
$(tabId).load("...");
}
I want to display a loading icon while the content is being loaded. So I am setting the tab panel content in the add property of the tab...
hi have a php template that displays an html page. in it there is a call to a js file that initializes some jquery plugins.
on the template i have this code:
(function($) {
$(document).ready(function(){
var adlow = <?php echo $jSeblod->disparities_tick_lower->value ?>;
var adhigh = <?php echo $jSeblod->disparities_tick_up...
I need to be able to remove all DOM objects that have a class of .remove as long as ALL descendants have a class of either .remove or .removable. Ignoring whitespace. If a text node can be removed it must only contain whitespace (tabs, newlines, spaces).
The html objects with .remove and .removable can be any type of html entity that ca...
hey guys
im working on jquery script to show rollover , now i need to show every image alt text in a div box
this is my jquery code :
$(document).ready(function(){
$("ul.thumb li").hover(function() {
$(this).css({'z-index' : '10'});
$(this).
find('img').addClass("hover").stop()
.animate({
width: '17...
Hello, I have this:
<div id="mydiv"></div>
With:
#mydiv{ position:relative; }
When I execute:
$('#mydiv').css('top','500');
Is not working, I'm not getting errors at all.
Basically what I need to do is move (not animate) that DIV 500px up, is there any other way to do it?
...
Let's image that I have something like this:
<html>
...
<div>
<iframe src="test.html" hash="r4d5f7"></iframe>
<iframe src="test.html" hash="8f7x97"></iframe>
<iframe src="test.html" hash="gg4v5e"></iframe>
<iframe src="test.html" hash="e54f87"></iframe>
</div>
...
</html>
test.html is empty page...
I have the following html generated through my php code.
What I want to do is that when I select the checkbox in span "row" then the checkboxes for "main_row" span in which "row" is contained in,
should be cheked automatically.
Also when I deselect the "main_row" checkbox, then all the contained in "row: checkboxes should be desel...
I was wondering if anyone had an easy way to wire up javascript event handlers to events happening on the server-side. I have a long running process that includes a lot of steps, and would like the client to be continually updated with new information as the steps transition. Will this involve some sort of polling mechanism?
...
Have a tough one here!
I'm creating a blogger template, and the client wants varying colours applied to headings in the right column of the template.
The problem is, I have little control over the html generated as it is controlled by the blogger engine.
What I want to be able to do, is:
Select Nth instance of an h2 element with a cl...
Hi everybody,
I have this content from one input value:
var xml_url = $("input").val();
alert(xml_url);
Output:
<trans>
<result>
<item1>1</item1>
<item2>content</item2>
<item3>NA</item3>
<item4>0</item1>
</result>
</trans>
The structure is as a XML file. I want to get this data.
I have th...
I'm asked that a click anywhere in a div does a specific action (say collapse it) unless the click was on a link, a button, etc...
Basically, I'd like the reverse of event.preventDefault().
Is there a good and easy way to do this?
I'm looking for a generic solution here; I would like to not assume much about the content of the div.
M...
Hello,
I know you can make the slider go vertical, but is there a way to start it at the top and make it go to the bottom rather then the bottom and going to the top?
Regards,
...
Excuse my daftness, but I can not understand how ruby vars can be attained with jQuery. I made a button that by json POSTS to the server to make a credit_status = 0. But I would like that 0 to also auto-update on the page as well.
My View:
HQ $
= organization.total_credit
= link_to 'redeem', redeem_admin_organization_path(organization)...
So I designed / coded these drop down menus for this website. It works perfectly in Safari, Firefox, ie7, and ie8, but in Opera, it is extremely buggy. Check it out (in opera):
http://newenglandforestrally.com/
Is this an opera bug with how Opera handles jQuery (and therefore blame it on the browser and not worry about it), or should I...