[jQuery] Re: Cycle: replace slide in running slideshow?

2009-08-30 Thread Jon Crump
Mike, Thanks for this. I did find a solution by setting a flag for the first time through the cycle since there were other things too I wanted to happen only on the first time through. After the #title element is shown, I simply replaced its html with a different image and content. A stripped

[jQuery] Re: Replacing like items

2009-08-30 Thread FrenchiINLA
you can add an id to your checkbox in order to get much easier reference to element clicked. Let's say you have id = widget1||123456, widget2||123456 etc then $('input[type=checkbox][id$=123456]')'.click(function(){ $('input[type=checkbox][id$=123456]')'.not($(this)) will give you all other check

[jQuery] Re: "Too much recursion"

2009-08-30 Thread FCCS
Hello, Thank you both. AmitTheKumar solution works fine. Cheers On Aug 29, 11:26 pm, AmitTheKumar wrote: > I think you should try just passing the function name as the second > parameter, instead of adding () after it.  () will cause the function > to execute right away.  So: > >  function vis

[jQuery] Re: Newbie with jQuery

2009-08-30 Thread FrenchiINLA
I am sure that you can design better way than 10 separate call, but anyway with your case you can at least group all call event like $('img[id^=img_]').click(function(){ // here you have all img with id starting with img_ click // then you can get the id of caller var id =$(this).attr('id'); // ge

[jQuery] Re: JqModal / simpleModal - maintaining form state

2009-08-30 Thread Eric Martin
With SimpleModal, you can use the persist option: $(el).modal({persist:true}); There are some known issues in IE though.[1] -Eric [1]: http://www.ericmmartin.com/projects/simplemodal_v12/#othernotes [under Known Issues] On Aug 30, 12:48 pm, "Steffan A. Cline" wrote: > I have tried both of th

[jQuery] Re: Append data using Slide In animation

2009-08-30 Thread Jules
try this $(data).appendTo("#chat_box").show(); On Aug 31, 3:14 am, Namir wrote: > Well I want to append some data to a div called chat_box but I want it > to slide in from the bottom as it appears, the code Im currently using > to attempt to reach this is >        success: function(data){ >    

[jQuery] Re: Settimeout on Function

2009-08-30 Thread a1anm
Hi, I tried this but it didn't work. It resulted in the class not being removed at all. You can see here: http://www.toomanydesigns.com/test/noflash/ On Aug 30, 11:20 am, KeeganWatkins wrote: > The basic syntax for delaying a function using setTimeout is this: > > setTimeout(function() { >

[jQuery] Re: Dissect an ID

2009-08-30 Thread Phil
Hi, thanks for the reply. I love learning new things but this is kind of complicated... I wrote this from what i looked up: var theid=new RegExp('\d+$'); var isthere = theid.exec("ww_1"); console.log(isthere); But all i get is null, any help? thanks again, Phil On Aug 31, 12:06 am, Jorge Godoy

[jQuery] Re: Dissect an ID

2009-08-30 Thread Phil
Thanks for the replys but i have solved it now: var number = ("ww_1").match(/\d/g); On Aug 31, 12:32 am, Charlie Griefer wrote: > There may be a more elegant way, but until it comes along... > > you can .split() the string on the _ character. > > myArray = myString.split('_') > > which in your

[jQuery] Re: Dissect an ID

2009-08-30 Thread Charlie Griefer
There may be a more elegant way, but until it comes along... you can .split() the string on the _ character. myArray = myString.split('_') which in your case would create an array with element 'thisisadiv' at position 0, and '1' at position 1. you could then reference it via myArray[1] On Sun,

[jQuery] Re: Dissect an ID

2009-08-30 Thread Jorge Godoy
I'd math the regex "\d+$", i.e., I'd get numbers at the end of the value. Then you could operate on the matched value. -- Jorge Godoy On Sun, Aug 30, 2009 at 19:29, Phil wrote: > > In jQuery how do I remove a certain part of an id... > > for example i have a div id='thisisadiv_1' > I wan

[jQuery] Re: Move a div to another div

2009-08-30 Thread Kilhom
hi again ! i'va managed to do it by using "animate" (and "'position' : 'relative', 'left' : 60") Bye !

[jQuery] Dissect an ID

2009-08-30 Thread Phil
In jQuery how do I remove a certain part of an id... for example i have a div id='thisisadiv_1' I want to remove the 'thisisadiv_' part This is so I can add/subtract 1 to switch divs. Thanks in Advance. Phil.

[jQuery] Re: Cycle: replace slide in running slideshow?

2009-08-30 Thread Mike Alsup
> Is there a way to replace the first slide in a running slideshow such > that it's shown only once?? Here's an example of something similar - might give you some ideas: http://www.malsup.com/jquery/cycle/title.html

[jQuery] Append data using Slide In animation

2009-08-30 Thread Namir
Well I want to append some data to a div called chat_box but I want it to slide in from the bottom as it appears, the code Im currently using to attempt to reach this is success: function(data){ $('#chat_box').append(data.show("slide", {direction: "down"}, "1000")); }, but thi

[jQuery] Newbie with jQuery

2009-08-30 Thread Reynier Pérez Mira
Hi every: I'm starting with jQuery and I have a lot of doubts. I'm reading the following books: - jQuery Reference Guide (Jonathan Chaffer, Karl Swedberg) - Learning jQuery 1.3 (Jonathan Chaffer, Karl Swedberg) - jQuery UI 1.6 (Dan Wellman) But as I said before I have a lot of doubts. Here

[jQuery] http://plugins.jquery.com is down

2009-08-30 Thread MikeB
The plugins website is down: http://downforeveryoneorjustme.com/http://plugins.jquery.com/ and I'm not sure who to contact

[jQuery] Re: Facebook Connect & jQuery

2009-08-30 Thread Stefan Klasen
Do you use the ruby gem facebooker? It's using prototype as it's default JavaScript framework. Call it this way to use jquery instead: <%= init_fb_connect('XFBML', :js => :jquery) %> hope this helps On Sunday, August 30, 2009, Avishai wrote: > > Hi, > > I've been trying to implement Facebook Co

[jQuery] Re: JSON data manipulation

2009-08-30 Thread Depechie
Kevin, Thanks for the info!!! The .push method is something new for me and it is a very good solution for my problem. Greets Glenn On Aug 30, 6:07 pm, Kevin Dalman wrote: > OOPS, I didn't formatted the data correctly for passing to Plot() - > sorry, didn't read carefully. But the premise is th

[jQuery] Move a div to another div

2009-08-30 Thread Kilhom
Hi ! Here's a little example of what i want to do : " " I want to make an animation where the div "C" come from the div "A" to (inside) the div "B". Is it possible ? Thanks in advance ! Bye.

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread Josh Powell
sorry .up() is prototype... should be .parent() instead. On Aug 30, 1:20 pm, Josh Powell wrote: > kali - here is a way to accomplish the same thing in less code, and > lets you call the images anything you want instead of having to use > numbers.  This is untested so there may be some slight

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread Josh Powell
kali - here is a way to accomplish the same thing in less code, and lets you call the images anything you want instead of having to use numbers. This is untested so there may be some slight errors, but the logic should be sound: $(function() { var imageArray = ['foo', 'bar', 'baz'];

[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread MorningZ
> I looked and looked for examples and thought I tried every conceivable > example. Always start right here http://docs.jquery.com/Selectors you would have run across this http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue

[jQuery] Re: Issue with getJSON function... I get the JSON file but I can't do anything with it !! Help please

2009-08-30 Thread lpdahito
Guys I fixed it... I was not trying to access the data properly... Instead of writing data[2] and expect to get the data from it, I needed to ask for it explicitly: data[2].story.title. This gave me the title... Thx for your help guys.. On Aug 28, 10:07 pm, MorningZ wrote: > > The alert box th

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread Josh Powell
Even simpler: $('img.thumb').click(function () { $(this).toggleClass('dim'); });

[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread Charlie Griefer
No reason to be embarrassed. Everyone starts somewhere. Hell, compared to many of the folks on this list, I'm still a n00b. Just keep at it, refer to the docs early and often, and don't be afraid to ask questions as they come up. On Sun, Aug 30, 2009 at 11:23 AM, gBerger wrote: > > Thanks. T

[jQuery] JqModal / simpleModal - maintaining form state

2009-08-30 Thread Steffan A. Cline
I have tried both of these modal solutions, beautiful by the way, and found a small problem with both of them and am wondering if there is a work around. I have a form where there are a bunch of check boxes that I have enclosed in a div that I am using for my popup modal. Now the thing is that wh

[jQuery] Replacing like items

2009-08-30 Thread Steffan A. Cline
I have a form of data I am working on where I may have *nearly* the same thing appear with a checkbox appear multiple times. For example: So, if checkbox #1 (widget1) is checked, it will either disable all other ones containing the sku 123456 OR replace the others in the form having sku 12

[jQuery] Re: cluetip html not being rendered

2009-08-30 Thread mjs
Found the problem. I was using CSS reset style on the page the cluetips were on. On Aug 30, 3:01 pm, mjs wrote: > I have been working with the cluetip plug-in for several hours and am > stuck.  I can get most of the functionality working, but am unable to > load another page within the tip and

[jQuery] cluetip html not being rendered

2009-08-30 Thread mjs
I have been working with the cluetip plug-in for several hours and am stuck. I can get most of the functionality working, but am unable to load another page within the tip and see the formatted html. The text shows up in the tip without formatting. The CSS for the tooltip itself is working as e

[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread gBerger
Thanks. That did the trick. I actually spent at least a couple of hours on this. I looked and looked for examples and thought I tried every conceivable example. Thanks again, gBerger On Aug 30, 1:18 pm, Charlie Griefer wrote: > #3 errors because as of jQuery 1.3, the use of the "@" symbol i

[jQuery] Re: using cross domain scripting to embed HTML

2009-08-30 Thread Michael Geary
You can't achieve your SEO goals with JavaScript (and that of course includes jQuery). Search engine crawlers don't run your JavaScript code, so they don't see anything you add to the page with JavaScript. Instead, they see what you get if you do a View Source on a page: they'll see your tag its

[jQuery] Re: changing URL with slider

2009-08-30 Thread Macsig
Does anyone have used jquery.address (http://www.asual.com/jquery/ address/)? looks like it does exactly what I need but I have hard time to understand how it works: the docs is not so clear to me. THANKS On Aug 30, 7:07 am, Macsig wrote: > Any ideas? > > Thanks > > On Aug 28, 7:43 am, macsi

[jQuery] Cycle: replace slide in running slideshow?

2009-08-30 Thread Jon Crump
Is there a way to replace the first slide in a running slideshow such that it's shown only once?? I've been trying variations on something like this with no success. The element is replaced, but cycle doesn't show it. function doBefore(){ var i = $(".slide").index(this); if (i == 1){ $("#fi

[jQuery] Re: Easy SELECT question for newbie

2009-08-30 Thread Charlie Griefer
#3 errors because as of jQuery 1.3, the use of the "@" symbol is deprecated. $('input[id$="ckKyW"]') <-- all input elements with an id attribute that ENDS WITH 'ckKyW' see the "Attribute Filters" section of http://docs.jquery.com/Selectors On Sun, Aug 30, 2009 at 7:31 AM, gBerger wrote: > > I

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread kali
actually got solution in another forum (http://www.manning-sandbox.com/ thread.jspa?threadID=34108&tstart=0) works like a charm!! :) namely: $('#image' + i).bind('mouseover', i, function(event) { $('#image' + event.data).addClass('dim'); }); as to other problem (var elem1 =

[jQuery] Re: JSON data manipulation

2009-08-30 Thread Kevin Dalman
OOPS, I didn't formatted the data correctly for passing to Plot() - sorry, didn't read carefully. But the premise is the same - create an array by looping your data, and then pass the array when done. /Kevin On Aug 30, 9:04 am, Kevin Dalman wrote: > Hi Glenn, > > Create an array and 'push' each

[jQuery] Re: JSON data manipulation

2009-08-30 Thread Kevin Dalman
Hi Glenn, Create an array and 'push' each hash of plot data onto it. When the loop is complete, pass the now complete array... $.getJSON('/Graph/HearthRateDataJSON', "", function(data) { var data= [ ]; $.each(data, function(entryindex, entry) { data.push( { Name: entry['Name'], S

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread Kevin Dalman
Good points by Josh. However this selector example... $('img[class="thumb"]).mouseover ...can be written simpler as $("img.thumb").mouseover It's faster in most browsers to select-by-class than to iterate elements and 'read attributes'. jQuery may process both syntaxes the same (?), but us

[jQuery] Re: tool tip / ajax / image map

2009-08-30 Thread webguy262
I need to get a tooltip that works when the page containing the image and the image map is ajax-ed into a div... Anybody have any ideas? I could really use some help if anyone has a suggestion! Kinda on a deadline! webguy262 wrote: > > Thanks, Scott, for the reply. > > The space separated

[jQuery] Re: Settimeout on Function

2009-08-30 Thread KeeganWatkins
The basic syntax for delaying a function using setTimeout is this: setTimeout(function() { // ...code here executes when the timeout is complete }, 2000 /* Length of timeout, in milliseconds */); so for your example, something like this should work: $(document).ready(function(){ $("#b

[jQuery] Settimeout on Function

2009-08-30 Thread a1anm
Hi, I have this code: $(document).ready(function(){ $("#barcode span").hover( function () { $(this).addClass("barover"); }, function () { $(this).removeClass("barover"); } ); }); I would like to add a timeout so that the remov

[jQuery] Facebook Connect & jQuery

2009-08-30 Thread Avishai
Hi, I've been trying to implement Facebook Connect on my site, which uses jQuery pretty extensively. However, the minute I insert the FB connect code into my page, I get this error: Element.observe is not a function new()new (line 32) Element.observe(window,'load', function() {\n which is: 32

[jQuery] Display Form Help by Jquery - Help Needed

2009-08-30 Thread SJRANJAN
i want to build a page like ... http://www.shaadi.com/registration/user/index.php there when u go to each and every field it shows help in the right side i want to know how to create like this ... any one have idea about this

[jQuery] Easy SELECT question for newbie

2009-08-30 Thread gBerger
I am an extreme beginner so sorry for the basic question. I have a number of checkboxes on the screen that contain an "ID" with the characters "ckKyW" in it. Checkbox Examples: whatever_ckKyW34 whatnow_ckKyW67 whoops_ckKyW23 I have tried every combination that I could think of (a few of th

[jQuery] Re: changing URL with slider

2009-08-30 Thread Macsig
Any ideas? Thanks On Aug 28, 7:43 am, macsig wrote: > Hello guys, > is there a way (using a specific plugin or doing some hacking) to > change the pageURLwhen I change the viewed panel within a slider? > > Right now I'm using tabSwitch (http://www.hieu.co.uk/blog/index.php/ > tabswitch/) but I

[jQuery] using cross domain scripting to embed HTML

2009-08-30 Thread mattvick
I'm trying to set up a system similar to Google AdSense that allows other websites to display some HTML content from my site on theirs. I've looked at the show_ads.js file Google uses to display Ads but to be honest I've not found it easy to decipher. I've also read that using a

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread Josh Powell
for (i = 1; i < 5; i++) { $('#thumb' + i).bind('mouseover',function(event) { $(this).addClass('dim'); }); } The 'i' you've called here is a global variable, in a for loop always put a var in front of it to have local scope (to the function, not block) for (var i = 1; i < 5;

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

2009-08-30 Thread Michael Geary
Something I forgot to mention in my previous reply... To make sure it's clear what code is actually being run in the browser, never rely on looking at your JSP source to understand it. That's what threw you off here. The browser never sees your JSP source, only the HTML/JS/CSS/whatever files that