[jQuery] Re: (validate plugin) dependency callback not being triggered

2009-11-09 Thread Brad Hile
Thanks Jules I'll give it a try now. I was looking for something that would trigger the validation but I thought it was automagically triggered onblur/keyup but perhaps thats only after the initially validate via submit * thanks for the typo spotting!.. totally missed that ta Brad On Nov

[jQuery] Re: (validate plugin) dependency callback not being triggered

2009-11-05 Thread Brad Hile
Bump > Hi > I've tried every way I can think of to use dependency to enable > additional elements to be required and have had no luck at all. I > simply want to enable "required" on a number of fields when a specific > radio button is selected and for it to be disabled when its not. > (These field

[jQuery] Re: Slideshow Dies in 1.3.2 but works in 1.3.1 and below

2009-09-11 Thread Brad
Bumping this question back up because I still have not found an answer to my problem On Aug 13, 11:14 am, Brad wrote: > Didn't work. thanks for trying though, Liam. > > I believe the bug may be in jQuery 1.3.2 itself because this is the > first time I've ever had a b

[jQuery] Re: How to bind text to trigger checkbox?

2009-08-13 Thread Brad
I'm not sure if this is a question or not... but if you want to be able to click a block of text to activate a checkbox, you can use the "label" tag to associate a text block with a checkbox. Check Checkbox No jQuery needed here.. On Aug 13, 10:16 am, Liam Potter wrote: > http://docs.jquery.

[jQuery] Re: Slideshow Dies in 1.3.2 but works in 1.3.1 and below

2009-08-13 Thread Brad
ot;).click(slNext); > $("a.sl_back").click(slBack); > > to > > $("a.sl_next").click(function(){slNext}); > $("a.sl_back").click(function(){slBack}); > > no idea if this will work btw > > > > Brad wrote: > > Basically, I can c

[jQuery] Slideshow Dies in 1.3.2 but works in 1.3.1 and below

