[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-14 Thread Nahaz
I can check that, but as I said before, it works perfectly fine on my local webserver, it's when the script is run on my webhost the issue occurs. The database seems to be very slow there at the moment. Ill check with firebug and post the results here. On May 14, 9:00 pm, James wrote: > Sorry,

[jQuery] Re: Better way to trim whitespace from input?

2009-05-14 Thread infoaddicted
ok, one more shorter try: it works! $(document).ready(function(){ $("#couponCode").blur(function(){ $("#couponCode").val($(this).val().toUpperCase().replace(/\s+ $/,'')); }); }); On May 13, 12:53 pm, jckos wrote: > Hi, > > I need to transform all characters entered in an input field to

[jQuery] Re: jquery cycle plugin - first cycle not in correct position unless you reload the site

2009-05-14 Thread flyfisherman
Hi Mike Hi Thomas Thanks for your help the issue is solved. One question to Mike: on the jqery site the newest version is 2.34, why did you not put your actual version 2.63 - the one that solved my problem - to the jquery site? Beside updating the cycle plugin I had to build an img class in my c

[jQuery] Re: A better way of writing this code?

2009-05-14 Thread RobG
On May 15, 11:35 am, Calvin wrote: >   Hi, > >   I was able to get this script to work and was wondering if there was > a better/proper/more efficient way of writing it. Here is the script: > >   $(document).ready(function() { >       $('li.a').hover(function() { >          $(this).addClass('mo

[jQuery] Re: Picking an element from a set

2009-05-14 Thread Steven Yang
when you do $().get() or $()[] you get the actual element back. so with your case, you can do $($("div.test")[2]).fadeOut() or $("div.test:eq(2)").fadeOut()

[jQuery] Closing jqModal from inside of content loaded with AJAX

2009-05-14 Thread wardenik
Hi, I have a standard page loaded with jqmodal box that is loading a form via ajax. Now I want to close that modal after submit from the inside of page that was loaded, depending on the form result. I've tried parent.$(".jqmAlert").jqmHide(); and many other versions but I always get "h is undefin

[jQuery] Re: Sortable accordion-like widget

2009-05-14 Thread Richard D. Worth
You'll need to add an extra level: section divs containing each related h3 and content div. Then you can call .sortable() the main div#accordion1 - Richard On Thu, May 14, 2009 at 9:38 PM, DanN wrote: > > Got this coded, its an accordion like tool. It functions just how I > need it, except id l

[jQuery] Re: Insert class into td in a nested div.

2009-05-14 Thread James
$("div.z td").addClass("hello"); Note that this would add the class to all the td's that resides within . On May 14, 1:15 pm, Adolfo wrote: > I have a series of td's that reside within a nested div. the has > no class value and I would like to inject a css class value. > > >       >          

[jQuery] Re: A better way of writing this code?

2009-05-14 Thread Calvin Stephens
Thanks James! On Thu, May 14, 2009 at 6:49 PM, James wrote: > > Slight typo near the end. > > $(document).ready(function() { >     $('li.a').hover( >          function() { $(this).addClass('move'); }, >          function() { $(this).removeClass('move'); } >     ); > )}; > > On May 14, 3:47 pm,

[jQuery] Re: Is there a way to get distinct elements based on criteria

2009-05-14 Thread James
You'll have to define what "unique" means. In the following example: div1 div2 Would you want your result to use the first div, or the second div, or both divs with content concatenated?? On May 14, 1:00 pm, Bazztrap wrote: > For instance > > > > > > >  $(div).filter("some condition")

[jQuery] Re: IE: select change triggers pop-up blocker

2009-05-14 Thread brian
On Thu, May 14, 2009 at 10:14 PM, brian wrote: > I have a wee bit of code that handles a select list change to load > some content via AJAX. In IE 7 & 8 (works a treat in 6!), clicking on > the select list triggers the pop-up blocker thingy. My code certainly > does not open a new window or anyth

[jQuery] IE: select change triggers pop-up blocker

2009-05-14 Thread brian
I have a wee bit of code that handles a select list change to load some content via AJAX. In IE 7 & 8 (works a treat in 6!), clicking on the select list triggers the pop-up blocker thingy. My code certainly does not open a new window or anything like that: $('#group_nav').change(function() {

[jQuery] Re: Dynamically setting tab index and .focus() problems

2009-05-14 Thread gearb0x
I've got the same problem with FF3, seems to work fine in IE7 Any luck? On May 10, 11:59 pm, Pixelastic wrote: > Hello, > > I'm opening a dialog box using the jQuery UI dialog methods, this box > will display a form, and I would like to autofocus the first element. > I'm also modifying tabindex

[jQuery] Is there a way to get distinct elements based on criteria

2009-05-14 Thread Bazztrap
For instance $(div).filter("some condition") will return me all unique divs result set ( ) much appreciated

[jQuery] Insert class into td in a nested div.

2009-05-14 Thread Adolfo
I have a series of td's that reside within a nested div. the has no class value and I would like to inject a css class value. x want a class in these tds how can I do this with jquery?

[jQuery] Re: IE caching AJAX requests?

2009-05-14 Thread brian
On Thu, May 14, 2009 at 9:50 PM, James wrote: > > You can set the 'cache' option to 'false' in the AJAX options. By > default it's 'true'. / sheepish Thanks, I hadn't noticed that. For good measure, I'm also setting headers from the server side, so threy're set the first time it loads. Sorry,

[jQuery] Re: IE caching AJAX requests?

2009-05-14 Thread James
You can set the 'cache' option to 'false' in the AJAX options. By default it's 'true'. On May 14, 3:46 pm, brian wrote: > It looks like IE is caching the response for some AJAX requests here. > The app I'm working on is a catalog of sorts. Clicking the link for a > category loads a set of "items

[jQuery] jqmodal bug on jqmHide

2009-05-14 Thread wardenik
If you try to do .jqmHide() on a modal that was not shown then an error pops up. Anyone had this problem and solved it maybe? Thanks

[jQuery] Re: A better way of writing this code?

2009-05-14 Thread James
Slight typo near the end. $(document).ready(function() { $('li.a').hover( function() { $(this).addClass('move'); }, function() { $(this).removeClass('move'); } ); )}; On May 14, 3:47 pm, James wrote: > $(document).ready(function() { >      $('li.a').hover( >      

[jQuery] Re: A better way of writing this code?

2009-05-14 Thread James
$(document).ready(function() { $('li.a').hover( function() { $(this).addClass('move'); }, function() { $(this).removeClass('move'); } )}; )}; On May 14, 3:35 pm, Calvin wrote: >   Hi, > >   I was able to get this script to work and was wondering if there was > a bet

[jQuery] IE caching AJAX requests?

2009-05-14 Thread brian
It looks like IE is caching the response for some AJAX requests here. The app I'm working on is a catalog of sorts. Clicking the link for a category loads a set of "items". Those, in turn, may be deleted from the admin view. The delete works fine (I checked the DB) but, when loading the same set o

[jQuery] Sortable accordion-like widget

2009-05-14 Thread DanN
Got this coded, its an accordion like tool. It functions just how I need it, except id love to make it sortable. Anyone help with the code update? jQuery : $(function() { $("#accordion1").addClass("ui-accordion ui-widget ui-helper-reset") .find("h3") .addC

[jQuery] A better way of writing this code?

2009-05-14 Thread Calvin
Hi, I was able to get this script to work and was wondering if there was a better/proper/more efficient way of writing it. Here is the script: $(document).ready(function() { $('li.a').hover(function() { $(this).addClass('move'); }); $('li.a').mouseLeave(function() {

[jQuery] Re: Browser differences in handling xml file structures?

2009-05-14 Thread Charlie
I'm using   $ajax xml successfully for a google map project. The xml being delivered seems to have unusual tag structure but $ajax still parses it using following: $.ajax({     type: 'GET',     url: 'somefile.xml',     dataType: 'xml',     error: function() {         // do something     },   

[jQuery] select category

2009-05-14 Thread Egipicio
hello someone know if you have any library or tutorial ... create a menu on the ... http://img4.imageshack.us/img4/1235/categoriak.jpg

[jQuery] Re: If statement in form validation

2009-05-14 Thread James
Something like: rules: { first: "required", last: "required", .. billing_first: { required: function() { return billing_address == 1; } }, billing_last: { required: function() { return billing_address == 1; } }, billing_first: {

[jQuery] Re: Better way to trim whitespace from input?

2009-05-14 Thread infoaddicted
FYI: The discussion group software put a premature line break at the end of line 4 of the code. On May 14, 7:35 pm, infoaddicted wrote: > How about this?  It's only called when the user leaves the field.  The > replace uses a regular expression, the part between the forward > slashes.  The \s me

[jQuery] Re: Better way to trim whitespace from input?

2009-05-14 Thread infoaddicted
How about this? It's only called when the user leaves the field. The replace uses a regular expression, the part between the forward slashes. The \s means "space", the + means one or more of the preceding, and the $ means match only at the end of the string. $(document).ready(function(){

[jQuery] Re: Get the Value of Custom Attribute from Parent

2009-05-14 Thread Matt M.
That works great. Thanks! On May 14, 3:01 pm, Bryan wrote: > Try this > > var ans = $("#carousel li a.active").parent().attr("carouselindex"); > > Cheers, > Bryan > > On May 14, 2:49 pm, "Matt M." wrote: > > > Hello, > > > I have been learning jQuery and have been loving it so far. But can't >

[jQuery] jCarousel by Jan Sorgalla Options

2009-05-14 Thread tfat
Hi, Hoping someone can assist: 1) I was wondering, is it's possible to use navigation buttons along the top of the Carousel, with a short description, that will allow the user to directly navigate to a panel within the carousel, using jCarouosel? Basically, if I want to do go directly to panel

[jQuery] Picking an element from a set

2009-05-14 Thread Buzzterrier
Sorry, I am sure this is a simple question but I cannot figure it out. I have : foo bar baz bif I have a selector: $("div.test")[2].fadeOut(); This gives a console error: Error: $("div.test")[2].fadeOut is not a function >From Jquery in Action I thought the wrapped set was an array that I co

[jQuery] Multiple Ranges in Slider

2009-05-14 Thread Pedram
Hi guys , could we have multiple ranges in the UI SLider , if anyone has a solution please let me know thanks !

[jQuery] Re: Fairly new to animation. Hold my hand please, hehe?

2009-05-14 Thread Ricardo
dude, you can't animate from inline to block. For any width/height animation to work correctly the element needs display:block from the start. On May 14, 10:08 am, ldexterldesign wrote: > Hey guys, > > Got a little script I've written. Would like to animate the appearance > of the #sidebar2 to i

[jQuery] Re: JQuery Treeview Expand selected node

2009-05-14 Thread PUTRA PRIMA
hmmh i have a good example from google ^__^ http://abeautifulsite.net/notebook/58 On Fri, May 15, 2009 at 3:23 AM, BugBurger wrote: > > I am using JQuery TreeView and have a question. my example tree look > like this > > +Animals > +Birds > +Humans > > I wats to expand a specific node. for examp

[jQuery] JQuery Treeview Expand selected node

2009-05-14 Thread BugBurger
I am using JQuery TreeView and have a question. my example tree look like this +Animals +Birds +Humans I wats to expand a specific node. for example Birds. how do i do that ?

[jQuery] Re: Get the Value of Custom Attribute from Parent

2009-05-14 Thread Bryan
Try this var ans = $("#carousel li a.active").parent().attr("carouselindex"); Cheers, Bryan On May 14, 2:49 pm, "Matt M." wrote: > Hello, > > I have been learning jQuery and have been loving it so far. But can't > figure out how to do the following... > > 1) Find the inside a that has an act

[jQuery] Re: Get the Value of Custom Attribute from Parent

2009-05-14 Thread Bryan
Try this... var answer = $("#carousel li a.active").parent().attr ("carouselindex"); Cheers, Bryan On May 14, 2:49 pm, "Matt M." wrote: > Hello, > > I have been learning jQuery and have been loving it so far. But can't > figure out how to do the following... > > 1) Find the inside a that has

[jQuery] Calling $(document).trigger() from iframe to parent frame

2009-05-14 Thread Bryan
Having a heck of a time trying to figure out how to do this. I've done some searching but have had very little luck. Any help would be much appreciated. i.e. calling this from an iframe: $(parent.document).trigger ('close.group'); to the parent document where there is a bind: $(document).bind

[jQuery] If statement in form validation

2009-05-14 Thread choffman
Hi There, I could use some help here. I need to place a condition statement (if) in this form validation script. For some reason, I just can't get it to work. Basically, when a user un-checks a particular box (billing_addr) additional form fields slide down, those fields need to be validated.

[jQuery] Get the Value of Custom Attribute from Parent

2009-05-14 Thread Matt M.
Hello, I have been learning jQuery and have been loving it so far. But can't figure out how to do the following... 1) Find the inside a that has an active class. 2) Grab the value from the parent and put it into a variable to be used elsewhere. Here is the example markup...

[jQuery] Re: Modify iframe with jquery

2009-05-14 Thread waseem sabjee
$("#iframeid").contents.find("#elementid").append('<\/div>); notice i use <\/div> instead of this is due to the Why JavaScript Handles strings so \/ will actually give you / sometimes you may need to use // instead On Thu, May 14, 2009 at 10:56 PM, ripple wrote: > Thanks, but it's not the cont

[jQuery] Re: Matching Columns with JQuery

2009-05-14 Thread MorningZ
1. No... the file could be named "foobar.js" for all that matters 2. It's hard to help get your script working without knowing what the issue actually is... "doesn't work" does not help someone help you On May 14, 12:13 pm, "mylessincl...@googlemail.com" wrote: > Hello, > > I came across JQ

[jQuery] JQGrid...Delete Button?

2009-05-14 Thread Rick Dwyer
Hello List. Playing around with jqgrid and the documentation describes the implementation of bSubmit and a bCancel button. However, how do I display a Submit, Cancel and a Delete button in the same window? So in the code below, I can change bSubmit to a value of Delete, but I lose my "

[jQuery] Re: Modify iframe with jquery

2009-05-14 Thread ripple
Thanks, but it's not the contents of the iframe that I'm looking for. It's altering the behavior(scrolling) of the iframe that i am trying to achieve.   --- On Thu, 5/14/09, waseem sabjee wrote: From: waseem sabjee Subject: [jQuery] Re: Modify iframe with jquery To: jquery-en@googlegroups.co

[jQuery] Re: Modify iframe with jquery

2009-05-14 Thread waseem sabjee
$("#iframeid").contents.find("#elementid"); $("#iframeid").contents.find("#elementid").text(); $("#iframeid").contents.find("#elementid").html(); I used this earlier today with some php where a wysiwyg editor had its html contents embedded in a Iframe and i hate to post the raw html to a database.

[jQuery] Modify iframe with jquery

2009-05-14 Thread ripple
I have an iframe in a page that scrolls on initial load, but after clicking a link and loading a different page I have to remove the scroll(scrolling=no). When the 2nd page loads I set the attr on the the iframe to scrolling=no. $('#iframe').attr('scrolling','no'); But, This does not seem to wo

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread bradrice
That was an epiphany. Now I understand. I thought the map was a filter. Thanks On May 14, 2:05 pm, "Josh Nathanson" wrote: > Well...I don't see anything in your code that would filter the JSON once it > comes back from the server. > > You are just dumping the response into the select menu.  Once

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread vmrao
OK. I was able to add the text as well as apply special style to it using the following code. $("a[href$='.doc']:not(a[href^='http'])").after($('').attr ('class','fileExtension').html(" (" + '.doc' + ") ")); $("a[href$='.docx']:not(a[href^='http'])").after($('').attr ('class','fileExtension').htm

[jQuery] Re: declare variable

2009-05-14 Thread Michael Geary
Actually, $thisCell is initialized with the *undefined* value, not the *null* value. var foo; // undefined var bar = null; // null alert( foo === bar ); // false alert( foo == bar ); // true, but only because of type conversion -Mike > From: Peter Warnock > > No. $thisCel

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-14 Thread James
Sorry, I mean "all HTTP header data". On May 14, 9:00 am, James wrote: > Have you tried using the Firebug add-on for Firefox to debug whether > the AJAX request was actually sent in the first place? > It's very helpful because it'll show you the exact URL that it > requests, the GET/POST data it

[jQuery] Re: .ajax GET not working correctly at webhost

2009-05-14 Thread James
Have you tried using the Firebug add-on for Firefox to debug whether the AJAX request was actually sent in the first place? It's very helpful because it'll show you the exact URL that it requests, the GET/POST data it sends, all HTTP data, and the response you receive. On May 13, 8:21 pm, Nahaz

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread vmrao
I think it is not clear. Here is my code. $("a[href$='.doc']").after(" (" + '.doc' + ") "); $("a[href$='.docx']").after(" (" + '.docx' + ") "); $("a[href$='.xls']").after(" (" + '.xls' + ") "); $("a[href$='.xlsx']").after(" (" + '.xlsx' + ") "); $("a[href$='.ppt']").after(" (" + '.ppt' + ") "); $

[jQuery] Re: jQuery v1.3.2 error

2009-05-14 Thread John Resig
Could you try it with an unminified version of jQuery? That might help a little bit with debugging. --John On Thu, May 14, 2009 at 11:00 AM, Devision wrote: > > Hello. > > I recently updated my jQuery to 1.3.2 from 1.2.6 and now firebug shows > me error: tagName is undefined (jquery.js line 12

[jQuery] Re: jquery beginner question: defer $('x').text('change') until after $('x').animate()

2009-05-14 Thread Nikola
Since you want to execute the text change and fadeIn after the animation completes you need to use a callback... $('.frame3').click(function(){ $('#story, #word1').fadeOut('fast', function(){ $('#story').text("lorem"); $('#word1').text("ipsum"); $('#story, #word

[jQuery] How to add a cookie to toggleclass

2009-05-14 Thread KD
Hi, I'm using Wordpress and each post will have a table. I'm using the following script to allow users to highlight a table cell when they click on it. It works with jQuery ui extension and the effects core plugin: jQuery(document).ready(function() {jQuery("td").click(function() { jQuery(this).

[jQuery] Re: jquery beginner question: defer $('x').text('change') until after $('x').animate()

2009-05-14 Thread Nikola
You're going to want to use callbacks... $('#word1, #story').fadeOut('fast', function(){ $("#word 1").text ("lorem"); $("#word").text("ipsum"); $('#word1, #story').fadeIn ("slow")}); $('.frame3').click(function(){ $('#story, #word1').fadeOut('fast', function(){ $('#story').text ("lorem"); $

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
Well...I don't see anything in your code that would filter the JSON once it comes back from the server. You are just dumping the response into the select menu. Once the params are sent to the server, and the JSON is generated there, there is nothing else that would happen to create further filte

[jQuery] jQuery v1.3.2 error

2009-05-14 Thread Devision
Hello. I recently updated my jQuery to 1.3.2 from 1.2.6 and now firebug shows me error: tagName is undefined (jquery.js line 12) Any ideas what might be the problem? All an all jQuery works just fine.

[jQuery] Matching Columns with JQuery

2009-05-14 Thread mylessincl...@googlemail.com
Hello, I came across JQuery when searching for a solution to get matching column height with Divs. I have downloaded JQuery which appears to be one file named jquery-1.3.2.min I also have the following short script that I found, which I believe goes in the head area of the page. The script work

[jQuery] javascript

2009-05-14 Thread www.yosaadi.co.cc
hi guys...i am newbie here..i just want to ask you..How to get javascript tools and book... because i want to know how to mak javascript alone for my blog www.yosaadi.co.cc http://yosaadi.blogspot.com http://only-sharing.blogspot.com tks for your information regards rangminang

[jQuery] How to add different color when mouse over the link?

2009-05-14 Thread Akira
when I went to Brian homepage http://cherne.net/brian/resources/jquery.hoverIntent.html I found that he has different color on each menu link. Thanks in advance. Teera

[jQuery] How to animate background images or background of div

2009-05-14 Thread g10tto
I'm putting together a portfolio site and I'd like to use high-res images that take up most of the screen to show different works. There would be a menu bar with links to each work, where a click on that work's link would change the background by doing a standard "dissolve" effect. I have seen ma

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread waseem sabjee
here i modified my code for class adding var obj = $("a"); for(var i = 0; i < obj.length; i++) { obj.eq(i).wrap("" > > ); // wrap the hyperlink in a span tag > obj.parent().eq(i).prepend('This is text before the > hyperlink'); > obj.parent().eq(i).append('This is text after the > hyperlink'); > }

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread waseem sabjee
var obj = $("a"); for(var i = 0; i < obj.length; i++) { obj.eq(i).wrap(""); // wrap the hyperlink in a span tag obj.parent().eq(i).prepend("This is text before the hyperlink"); obj.parent().eq(i).append('This is text after the hyperlink'); } use the above common method and you can furthur change

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread vmrao
Also, I would like to apply a specific CSS style to the text being added. Here is my CSS. .fileExtension { padding-left:0pt; font-family: Arial, Helvetica, sans-serif; font-size: 7pt; font-weight: normal; color: #354963; } On May 14, 1:18 pm, vmrao wrote

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread bradrice
I have this in there: $.ajaxSetup({"error":function(XMLHttpRequest,textStatus, errorThrown) { alert(textStatus); alert(errorThrown); alert(XMLHttpRequest.responseText); }}); I've got it coming back right. I can see the json on the server and it

[jQuery] Re: declare variable

2009-05-14 Thread Richard D. Worth
Thanks for the correction Michael. Looks like I didn't look closely enough. Sorry for the noise. - Richard On Thu, May 14, 2009 at 11:12 AM, Michael Geary wrote: > Nope. > > This: > > var $thisCell, $tgt = $(event.target); > does not mean: > > var $thisCell = $(event.target); > var $tgt

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread vmrao
Thanks. How about if I want to make it dynamic ? Say, I have several links on the page with different extensions (Ex: .doc, .docx, .ppt, .pptx, .pdf, .mpg). Can I accomplish the above with one statement rather than hard coding what text to append for each extension ? On May 14, 12:23 pm, brian

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
I would say then that it's probably your server code. Maybe run some debugging and make sure the parameters are coming in as you expect, and look at the data server side before it goes back to the client. -- JOsh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@go

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread bradrice
OK, I changed it but it still returns everything. It isn't filtering. Thanks for the suggestion. On May 14, 12:54 pm, "Josh Nathanson" wrote: > I think your params should look like this: > > { "category":fundType } > > In your code, you are passing a string rather than a javascript object > lite

[jQuery] Re: jquery.getJSON params not filtering

2009-05-14 Thread Josh Nathanson
I think your params should look like this: { "category":fundType } In your code, you are passing a string rather than a javascript object literal. -- Josh -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of bradrice Sent: Thursday, May

[jQuery] Re: declare variable

2009-05-14 Thread Peter Warnock
No. $thisCell is initialized with a null value in the current scope. - pw On May 13, 11:12 pm, runrunforest wrote: > Hi, > > I see this line in a plugin > > var $thisCell, $tgt = $(event.target); > > does that mean: > > var $thisCell = $(event.target); > var $tgt = $(event.target);

[jQuery] Re: modal pop-up from inside

2009-05-14 Thread Red
Unfortunitly since the Parent and child are from two different domains it wont give me access to it and gives an error of "Permission denied to get property Window.nodeType". I should have mentioned that i tried it in other forms and same result as well. I am not sure if it is even do-able at this

[jQuery] jquery.getJSON params not filtering

2009-05-14 Thread bradrice
I just can't seem to get getJSON to filter based upon the map I send in. Here is my code: $.getJSON('funds_static_json.dot',"{category:fundType}",function(json) { dropdownSet.loadSelect(json); } My post in firebug looks completely right: http://www.uakro

[jQuery] Re: jquery beginner question: defer $('x').text('change') until after $('x').animate()

2009-05-14 Thread illovich
I also tried $(function(){ $('.frame3').click(function(){ $('#story').animate({ opacity: 'hide'}, 'fast').css ('background-position' , '-0px -302px').animate({ opacity: 'show'}, 'fast');

[jQuery] Re: How to display additional text along with link

2009-05-14 Thread brian
$("a[href$='.pdf']").after(' (pdf)'); On Thu, May 14, 2009 at 11:55 AM, vmrao wrote: > > I would like to display file extension along with the file links on a > web page. > > For example, I would like to append (pdf) next to any pdf links. > > The following code works to some extent but not as I

[jQuery] Re: declare variable

2009-05-14 Thread Michael Geary
Nope. This: var $thisCell, $tgt = $(event.target); does not mean: var $thisCell = $(event.target); var $tgt = $(event.target); After all, there's only one jQuery object being created in the first example, and two distinct objects in the second. Nor does it set both variables to the

[jQuery] How to display additional text along with link

2009-05-14 Thread vmrao
I would like to display file extension along with the file links on a web page. For example, I would like to append (pdf) next to any pdf links. The following code works to some extent but not as I intended. $("a[href$='.pdf']").append(" (" + 'pdf' + ") "); If I use the above code, (pdf) is als

[jQuery] Re: IE8 error: Invalid Argument

2009-05-14 Thread Shadraq
I ran the IE8 Dev Debugger and came across this: The error is "jscript runtime error invalid argument"; and the code is "elem[ name ] = value;" within my jquery-1.3.2.js file Any help is appreciated. Thanks, Shadraq

[jQuery] Re: How to find the index of the parent of a specific element

2009-05-14 Thread Abdullah Rubiyath
Hi there, You could the following a try: $(document).ready(function() { var index = $("#mymenu ul li").index( $("li:has(#link_y)") ); // index will store the 'index' of tag that has id=link_y }); Hope this helps, Thanks, Abdullah. On May 14, 8:31 am, Jo wrote: > My question is quite s

[jQuery] How to find the index of the parent of a specific element

2009-05-14 Thread Jo
My question is quite simple with an example: label X label Y label Z label W I would like to know the index of the tag containing the hyperlink with id "link_y" : in this example, it should be 1, but if for any reason I re-order the links, alphabetically for example, it should bec

[jQuery] jquery beginner question: defer $('x').text('change') until after $('x').animate()

2009-05-14 Thread illovich
Hi, I'm trying to get a basic sequence of events to work: 1) User clicks a link 2) two divs (not containing the link) fade out 3) the contents of one div's text and the background properties of the other get changed 4) both divs fade in again. I've tried to effect this a couple of different way

[jQuery] [autocomplete] Can I validate and update the entered value before doing the search?

2009-05-14 Thread Ulf Renman
Hi When typing data into the autocomplete-field the list of matches is updated at every key pressed. Is it possible in any way to check and correct the data before doing the match. Or could you alter the way the match is done. The perfect example is when you have lots of users entering decimal va

[jQuery] Unsubscribe

2009-05-14 Thread Web Development

[jQuery] Re: New Plugin with IE problem

2009-05-14 Thread floepi
Fantastic, it works. Thanks a lot Sebastien!! I'll bundle it all up and try to release it to jquery plugins. Where do you normally submit your plugins to spread the word. Cheers Phil On May 14, 11:17 am, sebastien creme wrote: > Dynamic colspan setted via style property seems not work on IE

[jQuery] Re: jquery uploader

2009-05-14 Thread Vincent Majer
thanks for the tip.. in fact, i managed to do some nice things after reading carefully the js source, and mixing the two demos, queue management + photo upload. But a little more documentation on the backend could make this great plugin more accessible... ! It's the best upload widget i've

[jQuery] Unsubscibe

2009-05-14 Thread Smruti Pragyan Misra
Hi, I want to unsubscribe from this group as soon as possible . Thanks N Regards, Smruti Pragyan Mishra

[jQuery] Fairly new to animation. Hold my hand please, hehe?

2009-05-14 Thread ldexterldesign
Hey guys, Got a little script I've written. Would like to animate the appearance of the #sidebar2 to it's new block element state if possible ($ ('#sidebar2').css('display', 'block');). // 'get a quote!' button is clicked $('.contactQuote').click(function(){ $('#c

[jQuery] Re: Fairly new to animation. Hold my hand please, hehe?

2009-05-14 Thread waseem sabjee
// 'get a quote!' button is clicked $('.contactQuote').click( > > function(e){ e.preventDefault(); > >$('#content').css({'width', '33%'}); > > > $('#sidebar2').css({'display', 'block'}); > >$('.wpcf7').css({'border', '3p

[jQuery] Re: IE8 error: Invalid Argument

2009-05-14 Thread Shadraq
Upon further testing, I also have a div that is called. The error appears to be happening within this: At least one field must be filled in First Name Last Name

[jQuery] Re: chained select box

2009-05-14 Thread Tom Worster
On 5/14/09 3:20 AM, "phusys" wrote: > I need to show 3 select box (country, state, city) with data get from > a mysql database and when a user select a value from one of the select > box the other shows chained data. > How can I do this with jquery? fill the first select before delivering the f

[jQuery] Fairly new to animation. Hold my hand please, hehe?

2009-05-14 Thread ldexterldesign
Hey guys, Got a little script I've written. Would like to animate the appearance of the #sidebar2 to it's new block element state if possible ($ ('#sidebar2').css('display', 'block');). // 'get a quote!' button is clicked $('.contactQuote').click(function(){ $('#c

[jQuery] Re: Alternating Row Colors: Last row not coloring

2009-05-14 Thread Shadraq
Morning Z, Ah. Ah. Ah. :) Thanks for that. It never occurred to me that that was the case. Geeze. Thanks for explaining it so well. I appreciate it. Spstieng, Good tip. I believe I will implement that the next time I do this. I've only just started dabbling in CSS here recently and still have m

[jQuery] Re: jquery cycle plugin - first cycle not in correct position unless you reload the site

2009-05-14 Thread tsacre
Hello flyfisherman, Do you have solved the issues with the solution provided by Mike ? Thanks, Thomas On 14 mai, 00:16, Mike Alsup wrote: > 2.63 is the latest version of Cycle.  And your images do not have > width/height attributes. > > Mike > > On May 13, 5:42 pm, flyfisherman wrote: > > >

[jQuery] Browser differences in handling xml file structures?

2009-05-14 Thread Ian Piper
Hi all, This is my first posting to this group, so I hope you will treat me gently. I am having a problem with a script that I am writing and I believe it is centered within a piece of jQuery code. I have some code like this (simplified slightly): $.get('news/testfeed.xml', functi

[jQuery] Re: Custom Attributes with Integer values?

2009-05-14 Thread waseem sabjee
var ammount = parseInt( $("timestartmin").attr("ammount") ); $(this).siblings().each( > > function(){ var ammount = parseInt( $("timestartmin").attr("ammount") ); > >if(ammount > remaining){ $(this).attr("disabled", > true) } > }); On Thu, May 14, 2009 at 1:50 PM, oly.yates wrote: > > N

[jQuery] Re: Custom Attributes with Integer values?

2009-05-14 Thread oly.yates
Not sure this is the "best" way but try this: $(this).siblings().each(function(){ if($(this).attr("amount") > remaining){ $(this).attr("disabled", true) } }); Hope this helps. On May 14, 5:31 am, Daniel Murker wrote: > Hello, > > I have a form containing a list of checkboxes each with an 'am

[jQuery] Re: Ajax and 404 errors.

2009-05-14 Thread DisasterMan
That should be: myrequest.statusText I believe... On May 13, 3:27 pm, "bhaveshphoneh...@gmail.com" wrote: > myrequest.status >

[jQuery] Re: Ajax and 404 errors.

2009-05-14 Thread DisasterMan
I would recommend using a generic error alert function. This saves having to add an error: function() to each ajax call you use. Here is my function. It uses jQuery UI to improve the appearance of the error announcement and allow for html formatting: //javascript $(document).ready(function() {

[jQuery] Re: JQuery beginner's question on slider values

2009-05-14 Thread oly.yates
What are you using to generate the slider? if your using jQueryUI try somthing like: $('.selector').slider({ change: function(event, ui) { $('#my_input').val(ui.value); } }); On May 14, 2:59 am, digitalaspect wrote: > I need to pass the value of a slider to a form.  I am trying to

  1   2   >