jquery

How to wrap very long text in jgrowl

How do I wrap very long text in jGrowl? Right now, if the text is long it just tosses out of the page. Thanks. ...

Execute function while mouse is at certain position

I'm trying to do something like this: var mouseY = //mouse y-position relative tot some element while (mouseY > 0 && mouseY < 200){ //scroll element -5px } I want to scroll a certain element up as long as the mouse is within a certain area of an element. Getting the mouse position and scrolling is not the problem (using scrollTo...

jQuery DatePicker: Get Selected Date

I need to be able to grab the selected date from the datepicker and populate another textbox with the selected value. I am currently using the onClose function like this: $('#defaultDate').datepicker({ onClose:function(theDate) { $('#txtEntry1').text = theDate } }); ...

How to make list of all input field in a form with a $() function in jquery?

Hi Friends! My HTML form is something like as follows <form id="form1" name="form1" method="post" action=""> number: <input name="formnum" type="text" id="input_1" tabindex="1" size="30" maxlength="30" /> Title: <select name="title" id="input_2" tabindex="2" > <option selected="selected" value=""></option> <option value="Mr." id=...

Is it appropriate to dispense with <form> tags when building an ajax application?

I'm working on an ajax application that makes extensive use of jQuery. I'm not worried about whether or not the application degrades gracefully. So far I have been using Malsup's excellent jQuery form plugin to create forms that submit ajax requests. (For example, to submit updated record information.) However I am considering dispen...

Trigger Jquery autocomplete via scripted event on 1.2.6

I'm attempting to trigger Jquery autocomplete from outside the field. I'm running an on screen Jquery keyboard, so the normal keyup keydown events are not fired. I can not use Jquery.Event or trigger() because I'm stuck with Jquery 1.2.6. I am aware there are other onscreen keyboards out there, but all the other ones I've tested have ...

Adding <a> tag links to your Twitter XML feed.

Using a simple PHP call and Jquery script I'm displaying my twitter feed on my site, it all works fine but I'd like the links on my tweets to be in tags like on twitter.com. example XML: <text>There are over 20,000 design based businesses in London alone - http://icanhaz.com/designbusinesses&lt;/text&gt; I'd like to get <a href="......

jquery toggle help

I trying to use the toggle function, to change the background and href of a link, so far I have this code, $('a.loveIt').toggle( function() { var url = $(this).attr('href'); $.ajax({ url:url, type:"POST", success:function(){ //alert("hello"); $...

How to add tooltip by matching the IDs in HTML using Jquery

Hi Guys, I am using HTML and Jquery I have got below issue, I have an below HTML code <table style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid" cellspacing="1" cellpadding="1" width="100%" border="1"> <tbody> <tr> <td style="border-top-style: sol...

Modifying the 'className' property is extremely slow in IE7

On my website, I dynamically modify the javascript 'className' property of a DIV. However this is an extrememly expensive operation, as the DIV contains a lot of child nodes. Sometimes it takes up to 1.5secs. Is there a way of speeding up this operation? Like, hiding the content, performing the operation, then showing the content again?...

Symfony: How to redirect to a new page in an AJAX call?

Hi, I've got jquery sending an AJAX request that executes some checks and then should EITHER redirect to another page or return data. Everything works fine except I'm unable to force the redirect in my actions file. I've tried: $this->redirect('@new_page'); // DOESN'T WORK And... $this->context->getController()->redirect('@new_page'...

Jquery SlideUp/Down Not Smooth

http://joe-riggs.com/test/test_acc.html First click 'Step 1' Then click 'Step 2' Before the div slides up, it pushes down for second (look at the bottom of the div). This happens on all of the divs. What's causing this? Not sure if it's related but the number images are mangled in Chrome - the other major browsers seem to be handling...

JQuery DatePicker

Hi I am creating one web application. here I am facing one issue with jquery . Actually in my concept when user clicks on the Plus button one new row will be added. When user clicks on the minus button that specific row will be deleted. Row is having drop down lists and text boxes in it. Depending upon user selection the will be created...

Jquery Datepicker trigger after changing month (after month renders)

I want to highlight some days in the current month. I can do this on the first month, but not on a new month after "next month" or "prev month" is clicked. I tried using onChangeMonthYear event but this executes before the new (or prev) month renders. any ideas? thanks! ...

Doing a .post on multiple objects in Jquery on ready

Right now, what i'm trying to do is display some lists on a page and pull out that information from the server using Jquery. The code looks like: <div class="list" name="category1" /> <div class="list" name="category2" /> <div class="list" name="category3" /> .... $(".list").ready(function(){ $.post("/getData", "{name=category#}" ...

jQuery :first vs. .first()

The .first() method was added in jQuery 1.4. The :first selector has been around since 1.0. From the docs: :first The :first pseudo-class is equivalent to :eq(0). It could also be written as :lt(1). While this matches only a single element, :first-child can match more than one: One for each parent. .first() Given a j...

jquery iframe problem...

I'm having problems with jquery after a page gets loaded via an iframe. Here's how it works. Mainpage.php has an iframe within it that I use to upload photos/files. On Mainpage.php there is a div that I use to display the photos/files. The div gets populated by an ajax call that retrieves the html and places it inside the div. Ever...

IE6 Memory Leak on Refresh?

Hello all, I reload a page every few seconds to get an update from the server, this page can be open and this can happen forever - I am guessing, espcially since this browser is on a remote server which isn't turned off. I do this: setTimeout(function () { location.href = location.href; // forces a reload from the server }...

Jquery get value within child div

I need to grab the text value of a child div. <div id='first'> <div id='first_child'>A</div> <div id='second_child'>B</div> <div id='third_child'>C</div> </div> I am trying to grab the value B. I am currently trying this but it is not working, var text_val = $('#first').next('#second_child').val(); ...

Applying a class to the :first-child once only when creating a list dynamically with PHP?

Ok, so I'm loading a list of images by directory using PHP: <?php # fetch image details $images = getImages("marc/img/livingrooms/"); # display on page foreach($images as $img) { echo "<li><img src=\"{$img['file']}\" title=\"\" alt=\"\"></li>\n"; } ?> Then I'm using the Galleria JQuery plugin to style thos...