[jQuery] declare variable

2009-05-14 Thread runrunforest
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] New inserted tag won't work with selector

2009-05-14 Thread cohq82
Is anyone aware of this problem? For example, the code below simply just inserts new P tag below the existing P's. When I move mouse over each of the P, I should see color change. Or when I click on new P, I should be able to trigger the P click event. That did not happen. Anyone knows how to fix

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

2009-05-14 Thread Nahaz
Ah sorry about that. It doesn't cause an error, it looks like it sends data because ? nick=nick appears in your url but it does not get into the database somehow. If you call /data.php?nick=nick it will work, it's when it's called via $.ajax(); that the issue occurs. I havn't confirmed but it

[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-14 Thread spstieng
Progress! The main script (autosuggest) is triggering now in Wordpress. But now I'm having problems getting the script to locate the get_labels.php script. I'm using user friendly urls. My permalink is set up to http://www.mysite.com/ %category%/%postname %. So if I'm reading a post called

[jQuery] Re: New inserted tag won't work with selector

2009-05-14 Thread oly.yates
Try using $(p).after($(this).clone(true)); instead of $(p).after(pHello/p); Documentation for the clone function can be found here: http://docs.jquery.com/Manipulation/clone#bool On 14 May, 08:14, cohq82 quang...@gmail.com wrote: Is anyone aware of this problem? For example, the code below

[jQuery] Re: Clone html and change input value

2009-05-14 Thread oly.yates
Have you tried using the .attr() or .val() functions to modify the value of the cloned node? var node = $(some node).clone(true).val(some value); var node = $(some node).clone(true).attr(some attr, some value); On 14 May, 00:13, rmfjcr rmf...@gmail.com wrote: Hi everybody. I've got a form

[jQuery] Re: Superfish with multicolumn sub navigation

2009-05-14 Thread Ischa Gast
Have you taken a look at http://users.tpg.com.au/j_birch/plugins/superfish/#getting-started Yes I looked at it but I can't find an example with a div that has to show. or tried only using lists with more complex CSS rather than div's? I need to use that div element because of the complex

[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-14 Thread spstieng
It's so fun answering my own posts :) Well, I have dug out this: http://ryanpharis.com/2008/10/ajax-for-wordpress-plugins-using-jquery/ http://amiworks.co.in/talk/simplified-ajax-for-wordpress-plugin-developers-using-jquery/ I will give this a go and see how I progress.

[jQuery] Re: Problems with rounded corners plugin

2009-05-14 Thread RCT_Nitro
It is my understanding that the pageLoad gets called when the aspx page is loaded... On May 13, 9:59 pm, Mike Alsup mal...@gmail.com wrote: Attached is my page code, I'm trying to make the corners rounded on the div div#LoginArea - but try as I may I'm not able to work out why this won't

[jQuery] Strange behaviour with wrapInner() loading data twice

2009-05-14 Thread cjhill
Good day, I'm not sure if this is a bug with jQuery or how a browser handles the request, so thought I would post here first instead of the bug tracker. The issue comes when you try and load jQuery dynamically through creating the necessary DOM objects. Everything works fine as long as you do

[jQuery] Re: Autocomplete - Problem accessing php file

2009-05-14 Thread spstieng
Alright! After about 20 hours of research, I found the answer in a blog by Ryan Pharis (link above). As I was suspecting, it was an easy solution. Wordpress is using user friendly URLS. Therefore my path ended up like this: http://www.mysite.com/includes/autosuggest.php?json=true; The REAL path

[jQuery] Re: Clone html and change input value

2009-05-14 Thread rmfjcr
Thanks oly.yates, your code is a good start. I'll give it a try and post my results. Soon. On 14 Mag, 08:51, oly.yates oly.ya...@googlemail.com wrote: Have you tried using the .attr() or .val() functions to modify the value of the cloned node? var node = $(some node).clone(true).val(some

[jQuery] JQuery beginner's question on slider values

2009-05-14 Thread digitalaspect
I need to pass the value of a slider to a form. I am trying to use #input type=hidden id=my_input / # I tried altField as per the datepicker, but that doesn't work. Have tried to get a function working, but to no avail. #$(#target_div_id).slider({ min: 100, max: 500, # function() { #

[jQuery] Problem with animation queue

2009-05-14 Thread ad
Hi there, I want to fire up a bunch of animations on a single click in a strict order. Unfortunately it doesn't work every time. Here is my code: $(#title02).click( function () { // the first 3 events should occur together, NOT one after another

[jQuery] validate - send the submit button

2009-05-14 Thread rousseau.fra...@gmail.com
Hello and congratulations for your work. When there are different submit buttons on the form, how to know which button submitted the form if submitHandler function is use ? For in this case it seems that the name of the submit button is not sent in the form.

[jQuery] styling in javascript block vs .css file

2009-05-14 Thread James
I was wondering if someone could shed some light on some interesting behavior I'm running into. I'm following a very simple jQuery example in order to set up an activity / busy indicator, as seen in the following page: http://skfox.com/jqExamples/AjaxActivity.html There is a simple gif that

[jQuery] Re: New Plugin with IE problem

2009-05-14 Thread sebastien creme
Dynamic colspan setted via style property seems not work on IE. You can try this : td.colSpan which is used in msdn samples (oCell.colSpan = 4) : http://msdn.microsoft.com/en-us/library/ms532998%28VS.85%29.aspx sebastien On May 13, 3:21 pm, floepi flo...@gmail.com wrote: Anyone?? Still

[jQuery] Custom Attributes with Integer values?

2009-05-14 Thread Daniel Murker
Hello, I have a form containing a list of checkboxes each with an 'amount' attribute. These checkboxes are in no particular order, and all have different values for the amount attribute. Example: input type='checkbox' amount='5' name='testName[]' class='testClass' input type='checkbox'

[jQuery] chained select box

2009-05-14 Thread phusys
Hi, 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? (Sorry for my english :-) ). Thanks

[jQuery] Re: declare variable

2009-05-14 Thread Richard D. Worth
Yup. See https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Statements/Var - Richard On Thu, May 14, 2009 at 2:12 AM, runrunforest craigco...@gmail.com wrote: Hi, I see this line in a plugin var $thisCell, $tgt = $(event.target); does that mean: var $thisCell =

[jQuery] Problem with animation queue

2009-05-14 Thread ad
Hi there, I want to fire up a bunch of animations on a single click in a strict order. Unfortunately it doesn't work every time. Here is my code: $(#title02).click( function () { // the first 3 events should occur together, NOT one after another

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

2009-05-14 Thread Richard D. Worth
Looks like you're working with the jQuery UI Slider? If so, we'd love to help you out over here: http://groups.google.com/group/jquery-ui - Richard On Wed, May 13, 2009 at 8:59 PM, digitalaspect digitalasp...@gmail.comwrote: I need to pass the value of a slider to a form. I am trying to use

[jQuery] Re: New inserted tag won't work with selector

2009-05-14 Thread Richard D. Worth
See FAQ (Frequently Asked Questions): Why doesn't an event work on a new element I've created? http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F - Richard On Thu, May 14, 2009 at 2:14 AM, cohq82 quang...@gmail.com wrote: Is

[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 digitalasp...@gmail.com wrote: I need to pass the value of a slider to a

[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: 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 bhaveshphoneh...@gmail.com wrote: myrequest.status

[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 dmur...@gmail.com wrote: Hello, I have a form containing a list of checkboxes each

[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 oly.ya...@googlemail.com

[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',

[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 mal...@gmail.com 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

[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

[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(){

[jQuery] Re: chained select box

2009-05-14 Thread Tom Worster
On 5/14/09 3:20 AM, phusys alessio.f...@gmail.com 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

[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: div id=dialog-search p id=tips-searchAt least one field must be filled in/p form fieldset label for=s-firstnameFirst Name/label

[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', '3px solid

[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(){

[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] 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

[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 sebastien.cr...@gmail.com wrote: Dynamic colspan setted via style

[jQuery] Unsubscribe

2009-05-14 Thread Web Development

[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

[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

[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: div id=mymenu ul lia id=link_x href=#label X/a/li lia id=link_y href=#label Y/a/li lia id=link_z href=#label Z/a/li lia id=link_w href=#label W/a/li /ul /div I would like to know the index of the li tag containing the hyperlink with id

[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 li tag that has id=link_y }); Hope this helps, Thanks, Abdullah. On May 14, 8:31 am, Jo jo.arg...@gmail.com wrote: My

[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] 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 also

[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

[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 maheshpav...@gmail.com 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

[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] 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:

[jQuery] Re: modal pop-up from inside iframe

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] 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 craigco...@gmail.com 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: 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: 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 joshnathan...@gmail.com wrote: I think your params should look like this: { category:fundType } In your code, you are passing a string rather than a

[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

[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: 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 m...@mg.to wrote: Nope. This: var $thisCell, $tgt = $(event.target); does not mean: var $thisCell = $(event.target); var

[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: 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

[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(span/span); // 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

[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(span/span ); // wrap the hyperlink in a span tag obj.parent().eq(i).prepend('span class=beforeThis is text before the hyperlink/span'); obj.parent().eq(i).append('span

[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

[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] 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] 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

[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] 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

[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] 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] 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,

[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 c...@e950.lv 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

[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' + ) ); $(a[href$='.pptx']).after( ( +

[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: .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 james.gp@gmail.com 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

[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. $thisCell

[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($('span/').attr ('class','fileExtension').html( ( + '.doc' + ) )); $(a[href$='.docx']:not(a[href^='http'])).after($('span/').attr

[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 joshnathan...@gmail.com 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

[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

[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. worked

[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 waseemsab...@gmail.com wrote: From: waseem sabjee waseemsab...@gmail.com Subject: [jQuery] Re: Modify

[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: 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 mylessincl...@googlemail.com wrote:

[jQuery] Re: Modify iframe with jquery

2009-05-14 Thread waseem sabjee
$(#iframeid).contents.find(#elementid).append('div id=newdiv\/div); notice i use \/div instead of /div 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 ripple...@yahoo.com wrote:

[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 a inside a ul that has an active class. 2) Grab the value from the parent li and put it into a variable to be used elsewhere. Here is the example markup... ul

[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] 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. quink...@gmail.com 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 a inside a

[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. quink...@gmail.com 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 a inside a ul that

[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 soni.mau...@gmail.com 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

[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 m...@ldexterldesign.co.uk wrote: Hey guys, Got a little script I've written. Would like to animate the appearance

[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 : div class=testfoo/div div class=testbar/div div class=testbaz/div div class=testbif/div I have a selector: $(div.test)[2].fadeOut(); This gives a console error: Error: $(div.test)[2].fadeOut is not a function

[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] 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 stern@gmail.com wrote: Try this var ans = $(#carousel li a.active).parent().attr(carouselindex); Cheers, Bryan On May 14, 2:49 pm, Matt M. quink...@gmail.com wrote: Hello, I have been learning jQuery and have been loving it so

[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 jack.lapla...@gmail.com 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

[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] 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: 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 }, success:

[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] 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)

[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 of

  1   2   >