[jQuery] Re: Input position in HTML

2009-08-14 Thread Giovanni Battista Lenoci
Baalzamon ha scritto: Hi, I'm making a dynamic div in a page but I'm having some doubts: -I have an input text field and i need to get it's position (left and top) to make the div appear near this input. $.(':INPUTNAME').css ('left') returns me zero like 'top' does. Is there a way to get

[jQuery] Re: Code inside click() event not firing.

2009-08-14 Thread Ricardo
wow On Aug 13, 10:56 pm, Meroe whme...@gmail.com wrote: What if you change     $(a).click(function () To     $(#a).click(function () -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Patrick Sent: Thursday, August 13, 2009

[jQuery] Re: Validate groups of input fields, checkbox highlight and reset

2009-08-14 Thread hendra
i figure the 3rd problem. Here is the solution for those who has the same problem: - use type = reset button id=resetButton name=reset type=reset Reset/ button - and then remove all classes //reset form $('#resetButton').click(function() {

[jQuery] Re: Hello

2009-08-14 Thread Liam Potter
We need to see your code, goto http://www.jsbin.com, select the jquery library to include, paste your javascript and your html, then send us the link to see it. Praveen Alvandi wrote: Hey guys, HELP ME . . . I am struck. . . On Thu, Aug 13, 2009 at 8:44 PM, Praveen Alvandi

[jQuery] Re: Code inside click() event not firing.

2009-08-14 Thread Liam Potter
lol, niice. Ricardo wrote: wow On Aug 13, 10:56 pm, Meroe whme...@gmail.com wrote: What if you change $(a).click(function () To $(#a).click(function () -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Patrick Sent:

[jQuery] Tablesorter dates

2009-08-14 Thread badtant
Hi! I'm using this plugin http://tablesorter.com/docs/ but have some trouble with sorting my dates. I want to have them show like this: 12 januari 29 januari 12 april 29 april 12 maj 29 maj I've figured I probable need to write a new parser for this but I'm not quite sure how. Anyone good at

[jQuery] Suckerfish - Hidden behind another image

2009-08-14 Thread jellyfish458
I've tried this extension and it looks good. I have set the menu into the header module to replace the original menu, but it appears 'behind' the image that sits below in the same module. The original menu (suckerfish) works ok. http://www.ttmarketingservices.com/gallies/ Any Ideas? Regards

[jQuery] Event click not fired by code added after the page is loaded

2009-08-14 Thread Felix
Hello, I have a page with a form, that represent questions and the corresponding answers. I defined the minimum questions, answers, and their maximum. So I added a link in the form to add question (along with the minimum amount of answers), and a link per question to add an answer in it. the

[jQuery] problem with firewall

2009-08-14 Thread ifrastudio
when i using jQuery - I have no any problems, but I installed Firewalls and it blocking jQuery scripts. It's big problem for me. Who can help me?

[jQuery] Re: Event click not fired by code added after the page is loaded

2009-08-14 Thread Felix
Ok, I answer myself as I founded the answer, in case it can help someone: instead of $(.addanswer).click(function(event){});, put: $(.addanswer).live(click, function(){...}); On 14 août, 10:46, Felix slay0mit...@gmail.com wrote: Hello, I have a page with a form, that represent questions and

[jQuery] Re: Date range Picker jquery

2009-08-14 Thread bharani kumar
Hi Prashant , My option is like , single journey and return journey , I simply what i did know, for the field is common for single and return journey, but when the single is selected, on that time i disabled the return date,when i selec the return journey on that time am enabled the return

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Stockypotty
Yeah I was thinking of doing it the second way. So basically I would put a unique class name on each tab, then use background-image: url(linktophoto) Is there no way to make the text linkable? Also while I have you here, when I clicked on the suckerfish drop down and got sent to the new

[jQuery] Re: Hover function issue

2009-08-14 Thread Geir
Thanks! You're right, css is a good solution.. Thanks again!

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread amuhlou
I'm not sure what you mean by making the text linkable Can you post a test page that demonstrates your questions? thanks On Aug 14, 7:28 am, Stockypotty andy_stoc...@hotmail.com wrote: Yeah I was thinking of doing it the second way. So basically I would put a unique class name on each tab,

[jQuery] Getting class attributes??

2009-08-14 Thread Lyle
Hi, I need to be able to get the css attributes that a particular class defines. Such that if I have a class called SomeClass I want to see if it defines the attribute position. I've tried using .css on an element that has the class, but of course that picks up the defaults and any inheritance.

[jQuery] Filter (attribute, value)

2009-08-14 Thread Geir
Hi! Is this right syntax in my filter (line #3) I can't seem to get what I want.. var path = location.href ; var relPath = path.replace('http://mydomain.localhost', '') || path.replace('http://mydomain.com', '') ; var here = $(#Navigation li a[href=''+relPath+'']) I

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Stockypotty
Sorry I didn't mean that, early morning ^^ I was wondering if you had any good tutorials on how to put a unique class name on each tab? Unfortunately my site is not running live if that is what you meant about a test page. However if you go to this site: http://www.quizilla.com/ You can see

[jQuery] Re: plugin problem with jQuery 1.3.2

2009-08-14 Thread tom.nov...@googlemail.com
Is no one using such a plugin? On Aug 6, 9:22 am, tom.nov...@googlemail.com tom.nov...@googlemail.com wrote: Hi, I have still to support IE6 and developping applications means min-/ max-width is often required. Therefore I used actually thejQMinMaxplugin to make this work in IE6.

[jQuery] Re: Getting class attributes??

2009-08-14 Thread Richard D. Worth
See jQuery.Rule, by Ariel Flesler: http://flesler.blogspot.com/2007/11/jqueryrule.html - Richard On Fri, Aug 14, 2009 at 6:17 AM, Lyle webmas...@cosmicperl.com wrote: Hi, I need to be able to get the css attributes that a particular class defines. Such that if I have a class called

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread amuhlou
a good start would be to use firebug and inspect the code for the example page. On Aug 14, 8:30 am, Stockypotty andy_stoc...@hotmail.com wrote: Sorry I didn't mean that, early morning ^^ I was wondering if you had any good tutorials on how to put a unique class name on each tab?

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Liam Potter
how about, editing your html? amuhlou wrote: a good start would be to use firebug and inspect the code for the example page. On Aug 14, 8:30 am, Stockypotty andy_stoc...@hotmail.com wrote: Sorry I didn't mean that, early morning ^^ I was wondering if you had any good tutorials on how

[jQuery] Re: plugin problem with jQuery 1.3.2

2009-08-14 Thread Stephan Beal
On Aug 6, 9:22 am, tom.nov...@googlemail.com tom.nov...@googlemail.com wrote: I have still to support IE6 and developping applications means min-/ max-width is often required. Therefore I used actually the jQMinMax plugin to make this work in IE6. Unfortunately this plugin is not working

[jQuery] Re: Getting class attributes??

2009-08-14 Thread Lyle
I had a good look at JQuery.rule. I'm sure it's great, but the complete lack of any credible documentation makes it pretty unusable. Even the online demo could do with some text explaining what's actually going on and why, rather than just having some links. After getting frustrated looking at

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Stockypotty
Yeah as you can see in this picture: http://i236.photobucket.com/albums/ff288/paramore_020/quizilla.jpg They have a seperate ID for each menu, which allows them to have a separate CSS style for each one. Do you know how I can give each menu on suckerfish it's own CSS style section? I think I

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread amuhlou
like Liam said, you need to edit the HTML of the menu and add a class or id to each menu item, like they did in the picture you posted. Then you can target it with CSS. On Aug 14, 10:58 am, Stockypotty andy_stoc...@hotmail.com wrote: Yeah as you can see in this picture:

[jQuery] Can't get my head around this chain

2009-08-14 Thread Laker Netman
Hi all. Here is a section of a page I generate: tr tda name=50295029/a/td td1100/td td2/td tda href=index.cfm? action=showsubtreeamp;categoryid=5029Products/a/td tda href=index.cfm?action=deletenodeamp;categoryid=5029Delete/ a/td tda

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Stockypotty
Right ok, I will search on how to add a class to the menu, do you know of any tutorials? Thanks guys

[jQuery] Help with using the 'not' selector

2009-08-14 Thread MiKiTiE
Hi group, I would appreciate a point in the right direction here, as I seem to be getting lost. I would like to be able to write a function which will trigger when the mouse is clicked, but only do a certain thing based on WHAT is clicked. Which is why I figured the not selector would be useful.

[jQuery] Re: Replace string characters using jQuery

2009-08-14 Thread MiKiTiE
Thank you for your help. The global flag seemed to do the trick, if I get problems with that in the future I will try the encodeURIComponent method. On Aug 5, 9:42 pm, Karl Swedberg k...@englishrules.com wrote: Hi there, It looks like your test: var test = searchval.text().replace('

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread amuhlou
w3schools is a great resource for web tutorials. http://www.w3schools.com/tags/att_standard_class.asp On Aug 14, 12:09 pm, Stockypotty andy_stoc...@hotmail.com wrote: Right ok, I will search on how to add a class to the menu, do you know of any tutorials? Thanks guys

[jQuery] Re: Event click not fired by code added after the page is loaded

2009-08-14 Thread Carlos Becar
if you load content with ajax you should send code funcionality later load the content, example. $(#container).load('url',{},function(){ /*here you put codes for fires clicks or something*/ $(.addanswer).click(function() /* code here */ }); }); or use plugin like live or listen

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Wolf
var path = var here = ; path = http://mydomain.localhost'' || http://mydomain.com;; var here = $(#Navigation li a[href='+Path+']); href must contain simple quotes because you use double quotes in the beginning, but if have different href you can use something like this $

[jQuery] .load() and executing JavaScript from loaded content

2009-08-14 Thread Benjamin Wohlwend
Hi, I have a form with a couple of ajaxified inputs (they have dynamically generated script tags next to the input tags). This all worked quite well, until I decided to load that form via AJAX into a jQuery dialog on another page. The form is correctly fetched and inserted into the DOM, but the

[jQuery] Re: Code inside click() event not firing.

2009-08-14 Thread Carlos Becar
james s correct you should use method delegation or plugins like listen or intercepted .. documetnation jqueryis the best ! -- Atte. Carlos Becar.

[jQuery] Re: Validate groups of input fields, checkbox highlight and reset

2009-08-14 Thread Carlos Becar
2. Checkbox highlight. I am using a class highlight for all the errors. I use required checkbox, so at least 1 checkbox must be checked. If I check the first item, then uncheck, the error message appear and the error class highlight also successfully displayed. However, if I check the second

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Carlos Becar
var path = var here = ; path = http://mydomain.localhost'' || http://mydomain.com;; var here = $(#Navigation li a[href='+Path+']); href must contain simple quotes because you use double quotes in the beginning, but if have different href you can use something like this

[jQuery] Cycle Plugin - Changing the options of the cycle

2009-08-14 Thread Z-Ender
I define a cycle in document.ready as per usual. In my cycle I have different sets of images that i want to cycle through and only want certain ones to cycle as selected using the slideExpr option. Is there a way to change this option from: slideExpr: 'a' to: slideExpr: 'b' another alternative

[jQuery] JQuery Treeview Navigation frames

2009-08-14 Thread Mr. V
I am new to JQuery and Treeview and I am in trying to assess if the treeview could be a lightweight and efficient replacement for our current 3rd party tree control. Can the Treeview node hyperlink load the url in a different frame ? Alternatively, is it possible to catch the Node On Click

[jQuery] image slider effect using jquery

2009-08-14 Thread sudhakararaog
hi i need a slieshow effect that i want to create for my personal website. following is what i need i want to display an image and below that will be text and this text should be clickable and open in a new window and this way i want to show few images and text with a certain duration for

[jQuery] Re: Help with using the 'not' selector

2009-08-14 Thread Wolf
hi you have ask if the id is different, then dissappear the div o element $(body).click(function(){ IF($(this).attr('id') !=FM_OPTIONS) { $(#FM_OPTIONS).fadeOut('fast'); } });

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Laker Netman
A little Googling may help :) ...but for starters how about: var i = 0; $(li).each(function(){i++;$(this).addClass('image'+i)}); You can change the first selector to whatever is right for you ...probably not every LI on the page :) You can change the word image in the addClass() to whatever you

[jQuery] Re: .load() and executing JavaScript from loaded content

2009-08-14 Thread Wolf
I think you should try this, send the script or function. example. $(#form_dialog).dialog({ /*some options */}) .load(url,{}, function(){ $(head).html(scr + ipt\n + function step1() {\n + setTimeout('step2()', 10);\n + }\n + function step2() {\n +

[jQuery] Re: JQuery Treeview Navigation frames

2009-08-14 Thread Laker Netman
The short answer to either scenario is yes. It's really more based on whatever your server-side code creates in the unordered list sent to the browser. Alternatively, jQuery could modify the UL after it's delivered, but if it's very large at all you may see some client-side performance issues

[jQuery] Re: Access denied when calling webservice method using jquery

2009-08-14 Thread KeeganWatkins
can you post some code? it's hard to offer suggestions with nothing more than an error code to analyze... although I'd bet you're calling your webservice via Ajax, and that the service is not on the same domain. if this is the case, you'll need to either: a) move the service to the same domain

[jQuery] Re: image slider effect using jquery

2009-08-14 Thread Richard D. Worth
This is usually called a carousel, or sometimes a slider or content slider (not to be confused with a trackbar-type slider, like jQuery UI Sliderhttp://jqueryui.com/demos/slider/). Here are some popular ones, in no particular order: Cycle http://malsup.com/jquery/cycle/ jCarousel

[jQuery] Re: image slider effect using jquery

2009-08-14 Thread sudhakararaog
thanks for letting me know. Richard D. Worth-2 wrote: This is usually called a carousel, or sometimes a slider or content slider (not to be confused with a trackbar-type slider, like jQuery UI Sliderhttp://jqueryui.com/demos/slider/). Here are some popular ones, in no particular order:

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Geir
Thanks! Tried var here = $(#Navigation li a[href='+Path+']); and var here = $(#Navigation li).$(a[href='+relPath+']); (Are they totally equal?) still gives me nothing. I'm not very trained in javascript/jQuery but I thing you misunderstood my line 1 and 2. relPath is for the relative

[jQuery] Re: text slider

2009-08-14 Thread dziobacz
Why jquery doesn't have text slider ? Screen: http://yfrog.com/5kbeztytuuitnj

[jQuery] Re: Detect Capital Letters

2009-08-14 Thread LindsayT
Thanks guys for your help! I'll get back to my project over the weekend and see if any of this works for what I'm doing! Lindsay On Aug 9, 2:09 pm, Karl Swedberg k...@englishrules.com wrote: haha, you got me! so, yeah, it would be a bit more work. point   taken! :-p --Karl On Aug 9,

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Stockypotty
Ok thank you I will try this. Although what about if I put a div with an id around each menu tab. something like this div id=nameofmenu CSS styling here /div what do you reckon?

[jQuery] Re: Tablesorter dates

2009-08-14 Thread aquaone
It would likely be much less work to change the dates to match a standardized numeric format than to write your own parser. The performance would likely be better as well. If this is not an option, let me know the full date format (I'm not even seeing a year in this) and the language being used,

[jQuery] Invite jquery developers to join our open source project: Tellurium Automated Testing Framework

2009-08-14 Thread John
Tellurium Automated Testing Framework (Tellurium) is an automated web testing framework built on the top of the Selenium framework at the current stage. We have started our own testing driving project, Tellurium Engine, which will be using jQuery. We also have a Firefox plugin project, TrUMP, the

[jQuery] Merging two jQuery collections

2009-08-14 Thread Hector Virgen
Hello, I have two jQuery collections that I'd like to merge into one: var foo = $('#foo'); var foobars = foo.nextAll('.bar'); I've tried using $.add() to combine the two, but it doesn't seem to be working: foo.add(foobars); foo.css('border', '2px solid #f00'); // only #foo is affected I've

[jQuery] Re: Merging two jQuery collections

2009-08-14 Thread Wolf
i dont understand , but you want append content de foofbars to foo or mixed ..? what contains foo and foobars?

[jQuery] Re: Merging two jQuery collections

2009-08-14 Thread Hector Virgen
I'm actually working with definition list: dl dt id=fooFoo/dt dd class=barBar 1/dd dd class=barBar 2/dd dt id=bazBaz/dt dd class=flurpFlurp/dd /dl The definition list will contain a variable amount of dt and dd tags, so what I am trying to do is select all dt tags, then loop through

[jQuery] announce: jQuery.html and jQuery.createBogoMenu()

2009-08-14 Thread Stephan Beal
Hello, fellow scripters! Just uploaded: http://wanderinghorse.net/computing/javascript/jquery/html/ jQuery.html contains factory functions for generating DOM elements. Its intention is to help clean up script code by allowing us (well, me) to remove all inlined HTML from my script code (i HATE

[jQuery] Re: Citation for jQuery

2009-08-14 Thread Nathaniel
The paper describes a scientific visualization tool that uses jQuery as a component, noting that jQuery is used to simplfy and speed up XML investigation, as well as simplify UI. Any general source will do, but if jQuery has a preferred text or conference paper, I'll use it. Thanks for your

[jQuery] Re: Listmenu - tips for making it faster in IE

2009-08-14 Thread Jack Killpatrick
Hi Anoop. I spent considerable time tuning the code for performance, but yes, IE does lag behind, especially when approaching 1000 items or more. I found Safari and Chrome to both be quite fast and Firefox nearly as fast as those. The IE issue stems from the code that moves the items from

[jQuery] Re: Can't get my head around this chain

2009-08-14 Thread James
I think the best place to put it is in the tr, so it's something like: tr id=row_1234 and you can retrieve it when you click on Edit (untested): var id = $(this).closest(tr).attr(id).split('_')[1]; // 1234 But for your current scenario, you can probably do something like (untested): var id =

[jQuery] [validate] prevalidate event?

2009-08-14 Thread Michael Hahn
We are using JQuery for one of our software projects, and it's a very nice library. It's making things far easier. We are also using the Validation plugin, which is working wonders for form validation. However there's one wrinkle that we have not been able to figure out. Is there any way to run a

[jQuery] Re: Cycle Plugin - Changing the options of the cycle

2009-08-14 Thread Mike Alsup
I define a cycle in document.ready as per usual.  In my cycle I have different sets of images that i want to cycle through and only want certain ones to cycle as selected using the slideExpr option.  Is there a way to change this option from: slideExpr: 'a' to: slideExpr: 'b' Nope. But

[jQuery] animate / carousel

2009-08-14 Thread stefan
HTML: button id=btn/button div id=test ul li1/li li2/li li3/li li4/li li5/li li6/li li7/li li8/li /ul /div JQUERY: var div = $('#test'); var ul = $(ul, div); var li = $(li, ul); var li_width = 100; $('#btn').click(function(){ return move(8); }); function move(to) { ul.animate({left:

[jQuery] Re: Can you put diffrent image son each of the tabs in suckerfish?

2009-08-14 Thread Laker Netman
Well, you can generate as much mark up as you want, but if I understand what you're trying to do, it's redundant :) You can style the UL, LI and A tags directly without a DIV wrapper. Also, your last snippet is a little confusing. You wouldn't place CSS within the DIV. The CSS would be inline in

[jQuery] Re: Can't get my head around this chain

2009-08-14 Thread Laker Netman
Thanks James. Yeah, I'd like to trim some of the bulk from this app, but I'm one of several cooks, so I have to compromise a bit ;-) Appreciate the response. Laker On Aug 14, 1:26 pm, James james.gp@gmail.com wrote: I think the best place to put it is in the tr, so it's something like:

[jQuery] Re: Can't get my head around this chain

2009-08-14 Thread Hector Virgen
That HTML should be traversable without any modifications. What I would do is traverse up to the containing tr by using $.closest() var tr = $(this).closest('tr'); Then, find the a with the name attribute: var a = tr.find('a[name]'); from there, you can pull the 5029 out of the name attribute

[jQuery] called ajaxComplete only on specific div

2009-08-14 Thread dreame4
Hi, This is my simplified html code: div id=calendar div id=#test /div /div and (simplified) JS: function getCalendar() { $('#calendar').bind('ajaxComplete', function() { getTest(); }); } and function getTest() uses ajax but insert data into

[jQuery] Re: Cycle Plugin - Changing the options of the cycle

2009-08-14 Thread Z-Ender
Thanks for the response. But you could stop and then restart the slideshow with a diff slideExpr. I'm not sure if I understand how to do that. Am I recreating the cycle to set the new slideExpr like this? $(#chg).click(function(){ $('#show).cycle('stop'); $('#show).cycle({ fx: 'scrollHorz' ,

[jQuery] Web Application GUI's

2009-08-14 Thread Meroe
Hello all, I assume I'm like many of you. I'm able to write code, but when it comes to design I am at a loss. I've seen some really neat layouts such as mochaui and extjs examples, but I'm struggling to put together one I'm happy with. I'm using the jquery UI layout to set up my north,

[jQuery] Re: Merging two jQuery collections

2009-08-14 Thread Wolf
you can use something like this with css for the visual-style.. div class= style=float:left; id=list ablablablbla title/a div p blablablbla coming!br/ Buy now blablablbla r free!br/ well,

[jQuery] Re: Web Application GUI's

2009-08-14 Thread Erik Beeson
I do 2 kinds of webapps: very rich (or heavy) desktop-replacement type apps, for which I generally use EXT, and much lighter, javascript-optional type websites, for which I generally buy a template from ThemeForrest. --Erik On Fri, Aug 14, 2009 at 1:15 PM, Meroe whme...@gmail.com wrote: Hello

[jQuery] Re: prevalidate event?

2009-08-14 Thread tain
you could make your own function that does what you want and then calls validation one. On Aug 14, 8:15 pm, Michael Hahn mhahn1...@yahoo.com wrote: We are using JQuery for one of our software projects, and it's a very nice library. It's making things far easier. We are also using the

[jQuery] Re: plugin problem with jQuery 1.3.2

2009-08-14 Thread Karl Swedberg
The problem with the plugin is that it relies on evaling a string when it tries to create the new selectors -- :minmax, :max- height, :min-height, etc. That's no longer allowed in jQuery 1.3.x I took a quick stab at rewriting the plugin, but I haven't tested it at all, so no guarantees. But

[jQuery] Need to scroll inside of a div by clicking a button

2009-08-14 Thread webspee...@gmail.com
I'm trying to use jQuery and Flexigrid to display a table. Once the table is displayed, I want to be able to use the page up/page down keys to scroll down the table. I've tried using offsetTop and offsetParent but it's not working. The values are being set as expected, but the scrollbar isn't

[jQuery] Add element after closing tag of another.

2009-08-14 Thread Breno Gazzola
Hello everyone, I just started using jquery and I'm having some difficulty figuring out how to do two things. First, how do I get this: bHello/b To become this? spanbHello/b/span I know how to do $(b).before(span), but $(/b).after(span) is not working. Second, how do I get this: spanHello/span

[jQuery] Howto: Select a sub-list from a long list

2009-08-14 Thread lihao
I have a MySQL table with 90 columns and I want the users to be able to select any columns they concern and output the result accordingly. In the front-end, I can use a group of checkbox which looks very ugly and I can not setup the orders for selected columns. Is there a plug-in or some

[jQuery] Re: Merging two jQuery collections

2009-08-14 Thread Ricardo
.add() returns the merged collections, but it doesn't change 'foo'. you have to reassign it: foo = foo.add(foobars); On Aug 14, 2:36 pm, Hector Virgen djvir...@gmail.com wrote: Hello, I have two jQuery collections that I'd like to merge into one: var foo = $('#foo'); var foobars =

[jQuery] Re: Cycle Plugin - Changing the options of the cycle

2009-08-14 Thread Z-Ender
Also maybe I don't understand what slideExpr does but I thought it didn't look at child elements. I've set it to slideExpr: div and i have nested div tags. ex div table/ div/ /div div table/ div/ /div this renders as 4 slides when i set slideExpr. Is this expected behavior? I think what

[jQuery] Change the contents of a div after it has been created

2009-08-14 Thread Benn
I'm trying (rather unsuccessfully) to fill a div that was created by jquery. I feel like the code should work: any hints or solutions? Here's my html: div class=test_area div class=foo/div div class=fooAlt/div /div Here's my javascript: $(document).ready(function(){ $('.foo').append('a

[jQuery] Re: Merging two jQuery collections

2009-08-14 Thread Hector Virgen
Oh, that makes sense. Thanks! -- Hector On Fri, Aug 14, 2009 at 2:13 PM, Ricardo ricardob...@gmail.com wrote: .add() returns the merged collections, but it doesn't change 'foo'. you have to reassign it: foo = foo.add(foobars); On Aug 14, 2:36 pm, Hector Virgen djvir...@gmail.com wrote:

[jQuery] Re: Change the contents of a div after it has been created

2009-08-14 Thread Benn
missed a line, the JS should be: $('.foo').append('a href=#img src=1.gif class=1 alt=1st image //a'); $('.foo a img').click(function(event){ event.preventDefault(); var fAlt = $('.foo').attr('alt'); $('.fooAlt').text(fAlt) }) On Aug 14, 2:30 pm, Benn bennmey...@gmail.com wrote: I'm

[jQuery] Re: Change the contents of a div after it has been created

2009-08-14 Thread Mauricio (Maujor) Samy Silva
var fAlt = $('.foo').attr('alt'); should be: var fAlt = $('.foo a img').attr('alt'); or better var fAlt = $(this).attr('alt'); Maurício -Mensagem Original- De: Benn Para: jQuery (English) Enviada em: sexta-feira, 14 de agosto de 2009 18:37 Assunto: [jQuery] Re: Change the

[jQuery] Re: Add element after closing tag of another.

2009-08-14 Thread James
For your first question, you can use wrap(). http://docs.jquery.com/Manipulation/wrap For your second question, if you didn't know, and ID must begin with a letter, not a number. With that in mind, you can do something like: var counter = 1; $(span).each(function() { this.id =

[jQuery] Convert JavaScript object to JSON

2009-08-14 Thread rickoshay
In addition to fetching JSON you might want to POST it back to the server, but there is no postJSON method. You cannot use the generic ajax method, either. What is missing is the complement of eval to turn a JavaScript object in to JSON. The JSON.stringify function from www.json.org (see json2.js

[jQuery] Re: Change the contents of a div after it has been created

2009-08-14 Thread Benn
I tried changing the HTML/Javascript to this: $(#select option).each(function(){ var value = $(this).html(); $(this).addClass(value); $('.foo').append('a href=#img src=' + value + '.gif class=' + value + ' alt=' + value + ' //a'); }); $('.foo a img').click(function(event){

[jQuery] Re: Convert JavaScript object to JSON

2009-08-14 Thread James
Yes, currently using JSON.stringify is the only way to do it. Sending JSON (as a string) back to the server is not so common so I believe that's why it's not implemented. Less bloat in the library. On Aug 14, 12:17 pm, rickoshay treesp...@gmail.com wrote: In addition to fetching JSON you might

[jQuery] Re: Cycle Plugin - Changing the options of the cycle

2009-08-14 Thread Z-Ender
My solution was to show/hide one of 2 cycles, depending on which one i needed, using .css('display', 'none') and .fadeIn. Once it was hidden i stopped the cycle i hide and use .fadeIn to show the one i want. Then it is started. Both cycles use the same pager, next, and prev options. The pager

[jQuery] Re: Click() Not Working

2009-08-14 Thread S2
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/ TR/html4/strict.dtd html head meta http-equiv=Content-Type content= text/html; charset=iso-8859-1 title/title script type=text/javascript src=jquery.js /script script type=text/javascript $(function(){

[jQuery] Jquery works in FF but not IE

2009-08-14 Thread Dan Cowley
The following code works fine in FF chrome etc but not IE, anyone know why? Basically everything works accept the replacement of the image attribute $(#container #main_image img#largeId).attr({ src: largePath }); Even the rest of the function ie the swapping classes works, just not the image

[jQuery] Jquery works in FF but not IE

2009-08-14 Thread Dan Cowley
The following code works fine in FF chrome etc but not IE, anyone know why? Basically everything works accept the replacement of the image attribute $(#container #main_image img#largeId).attr({ src: largePath }); Even the rest of the function ie the swapping classes works, just not the image

[jQuery] Plugins and Ajax

2009-08-14 Thread Kilhom
Hi ! I use ajax to load a page, but when this page is loaded i cant use the beaty tips plugin inside the loaded content, any idea ? Thanks !

[jQuery] close ColorBox link?

2009-08-14 Thread KScott
Hello, I'm wondering how I can close colorbox ( http://colorpowered.com/colorbox/ ) from a link within the iframe window? thanks in advance for your time!

[jQuery] Dealing with errors when .find() on .ajax()

2009-08-14 Thread nick
$.ajax({ url: 'http://www.examplepage.com', success: function(responseHTML) { var someText = $(responseHTML).find('#myDiv').html(); // This part returns a script error and aborts anything else from here }, dataType: 'html' }); The problem is that examplepage.com has a script error

[jQuery] Re: Code inside click() event not firing.

2009-08-14 Thread Patrick
James, yes. Dead on and I have it working now. The event delegation/event bubbling proved difficult as the event.target.id of the freshly loaded anchor tags didn't seem to be available to me (needed for show()ing the corresponding div). What did work was rebinding the event at the end of the

[jQuery] Re: Click() Not Working

2009-08-14 Thread Richard D. Worth
It doesn't work to call .click() on an A, if you want to navigate a link's href. Instead: window.location = $(td a.menu:contains('Main')).attr('href'); - Richard On Fri, Aug 14, 2009 at 7:32 PM, S2 smnthsm...@gmail.com wrote: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/

[jQuery] Re: Click() Not Working

2009-08-14 Thread James
Just to clarify that further, click() on a a doesn't perform a mouse click on a link and follow through. It calls the onclick event attached to the a elements, which you don't have set, so it does nothing. On Aug 14, 4:08 pm, Richard D. Worth rdwo...@gmail.com wrote: It doesn't work to call

[jQuery] JQuery Tablesorter - Multiple Options

2009-08-14 Thread John F
Just a quick question. I'm trying to combine mutliple tablesoter options but I'm not able to combine the functions. I'm new to the Jquery/Javascript arena and haven't been able to find any examples on the web. Part 1 Code: $(document).ready(function() { $(#draftlist).tablesorter({

[jQuery] Superfish and cufon

2009-08-14 Thread NiJoMi
Is it possible to assign cufon to just the top level of the menu i.e; toplevel cufon text replace sub menus standard fonts. I have tried several methods but the sub menus inherit cufon

[jQuery] Re: Can't get my head around this chain

2009-08-14 Thread mkmanning
@OP: From your example, it appears that the number you want is the categoryid param in the anchor's href. If that's always the case, you could save all the DOM traversing and just extract it from the anchor: $('a:contains(Edit)').click(function(){ var n = /categoryid=(\d+)/.exec(this.href);

[jQuery] Re: Dealing with errors when .find() on .ajax()

2009-08-14 Thread comslash.com
I don't think you can ignore this error ... It looks like you are returning a JSON response, try turning data type to json and then insert responseHTML.One into your find command ... as One is your object ... see below. $.ajax({ url: 'http://www.examplepage.com', success:

[jQuery] Scrolling problem

2009-08-14 Thread Kevin
I managed to get the scrolling to kinda work – if I set it up with static LI then I can get the scrolling to work the way I want it to, sans being able to pass the number of the image I want to be shown (unless I put it in the text field of the anchor tag, which shows with the image) but I have

  1   2   >