[jQuery] Re: Anybody ever come up with a good way of doing dynamic CSS?

2010-01-08 Thread John Arrowwood
Sorry, I hit tab/space which auto-sent. Let's try to finish this... Basic idea is a template: .card .ct-$(type.id()) { width: x; /* etc. */ color: $(type.color()); } In truth, it is a little more complicated, because I have to make lots of rules for all different classes, but the key eleme

[jQuery] Anybody ever come up with a good way of doing dynamic CSS?

2010-01-08 Thread John Arrowwood
Basic idea is a template: .card .ct-$(type) { width: x -- John Arrowwood John (at) Irie (dash) Inc (dot) com John (at) Arrowwood Photography (dot) com John (at) Hanlons Razor (dot) com -- http://www.irie-inc.com/ http://arrowwood.blogspot.com/

[jQuery] using .live() with Beauty Tip - is it possible?

2010-01-08 Thread Jesper F
I'm using Beauty tip http://www.lullabot.com/files/bt/bt-latest/DEMO/index.html for example such as: $('.myclass').bt({ content: 'test content' }); which displays a nice tooltip. But how can I use it with jQuerys live event so that dynamically added classes

Re: [jQuery] hidden values associated with options of dropdown

2010-01-08 Thread Charlie
you'd likely find this a lot easier by  either using a database or array search here's an example using JSON. All of the information is stored in JSON until needed and can be searched easily with $.each http://jsbin.com/ohulu/edit CreativeMind wrote: Hi, I need the ways to solve the probl

[jQuery] Re: 2nd Trigger for images hover function

2010-01-08 Thread Šime Vidas
How many DIVs of class "tv" do you have? One? And you want an other DIV to trigger the cross-fade on the "tv" DIV? If that is the case... $(document).ready(function () { $('div.tv, #theOtherDiv').hover(function () { var div = $('div.tv > div'); if (di

[jQuery] Re: Jquery validation remote problem

2010-01-08 Thread Jeffrey
I figured something out.. in de js file of the validator is the next section: formatAndAdd: function( element, rule ) { var message = this.defaultMessage( element, rule.method ), theregex = /\$?\{(\d+)\}/g; if ( typeo

[jQuery] Re: SimpleModal (probably something really stupid)

2010-01-08 Thread Eric Martin
I would strongly suggest downloading the one of the demos [1], like the basic one, which will probably help answer all of your questions. -Eric [1] http://www.ericmmartin.com/projects/simplemodal-demos/ On Jan 7, 7:57 pm, polarwarp wrote: > I am using the jquery simplemodal code to display a

[jQuery] Re: My table tags are getting stripped out.

2010-01-08 Thread Dave Methvin
> Am I missing something? Well, *we're* missing something, like the markup that goes with the code. Can you point to a sample page maybe? Is #CalendarBody the TABLE tag? If so, you should be appending a THEAD or TBODY tag to it. Instead of returning HTML fragments, you might want to return JSON

[jQuery] Re: jquery 1.2.1 script not working with 1.3.2

2010-01-08 Thread Dave Methvin
>         $('t...@class^=child-]').hide().children('td'); Get rid of any @ for attribute selectors. In jQuery 1.3 we went to css standard syntax, which does not use the @.

[jQuery] Jquery Validation on Dropdown list Question

2010-01-08 Thread newbie198
How can I validate this as one hidden field.I have 3 dropbdown list month, day, year and I do not want to validate each separate on so I would like to combine the strings together and validate the hidden field. Pleas and thank you for your help. Birth dat

[jQuery] jquery 1.2.1 script not working with 1.3.2

2010-01-08 Thread jay0316
I've been working with this script that is used within to group a parent row with it's children, and then expand the children rows out when you click on the parent. I'm having trouble getting it to work in internet explorer using jquery-1.3.2.min.js The original script was using jquery-1.2.1.js.

[jQuery] Resource interpreted as script but transferred with MIME type text/html - Resolved

2010-01-08 Thread xanghe
I saw this warning in Chrome's console for the first time today while loading a jquery.js file in a new site. I used the same

[jQuery] Superfish - Working locally but not working live

2010-01-08 Thread Jason Camp
Very confused. Working on a Wordpress site/theme and integrating superfish for the main (pages) navigation. Everything is working on locally (running XAMPP on an XP box), but on the live site, child pages are not appearing as dropdowns. I can see in the source that the children are being written

[jQuery] Jquery validation remote problem

2010-01-08 Thread Jeffrey
Hi, I'm using Jquery.validation to remotly test if an e-mail is already in use, it works fine, but... if i do a remote check, it returns the correct response e.g. "some...@abc.com already in use" but when i click on the field, and then somewere else the message changes to "filename.php already i

[jQuery] Superfish separator

2010-01-08 Thread eddybaby
Hi, Only found superfish today, and man oh man do I love it! It's fantastic, and so customisable. My only problem I am having, is getting a separator to show between the menu items! I have tried editing mod_superfishmenu.php and in the xml file and just can't get it to show up. Tried stuff with th

[jQuery] 2nd Trigger for images hover function

2010-01-08 Thread Jordan
I recently implemented the Image Cross Fade Transition (http:// jqueryfordesigners.com/image-cross-fade-transition/) It works great, and I'm hoping to add to the code to enhance the functionality. Currently, if I hover over the image, it runs the cross fade transition, which I would like to keep.

Re: [jQuery] SUPERFISH - submenus not

2010-01-08 Thread Charlie
site isn't loading jquery , or superfish css and script files. Suggest removing one version of jQuery and only loading one. Check the paths to all these files. If they are avaialbel at the correct path you should be able to open them in a browser. Example: http://www.assured-it.com/modules/m

Re: [jQuery] Drag and Drop and Remember Position?

2010-01-08 Thread West415
Yes, please. Thanks, -w kippi-2 wrote: > > West > > The way that I was doing it was to store the HTML into the database. > Once I get to work I can get an example if you would like? > > Thanks > > Chris Owen > Sent from my iPhone > > On 8 Jan 2010, at 06:52, West415 wrote: > >> >> bump

[jQuery] Re: form.submit not function error jquery form plugin

2010-01-08 Thread -null-
sigh...several hours later I find out it's because the submit button has the id "submit" :(

[jQuery] hidden values associated with options of dropdown

2010-01-08 Thread CreativeMind
Hi, I need the ways to solve the problem. scenario is: I have a dropdown and 4 textboxes, which are filled through a callback function. dropdown has multiple values. on selected index change of dropdown i want to fill the text boxes with associated values. e.g dropdown has list of countries. when i

[jQuery] Re: looping through form elements.

2010-01-08 Thread rich
Rick, Thank you for your response. I was able to figure out $ (this).val() grabbed the value and you explained $(this).attr should do the trick with grabbing what type the input element is. I appreciate your help. I had to change .input to :input since I'm filtering out by the element not

[jQuery] reference dynamically loaded form select

2010-01-08 Thread sonicDivx
Been trying to find the best answer to a problem a co-worker is having with a form select field that gets loaded via an ajax call into a table cell. He has a form and when the page loads based on the value of another form field he makes an ajax call and loads a complete select statement. the ajax

[jQuery] Re: click event is not working

2010-01-08 Thread CreativeMind
thanx a lot! On Jan 8, 3:07 am, Charlie Griefer wrote: > http://docs.jquery.com/Events/live > > > > On Thu, Jan 7, 2010 at 2:01 PM, CreativeMind wrote: > > hi, > > i'm appending a child div in a parent div. parent div has already > > child div's which have classes ws_c1 and plus. > > > $('').add

Re: [jQuery] My table tags are getting stripped out.

2010-01-08 Thread brian
I can't see what might be causing that although you could change these 2 lines: $('#CalendarBody').children().remove(); $('#CalendarBody').append(response); ... to: $('#CalendarBody').html(response); That's if you're not using thead, tfoot, and tbody tags, of course. On Fri, Jan 8, 2010 at 12:

Re: [jQuery] :contains   in IE doesn't seem to work

2010-01-08 Thread brian
Do these cells contain *only* the nbsp? If so, you could go at it another way: $('td:last-child').each(function() { if ('' == $(this).text().trim()) { $(this).parent().addClass('markeme-sub'); } }); On Fri, Jan 8, 2010 at 7:41 AM, Jonatan wrote: > Hi, > >

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-08 Thread Scott Sauyet
On Jan 7, 7:48 pm, Frank Peterson wrote: > Well the xml file is not on my server, but I'll try to shoot them an > email and let them know, they should set the headers. Are you sure that you're not running into cross-site scripting issues? Security restrictions will prohibit you from AJAXing cont

[jQuery] form.submit not function error jquery form plugin

2010-01-08 Thread -null-
I'm trying to get an upload popup working with the jQuery form plugin (http://jquery.malsup.com/form/). When I click a link I load a form html from the server and add it to a container div by setting the div's html attribute. I then attach a submit handler to the form so I can call the ajaxSubmit

[jQuery] Re: Can we use jquery for paging and sorting in asp.net 2.0 ?????

2010-01-08 Thread MorningZ
Jackson as professional programmer who exclusively does .NET, allow me to tell you that getting into jQuery changes *everything* .NET's built in controls and jQuery (or any AJAX library in general minus MS Ajax or whatever they call it nowadays) do not play nicely together... in the case

[jQuery] Re: How to define/access public functions for a plugin?

2010-01-08 Thread Kevin Dalman
You could consider modifying your plugin to follow the jQuery UI Widget format. This takes advantage of the widget factory, which provides ways to access the methods and properties in 2 ways: 1) Through the element the plugin is applied to, eg: $("#myElement").smartList("selectedValue") 2) Or

[jQuery] Re: Can we use jquery for paging and sorting in asp.net 2.0 ?????

2010-01-08 Thread Mike Alsup
> take a look at jqGrid > > http://www.trirand.com/blog/ jqGrid rocks!!

[jQuery] Re: img src replacement

2010-01-08 Thread Glen_H
Hey Mark! Thanks for taking the time to respond! That is a great way to do it. I am learning jquery so I wanted to see how to do it in jquery. As you can see im having a tough time with it lol. thanks for the feedback though Glen On Jan 7, 9:53 pm, Mark Kelly wrote: > Hi Glen. > > I'm late to

[jQuery] Re: Getting Div to Show after mouseout

2010-01-08 Thread Rick van Hoeij
Hey, I would add another class to the div you want to show. That way you can keep it selected until you go over another div. Like this: $("a.mSelect").hover( function () { $('.selected').each(function(){ $(this).removeClass('selected'); $(this).hide(); });

[jQuery] Re: Getting Div to Show after mouseout

2010-01-08 Thread Rick van Hoeij
Hey, I would add another class to the div you want to show. That way you can keep it selected until you go over another div. Like this: $("a.mSelect").hover( function () { $('.selected').each(function(){ $(this).removeClass('selected'); $(this).hide(); });

[jQuery] Object position on mousemove. Failed to set up easing.

2010-01-08 Thread Tobi Eggger
Hello there, Obviously I've a problem :) An object's position is updated relatively to mouseposition on mousemove (opposite direction). Works perfectly well, but I failed to set up the code with smooth easing as result. The code works in Actionscript in Flash (of course in proper syntax) but it d

[jQuery] Re: Getting Div to Show after mouseout

2010-01-08 Thread Rick van Hoeij
Hey, I would add another class to the div you want to show. That way you can keep it selected until you go over another div. Like this: $("a.mSelect").hover( function () { $('.selected').each(function(){ $(this).hide(); }); var month = $(this).attr("rel"); $(

[jQuery] Re: looping through form elements.

2010-01-08 Thread Rick van Hoeij
Hey, Maby this will help: $('.input').each(function(){ alert('Value: ' + $(this).val() + ' - Type: ' + $(this).attr ('type')); }); That should do the trick. Just let me know. Greetz, Rick On Jan 7, 11:33 pm, rich wrote: > Hello all, I'm relatively new to JavaScript.  I would like to loop

[jQuery] Re: Go through XML nodes only 1 level deep

2010-01-08 Thread Frank Peterson
I just checked the headers and they seem to be outputting correctly. Date: Fri, 08 Jan 2010 13:47:32 GMT Server: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod_ssl/2.2.8 OpenSSL/0.9.8g X-Powered-By: PHP/5.2.4-2ubuntu5.6 Content-Length: 454 K

Re: [jQuery] Can we use jquery for paging and sorting in asp.net 2.0 ?????

2010-01-08 Thread Jon Banner
take a look at jqGrid http://www.trirand.com/blog/ I rarely use asp these days but i think there is a component available. good luck Jon 2010/1/8 Jackson...!!! > Hello All, > > Using jQuery can we include asp.net 2.0 gridview, paging sorting and > in-place editing. > > > Waiting for a favor

[jQuery] (validate) Adding in custom validation

2010-01-08 Thread echuang, chew
Currently I am adding my custom validation (messages, rules) into jquery.validate.js directly. Anyone know how to adding in own customized validation into another js file and if possible, make the jquery.validate.js UNTOUCH.

Re: [jQuery] Re: img src replacement

2010-01-08 Thread Mark Kelly
Hi Glen. I'm late to the thread (and this is probably a bit off-topic for this list) but up until the point where you asked for the cross-fade, everything you need can be done with vanilla CSS, no need to involve jquery at all. In the page: Currently accepting new jobs In the CSS: div#avai

[jQuery] Getting Div to Show after mouseout

2010-01-08 Thread TheHatchet
$("a.mSelect").hover( function () { var month = $(this).attr("rel"); $("#m" + month).fadeIn(); }, function () { var month

[jQuery] looping through form elements.

2010-01-08 Thread rich
Hello all, I'm relatively new to JavaScript. I would like to loop through all the elements within a form and grab their values and what type of input they are. So far I came up with: $(':input').each(function(idx, item) { alert(idx); }); The alert is placed there to see if it loops and it

[jQuery] My table tags are getting stripped out.

2010-01-08 Thread choboj...@gmail.com
Hi I am using jquery form plugin http://jquery.malsup.com/form/ I am not sure if I am doing something wrong but it seems to be stripping out my tr and td html tags when I send stuff back from the server and I am not sure why. I have an asp.net MVC ContentResult that returns some html code. When

[jQuery] Can we use jquery for paging and sorting in asp.net 2.0 ?????

2010-01-08 Thread Jackson...!!!
Hello All, Using jQuery can we include asp.net 2.0 gridview, paging sorting and in-place editing. Waiting for a favorable response. Thanking you, Jackson C.

[jQuery] Jquery UI tabs lockable ?

2010-01-08 Thread URBY
Hi i was wondering if it would be possible to lock out other tabs so the user is stuck on one ..until a user hits a button. For example an Admin is adding someone to a database- the Admin is on the add user tab but after enacting this add process(by input) they cannot leave this tab until either c

[jQuery] :contains   in IE doesn't seem to work

2010-01-08 Thread Jonatan
Hi, I've just recently started to use jQuery, and it has already proven extremely useful for formatting tables (and other things as well!). I get raw html-tables into my page, and my only way of styling them are css and, now, jquery. And it's worked out fine. But now I've run into a problem. Whic

[jQuery] Help with async ajax inside a loop.

2010-01-08 Thread slmnhq
Hi, I have a block of code which iterates through a list of urls and performs an asynchronous ajax request on each url. The call back function assigns the returned data object to the key of another object. The key is the current item in the list that is being iterated on. The problem: The key is a

[jQuery] Re: SimpleModal (probably something really stupid)

2010-01-08 Thread slmnhq
Did you look at jQuery UI's dialog plug-in? It's very easy to use: http://jqueryui.com/demos/dialog/#modal-message Salman On Jan 7, 10:57 pm, polarwarp wrote: > I am using the jquery simplemodal code to display a div on a page. > > I am pretty much calling .modal(); on the div, which has a clas

[jQuery] JQuery or JBoss RichFaces Which is the best?????

2010-01-08 Thread hferreira
Hi I work for some time with JBoss Richfaces and I like it for several reasons. However now it was requested to study the integration of JBoss Richfaces and JQuery. I saw in the Richfaces demo that's already some kind of integration between the two (Richfaces and JQuery). However, from your poin

[jQuery] Hello all , this is my first venture with Jquery , I am trying to build a Dropdown menu with Menuselects in the Dropdown please take a look

2010-01-08 Thread GP305
I in IE 8 and Firefox , Opera , and Safari it works fine but im having problems with IE6 and IE7 for some reason when i mouse over and try to move down the box dissappears ... it is a modified version of Plain Drop Down Menu http://afterofficemiami.com/dropdowntest.html in IE6 and IE7 it doesnt w

[jQuery] JQuery UI Draggable Thumbnail Filmstrip

2010-01-08 Thread Ray
As a learning experience (and to get the look I wanted), I hand wrote HTML/CSS/jQuery code for a photo gallery with a thumbnail filmstrip. I started with a few ideas of how to slide the thumbnails underneath the main panel of the gallery, and figured the easiest and smoothest way would be to initia

[jQuery] simple testing of selectors returning empty result

2010-01-08 Thread Stepan Kabele
In many situations I use jQuery selector and I want to check that result is non empty. To make this simple, I use this code: // jQuery extension to test non-empty select (function($) { $.fn.notempty = function() { if (this.length==0) throw('Empty jQuery selector');

[jQuery] Problem with using autocomplete on Firefox - asp.net

2010-01-08 Thread venustus
Hi, I have a search interface on my site http://www.govforyou.co.uk/Default.aspx that allows users perform multiple kinds of searches. You can try it out by typing in the text box at the top. It basically contains a drop down which has 5 options and a text box next to it where user can type searc

[jQuery] Re: ie8 and title text value

2010-01-08 Thread Šime Vidas
Well, maybe the guys at jQuery optimized the text method only for elements that can appear more than once... I don't know. However, text() should not be used for TITLE anyway, so this "bug" is not a problem.

[jQuery] Tabbed Pane

2010-01-08 Thread Gilbert
Hi I've just downloaded the plugin and I'm starting to play around with it. Firstly, on first display, the selected tab is defaulting to 1 rather than 0 as documented. This looks odd with the second tab selected rather than the first. I see this in both 1.8.0 and 1.8.1 Secondly, I'm starting wit

Re: [jQuery] Multifile - help

2010-01-08 Thread jayakumar ala
Thanks ... this will surely help me... On Tue, Dec 29, 2009 at 5:39 PM, brian wrote: > OK, I think I understand now: you need to have separate groups of > files, each with their own MultiFile input and, thus, one or more > files for each group? In that case, you can check for the existence of >

Re: [jQuery] Re: ie8 and title text value

2010-01-08 Thread graham
Šime, $('title').html() works fine in both IE8 and FF, fixing my problem. But I don't understand why the difference in behaviour on : surely if there's only one title element than the innerHTML of the first matched element should be the same as the concatenated innerHTML of all matched elemen

[jQuery] Re: How can I create an element dynamically using jQuery

2010-01-08 Thread Virgil Spruit
If you want to manipulate the DOM you can find it documented here; http://docs.jquery.com/Manipulation As for your question, you could either do the following; $("#foo").after("text I want to insert"); $("#foo").before("text I want to insert"); Or more neatly; var pToInsert = $('').append("text