2009-08-13 Thread Brad
Basically, I can click the next button and go forward until it reaches the last slide then it sticks. The Back button is also broken. This code works great with 1.3.1 and 1.2.6 but has the aforementioned bugs in 1.3.2 $(document).ready(function() { var fadeSpeed = 1000; var cu

[jQuery] Re: Get append() result

2009-08-04 Thread Brad
Minor correction I now have var row = "..."; return $(row).appendTo('#docs tbody')

[jQuery] Re: Get append() result

2009-08-04 Thread Brad
quot;); > var newrow = $row.appendTo("#docs tbody"); > > On Aug 3, 11:51 am, Brad wrote: > > > If I add a row to a table in the following manner, how can I get a > > reference to the added row? > > > var row = "..."; > > var newrow; > > newrow = $('#docs tbody').append(row); > > > With the above code new row references the tbody and not the tr.

[jQuery] Get append() result

2009-08-03 Thread Brad
If I add a row to a table in the following manner, how can I get a reference to the added row? var row = "..."; var newrow; newrow = $('#docs tbody').append(row); With the above code new row references the tbody and not the tr.

[jQuery] Re: table cells selector question

2009-07-13 Thread Brad
text 2 >      text 3 > > > $("td.someclass").click(function() { >     var parentTable = $(this).closest("table"); >     // and you can get the cells in several ways, here's one >     var cells = parentTable.find("td.someclass"); > > }); > >

[jQuery] table cells selector question

2009-07-13 Thread Brad
I can do this to select all td's with a class of someclass var cells = $("td.someclass"); My page my have more than one table so this would select all matching td's. What I need to do is isolate the selection to only the cells in the table where a row was clicked. I've tried var cells = $("td.

[jQuery] Autocomplete Behavior clarification

2009-06-10 Thread Brad
I have an Autocomplete on a form that uses local data. However, the input allows users to enter values that are not in the local data array. If the user enters and selects matching data the .result callback function sets a corresponding key value that is submitted with the form. The intent is to h

[jQuery] Expand/Collapse multi-line table cell from 1 to all lines

2009-05-28 Thread Brad
Consider a table of locations where one column is a mailing address. Each address is at least 2 lines, a few addresses are 6 lines and everything else falls in between. I have a request to display the table with only one address line with the option to expand/collapse the address cell to show the

[jQuery] Re: validation showErrors error

2009-05-07 Thread Brad
Oops, hit send accidentally. The problem was that I didn't need to iterate over each error. A single call to showErrors handles them all. if(data.status == false) { // update form errors $("#calib_entry").validate().showErrors(data.errors); } On May 7, 10:39 am, Bra

[jQuery] Re: validation showErrors error

2009-05-07 Thread Brad
The .each is the problem: if(data.status == false) { // update form errors $("#calib_entry").validate().showErrors(data.errors); } On May 7, 10:35 am, Brad wrote: > I'm using the validation plugin to perform client side vali

[jQuery] validation showErrors error

2009-05-07 Thread Brad
unately the server I'm working against has a minified version installed (I've requested they install the full version). Until I can see where jQuery is failing, can someone who is more familiar with showErrors tell if the problem is how I'm calling it? The console.log call shows that fld and msg are both strings. Thanks, Brad

[jQuery] Re: SuperFish Arrows

2009-04-24 Thread Brad Hile
it's set in the css file at the bottom. Just change the file name and dimensions to suit On Apr 24, 12:09 am, Praveen wrote: > How is the arrows displayed in the superfish menus? If I would like to > change to an image of my choice, how do I go about? > > Regards, > Praveen

[jQuery] Re: jQuery Validation Plugin - rule metadata documentation?

2009-04-23 Thread Brad
re there are no parameters needed, use a class > instead. > > Jörn > > On Thu, Apr 23, 2009 at 9:49 PM, Brad wrote: > > > Are the options, usage and limitations for the jQuery Validation rules > > using metadata in markup, e.g., class="required date", doc

[jQuery] jQuery Validation Plugin - rule metadata documentation?

2009-04-23 Thread Brad
Are the options, usage and limitations for the jQuery Validation rules using metadata in markup, e.g., class="required date", documented anywhere? There is http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods, but that is for setting up rules in the JS.

[jQuery] Re: Validation plugin - Using with 'button' buttons?

2009-04-22 Thread Brad
In the button's click handler: if ($("#myform").validate().form()) { // submit form } On Apr 22, 9:48 am, Brad wrote: > To be more specific, validation is working prior to clicking the > button. For example I hav

[jQuery] Re: Validation plugin - Using with 'button' buttons?

2009-04-22 Thread Brad
any pre-submit validation. BTW, I'm totally new to this plugin. On Apr 22, 9:39 am, Brad wrote: > I'm trying to integrate the Validation plugin into an existing > project. The forms use AJAX and the buttons are not of type 'submit', > but type 'button'. I

[jQuery] Validation plugin - Using with 'button' buttons?

2009-04-22 Thread Brad
I'm trying to integrate the Validation plugin into an existing project. The forms use AJAX and the buttons are not of type 'submit', but type 'button'. If I change the type to 'submit' I can see validation works, but doing so will require other code changes. Is there any way to get it to work with

[jQuery] Form validation help

2009-04-06 Thread Brad
Can anyone tell me how to validate a form field with a Minimium(2) characters required? Here is what I have below, thank you in advance for your help! $().ready(function() { // validate signup form on keyup and submit $("#signupForm").validate({ rules: {

[jQuery] Re: element type of matched id

2009-03-25 Thread Brad
Exactly what I need. Thanks! On Mar 25, 12:25 pm, James wrote: > $("#foo")[0].nodeName; >

[jQuery] Re: element type of matched id

2009-03-25 Thread Brad
y.com/Traversing/is#expr >   if($("#foo").is("span")){ >     // code >   }else if($("#foo").is("input")){ >     // code >   } > > On 25 mrt, 19:15, Brad wrote: > > > I'm working on a page that dynamically changes many form eleme

[jQuery] element type of matched id

2009-03-25 Thread Brad
I'm working on a page that dynamically changes many form elements. Because of the way that different browsers style disabled or readonly text inputs, I'm swapping the input with a span that displays more consistently. I don't need to submit those fields. However, when I do this the affected elemen

[jQuery] Re: Data Array

2009-03-23 Thread Brad
You can use an array of objects, e.g. var choices= [ { name: "foo", id: "1" }, { name: "bar", id: "2" }, { name: "baz", id: "3" } ]; Your autocomplete callback might look like this function MyAutoCompleteCallback (event, data, formatted) { $("#my_hidden_fld").val(data.id);

[jQuery] Re: Testing if a .data('key') is defined?

2009-03-23 Thread Brad
typeof( $("#foo").data("bar") ) will return 'undefined' On Mar 23, 5:29 pm, I wrote: > I'm using .data to store some information and occasionally hit a case > where I'll try to do something with the stored data and will get an > error e.g., $("#foo").data("bar") is undefined. > > I need to fix my

[jQuery] Testing if a .data('key') is defined?

2009-03-23 Thread Brad
I'm using .data to store some information and occasionally hit a case where I'll try to do something with the stored data and will get an error e.g., $("#foo").data("bar") is undefined. I need to fix my code so that doesn't happen, but would like to know the best way to test if "bar" has been def

[jQuery] Re: Preventing link clicks before document.ready();

2009-03-21 Thread Brad
Other have offered solutions where you hide the links, etc. A variation of that theme would be to originally display the links with some inline JS, e.g., Where myPrematureClickSentinel simply returns false. In your document.ready() $("a").removeAttr("onclick"); // get rid of all myPrematureCl

[jQuery] Re: Plugin or examples to filter display of table data?

2009-03-20 Thread Brad
Sorry for the noise, I should have looked at the jQuery plugins site first. There are a number of offerings there that may do what I want. DataTables looks very promising. On Mar 20, 12:44 pm, I wrote: > I searched this group and Googled for examples but haven't what I was > looking for. > > Cons

[jQuery] Plugin or examples to filter display of table data?

2009-03-20 Thread Brad
I searched this group and Googled for examples but haven't what I was looking for. Consider this use case: A database-driven backend presents a page with a table containing many rows (100's or more). Instead of having the user enter new search criteria and send another request to the backend, I'

[jQuery] Re: Email Validation Dies with 1.3 Upgrade

2009-03-19 Thread Brad
with" and > "contains" selectors use basic JavaScript in the end anyways > > http://paste.pocoo.org/show/108697/ > > On Mar 19, 12:07 pm, Brad wrote: > > > > > Tried it, still doesn't work. I went through the 1.3 change log and > > can't

[jQuery] Re: Email Validation Dies with 1.3 Upgrade

2009-03-19 Thread Brad
gt; > On Thu, Mar 19, 2009 at 3:06 PM, Brad wrote: > > > I wrote this function to check an input field. I can fire it when the > > field blurs or when the form is submitted. If an .error is visible > > when the submit button is clicked, it won't be submitted until t

[jQuery] Email Validation Dies with 1.3 Upgrade

2009-03-19 Thread Brad
I wrote this function to check an input field. I can fire it when the field blurs or when the form is submitted. If an .error is visible when the submit button is clicked, it won't be submitted until they are all gone. When I try to update to 1.3 this function no longer works. jQuery.fn.form_re

[jQuery] Re: Ajax call problem with Firefox

2009-03-17 Thread Brad
Try the $.ajax cache: false option. On Mar 17, 5:29 pm, cindy wrote: > There is a device with web server running. My code will check > periodically the status of the device.When I pull the network cable > from my laptop. I found that firefox can still response the request > sometimes. It seems

[jQuery] Re: Best way to Table Sort using server side calls

2009-03-17 Thread Brad
By "Toggle the sort" I'm assuming you want to change a visual sort order indicator in the clicked ? As MorningZ suggested your click will fire an ajax .load. The .load's callback will: * populate the tables tbody with the return result set * manipulate the clicked th css to indicate a sort order

[jQuery] Re: Modifying href attribute values

2009-03-15 Thread Brad
There is probably a more concise way to do this, but I'll break down the steps // regular expression pattern to get the hash value var patt = new RegExp("[^#]+$"); // The href of your attribute. This is a generic example, you will // probably need to provide a more specific jQuery selector to ge

[jQuery] modifying parts of cloned inserted content

2009-03-13 Thread Brad
I have a div containing a form label and field. I'm building a feature where the user can add as many of these fields as they need. [+] Calibration URL: If the user clicks the [+] in the for label a clone of the field is inserted into the form. I've got the cloning and inserting logic d

[jQuery] Re: How do I adapt this code for multiple uses?

2009-03-10 Thread Brad
Ian, See the docs on how to develop a jQuery Plugin. http://docs.jquery.com/Plugins/Authoring. However, since your code applies to each instance of a given class and not specific elements it already appears to do what you want. For example I changed your form to have two inputs and gave the se

[jQuery] Re: Reset individual form objects to their original display state

2009-03-10 Thread Brad
mkmanning's plugin, along with his recommendation to use jQuery's data method instead of a global object, will work nicely. To answer my other question re: getting the full html of an element, there is this plugin: http://plugins.jquery.com/project/outerhtml. On Mar 10, 1:16 pm, B

[jQuery] Re: Reset individual form objects to their original display state

2009-03-10 Thread Brad
> >         //to access original attributes of the input later, including value >         console.log( $('some_input').data('orig').value ); >         console.log( $('some_input').data('orig').name); > > }); > > On Mar 10, 11:43 am, Brad

[jQuery] Re: Reset individual form objects to their original display state

2009-03-10 Thread Brad
this); > > saves a pointer to that object, not a copy to the object itself. > so if later on you change anything on "$(this)", you changed the value > (but is really just a pointer to the object) of "origFormData["some > key"]" as well > > On M

[jQuery] Re: Reset individual form objects to their original display state

2009-03-10 Thread Brad
ided to revert the > value back to the saved value > > On Mar 10, 1:36 pm, Brad wrote: > > > I have a need to reset individual form objects to their original > > state. When the document loads I save the element like this: > > >         var origFormData = {}; > &

[jQuery] Reset individual form objects to their original display state

2009-03-10 Thread Brad
I have a need to reset individual form objects to their original state. When the document loads I save the element like this: var origFormData = {}; $(document).ready(function(){ // Save original form data for each input field $(":input").each(fun

[jQuery] Re: Global Object, Scope question

2009-03-10 Thread Brad
t).ready(function(){ >        $(":input").each(function() { >              FormData[this.id] = $(this).val(); >        }); > > }); > > function resetField(id) { >        if (FormData[id] != null) { >              $("#" + id).val(FormData[id]); >      

[jQuery] Global Object, Scope question

2009-03-10 Thread Brad
This is really a javascript question, but will use jQuery. When a page first displays I would like to save a bunch of data about a form. For example the IDs of all of the inputs and how they are originally defined. Depending on user actions I may need to restore individual form fields to their o

[jQuery] Re: A loading image in the centre of the screen

2009-03-09 Thread Brad
There is a way for the BlockUI to also show an image. By passing in an empty message (and possibly tweaking the CSS) I believe you can get it to do what you want. On Mar 9, 4:18 pm, phicarre wrote: > Ok but it is for a message, not for a loading image > > On 9 mar, 19:26, James wrote: > > > Che

[jQuery] new Whitehouse.gov uses jQuery 1.2.9

2009-03-03 Thread Brad McMahon
just wanted to share that with everyone who doesn't follow me on identi.ca

[jQuery] Re: local data source question

2008-12-08 Thread Brad
To answer my own question, set the formatMatch option. ... ,formatMatch: function(row, i, max) { return row.name; }, ... On Dec 8, 4:18 pm, Brad <[EMAIL PROTECTED]> wrote: > I'm using autocomplete and have some local data t

[jQuery] [autocomplete] local data source question

2008-12-08 Thread Brad
I'm using autocomplete and have some local data that looks like var locations = [ { name: "ABB Bomem CAN", locationkey: "10049" }, { name: "ANL", locationkey: "" }, { name: "Applied Sys Eng", locationkey: "10028" }, { name: "BNL", locationkey: "10053" }, { name: "Campbell AUS", loca

[jQuery] Re: .eq() vs .slice()

2008-12-08 Thread Brad
ssues using it. > > - ricardo > > On Dec 8, 2:13 pm, Brad <[EMAIL PROTECTED]> wrote: > > > I'm making some modifications to an older project that originally used > > jQuery 1.1.2. I've installed 1.2.6 and am in the process of reviewing > > and

[jQuery] .eq() vs .slice()

2008-12-08 Thread Brad
I'm making some modifications to an older project that originally used jQuery 1.1.2. I've installed 1.2.6 and am in the process of reviewing and upgrading the code based on the changes documented at http://docs.jquery.com/Release:jQuery_1.2#Removed_Functionality There are many places in this proj

[jQuery] blockUI, select box and IE6 (again)

2008-11-19 Thread Brad
I'm having the same problem that is documented at http://groups.google.com/group/jquery-en/browse_thread/thread/976e49897120d95c?tvc=2, but can't reply to that thread (too old?). To summarize the problem, with IE6, when blockUI is called the select boxes dissappear. When unblockUI is called they

[jQuery] photoshop like image navigator

2008-11-19 Thread Brad Hile
lugin from Josh Nathanson (great plugin!) is nearly there but I need the large image visible initially and ideally be able to zoom in and drag around. thanks in advance Brad

[jQuery] Re: Who knows how to use jQuery in Dreamweaver CS4?

2008-11-11 Thread Brad
http://dreamweaverforum.info/dreamweaver-application-development/117531-cs4-jquery-support.html On Nov 9, 1:49 pm, Shawphy <[EMAIL PROTECTED]> wrote: > Thx~ > But it is said that dwcs4support jQuery directly  without > extension > > On Nov 10, 2:17 am, Brad <

[jQuery] Re: Who knows how to use jQuery in Dreamweaver CS4?

2008-11-09 Thread Brad
This might be what your looking for: http://xtnd.us/dreamweaver/jquery (found via Google) On Nov 9, 1:44 am, Shawphy <[EMAIL PROTECTED]> wrote: > Now I'm coding javascript in dw cs4,and it says dw cs4 support jQuery > code hinting, > but I have no idea how to make it work, > Any ideas?

[jQuery] Re: loading an array via Ajax

2008-11-08 Thread Brad
This thread contains the answer to my question: http://groups.google.com/group/jquery-en/browse_thread/thread/db0fb4fabce6630b/5eb2c5ac8b7f46f7?lnk=gst&q=getJSON#5eb2c5ac8b7f46f7 On Nov 7, 4:40 pm, Brad <[EMAIL PROTECTED]> wrote: > I have a case where I need to have a few global

[jQuery] loading an array via Ajax

2008-11-07 Thread Brad
I have a case where I need to have a few global arrays and/or objects which will be used by numerous scripts. One example would be as a local lookup source for an autocompleter, while the same data might be used to populate a selection menu. The data isn't likely to change during a user's session,

[jQuery] Re: hover question

2008-10-03 Thread Brad
t;       tr.addClass('hovered'); >     }, function () { >           // out >           rows.removeClass('hovered'); // this doesn't work >     }); > > doesn't work because the 'rows' var is only known inside the first > function. You

[jQuery] Re: hover question

2008-10-03 Thread Brad
n Oct 2, 2:01 pm, "Leonardo K" <[EMAIL PROTECTED]> wrote: > Try this: > > $(tbody).find('tr').hover(function () { >       $(this).addClass('hovered'); >    }, function () { >      $(this).removeClass('hovered'); >    }); > > On Thu,

[jQuery] Re: hover question

2008-10-02 Thread Brad
in On Oct 2, 2:25 pm, Brad <[EMAIL PROTECTED]> wrote: > That doesn't work in my case, but thanks again for the > recommendation.  I should note that the code > > // Insert HTML row into table >   var tbody = $('').appendTo('#' + target_id + ' table

[jQuery] Re: hover question

2008-10-02 Thread Brad
Leonardo, I should have shown some more code. In my original example, tbody is a reference to an jQuery object. I'm working with a page that has many tables. Each table can have many elements. The number of rows in each can vary, but in all case there is more than 1. Unfortunately the site is

[jQuery] hover question

2008-10-02 Thread Brad
This isn't so much about hover, but about the selectors I've had to use within its 'over' and 'out' functions. Consider the following. I'm working on a project where I'll have to repeat this pattern often. I'll hover over a table's tbody, but will need to affect rows or even specific row cells wi

[jQuery] Dialog Box Too Small

2008-09-18 Thread Brad M
he width. How can I make my dialog box larger? Thanks, Brad .ui-dialog { /*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; font-family: Verdana, Arial, sans-serif; font-size: 12px; background:

[jQuery] Re: Can I use a variable to reference object properties?

2008-09-11 Thread Brad
var myCategory; If (eating cheese) myCategory = data.cheese; If (eating bread) myCategory = data.bread; ... $.each(myCategory, function(i, item) { do a ton of stuff } Another option is to use eval(), but that command is evil. :) myType = "cheese"; eval("myCategory = data

[jQuery] Re: Working on website trying to make a list.

2008-09-10 Thread Brad
Aaron, Normally you control that output server-side by limiting the result in your SQL. Look at help for the SELECT statement and the LIMIT clause. If you really want to send everything back at once, you'll need for PHP to output the table HTML so that it looks something like this skeleton.

[jQuery] Re: Working on website trying to make a list.

2008-09-10 Thread Brad
Aaron, Normally you control that output server-side by limiting the result in your SQL. Look at help for the SELECT statement and the LIMIT clause. If you really want to send everything back at once, you'll need to set up the table HTML so that it looks something like . ...

[jQuery] Re: uiTabs - Reference to self during Init.

2008-09-10 Thread Brad
Let me try to better explain what I'm trying to do. I have a page that has 5 tabs on it. These tabs are loaded via Ajax. Each loaded tab can contain a relatively complex form. These forms also use AJAX. Some of these forms contain help text that may refer a user to features in another tab. I'd l

[jQuery] uiTabs - Reference to self during Init.

2008-09-10 Thread Brad
I have the following uiTabs initialization code in my $ (document).ready function: var $tabs = $("#tabarea > ul").tabs( { selected: 0 , disabled:[2] , spinner:'' , cache:true , ajaxOptions: { cache: false }

[jQuery] Fwd: Dialog

2008-09-08 Thread Brad M
*/* *}* *#LIDlink** {* *cursor**:* pointer*;* *display**:* block*;* *width**:* *110*px*;* *background-color**:* green*;* *}* I've spent many hours trying to figure out what I'm doing wrong, but have not come up with the solution. Any help would be appreciated. Thanks, Brad -- Brad McIntyre

[jQuery] Re: Determine if a Javascript has loaded?

2008-09-07 Thread Brad
Here is a different approach. Include the javascript source for the weather.ibegin.com in the body of your page. On load run a delayed function to see if it has written its forecast to your page. I ran this on a test page and it worked. I could never get the ibegin source to fail, therefore I had

[jQuery] Re: blockUI styling question

2008-09-04 Thread Brad
Thanks for the feedback. I'm getting closer How do I set a delay on the unblock? Is that the fadeOut setting? On Sep 4, 2:24 pm, MorningZ <[EMAIL PROTECTED]> wrote: > #1: http://malsup.com/jquery/block/#options > > the "overlayCSS"-s opcaity is what you need to adjust > > #2: you'd set the "c

[jQuery] blockUI styling question

2008-09-04 Thread Brad
I'd like to accomplish a couple of things with BlockUI. I suspect these can be done by changing styles and other settings but I haven't been able to achieve the desired affect. 1. I want the mask to be transparent. IOW, the user should not be aware of the overlay, but also shouldn't be able to in

[jQuery] Re: Store a Css class as a variable?

2008-09-03 Thread Brad
Matthew, .css() doesn't return a class Name. In your example it might return the background image url. Here's an example console dump from a banner of a site I work on: >>> var foo = $("#banner").css('background-image'); >>> foo "url(http://www.mysite.com/img/homebanner.jpg)" You can try somet

[jQuery] Not selector help

2008-09-03 Thread Brad
I'm looking for the quickest way to uncheck all of the checkboxes on a page except for one with a given idea. I realize I could uncheck all, then check one, but I'm curious if I can leverage not: to accomplish what I want to do?

[jQuery] Not selector help (Solved)

2008-09-03 Thread Brad
How to use :not in the selector was throwing me. Docs were down, but back up (but very slow). $ ("[type=checkbox]:not('#specific_checkbox_id')").removeAttr('checked') On Sep 3, 12:57 pm, Brad <[EMAIL PROTECTED]> wrote: > I'm looking for the quicke

[jQuery] Re: Multiple AJAX calls problem

2008-09-01 Thread Brad
eled "these three plugins". Note that each word in that link is a separate link. On Sep 1, 4:37 pm, me-and-jQuery <[EMAIL PROTECTED]> wrote: > Hi Brad. Here I can see the same hint as micah was talking about > (unbind and then bind). Or do you have any other solution in mind?

[jQuery] Re: jquery - adding flexibility to a function

2008-08-31 Thread Brad
The selector is a string. Therefore with a slight modification you should be able to do this function loadContent(id) { $("#contentArea"+id).load("rpc.php?o="+id+""); } On Aug 31, 6:47 pm, TheOriginalH <[EMAIL PROTECTED]> wrote: > > > funct

[jQuery] Re: IE Problem with jquery in dynamically loaded iframe.

2008-08-31 Thread Brad
I can't tell from your example, but in my experience "works in other browsers but not IE6" can usually be traced to invalid HTML markup. Also if your actual code has any more object literals than shown make sure they don't contain a trailing comma, e.g., { name: 'foo', status: 'bar', } On Aug 31

[jQuery] Re: simple fade in/out

2008-08-31 Thread Brad
Chris, A simple example that shows the background color of a link changing on hover. This same effect could be achieved through pure CSS. Untitled Document $(document).ready(function(){ var bg = $("a").css('background-color'); // save to restore

[jQuery] Re: simple fade in/out

2008-08-31 Thread Brad
e where someone rolls over the link quickly? Any fade in or fade out will have some execution time associated with it. Brad On Aug 31, 10:42 am, chris <[EMAIL PROTECTED]> wrote: > thanks for your help but I can't get it to work. > > Anyway you can make a test case or somethin

[jQuery] Re: Multiple AJAX calls problem

2008-08-30 Thread Brad
Have a look at the article at http://www.learningjquery.com/2008/05/working-with-events-part-2.

[jQuery] Re: simple fade in/out

2008-08-30 Thread Brad
Untested, but it may be as simple as something like this: $(".classname").mouseover(function(){ $(this).fadein(); }).mouseout(function(){ $(this).fadeout(); }); Look at the page examples for fadein and fadeout at docs.jquery.com. If you need more control over the effects or w

[jQuery] Re: UI Tabs IE Style Problem

2008-08-29 Thread Brad
s the problem. -- Brad On Aug 29, 9:13 am, Brad <[EMAIL PROTECTED]> wrote: > I'm using the latest Tabs in a project that already has an established > page layout. I'm using the tab styles like the ones > athttp://stilbuero.de/jquery/tabs_3/. > > On Mozilla, Opera and Saf

[jQuery] UI Tabs IE Style Problem

2008-08-29 Thread Brad
I'm using the latest Tabs in a project that already has an established page layout. I'm using the tab styles like the ones at http://stilbuero.de/jquery/tabs_3/. On Mozilla, Opera and Safari the tabs display fine, but on IE 6 the space below the tab label and tab bottom is missing. As a result in

[jQuery] Re: AutoComplete Detecting mustMatch failure.

2008-08-20 Thread Brad
lete field. I'd like to clear the related fields immediately and not wait for the user to go to another field. On Aug 20, 2:45 pm, Brad <[EMAIL PROTECTED]> wrote: > Changing subject. > > I had originally entered "[AutoComplete] Detecting mustMatch failure" > and t

[jQuery] AutoComplete Detecting mustMatch failure.

2008-08-20 Thread Brad
Changing subject. I had originally entered "[AutoComplete] Detecting mustMatch failure" and the forum ate "[AutoComplete]". On Aug 20, 2:40 pm, Brad <[EMAIL PROTECTED]> wrote: > I have a number of fields that are using the AutoComplete plugin > instead of sele

[jQuery] [Autocomplete] Detecting mustMatch failure.

2008-08-20 Thread Brad
I have a number of fields that are using the AutoComplete plugin instead of select menus. When a user enters and selects a match a number of other fields are populated via a .getJSON. $("#f_orig_lookup") .autocomplete( "index.php",

[jQuery] Re: JQuery 1.2.6 and JQuery Form Plugin in IE7

2008-07-22 Thread Brad Kellett
Has there been any progress on this issue? I'm having the same 1.2.6/ jquery.forms issue, and commenting out line 203 doesn't work for me. I'd really like to use the newer jQuery build, but I need the forms functionality. ~bck On Jul 7, 1:04 pm, fgubert <[EMAIL PROTECTED]> wrote: > I have a simi

[jQuery] Re: Iterating returned JSON?

2008-06-30 Thread Brad
I figured it out. jQuery.each(key,val) { // not jQuery.each(data) do stuff } -- Brad On Jun 30, 11:20 am, Brad <[EMAIL PROTECTED]> wrote: > I'm using getJSON and PHP is returning JSON that looks like this (I > inserted returns for readability) > > [{ > "id&

[jQuery] Iterating returned JSON?

2008-06-30 Thread Brad
I'm using getJSON and PHP is returning JSON that looks like this (I inserted returns for readability) [{ "id":"220", "choice_name":"Foobar", "loc_affiliation":"Foobar Inc.", "address":"c\/o Some Co, Inc.\r\n999 W. 104th Street\r\nInglewood, CA 90304\r\nU.S.A.", "is_usa_address":"1", "phone_no":"5

[jQuery] Re: Select option name attribute

2008-06-25 Thread Brad
Your options should have "value" attributes and not "name". Text Text 2 Try something like $("textselectoroption:selected").val(); On Jun 25, 6:03 pm, Chas <[EMAIL PROTECTED]> wrote: > How do I retrieve the name attribute of a selected option using > jquery. > > IE: > > > Text > Text 2 > >

[jQuery] Re: Google Code Download not working - Any Mirrors?

2008-06-20 Thread Brad
Yes, on further investigation, it appears to be a DNS issue. Brad On Jun 20, 1:21 pm, Rey Bango <[EMAIL PROTECTED]> wrote: > Hi Brad, > > Seems like it may be something on your end as I was able to download it.

[jQuery] Re: Google Code Download not working - Any Mirrors?

2008-06-20 Thread Brad
http://jqueryjs.googlecode.com/files/jquery-1.2.6.js etc. Those links don't work. I manage to get files by looking at the html source of jquery.com. http://code.jquery.com/jquery-latest.pack.js http://code.jquery.com/jquery-latest.min.js http://code.jquery.com/jquery-latest.js Thanks, Brad On Jun

[jQuery] Google Code Download not working - Any Mirrors?

2008-06-20 Thread Brad
I'm trying to download the latest jQuery from the links on the jQuery home page. My browser gets to Google Code, but all listed downloads are failing w "Firefox can't establish a connection to the server at jqueryjs.googlecode.com." I've been trying for a while now with no luck. Are there any mir

[jQuery] Re: php mysql

2008-05-06 Thread Brad Hile
I'm certainly not a jquery.guru but do use jquery for database update (php/mysql) I think from your post your thinking of jquery in the same league as server side languages like php & ruby and its not. Its client side javascript with all the restrictions that brings but a much nicer way of dealing

[jQuery] Re: smartposition - a scrolling detection problem.

2008-04-05 Thread Brad
tion('.configstuff') }); > > possibly the k2 jquery pack includes dimensions plugin or something > > -S > > On 05/04/2008, Brad <[EMAIL PROTECTED]> wrote: > > > > > I'm using some code that I found in the K2 theme for WordPress. > > &g

[jQuery] Re: smartposition - a scrolling detection problem.

2008-04-05 Thread Brad
f the #post-navigation class. It's working now. And beautifully, too. Thanks for the help! Brad Kovach bradkovach.com On Apr 5, 5:17 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > I have only had a look round at the code I have in a wordpress install with > k2, I have no

[jQuery] smartposition - a scrolling detection problem.

2008-04-05 Thread Brad
I'm using some code that I found in the K2 theme for WordPress. function smartPosition(obj) { // Detect if content is being scroll offscreen. if ( (document.documentElement.scrollTop || document.body.scrollTop) >= jQuery(obj).offset().top) { jQuery('body').addClass

  1   2   >