[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread RobG
On Oct 8, 10:04 am, Ryan Crumley wrote: > I am experiencing unexpected behavior using $(document).ready() on a > page where I inject jQuery after the page has loaded and then attach > listeners to the ready event. The ready() event is never called using > Firefox and Safari however it is called

[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread MorningZ
You've got a super serious flaw in your logic 1) It appears you have this sitting on the page... no JS has been "loaded" or executed at this point 2) someone clicks the button, you call "loadjquery" 3) in there, you seemingly want to add the script tag to the , at which point you seem to *ho

[jQuery] Re: Hide row if empty

2009-10-07 Thread Wacko Jacko
I am having a bit of trouble with this one. Thanks for your help. I could get it working if the parent is a but not if it's an . Here's my html: Why I am involved: {tag_why are you involved?} Current projects & activities: {tag_current pro

[jQuery] Re: Ajax related issue

2009-10-07 Thread stevel
I found the answer to my own question. To overcome this problem, I have to use the .live method to bind current and future elements on the page. I made the following change to my function to use the .live method.: jQuery.fn.checkmarkClickWithAjax = function(){ this.live("click",function(){

[jQuery] png fix with jquery ui?

2009-10-07 Thread jessie
Is there such a thing as a jquery ui plugin for png? Jess

[jQuery] Easy but nice lightbox i can add?

2009-10-07 Thread jessie
Hi Does anyone know of an easy lightbox i can add to my ecommerce site? i'd liek to get rid of the prototype one and replace it with jquery. Thanks Jess

[jQuery] Re: applying jquery to my input submit buttons

2009-10-07 Thread jessie
Sorry forgot to add i also have this in my jquery which i don't think it would affect the input as they are images. $('input[type="image"]').hover( function () { $(this).attr("src", $(this).attr("src").split('- off').join('-on')); }, function () { $(th

[jQuery] applying jquery to my input submit buttons

2009-10-07 Thread jessie
Hi Hoping someone can help me. I have a class for my submit buttons. .submit { font-size:11px; font-weight:bold; color:#fff; border:1px solid #878787; background-color:#878787; cursor:pointer; } .submitHover { font-size:11px; font-

[jQuery] Re: Dynamic values

2009-10-07 Thread Richard D. Worth
You can use the metadata plugin ( http://plugins.jquery.com/project/metadata) to store and retreive the values like so: http://some/url/to/open/in/dialog"; class="DialogEdit {width:500,height:250}">link text Then something like this should do: $('.DialogEdit').click(function() { var options = $

[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread Ryan Crumley
I put together that example because it is the most simple piece of code I could create to reproduce the problem. My real process is actually more complicated and there are real gains to be had for using document.ready() in this way. Consider the following two cases: 1. If instead of dynamically l

[jQuery] Re: Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread MorningZ
While i don't know the answer to your strange issue... as "document.ready" fires when, well, when the document is ready i do wonder: why the complexity? You aren't gaining anything except on the first load of the library (and then the browser caches it), heck even that first load is probably

[jQuery] Re: (validate)

2009-10-07 Thread Bjarki
Hello Miguel, for part 3, you can use errorPlacement like this. errorPlacement: function(error, element) { if (element.attr('id') === yourItem.attr('id')) { // insert the error after a given Item error.insertAfter(givenItem);

[jQuery] Re: Quick question on image loading

2009-10-07 Thread Mulyadi Oey
Yes, using a sprite can easily remedy the flickering problem during rollover. Unfortunately, it won't work in IE6 if you try to position a sprite PNG file that contains transparency -- this is a separate topic but you generally need to "hack" the transparent png file in order to keep the transpare

[jQuery] Image Preloading

2009-10-07 Thread moey
I have a page that: * Has a button whose background image will change upon rollover (done in CSS, using ":hover") * Preloads the rollover image for the button above (done using a simple jQuery script) The page can be found at http://test.happypod.com/preloadimage/ The part that I don't quite und

[jQuery] Re: Quick question on image loading

2009-10-07 Thread Mulyadi Oey
Related to this topic -- I have a page that: * Has a button whose background image will change upon rollover (done in CSS, using ":hover") * Preloads the rollover image for the button above (done using a simple jQuery script) The page can be found at http://test.happypod.com/preloadimage/ The pa

[jQuery] Re: Quick question on image loading

2009-10-07 Thread Mulyadi Oey
Related to this topic -- I have a page that: * Has a button whose background image will change upon rollover (done in CSS, using ":hover") * Preloads the rollover image for the button above (done using a simple jQuery script) The page can be found at http://test.happypod.com/preloadimage/ The pa

[jQuery] Re: jQuery, Firefox, & Flash... The animate()/animation bug: A fix?

2009-10-07 Thread mhulse
> Hopefully this fix will get rolled into a future release of jQuery. :) If you are having similar probs, and do not want to edit the jQuery source, this was my fix: ... var ff = false; var userAgent = navigator.userAgent.toLowerCase(); if ((/mozilla/.test(userAgent)) && !(/(compatible|webkit)/

[jQuery] jQuery, Firefox, & Flash... The animate()/animation bug: A fix?

2009-10-07 Thread Micky Hulse
Hi, I posted a message a while back asking about this: "SWF & animate() bug? Reloads swf. :(" But for some reason I can only reply to myself for those messages... Must be because the thread is old. Anyway, someone has posted a hackish fix here:

[jQuery] Unexpected $(document).ready() behavior when jQuery is loaded after the page

2009-10-07 Thread Ryan Crumley
I am experiencing unexpected behavior using $(document).ready() on a page where I inject jQuery after the page has loaded and then attach listeners to the ready event. The ready() event is never called using Firefox and Safari however it is called using IE. Is this a jQuery bug? Is it working as

[jQuery] Dynamic values

2009-10-07 Thread Patrick
I'd like to be able to set the size of a jQuery dialog dynamically when I call it based on the target to be shown. I was considering adding invalid attributes like the following... where edit_width and edit_height are parsed and passed right before opening the dialog. But it's probably not be t

[jQuery] Re: jquery ajax question?

2009-10-07 Thread James
> $this->input->post('active') Is "active" the right variable? Or did you use "article" like I put in to my example? This is a jQuery group meant for jQuery questions, so I'm trying to help on the jQuery part, mainly. Try using Firebug for Firefox to debug the AJAX request, and determine whether t

[jQuery] Re: jquery ajax question?

2009-10-07 Thread rosnovski
Hey thanks for the reply, the group lives!!! I did that and still nothing. I am using codeigniter and I would like to paste the code incase it sheds more light and maybe a solution? thanks here it is: MODEL- function displayby_name($name) { $this->db->select ("articletitle,articlebody,articleau

[jQuery] jquery ui datepicker and cluetip

2009-10-07 Thread dpoi
Hello, i am trying to use cluetip to show events schedule when the mouse is over a datepicker date. I found this way : ... beforeShowDay: function(date) { return [dates[date], (dates[date]) ? 'info_evenement' : '', information_du_jour]; }, onChangeMonthYe

[jQuery] Superfish - How do I make superfish respond to onclick instead of hover?

2009-10-07 Thread Spencer
I am using superfish and I am wondering how I can go about changing the hover event to click so that when people hover over the links it doesn't do anything until they click them. Thanks, Spencer

[jQuery] (validate)

2009-10-07 Thread msimoes
Hello, I've started to use this plugin within an application I'm building, but I've noticed some restrictions in usage like: 1. How to "remove the label"? I just wanted to be able to highlight the field that is a required or something, and no label. For this I've create a new boolean option name

[jQuery] Printing/Manipulating Attribute Values in an Array

2009-10-07 Thread Gil
I am creating an array wherein I am (succesfully) grabbing all child images based on a parent node and source file name: var cimage = globals.ref.parent().find('img[src*=blue]:not(:first)') globals.childImg = cimage; There are 8 items coming back in the array (there are 8 images). I want to be

[jQuery] Re: jquery ajax question?

2009-10-07 Thread James
$(active).serialize() will not do anything to a text element, only input elements. You'd probably want to change your ajax data option to something like: data: { article:active } where "article" will become your field name in your script. "active" is your Javascript variable (var active = $(this

[jQuery] Re: Function run during animation

2009-10-07 Thread Ramon
Thank you so much, this is just what I needed :) Ramon On 7 oct, 19:40, "Richard D. Worth" wrote: > In the second argument to .animate() you can specify a step callback, like > so > $("#myDiv").width(100); > $("#myDiv").animate({ width: "500px" }, { >   duration: 500, >   step: function(val, op

[jQuery] jquery ajax question?

2009-10-07 Thread rosnovski
Hi y'all, Please look at this code: $('ul#navigation li ul li>a').click(function(){ var active = $(this).text(); $('#artcontent p').empty(); $.ajax({ type: 'POST', url: 'homepage/readarticle', data: $(active).serialize(),

[jQuery] cant pass value to ajax call.

2009-10-07 Thread shaded
here is my code. $("#ddl_customer").change(function(){ cuslist = $("#ddl_customer").val().join(", "); alert(cuslist); }); $("#ddl_customer").selectChain({

[jQuery] Re: Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)

2009-10-07 Thread Shawn - Eclectic Whimsy
Update. I figured out which area was causing the issues. Zeroed out the margins on the main content area and used padding to place the content where I wanted it. Worked like a charm. Thanks again BaBna for headin' me in the right direction on this. On Oct 7, 11:04 am, BaBna wrote: > Hey there,

[jQuery] Re: Split Form field into array

2009-10-07 Thread James
I've set up a sample page on JS Bin: http://jsbin.com/oqeco Check the source for the code. On Oct 7, 2:38 am, "robert...@gmail.com" wrote: > It seems straight forward but I still need some advice. I have this so > far just to see if I can split the array twice...but it is not working > > $(docu

[jQuery] Re: Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)

2009-10-07 Thread Shawn - Eclectic Whimsy
I forgot to include the link again, just so it's handy if anyone can take a look: http://www.auntiepea.com/ew/OldFarm/index.html

[jQuery] Re: Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)

2009-10-07 Thread Shawn - Eclectic Whimsy
Thanks so much BaBna. I think you're right about it not having anything to do with the javascript itself. I probably should be asking this in a general web design forum except for that I've never had issues with this shifting (at least not nearly to this degree) on sites that haven't included the

[jQuery] Autocomplete plugin - varying the ac_results class for different instances

2009-10-07 Thread Nick
I've been using the jquery autocomplete plugin by Jorn Zaefferer (thanks for the nice work). My problem is that results are returned in a class="ac_results", and I'd like to edit this class name at will with the initialization of every instances so I can put them into different groups for styling

[jQuery] Ajax related issue

2009-10-07 Thread stevel
I encountered an unusual problem. I have a ajax setup. And clicking a specified image will call this ajax function. It goes something like: jQuery.ajaxSetup({ 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept","text/ javascript")} }) jQuery.fn.checkmarkClickWithAjax = function(){ t

[jQuery] Unable to detect Ajax cross domain error (Firefox)

2009-10-07 Thread Kris Schoofs
Hi, Using Firefox 3.5.3 (and firebug) I run the Ajax code below locally (i.e. not on the same domain as the Ajax URL). Unlike in IE, this code is not working in Firefox due to cross-domain Ajax restrictions. Of course, as soon as I upload the code to my PHP server on the same domain it runs fine.

[jQuery] Re: IE: Cursor still displays hourglass symbol after unblocking

2009-10-07 Thread Eeyore145
To MorningZ: Oh please, rude? Rude is speaking with no context. There was no ill will, in fact if you actually read posts this group, a question was asked to the community regarding besides a mouse listener how to get around this problem in IE in relation to potenially editing the code. "Bug" i

[jQuery] Re: Binding a unique single and double click command

2009-10-07 Thread Sam
Thanks for the help! I nailed it with the following: $('.todo_item h2').live('click', function() { clicks++; x = $(this); if (clicks == 1) singleClick = setTimeout(function() { clicks = 0; showExtra(x); }, 300); if (clicks == 2) { clearTimeout(singleClick); clicks

[jQuery] Re: (autocomplete)

2009-10-07 Thread Alberto SOUZA
Hi, i resolved the probleam, actually, i was looking for in the wrong place. I had to use the "parse" function to solve the problem when i get json from the server. Thanks! On Wed, Oct 7, 2009 at 11:22 AM, Alberto wrote: > > I'm trying to use the plugin with generated json, but the parse isn't >

[jQuery] Drag and drop file upload

2009-10-07 Thread Mika Tuupola
This is a request for help from people who have Google Gears installed. Could you try the following demo: http://www.appelsiini.net/demo/gears_upload/demo.html Just drag and drop image or multiple images to the page and they are uploaded. I try to figure out if there are any browsers with

[jQuery] Re: Function run during animation

2009-10-07 Thread Richard D. Worth
In the second argument to .animate() you can specify a step callback, like so $("#myDiv").width(100); $("#myDiv").animate({ width: "500px" }, { duration: 500, step: function(val, opt) { console.log(val, opt) } }); The val in above will go from 100 to 500, and opt will contain among other

[jQuery] Grouping tags and surrounding each group with a div

2009-10-07 Thread Lleoun
Hi all, The code below is producing this: Titlelalala Titlelalala Titlelalala Titlelalala Titlelalala Titlelalala Titlelalala But I need to get : Titlelalala Titlelalala Titlelalala Titlelalala Titlelalala Titlelalala Titlelalala As you may have guessed contentLenght is dynamic, comi

[jQuery] Re: SimpleModal box in the window that contains an iframe

2009-10-07 Thread Yeuker
Unfortunately yes, both jquery and simplemodal are in the iframe b. On Oct 7, 9:56 am, BaBna wrote: > Are the Simple Modal function and jQuery also in frame B? > If yes, I am not sure, and that sounds like a bad idea... > If not, you should be able to do something like this: > var t = top.window

[jQuery] Re: Firefox only selecting first element with given class

2009-10-07 Thread Phil
Very odd. Cleared cache and such when testing. Doesn't work in 1.3.2 does work in 1.2.6 Good news is I don't need 1.3.2 so problem is solved more or less. If i run into it on any other site I may have to investigate further. Thanks for looking at it. On Oct 6, 2:51 pm, Giovanni Battista Leno

[jQuery] How to create self-closing media playback? (media plugin, or alternative?)

2009-10-07 Thread cbandes
Hi - for a project I'm working on I want to make a video which will close itself when playback is complete. The idea is - on loading the page a container div will appear and auto- play the video, then when playback is complete the video will be unloaded and the container will disappear. Invoking

[jQuery] JQuery And The MIT License Question

2009-10-07 Thread AaronSnobel
I know this might have been asked before but I would like a final and complete answer as it pertains to my situation.. I have a commercial webapp that I will be selling I would like to include the jquery library in my web app under the MIT License. I just wanted to verify that jquery under the mit

[jQuery] Function run during animation

2009-10-07 Thread Ramon
Hi all, I hope you will be able to help me out. I was wondering if there is a way to execute a function after every animation step WITHOUT modifying jQuery core. Thanks in advance! Ramon

[jQuery] Accordion in IFrame

2009-10-07 Thread Tom
Hello, I am working with DotNetNuke and the Accordion widget from JQuery. The problem is that the DNN-page is loaded in an IFrame so i cannot acces the accordion. The contents of the IFrame is loaded dynamically. I have tried to acces it this way: $(""#frmDNN #accordion"").accord

[jQuery] (autocomplete)

2009-10-07 Thread Alberto
I'm trying to use the plugin with generated json, but the parse isn't going very well... My json, that is being produced is something like that: [ { "id": "9887", "nome": "Salvador", "estado": "BA" }, { "id": "9890", "nome": "Salvaterra", "estado": "PA" }, { "id": "9888", "nome": "Salvador das Mis

[jQuery] Problem with box positioning in IE7 when using jquerycyclelite

2009-10-07 Thread bobbykjack
I don't have time to put a real test-case together right now, but just on the off chance that someone's experienced the same class of problem: I'm using jquerycyclelite (http://malsup.com/jquery/cycle/lite/) to animate a set of linked images. An ancestor element has padding, but the images seem t

[jQuery] Re: Autocomplete plugin: results as table?

2009-10-07 Thread Maarten
http://autocompleter.mwierda.blackpearl.minus3.nl/demo/table.html type in 'c' for a grouped result, using a TABLE for the layout. its mostly the fillList that's altered, see: http://autocompleter.mwierda.blackpearl.minus3.nl/jquery.autocomplete.js please let me know if this was helpful or if the

[jQuery] Re: Switch image source during toggle

2009-10-07 Thread Gremlyn1
Bump? On Oct 5, 3:19 pm, Gremlyn1 wrote: > Sure, as I said I have the following function in place: > $j(document).ready(function() { >     $j('#answerbox').hide(); > >     $j('a.faq').click(function() { >         var faq_id = $j(this).attr('id'); >         $j('#faq' + faq_id).slideToggle("fast")

[jQuery] Re: jQuery Right click menu

2009-10-07 Thread Jon Banner
you must have asked your question outside of normal support hours. have you looked into this plugin? http://abeautifulsite.net/notebook_files/80/demo/jqueryContextMenu.html 2009/10/7 donovan78 > > Hi , please whymy question is not answer ? > something is not clear ?

[jQuery] Re: jQuery Right click menu

2009-10-07 Thread donovan78
Hi , please whymy question is not answer ? something is not clear ? thanks.

[jQuery] jQuery Sprite Factory

2009-10-07 Thread weepy
A jQuery factory for creating sprites from images. Each sprite created from a Sprite Factory is assumed to be the same size Features * Works from a rectuangluar grid of sprites. * Fast, good for rendering large numbers of similar sprites * Preloading CSS for large images (will add t

[jQuery] Re: Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)

2009-10-07 Thread BaBna
Hey there, I don't think it has anything to do with the javascript here, it's your CSS or HTML structure: you've got DIV and P on the same level, and you must miss some float or overflow property on some of your DIV. Basically, your div with the "jScrollPaneContainer" class is not pushed below by

[jQuery] Re: Multiple checkbox validation

2009-10-07 Thread Rick Faircloth
If you only want to force only one checkbox to be checked at any given time, why not just use radio inputs? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of OOps Sent: Wednesday, October 07, 2009 2:48 AM To: jQuery (English) Subjec

[jQuery] Re: SimpleModal box in the window that contains an iframe

2009-10-07 Thread BaBna
Are the Simple Modal function and jQuery also in frame B? If yes, I am not sure, and that sounds like a bad idea... If not, you should be able to do something like this: var t = top.window; var $d = t.$(document.body); $d.find("#myElement").modal(); On Oct 7, 2:36 pm, Yeuker wrote: > Hi Everyon

[jQuery] Re: adding filters in the middle of a selector brings Firebugs warning

2009-10-07 Thread BaBna
Sorry, the message is "Unknown pseudo-class or pseudo-element 'first'".

[jQuery] adding filters in the middle of a selector brings Firebugs warning

2009-10-07 Thread BaBna
Hi, If I am doing this: alert($(".ivts_thead").find("tr:first").find("td").length); alert($(".ivts_thead tr:first td").length); I get in both cases the same result, the expected elements are in my object, but in the second case, I get a Firebug warning saying "Unknown pseudo-calls or pseudo-el

[jQuery] Problems with elements shifting when scripts are activated in IE8 (jscrollpane script)

2009-10-07 Thread Shawn - Eclectic Whimsy
Hi there, I'm fumbling through here so I apologize in advance for being such a newby to javascripts and jquery. I spent the entire day yesterday getting jscrollpane to work on a site I've been working on and was SO excited to see that it was working beautifully in firefox this morning after some e

[jQuery] SimpleModal box in the window that contains an iframe

2009-10-07 Thread Yeuker
Hi Everyone, I am using Eric Martains Simple Modal dialog box. Here is my problem. I have a page, (which we will call page A) that contains an iframe (which we will call page B). I can modify page B, the iframe, but I can not modify page A, the containing page. I would like to display the mod

[jQuery] Re: Toggle Classes

2009-10-07 Thread Charlie
it's your use of next() that's incorrect. You have 2 cases of HTML now so explanation a little trickier. Original html .arrow was a descendant not a sibling, next() looks for siblings so in 1st case changing to find() or children() would work Second case HTML, next looks down the DOM and arro

[jQuery] Re: Toggle Classes

2009-10-07 Thread captaincarp
Have you tried .addClass() and .removeClass() and setting up a different action for each, thus simulating toggle? craigeves wrote: > > > Hi > > Can anyone help? I'm trying to toggle a class on the span .arrow when > you click .msg_head. I have several classes of .arrow on the page and > on

[jQuery] Haccordion plugin problem

2009-10-07 Thread khosis
Hi guys, got stuck and looking for help. I CSSed haccordion to become a vertical slide-out gallery menu, and needed a way to hide the expanded list (.content) when item is clicked (when user chooses a photo, see URL below). That was no big deal, just used JS set the .content width to 0px just lik

[jQuery] $('#div').load('url') on ajax success?

2009-10-07 Thread captaincarp
Hi there, Firstly this forum has been always been so good that's I've never actually needed to start a thread before because the old threads are so useful! Now though, i'm stuck! I have ajax which checks a login form on success I want to create a div and populate it with the contents of anothe

[jQuery] Re: (validate) How to activate validation on first blur?

2009-10-07 Thread Thomas
I believe I've found an acceptable solution that doesn't require hacking the plugin itself. I hope I haven't overlooked any unwanted side effects now. I've instantiated validate like this now, essentially overwriting the onfocusout handler: $(myform) .validate( onfocusout:

[jQuery] Re: JQuery Won't Parse RSS?

2009-10-07 Thread Charlie
Google has a great API for feeds that doesn't require the proxy php you are using. There are also several jQuery plugins wrapping the google feed API http://code.google.com/apis/ajaxfeeds/ NRutman wrote: MorningZ, done that. My approach is exactly what some other folks are using. I'm ju

[jQuery] Re: autocomplete question

2009-10-07 Thread Bjarki
I found out there is a formatMatch function. formatMatch: function(row) { return row.N; } it's just not in the documentation On Oct 7, 10:50 am, Bjarki wrote: > I am looking at the auto-complete demo page, > (http://view.jquery.com/trunk/plugins/autocomplete/demo/) on the demo > of remote ima

[jQuery] Paging webservice search results

2009-10-07 Thread Lleoun
Hi all, I'm having trouble paging from six to six the search results coming from a webservice, hope someone can help : Let's see it with an example: The variable that stores the number of elements of the search results array is called contentLenght. Let's say that contentLenght equals 9. Then

[jQuery] Re: Split Form field into array

2009-10-07 Thread robert...@gmail.com
It seems straight forward but I still need some advice. I have this so far just to see if I can split the array twice...but it is not working $(document).ready(function() { $("#GetData").click(function() { var string = $('#PartNum').val().replace(/(\r\n)/g, "~"); var group = string.split('~');

[jQuery] How make a guiDesigner like ExtJsGuiDesigner with jQuery?

2009-10-07 Thread mssoft.id
Hi friends. Is there any plugin for jQuery which could do some thing the same as ExtJsGuiDesigner? I mean making a Gui(forms, blocks, ...) and then saving the output in JSON or XML format, and using that saved files in our site. Any links or samples? pls help me. tnx. best wishes.

[jQuery] (validate) JSON Response for remote method

2009-10-07 Thread zeussolo
Hi all, I would like to use the remote method to do a validation of user data but I cannot configure the server-side script to simply return "true" or "false". It can only return a JSON object like {"result":true} or {"result":false}. How do I have to configure the remote method to handle that? I

[jQuery] Multiple checkbox validation

2009-10-07 Thread OOps
Item1 Item 2 Item 3 Item 4 Item 5 Item 6

[jQuery] autocomplete question

2009-10-07 Thread Bjarki
I am looking at the auto-complete demo page, ( http://view.jquery.com/trunk/plugins/autocomplete/demo/ ) on the demo of remote images. the Javascript for that is $("#imageSearch").autocomplete("images.php", { width: 320, max: 4, highlight: false,

[jQuery] Styling the first word of an element

2009-10-07 Thread Mcometa
Hi guys, my first time to start a new discussion here. I need some help in writing a jQuery code that will style the first word of each and every element that I declare. For example, I would like to style the first word of an H3 tag. What I have in mind is something that would do something like b

[jQuery] validation: preprocessing form fields ?

2009-10-07 Thread pike
Hi I've started using jquery validation on my forms. Often, I need to pre- process a field before I want to validate it. For example, if someone forgets to prefix http:// before an url, I can just do that, instead of returning error messages. Or sometimes, a field needs to be lowercased and I can

[jQuery] Re: Toggle Classes

2009-10-07 Thread craigeves
I have just updated my code and still no luck :( Here is my new code... can anyone help? Thanks, Craig JS $(document).ready(function(){ $('.expander_content').hide(); $('.expander h3').click(function () { $(this).next('.expander_content').slideToggle('slow'); $

[jQuery] (validate) How to activate validation on first blur?

2009-10-07 Thread Thomas
Hello! I'm using the validate plugin, and I am loving it. Unfortunately, my client would like to show validation errors on form fields on blur events every time, as opposed to showing them only if the user has previously entered something in the field at least once. Before I start hacking insid

[jQuery] Re: How to add some string in attributes?

2009-10-07 Thread Teddy
Thanks Liam Potter... I want this becoz my case in Drupal case... :D If u know about primary link drupal based on link... So I override that link became image link based on title link... If I use css... I must add some line css for that link when I add some link in Drupal On Oct 6, 5:10 pm, Li

[jQuery] Re: (autocomplete) help about extraparams

2009-10-07 Thread Otniel Zebua
Thanks alex, it works. On Wed, Oct 7, 2009 at 7:20 AM, wrote: > please try cacheLength=0 arg to autocomplete. > >

[jQuery] Re: ui.tabs adding an onclick event to a nested tab

2009-10-07 Thread Dylan
var divId = $(this).parents("div[id^=tabs-]").attr("id"); var sTag = "inner tab: " + $("#tabs ul li a[href=#"+ divId +"]").text (); sTag = sTag + "\nmain tab: " + ui.tab.textContent; alert(sTag); On 7 Oct, 10:26, Dylan wrote: > U

[jQuery] Re: ui.tabs adding an onclick event to a nested tab

2009-10-07 Thread Dylan
UPDATE: Within the function, I get the parent div elements ID. var divId = $(this).parents(“div[id^=tabs-]”).attr(“id”); Then I thought I could use this ID of that div, to select the link that has that ID as an anchor? But this last part just returns [Object object]? alert($("#tabs ul li a[h

[jQuery] Toggle Classes

2009-10-07 Thread craigeves
Hi Can anyone help? I'm trying to toggle a class on the span .arrow when you click .msg_head. I have several classes of .arrow on the page and only want to toggle the class of the span within the element i'm clicking. This is my code - but it doesn't work... any advice? Thanks Craig $(".msg_h

[jQuery] Re: Superfish issues in ie6 and 7

2009-10-07 Thread neonwiredpixels
You were correct, i was using a transparent menu and this was the issue. Many Thanks. On Oct 1, 4:14 pm, Charlie wrote: > i've found if the li doesn't have a background it does what you are > describing inIE, try adding background even if it has to be a transparent gif > (gif vs png to avoid I

[jQuery] Re: A seemingly simple .load

2009-10-07 Thread Fluffica
Should I take this to mean no one's quite sure? I know it's kinda rude of me to throw a chunk of code up like that, but I'm pulling my (prematurely gray) hair out. On Oct 5, 2:09 pm, Fluffica wrote: > Good Morning/Afternoon (depending where you are) > > I would usually hate to post chunks of co

[jQuery] ui.tabs adding an onclick event to a nested tab

2009-10-07 Thread Dylan
Hi, I want to send an alert to the user indicating the title of the tab they have clicked. This is easy enough in principle using $('#tabs').bind('tabsselect', function(event, ui) { alert( 'ui.tab.textContent: ' + ui.tab.textContent ); }); But I also have a set of tabs with

[jQuery] Re: Debug says I'm missing a paren, but all parens are matched!

2009-10-07 Thread Giovanni Battista Lenoci
hsfrey ha scritto: In this line of code, I'm looking for a div whose Id is in variable b1, and which has an input button field whose value is "Show" or "Hide", and this line is to toggle those values. $(("[id$="+b1+"]") input).attr(value, attr(value) =="Hide"?"Show":"Hide"); This doesn't work