[jQuery] Re: Get url from iframe

2009-10-19 Thread brian
I believe you can get it from the "src" attirbute. On Mon, Oct 19, 2009 at 7:37 AM, Rupak wrote: > > Hi all, > > I have an ifram in a page. iframe contains google.com (google search). > from there if the user search for a "key word", i and click on a > link.Is there a way to get the "url" of new

[jQuery] Re: Events Calendar

2009-10-23 Thread brian
On Thu, Oct 22, 2009 at 7:21 PM, Andri <4r53...@gmail.com> wrote: > > Hi, I needed events calendar for my site. This calendar should : > 1. highlight date that had events > 2. If i click it, it'll go to events page or show alert about what > events that occur that date. > > > I try to use datepick

[jQuery] Re: how to set array value????

2009-10-23 Thread brian
On Fri, Oct 23, 2009 at 3:11 PM, James wrote: > > Which server-side programming language are you using? He mentioned Ruby. Jacob, perhaps you're using the wrong key. Have you dumped the posted vars to check? I can't remember, offhand, thesyntax for Ruby, but for CakePHP it would be debug($this-

[jQuery] Re: Events Calendar

2009-10-23 Thread brian
On Fri, Oct 23, 2009 at 2:10 PM, Kevin McPhail wrote: > > > Actually there is a decent little jquery plugin at > http://arshaw.com/fullcalendar/ > that may be what you are looking for. > That looks very smart. Thanks for the tip.

[jQuery] Re: Nesting question

2009-10-24 Thread brian
var currentId = $(this).attr(’id’); $('#another-id-'+currentId).show(); (don't forget the # before the ID) On Sat, Oct 24, 2009 at 4:50 PM, lukas wrote: > > Based on the ID of a clicked element I would like to show another ID: > var currentId = $(this).attr(’id’); > or var currentId = this.id;(

[jQuery] Re: A Syntax question/problem

2009-10-26 Thread brian
Maybe something like this? $("#search").change(doSearch($(this))).bind("keypress", function(e) { if (e.keyCode == 13) { doSearch($(this)); return false; } }); function doSearch(el) { var vKeyword = el.val; $.ajax({ type: "GET", ... On Sun, Oct 25

[jQuery] Re: A Syntax question/problem

2009-10-26 Thread brian
oth scenarios, plus it seems to me a lot less complicated > than catching the key13 event. > > Michel Belleville > > > 2009/10/26 brian >> >> Maybe something like this? >> >> $("#search").change(doSearch($(this))).bind("keypress", functio

[jQuery] Re: how to remove elements by attribute

2009-10-27 Thread brian
$('div[foo]').remove(); On Tue, Oct 27, 2009 at 1:04 PM, jason wrote: > > Hi, > > How can I remove all  div elements using the > attribute foo for my selector? Basically any div with a foo attribute > I want gone. > > Thanks, Jason >

Re: [jQuery] what does options mean ???

2009-11-01 Thread brian
$.Events = function(options, callback) This defines a function called $.Events that takes 2 parameters. When you see a parameter named options, you can usually assume that it represents a hash. When you see a param named callback, it means that the function expects either the name of some function

Re: [jQuery] Scroll so that an element is at the bottom of the viewport

2009-11-02 Thread brian
Off the top of my head, one idea would be to use jquery to add a hidden/empty element after the one you want at the bottom, then use the ID of the former to scroll to. On Mon, Nov 2, 2009 at 5:28 AM, Deniz Dogan wrote: > I'm looking for a JQuery plugin like scrollTo but which lets me scroll > the

Re: [jQuery] "file" upload without actual file

2009-11-02 Thread brian
So send it as data. You could encode it as Base64. On Mon, Nov 2, 2009 at 10:35 AM, ericjs wrote: > Hi, > > I need to post to a servlet where one parameter is a file...just as > would be sourced with a file upload input in a form. However, I don't > want to offer a file selection, or even have th

Re: [jQuery] [ ajax jQuery]

2009-11-04 Thread brian
Normally, one would direct an AJAX request to some server-side script (eg. PHP, Python, Perl, etc.) not a plain HTML page. On Wed, Nov 4, 2009 at 8:55 PM, Lord Gustavo Miguel Angel wrote: > Hi, > Why this code not is ok? > > -8<--- > $(document).ready(function(){ > $(".but

Re: [jQuery] Input for special numbers

2009-11-07 Thread brian
Have a look at the Masked Input Plugin: http://digitalbush.com/projects/masked-input-plugin/ On Sat, Nov 7, 2009 at 5:31 AM, kicaj wrote: > How build input form where we can put only 9 digits, and after first 3 > digits join '-', and after next two digits again join '-'? > Like this: 342-23-4323

Re: [jQuery] Get the real html from an iFrame

2009-11-12 Thread brian
Do either of these work? var html = parent.$('#indexIframe').contents().html(); var html = parent.$('#indexIframe').contents(); On Wed, Nov 11, 2009 at 9:49 AM, m.ugues wrote: > Hallo all. > > I have an iframe with an id. > I need to get the html content of this iframe. > > So from the iframe do

Re: [jQuery] JQuery/Java script Help required

2009-11-17 Thread brian
On Tue, Nov 17, 2009 at 2:21 AM, ninadmhatre wrote: > > HI > I am very new to Java scripting. I am stuck at one html page which has 6 > blocks with same ID attribute and options in this blocks > are nothing but the links to different pages ( ALL LINKS ARE UNIQUE ) . You cannot have more than on

Re: [jQuery] newbie plugin question

2009-11-17 Thread brian
On Mon, Nov 16, 2009 at 7:06 PM, echobase wrote: > > I call the plugin like so: > >

Re: [jQuery] Add/Delete form elements

2009-11-22 Thread brian
It looks the problem stems from non-unique IDs for your cloned elements. So, the first thing to do is to get rid of those and use an indexing method. Title Question:

Re: [jQuery] Add/Delete form elements

2009-11-22 Thread brian
.attr('value', ''); There's no sense giving it a name & id based on num because it may well be non-unique and that will be taken care of by renumberQuestions() later. On Sun, Nov 22, 2009 at 7:29 PM, brian wrote: > It looks the problem stems from non-unique IDs f

Re: [jQuery] Need to hide a href title content, but still need it available in the DOM

2009-11-22 Thread brian
On Sun, Nov 22, 2009 at 7:40 PM, Dave wrote: > I want to disable the behavior of rolling over a link and having the > title content display. I realize that removeAttr will do it. But that > removes it form the DOM completely. And I will need it later. > > Is there a way to use disableDefault to ju

Re: [jQuery] Please help to check the form...

2009-11-25 Thread brian
What is the problem you are trying to solve? What behaviour are you seeing to suggest it is wrong? On Wed, Nov 25, 2009 at 6:55 AM, Andre Polykanine wrote: > Hello everyone, > Sorry, not sure if the message passed through the first time, so > repeating it. > > I'm new to JQuery, so please don't b

Re: Re[2]: [jQuery] Please help to check the form...

2009-11-25 Thread brian
On Wed, Nov 25, 2009 at 1:03 PM, Andre Polykanine wrote: > Hello brian and all, > > I was attempting to validate the form manually and had deep problems > with it. > Now I'm using jQuery.validate plugin and almost everything goes OK, > but I still have a couple of missunder

Re: [jQuery] How would I implement this?

2009-11-25 Thread brian
Have you tried setting a max width and using the CSS overflow rule? On Wed, Nov 25, 2009 at 4:04 PM, Damien wrote: > A component of my website needs a table that holds a lot of > information. On most screens there will be too many columns to fit > across the width of the site. I would like the us

Re: [jQuery] simple jquery form plugin question

2009-11-25 Thread brian
Are you sure that your javascript is being loaded properly? You can check that easily with Firebug or the FF WebDeveloper extension. On Wed, Nov 25, 2009 at 7:07 PM, David wrote: > Hi, > > Just started using jquery and it looks really good! > I have question regarding the jQuery form plugin. > >

Re: [jQuery] jquery uploadify question

2009-11-26 Thread brian
See: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F In a nutshell, you're declaring a click handler for all elements with class 'img_del' *when the page loads*. But your element is being added during the onComplete callback of uploadify()

Re: Re[jQuery] move appended element

2009-11-26 Thread brian
You have 2 separate classnames there--'selected' and 'insense-selected'. Anyway, why don't you just add the class to the hovered element and save yourself some trouble? Because wrapping a strong or dd element with a div is certainly asking for a lot of trouble. On Thu, Nov 26, 2009 at 3:50 PM, co

Re: [jQuery] disable links in a class set dynamically

2009-11-26 Thread brian
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F http://docs.jquery.com/Events/live Please see my response to the recent "jquery uploadify question" msg. On Thu, Nov 26, 2009 at 12:09 PM, Keysher wrote: > Hi! > > I have a problem. > > I wan

Re: Re[jQuery] move appended element

2009-11-27 Thread brian
Perhaps it's a problem with your CSS rules. Is the style not removed? On Fri, Nov 27, 2009 at 4:39 AM, coldwired wrote: > > Hi, > > Sorry, that was a slight typo on my part, it should be class "selected". The > problem I have with just appending using addClass is that when the class is > removed

Re: [jQuery] Get value from hidden input and use it in string

2009-11-27 Thread brian
Give the input element an ID and use that in the selector: > $(this).setFile('http://domain.com/asset/get/' + $('#music_id').attr('id')).play(); On Fri, Nov 27, 2009 at 11:48 AM, shapper wrote: > Hello, > > I am using JPlayer to play a sound on a page: > http://www.happyworm.com/jquery/jplayer

Re: Re[jQuery] move appended element

2009-11-28 Thread brian
uot;. is there > anything I can do to make the removeClass function restore the attribute to > it's original state? > > Thanks, > Colin. > > > brian ally-3 wrote: >> >> Perhaps it's a problem with your CSS rules. Is the style not removed? >> >>

Re: [jQuery] jquery-1.3.2.min.js causing 400 bad request

2009-11-28 Thread brian
On Thu, Nov 26, 2009 at 2:16 PM, rbishop wrote: > Hi there, hoping someone can help a strange intermittent problem. > Occasionally, I am experiencing 400 bad request errors when trying to > load jquery-1.3.2.min.js. I have taken the request and response > headers from firebug during a failure and

Re: Re[jQuery] move appended element

2009-11-28 Thread brian
On Sat, Nov 28, 2009 at 2:11 PM, coldwired wrote: > > The reason is because I need the exact clone of the highlighted tags before > the selected class is supplied to it. Sorry, that doesn't answer my question. In what way is having an element with an attribute class="" causing you trouble? Are so

Re: [jQuery] get random record?

2009-12-01 Thread brian
On Tue, Dec 1, 2009 at 4:33 AM, Michel Belleville wrote: > If I were you I wouldn't let JavaScript do the randomizing, I would do it > server-side instead, providing a request that returns a random record and > pinging it with a simple AJAX query ; this way, JavaScript doesn't need to > be aware o

Re: [jQuery] Ajax response back question

2009-12-01 Thread brian
I'm not sure if you're trying to send back the image or just the src but, either way: $(function() { $('li').each(function() { var self = this; $.post('getImg.php', {id: $(self).attr('id')}, function($data) { // ${self} refers to the li el

Re: [jQuery] contact form not sending mail

2009-12-02 Thread brian
Javascript doesn't send email. You'll have to investigate this server-side. On Wed, Dec 2, 2009 at 1:52 PM, wig1176 wrote: > hi folks. > I have a site using jquery utilizing a slider ( scroll.to) and form > validater (validate) > the form on my page isn't sending the emails to me though. > here's

Re: [jQuery] IF and NULL. Please, could someone help me out?

2009-12-03 Thread brian
Does this work? $("#JPlayer").jPlayer({ ready: function() { var cookie = $.cookies.get("AlliedSkills.Player"); $(this).setFile($('#MusicPath').attr("value")) if (cookie == "Play") { $(t

Re: [jQuery] Specify CSS Path

2009-12-06 Thread brian
JQuery doesn't need to read your CSS files. That's the job of the browser engine. What's the problem you're trying to solve? On Sat, Dec 5, 2009 at 8:28 PM, Juan B wrote: > Hi, > > My JQuery scripts and CSS files are placed in different folders. Is it > possible to specify the paths to my CSS fil

Re: [jQuery] jquery addClass does not work in ajax call

2009-12-06 Thread brian
Please see: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F You could simply create a function that takes a jquery object (or the selector) as a param and does the striping. That way, you could call the function whenever necessary. Note, t

Re: [jQuery] Script stops working

2009-12-06 Thread brian
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Sun, Dec 6, 2009 at 3:00 PM, factoringcompare.com wrote: > Hi, > > The below script collects a links ID when clicked and then posts via > ajax. Works fine on plan page. When I dynamically l

Re: [jQuery] Filtering table cell values

2009-12-06 Thread brian
Try this: jQuery('#Directorships tbody tr').each(function() { if (jQuery('td:nth-child(7)', $(this)).text().toLowerCase() == 'retired') { var td12th = jQuery('td:nth-child(12)', $(this));

Re: [jQuery] Help... anyone!

2009-12-08 Thread brian
I'm not sure I understand in what sense the page is freezing sometimes. I've had a look in FF (Linux) and haven't seen anything untoward. It could be that you've specified that the page never be cached. Try removing that, clear your cache, and click around some. You do have a fair number of JS fil

Re: [jQuery] Selector fails and works

2009-12-08 Thread brian
I believe this is the problem: input[type="radio"][checked=true] The correct value for the "checked" attribute is "checked", not "true" (don't ask me why; I think it's a stinker), so jQuery comes up empty-handed. Whereas the other way you're approaching this: if (this.checked) ... works becaus

Re: [jQuery] : FileUpload Problem

2009-12-08 Thread brian
See here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F And you're loading the MultiFile plugin twice. You need either MultFile.js or MultiFile.pack.js, but not both. Also, keep in mind that you're cloning an element with an ID, which mu

Re: [jQuery] Problem with images loaded dynamically

2009-12-08 Thread brian
Can you see the images ok if you type in the direct URL for each one? On Mon, Dec 7, 2009 at 2:35 PM, jlee wrote: > Hi, > I'm stuck here - I'm trying to load images dynamically on my website, > but for some reason the method I use works on a server on my local > computer, but behaves very strang

Re: [jQuery] Having issues with selecthing $(this).find('.classname') with webkit browsers (Chrome/Safari)

2009-12-08 Thread brian
How about this? $('.secondlevelcontainer', $(this)).fadeIn(500); On Mon, Dec 7, 2009 at 3:34 PM, Leonard Teo wrote: > Hi guys, > > I'm looking for a workaround... I'm having some issues with the > following code: > >        //Navbar hover >        $('.toplevel').hover( >                function(

Re: [jQuery] Re: Help... anyone!

2009-12-08 Thread brian
On Tue, Dec 8, 2009 at 1:48 PM, Mike wrote: > > Thanks for the response.  I was unable to find where to set firefox to > clear cache automatically.   I went to "about:config" ... found some > cache settings, but not clear settings. Edit > Preferences > Advanced > Network > "Clear Now" > I can d

Re: [jQuery] FadeOut > Ajax Post > FadeIn problem

2009-12-12 Thread brian
I believe the sudden appearance is due to the fact that the new div was not hidden. But, a better approach would be to not replace the #pageArticle div. Instead, replace its contents, then fade it in. On Fri, Dec 11, 2009 at 5:02 PM, S9DD wrote: > Hi Folks > > This script fades out a div tag with

Re: [jQuery] Can't get a block of HTML added to the DOM

2009-12-14 Thread brian
$('#somediv').append(html); You're appending to the div with ID 'someDiv'. But you say that this is the content: Name: Note the class="somediv". I'm wondering if that's a typo and it's actually id="somediv", in which case y

Re: [jQuery] delete / remove $.ajax() object ???

2009-12-14 Thread brian
Put your $.ajax() call inside a function and call that on load and whatever other event. On Mon, Dec 14, 2009 at 8:18 PM, Wendi Turner wrote: > Thank you Mike ! > > Repost Question: "How can you remove/delete the active $(document).ready() > script, re-write and re-register then re-trigger the re

Re: [jQuery] [ASK] jquery remove

2009-12-15 Thread brian
On Mon, Dec 14, 2009 at 11:08 PM, water [bro] mm wrote: > > and if click remove, jquery just remove a link remove not tag > please help me. > That is because the "this" inside your click handler function refers to the link (because the handler is onclick for the link) even though, outside of tha

Re: [jQuery] Viewport Scroll

2009-12-15 Thread brian
There are probably more than one way to do this with jQuery but a straight JS way would be to do: document.location = '#id_of_your_element'; On Tue, Dec 15, 2009 at 2:42 PM, Wroathe wrote: > Hi there! > > I'm using jQuery to load in some content from a separate page and I > was wondering if ther

Re: [jQuery] How to programmatically ad a div element and animate it

2009-12-15 Thread brian
Try this: function CreateNewElement() { $('test content') .appendTo('#contentContainer') .hide() .toggle('slow'); } You'll likely want to change the ID and, obviously, the content. But the principal i the same--jQuery can take the string mar

Re: [jQuery] Call from Javascript to jQuery javascript function

2009-12-15 Thread brian
You have the order of things backward. As the page loads, any bare JS function calls will be run as soon as they are reached. So, when the line with callit() is reached, the JS engine will attempt to run the function immediately. However, the function has yet to be defined. That's because you have

Re: [jQuery] Call from Javascript to jQuery javascript function

2009-12-16 Thread brian
On Wed, Dec 16, 2009 at 9:17 AM, Richard D. Worth wrote: > > No need to add another block. As you pointed out earlier, the document ready > won't run until later. By the time it does, the callit function will have > been defined: > That's true, but I left it as 2 blocks because Wendi pointed out

Re: [jQuery] Call from Javascript to jQuery javascript function

2009-12-16 Thread brian
On Wed, Dec 16, 2009 at 11:14 AM, Michael Geary wrote: > In fact, within a single

Re: [jQuery] Urgent help with the validation plugin: no reaction onSubmit

2009-12-16 Thread brian
You might need to post some code. Are you using the submitHandler option at all? On Wed, Dec 16, 2009 at 7:06 AM, Andre Polykanine wrote: > Hello everyone, > > There's a form I try to validate. > As there is a Nickname field, I check with the Remote method if it's > already used or not. I use a p

Re: [jQuery] Re: SlickGrid updates!

2009-12-17 Thread brian
This is very impressive. One might even call it ... slick. Very slick, indeed. I really like "show tasks" percentage slider. And the SparkLines example. Well done! On Thu, Dec 17, 2009 at 6:41 PM, Tin wrote: > The SlickGrid source code has been migrated to GitHub: > http://github.com/mleibman/Sli

Re: [jQuery] Generate and submit file upload form with jQuery

2009-12-19 Thread brian
Why don't you simply submit the form you are cloning from? It doesn't appear to me that you're adding anything to the new form. On Sat, Dec 19, 2009 at 10:57 AM, oli wrote: > Hi, > > I want to collect some input fields that are already present in my > DOM, generate a form with jQuery and submit i

Re: [jQuery] Re: Generate and submit file upload form with jQuery

2009-12-19 Thread brian
ds inside the "form" element > (which actually isn't a ) to the generated one. > > The thing is, that I have a table and need a for every row (but > not in a single column). or aren't valid. > So I'm looking for all input fields inside the and generate a new >

Re: [jQuery] Can Tooltip return a jsp page?

2009-12-19 Thread brian
It's been awhile since i used JSP but the first thing I'd check is if the content was parsed correctly. When you view source, do you see the content in the JS code or do you see the JSP tag? If the latter, your JSP code isn't being parsed on the server. On Sat, Dec 19, 2009 at 10:31 AM, HenryRock

Re: [jQuery] Change Window Location, and Send REQUEST or POST Info?

2009-12-19 Thread brian
I would do all of this server-side. Have your PHP script save the requested page in the session before redirecting to the login page. Or, write the requested URL to a hidden input in the login form. On Sat, Dec 19, 2009 at 6:16 PM, Vik wrote: > Let's say a user visits my site, and takes an action

Re: [jQuery] Re: Can Tooltip return a jsp page?

2009-12-19 Thread brian
ree > WhiteCloud > "; >    } > }); > > I not sure why when I code it as > > $('#tonus').tooltip({ >    delay: 0, >    showURL: false, >    bodyHandler: function() { >        return "" >    } > }); > > It not working... Any Idea

Re: [jQuery] Re: Change Window Location, and Send REQUEST or POST Info?

2009-12-19 Thread brian
has not yet logged in. There is no > way to write the requested URL to a hidden input in the login form, > because the login form isn''t up yet - the user is visiting some other > page. > > On Dec 19, 3:58 pm, brian wrote: >> I would do all of this server-side. Hav

Re: [jQuery] Re: Can Tooltip return a jsp page?

2009-12-20 Thread brian
On Sun, Dec 20, 2009 at 1:15 AM, HenryRock wrote: > Hi Brian, > > I get this > >  return ""; > > How come? > How to fix that? Like I said, your file is not being parsed correctly. JSP is a server-side technology. Any JSP code must be evaluated on the server. If

Re: [jQuery] Easy Fade in Problem...

2009-12-20 Thread brian
Try putting the fadeIn() where the elements are being appended. Also, use hide() just before that. function addPerson() { //current keeps track of how many people we have. var strToAdd = ''; $('#all-inputs').append(strToAdd).hide().fadeIn('slow'); }; $(document).ready(function() {

Re: [jQuery] question about width from li in

2009-12-21 Thread brian
Check the options page. Does the 'nowrap' option help? http://jquery.malsup.com/cycle/options.html On Mon, Dec 21, 2009 at 6:50 AM, Lijn wrote: > I use this jquery-plugin: http://jquery.malsup.com/cycle/ > Each li-tag gets a calculated width allowing the contents to 2 lines, > but line 1 is suf

Re: [jQuery] unable to focus on textboxes - update panel - jqmodal - asp.net

2009-12-21 Thread brian
I don't have anything handy to test this with but I believe you could handle this with the onHide callback. Check that the text element isn't empty. If it is, return false to keep the dialog open (and display a msg, etc.) On Sun, Dec 20, 2009 at 10:38 PM, Dexter wrote: >  0  vote down  star > > >

Re: [jQuery] Re: jquery.cycle /// Next function in the next button and in the pictures

2009-12-21 Thread brian
2009/12/21 Pedro Gonçalves : > If I assign the "next" id to another element function only works once. > > check it out: > http://www.pvxg.net/unplanned/ > > What I want to do is for the user to be able to cycle through the > pictures by clicking on them. > This is what Charlie was trying to explai

Re: [jQuery] Can't get onClick on appended elements

2009-12-22 Thread brian
See here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Tue, Dec 22, 2009 at 1:37 PM, Diego wrote: > I have the following snippet of code: > > This is where I'll place the 'li' elements. > > > After processing the file upload I add t

Re: [jQuery] window.parent.document.getElementById('msgAlert').innerHTML

2009-12-24 Thread brian
Try this: $('#msgAlert').html() On Tue, Dec 22, 2009 at 9:13 PM, ajijogja wrote: > hi... im aji > n im newbie in jQ > . > . > i want to know how use jQ with this : > window.parent.document.getElementById('msgAlert').innerHTML > . > . > thx be4 >

Re: [jQuery] toLowerCase method works in Google Chrome but not IE

2009-12-24 Thread brian
The first thing I would do is inspect cookieMood. Obviously, it exists, or the code wouldn't reach that line. But, perhaps it isn't a string, as you expect. On Wed, Dec 23, 2009 at 9:50 PM, ArnieML wrote: > Hi, > > Code snippet is as follows: > > function setStartMood(cookiemood) { > >          

Re: [jQuery] SimpleModal overlay does not cover entire screen

2009-12-24 Thread brian
Your CSS is my first guess. I'm thinking that you've given your BODY (or HTML) element a set width and margins. Try using a wrapper element instead to create the content area. On Thu, Dec 24, 2009 at 8:36 AM, JavaEsse wrote: > Hello, > > I am using SimpleModal 1.3.3.  In IE6, the overlay does not

Re: [jQuery] Jquery + ie7 spans

2009-12-24 Thread brian
Does it work if the span does not have linebreak before it? On Wed, Dec 23, 2009 at 6:05 AM, Alex Mcauley wrote: > Morning and happy holidays!.. > > I am having some trouble with jQuery and IE7 quirks (suprise > suprise).. > > Basically i wrote a script that truncates some text and when "More > D

Re: [jQuery] Finding next element

2009-12-27 Thread brian
Use prev() and next(). Look at the "traversing" section of the docs: http://docs.jquery.com/Traversing On Sun, Dec 27, 2009 at 7:30 PM, Toaster wrote: > Hello. > > Example: > > >       >       >       > > > How would I be able to get find the next or previous in relation > to the ? > > I'd app

Re: [jQuery] Re: sorting columns using jquery. noob with html and java. built custom php using snmp

2009-12-29 Thread brian
Leave it in the PHP file. The tablesorter file should be left clean. Think of it as a library that you include. The snippet of code you referred to is something that makes use of that library. Don't be fooled by the script tags. While the file is a PHP script, any PHP code is parsed on the server.

Re: [jQuery] Multifile - help

2009-12-29 Thread brian
You shouldn't need more than one file element to begin with. The plugin takes care of creating new ones. Or, perhaps I don't understand what it is you're trying to do. On Tue, Dec 29, 2009 at 1:27 PM, jayakumar ala wrote: > Anyone can help me on this.. > > On Mon, Dec 28, 2009 at 10:39 AM, ja

Re: [jQuery] Multifile - help

2009-12-29 Thread brian
* as the particular group */ alert(this.id + ': ' + $('.MultiFile', this).length); }); return false; }); }); Please specify a file, or a set of files:

Re: [jQuery] Help on Independent DIV's that toggle!!

2009-12-29 Thread brian
Use classes: http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js";> $(document).ready(function() { $('.SomeOtherClass').hide(); $('a.SomeClass').click(function() { $(this).next('div.SomeOtherClass').slideToggle(400); $(this).text(

Re: [jQuery] Re: Help on Independent DIV's that toggle!!

2009-12-30 Thread brian
On Tue, Dec 29, 2009 at 11:11 PM, Erik wrote: > Brian, > > It looks like you just added  $(this).next > That, and used class names in the selector, rather than a unique ID, so that it operates on a set of elements. Using next() assumes that each link comes just before the div th

Re: [jQuery] If radio button checked - do stuff

2009-12-30 Thread brian
You have some redundancy there. Selecting on ':radio' is unnecessary because you're also selecting for the element name. And the ':checked' is no good because that limits this to elements that have already been checked. That's likely not the desired behaviour. Try: $('form input[name=setting1]').c

Re: [jQuery] simplemodal next/back functionality

2009-12-30 Thread brian
Given the following HTML: one two three four five Modal one Modal two Modal three Modal four Modal five $(function() { $('a.Foo').each(function() { $(this).click(function() {

[jQuery] animate() not working for opacity in IE

2009-12-30 Thread Brian
I'm trying to animate a div from 100% opacity to 40% opacity WITHOUT using fadeTo(). I need to use animate(). It works fine in chrome/FF/safari, but in IE, the opacity doesn't animate, it simply changes to that after the animation is done. Happens in IE 7 and 8. I'm doing this:

Re: [jQuery] jquery and tomcat

2009-12-30 Thread brian
jQuery is a client-side framework. Your host provider should not be at all an issue. Perhaps you're confusing Java with Javascript. They are completely separate things. On Wed, Dec 30, 2009 at 1:07 PM, jason wrote: > hello, > i am looking to begin web development after a bit of experience with >

Re: [jQuery] jquery.js and jquery-1.2.6.pack.js conflict

2009-12-31 Thread brian
You should only load one of those files. The version included with jCarousel is there as a convenience. It's not necessary to use it if you already are loading jQuery. It's likely the unpacked version is newer, anyway. On Thu, Dec 31, 2009 at 7:21 AM, Mr.Aaqib wrote: > Hi, > > Recently i created

Re: [jQuery] Re: simplemodal next/back functionality

2009-12-31 Thread brian
On Thu, Dec 31, 2009 at 2:13 AM, nevgenevich wrote: > > it generates the link properly, when clicking on it: it closes the > modal but does nothing else. i can verify with a console.log that it > gets to after the call to open the previous modal, but it doesnt open > anything. checked to make

Re: [jQuery] How to append a to line of orphan text?

2010-01-05 Thread brian
On Tue, Jan 5, 2010 at 1:01 AM, Tong wrote: > Hi, > > I have the following HTML: > > >  Some Text Here: More Text Here >  Some Text Here: More Text Here >  Some Text Here: More Text Here > > > How could I use jQuery to wrap each line of text in a and remove > all the and finally wrap all the

Re: [jQuery] New to JS and jQuery

2010-01-05 Thread brian
That works for me but I do see how this can be refactored: My Account My Account More stuff Here is a menu item Here is a menu item Here is a menu item Here is a menu item Notice that I've changed the IDs so that the DIV has the link ID plus some

Re: [jQuery] retrieving textnode?

2010-01-05 Thread brian
CSS only operates on tagged elements. You'll have to wrap the text node in a span (with a certain class, for example). On Tue, Jan 5, 2010 at 2:00 AM, bundy wrote: > Hi, I'm new to jQuery, finding feet. > > I want to be able to say, "if the text node of a certain child > consists of certain strin

Re: [jQuery] Change opacity of item with class of selected

2010-01-05 Thread brian
Just put the class in the selector instead of testing for it first: $("#portfolio #thumbs li.selected").css('opacity','0.5'); If the class doesn't exist, jQuery will do nothing (instead of throwing an "undefined" error or similar). On Tue, Jan 5, 2010 at 12:45 PM, Paul Collins wrote: > Hi all >

Re: [jQuery] highlighting

2010-01-06 Thread brian
$target.css('...') Or, better: $target.addClass('SomeClassName'); On Tue, Jan 5, 2010 at 10:35 AM, metalmini wrote: > Hi guys and galls, > > Im not really a jquery programmer but i build lots of sites and i love > the jquery plugins that i can easily copy and paste. So anyway im > building a ne

Re: [jQuery] Re: urgent help

2010-01-06 Thread brian
Or, at minimum, an example or two of the errors encountered. On Wed, Jan 6, 2010 at 7:13 AM, MOZ wrote: > link to demo? > > On Jan 6, 3:49 am, Sugi wrote: >> I am using Jquery plugins like flowplayer,fancy plugin for image and >> video stuffs...It creates lot of erros with IE 6. Can any one help

Re: [jQuery] form validation

2010-01-06 Thread brian
Set up the handler when the form is created: $("#the_form_id").validate(); You might also want to have a look at the Jeditable plugin: http://www.appelsiini.net/projects/jeditable On Wed, Jan 6, 2010 at 10:25 AM, John Albright wrote: > Is it possible to use the jquery form validation plugin (

Re: [jQuery] Position div accounting for screen size/resize

2010-01-06 Thread brian
Bind a handler for the resize event like so: $(window).bind('resize', function() { ...}); Have a look at this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/4a00d513c63f5c00?pli=1 On Wed, Jan 6, 2010 at 11:08 AM, kevinkace wrote: > Can you change a position of a div, bas

Re: [jQuery] Re: highlighting

2010-01-07 Thread brian
var $target = $(this.hash); $target.addClass('SomeClassName'); ... On Thu, Jan 7, 2010 at 10:02 AM, metalmini wrote: > Euh... oke and in what way do i implement that? Can you give me a > example? > > Thanks for the reply btw :-) > > On Jan 7, 1:01 am, brian wrote: &g

Re: [jQuery] Replacing HTML Content for Elements of a Certain Class

2010-01-07 Thread brian
see here: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F http://docs.jquery.com/Plugins/livequery Essentially, you either need to deal with this in the load() success callback or use live(). However, i can't remember if live() works for the

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

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] reference dynamically loaded form select

2010-01-09 Thread brian
Set the event handler on the select at the time it is added to the DOM. http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F On Fri, Jan 8, 2010 at 1:49 PM, sonicDivx wrote: > Been trying to find the best answer to a problem a co-worker is hav

Re: [jQuery] Accessing value of a dynamic added input

2010-01-09 Thread brian
$(this).val() should work just fine. There must be some other issue. Are you sure the HTML is correct (eg. options all have values)? On Sat, Jan 9, 2010 at 5:55 PM, -null- wrote: > I'm adding an input and select box to a div by setting the div's > html.  I then attach a change event to the select

Re: [jQuery] [apycom Menu] Submenu items showing as top level items in IE

2010-01-10 Thread brian
W3.org's validator shows 163 errors and 46 warnings. Best you get the page to validate first as this may be caused by invalid/broken markup. On Sun, Jan 10, 2010 at 2:55 PM, speedpac...@gmail.com wrote: > Hi, > > I'm using the (paid) version of Apycom's jQuery menu; you can find it > at http://ap

Re: [jQuery] Find array key of value

2010-01-12 Thread brian
I'm not sure that I follow that but one thing that might help is to store JSON objects in the array instead of just the src: $( ".images img" ).each( function(i) { imgArray.push( src: $(this).attr( "src" ), key: i ); }); Then, when retrieving the new src you can also get the key/index

<    1   2   3   4   5   6   7   8   >