[jQuery] Re: Question Urgent

2009-10-27 Thread Charlie
wrap 2 columns in one container and only move the one container...requires some css modifications no matter what you do paparazzy wrote: hi, I´m building a jCarousel following the tuturials and the example that you´ve post in http://sorgalla.com. I want to build a Vertical carousel but wit

[jQuery] Re: Question regarding image grid

2009-10-27 Thread roberto.sanc...@escapemg.com
I think I've done something similar to this. What I did (for a one-row image grid with horizontal scrolling) was have a div with a fixed height and width, overflow: hidden, and position:relative. I put a child div with absolute positioning and a large enough width so that it will accommodate all c

[jQuery] Re: Question regarding image grid

2009-10-27 Thread Michel Belleville
Depending on your clients navigators you may use inline-block positionning (works fine with Firefox 3.xx, Opera, Safari ; works with Firefox 2.xx with a few tweaks, works IE7 with a bit more tweaking but ultimately ok), or floating positioning if you really are forced to be IE6 compliant (though th

[jQuery] Re: Question using .load event

2009-10-05 Thread Bryan Ruiz
pastebin: http://pastebin.ca/1595754 On Mon, Oct 5, 2009 at 5:04 PM, bryan wrote: > Hey all, > > First post to the group! I am trying to display a spinner on images > that are loading, which works. I wanted the loader to be degrade > properly if javascript was disabled, which is why i replace

[jQuery] Re: question about identifying what should be updated in an an ajax post

2009-07-12 Thread brian
On Sat, Jul 11, 2009 at 8:24 PM, jt wrote: > > > I have only used jQuery for fairly simple things and am a little > stumped on how best to achieve the following. I have a list of items > (similar to the three items at the bottom) and I want a user to be > able to assign it as a favorite. I just co

[jQuery] Re: question about identifying what should be updated in an an ajax post

2009-07-12 Thread marksimon
You could try using a hidden field to hold the id. Then you could look for that field. $(document).ready(function() { $('.favorite').click(function(){ var tid=$('.hiddenfield').text(); alert(tid); }); }); some link109 not sure about prefered method

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
correction to my dotnet cod namespace mynamespace { public class myclass{ void hideElemen(string elementName)t { elementName.visibility = false; } } } } On Thu, Jul 2, 2009 at 8:21 PM, waseem sabjee wrote: > it is similar do dotnet yes > > JS > == > var mynamespace = function() { > r

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
it is similar do dotnet yes JS == var mynamespace = function() { return { hide : function(o) { var obj = document.getElementById(o); o.style.display = 'none' } } }(); dot net C# == namespace mynamespace { void hideElemen(string elementName)t { elementName.visibility = false; }

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
i will use simple terms when i say namespace lets call our namespace bmw this should be a little simpler. someone decides to create bmw as namespace or brand name now one of the functions or perks of this is that you can paint it a certain color. you could say it's like create your own brand name

[jQuery] Re: Question on : syntax

2009-07-02 Thread expresso
what is meant by a namespace. I view namespace as like in .NET classes, is this the same concept? On Jul 2, 1:10 pm, expresso wrote: > Thanks a lot.  The second response really helped me as I'm not so > versed in hard core JavaScript.  Obviously not being that well versed > in it is hindering m

[jQuery] Re: Question on : syntax

2009-07-02 Thread expresso
Thanks a lot. The second response really helped me as I'm not so versed in hard core JavaScript. Obviously not being that well versed in it is hindering my ability to understand plug-in code, ability to distinguish between standard JavaScript notation/features vs. jQuery in the same file, and ab

[jQuery] Re: Question on : syntax

2009-07-02 Thread waseem sabjee
lets go back to basic JavaScript. take this example var display = function() { // create namespace display return { hide : function(o) { // add function hide to namepsace var obj = document.getElementById(o); if(obj.style.display != 'none') { obj.style.display = 'none' } }, show : function(o) {

[jQuery] Re: Question on : syntax

2009-07-02 Thread Michael Lawson
One thing to keep in mind, is that when you are using : to specify a filter, it will always be inside of a string. "input:button"for example. The syntax you have here is the key value notation in javascript. It will almost always exist outside of a string. You are setting the setup key to

[jQuery] Re: Question on writing a jQuery plugin

2009-06-22 Thread Steven Yang
Hi I am not too sure if you can do that but to my understanding all jQuery plugin returns the selected jQuery object so if you want to do that you have to add plugin function to jQuery directly you might want to see how jQuery ui dialog and datepicker to find out how they do something similar

[jQuery] Re: Question about 'ready' event

2009-06-15 Thread Bernad
Yeah, this works perfectly! Many thanks for the idea, Pierre. Best Regards. On Jun 12, 8:20 pm, Pierre Bellan wrote: > I see one fast solution, > > You put a variable isLoaded in your top frame. > At first, the value is false, and when it's ready you change the value to > true. > > Inside the

[jQuery] Re: Question about 'ready' event

2009-06-15 Thread Bernad
Yeah, this works perfectly! Many thanks for the idea, Pierre. Best Regards. On Jun 12, 8:20 pm, Pierre Bellan wrote: > I see one fast solution, > > You put a variable isLoaded in your top frame. > At first, the value is false, and when it's ready you change the value to > true. > > Inside the

[jQuery] Re: Question

2009-06-14 Thread MorningZ
You may want to make your post subjects actually mean something rather than the vague "Question" so that the right person sees it to help you... for example "hightlight required fields in validate" On Jun 14, 1:45 pm, Alexander Gornik wrote: > Hi there. > > Is there an option if i want requ

[jQuery] Re: Question about 'ready' event

2009-06-12 Thread Pierre Bellan
I see one fast solution, You put a variable isLoaded in your top frame. At first, the value is false, and when it's ready you change the value to true. Inside the iframe that need the function, you check the value of the variable inside a periodic call. When the value is true, you can make the ca

[jQuery] Re: Question on filter()

2009-06-11 Thread TimW66
Never mind, figured out the issue. the "return" statement has a call that will look for label inside of the parent, not look at the parent itself. If I want to look at the parent, I'll have to use "$(this).is ('label')". Sorry for the clutter! On Jun 11, 12:11 pm, TimW66 wrote: > Hi all, I ha

[jQuery] Re: Question on filter()

2009-06-11 Thread Andy Matthews
Parent is the DOM node which contains the targeted element. So in your example td would be the parent of input. Label would be a sibling of input, or you could use the prev('label') method if you wanted to target the label element. -Original Message- From: jquery-en@googlegroups.com [ma

[jQuery] Re: Question Animating and Removing Elements

2009-06-01 Thread spryor
Hi Karl, Thanks for the response. It works great. Thanks, Stephen

[jQuery] Re: Question Animating and Removing Elements

2009-06-01 Thread Karl Swedberg
Hi Stephen, Use a callback function in the second argument of slideUp(). For example: $('.delete').click(function() { $('someElement').slideUp(400, function() { $(this).remove(); }); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 1, 2009,

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Jack Killpatrick
Thanks guys, I understand now. Related question (but maybe for the UI guys)... does anyone know if any jquery UI components (sortables and dialog in particular) bind events to something outside their own scope (like by using .live())? I'm guessing not and that I'm safe instantiating one of tho

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Karl Swedberg
On May 30, 2009, at 12:14 PM, Jack Killpatrick wrote: Thanks, Brandon. So .empty() won't touch events that were bound using a selector on objects inside what is being emptied, right? Gotta use .die() to get rid of them? Yes and no. empty() will unbind events that were bound to the elements

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Jack Killpatrick
Thanks, Brandon. So .empty() won't touch events that were bound using a selector on objects inside what is being emptied, right? Gotta use .die() to get rid of them? - Jack Brandon Aaron wrote: The .live() method binds event handlers at a higher level than the node(s) selected. So, in other w

[jQuery] Re: question re: .live() and .empty()

2009-05-30 Thread Brandon Aaron
The .live() method binds event handlers at a higher level than the node(s) selected. So, in other words the events aren't actually bound to specific nodes so they won't be removed when you call empty. If you need to remove a live event, just call .die(). It is like .unbind() but for .live() event

[jQuery] Re: question re: .live() and .empty()

2009-05-29 Thread Jack Killpatrick
I'm guessing that once a .live() instantiation occurs it's there for good. If that's the case, is there a way to destroy it? (in particular as it pertains to a selector). I'm debating using it in a plugin, but am wary because of what could happen with multiple instances of the plugin and may

[jQuery] Re: Question on encode/decode of JSON - server-side and client-side

2009-05-27 Thread Amodha
Ajax pro (http://ajaxpro.info) can encode /decode json requests on server side if using asp.net. might be something that might help. On May 27, 7:06 am, SamCKayak wrote: > I am building a client-side and server-side solution and want to use > JSON through Ajax in both directions. > > I have ASP

[jQuery] Re: Question about Tutorial: Find me: Using selectors and events

2009-05-26 Thread Mattsson
A partial answer to my question on the difference between mouseenter and mouseover, in the jQuery documentation, Events/mouseenter (http:// docs.jquery.com/Events/mouseenter#fn), it states, then illustrates, that mouseover fires when the pointer moves into or out from child element, while mouseent

[jQuery] Re: Question about Tutorial: Find me: Using selectors and events

2009-05-26 Thread Mattsson
Thanks a bunch mkmanning, your brief answer had loads of meaning for me: a) we may look in the jQuery source file to see what a jQuery function does -- jQuery is after all simply JavaScript b) we can name any JavaScript object by using a colon after a name (http://www.codingforums.com/showthread

[jQuery] Re: Question: XPath User's New

2009-05-25 Thread Karl Swedberg
On May 24, 2009, at 10:19 PM, Dustin Wilson wrote: Is there a way to select div elements with a class of 'img' that has more than one img element as a child? Hi Dustin, jQuery doesn't use XPath selectors (it did long ago, but now it uses only CSS selectors). To get a count of the images i

[jQuery] Re: Question: Wait for function 1 to finish, then start function 2....

2009-05-24 Thread macphreak
Moderators - I am not trying to post multiple posts. However, I was having problems with my internet connection at the time I was trying to post this. I have another post that is similar to this one so you can safely delete this post. Thanks! On May 23, 2:44 pm, macphreak wrote: > Hello, > > I

[jQuery] Re: Question about Tutorial: Find me: Using selectors and events

2009-05-23 Thread mkmanning
A quick look in the jQuery source is always a good start: hover: function(fnOver, fnOut) { return this.mouseenter(fnOver).mouseleave(fnOut); } On May 22, 9:28 pm, Mattsson wrote: > Hello, I'm very new to jQuery and trying out some of the tutorials. > In this tutorial,htt

[jQuery] Re: Question about Click Function

2009-05-21 Thread Rudolpho
ps: strange behaviour can be seen live here: http://www.les-elites.org/index.php?article_id=126&clang=0

[jQuery] Re: Question about Click Function

2009-05-21 Thread Rudolpho
Ok - so far i got it to work. The reason why the things didnt work was because the functions weren´t loaded on (document).ready. One solved next problem comes... i want it that way, once next button in row is activated the previous shouldnt work any more until the next one is deactiv

[jQuery] Re: Question about jQuery's filter ability

2009-05-21 Thread aquaone
I know of two possibilities off the top of my head. The first is a shameless plug for my own plugin still in development: http://c3p0.reverse.net/~aquaone/tablefilter/. Check it out and let me know if it would meet your requirements. The second would

[jQuery] Re: Question about Click Function

2009-05-21 Thread ryan.j
somehting like... $(".clicky").live("click", function(){ $(this).next().fadeIn("slow") }); On May 21, 9:27 am, Rudolpho wrote: > Hello! > Sorry i´m a  absolute beginner  with JQuery, therefore  this  Question > may be somewhat trivial: > > My Goal is to make buttons in a  row. The first > o

[jQuery] Re: question about getJSON, objects and/or scope - confused

2009-05-21 Thread illovich
I just googled around, hacked at my function, etc. For some reason I ended up trying this solution (i.e. setting thisStory inside the getJSON callback instead of using the thisStory = getJSON() way., and it works ALMOST: //

[jQuery] Re: question about getJSON, objects and/or scope - confused

2009-05-20 Thread illovich
Josh, thanks for your response - it helped clear up some of my problems when I moved the var thisStory = $.getJSON("javascript/ test.js", function(json){etc.}); out of the $(document).ready(); block. Now at least the document.write is executing on the page... But it's being written out as "undefi

[jQuery] Re: question about getJSON, objects and/or scope - confused

2009-05-19 Thread Josh Powell
Well, one thing that will cause IE to error is the extra comma in the object declaration: var obj = { 'foo': 'bar', 'baz': 'boo', <--- this comma creates an error in IE } The other problem is that you are doing the json call when the document is finished loading, at that point the document.w

[jQuery] Re: Question in JSON

2009-05-05 Thread Dman
That works tyvm :) On May 5, 1:25 am, MorningZ wrote: > if you had: > > var json = {"4":{"6":"1"},"3":{"1":"1","2":"1"}} > > and this div: > > > > then this code: > > $.each(json, function(Parent, Values) { >        $("#Results").append("Parent: " + Parent + ""); >        $.each(values, functio

[jQuery] Re: Question in JSON

2009-05-04 Thread MorningZ
if you had: var json = {"4":{"6":"1"},"3":{"1":"1","2":"1"}} and this div: then this code: $.each(json, function(Parent, Values) { $("#Results").append("Parent: " + Parent + ""); $.each(values, function(key, val) { $("#Results").append("-- Key: " + key + ", Value:

[jQuery] Re: question about approaching an interactive image gallery

2009-04-28 Thread roryreiff
Hello, I have updated the code a bit, and I think that the problem I am having has to do with scope and how I am binding my pause() and click functions to my controls? Any help is greatly appreciated. Basically, each time either arrow left or arrow right is clicked, I have bound a function to cli

[jQuery] Re: question about approaching an interactive image gallery

2009-04-27 Thread roryreiff
I have approached a solution, or at least am very close. I have run into a problem though... In my initial binds to my forward and backward controls, I am binding the functions backwardClick() and forwardClick(), as well as to each an if statement that calls pause() if my variable 'gallery' is se

[jQuery] Re: question about approaching an interactive image gallery

2009-04-23 Thread ml2009
Hi Roryreiff - would these plugins help? http://malsup.com/jquery/cycle/ http://code.google.com/p/agile-carousel/ On Apr 15, 11:43 am, roryreiff wrote: > Hi there, > > I want to start developing a simple interactive image gallery for a > home page. My goal is for it to behave similar to Slide

[jQuery] Re: question about dealing with JSON callback

2009-04-22 Thread dhtml
On Apr 17, 10:55 am, mkmanning wrote: > >- the dataType is "JSON", not "json". > >(I pointed this out earlier in this thread) > > I noticed what sneaks did, I also noticed you had pointed it out, > which is why my comment was in direct reply to sneaks post about the > 'object side' and removing

[jQuery] Re: question about dealing with JSON callback

2009-04-17 Thread mkmanning
>- the dataType is "JSON", not "json". >(I pointed this out earlier in this thread) I noticed what sneaks did, I also noticed you had pointed it out, which is why my comment was in direct reply to sneaks post about the 'object side' and removing the quotes (check the quoted text in my post to see

[jQuery] Re: question about dealing with JSON callback

2009-04-17 Thread dhtml
On Apr 16, 5:14 pm, mkmanning wrote: > As I said before: it's a string until it's eval'd, which happens with > the 'json' response type within jQuery, or as I said you can eval the Notice carefully what 'sneaks' used for his dataType: jQuery.post( "/wp/wp-admin/admin-ajax.php", {

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread mkmanning
And if we really want to split hairs, JSON isn't a string. It's text. A string is a specific JavaScript object type with its own associated methods, which have no meaning in other languages. JSON is a text format that is completely language independent (and JSON was specifically designed as a data

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread mkmanning
As I said before: it's a string until it's eval'd, which happens with the 'json' response type within jQuery, or as I said you can eval the response text yourself. At that point it is JavaScript, and it's an object whose members you can access with dot or bracket notation and that you can iterate

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread Michael Geary
Ah, the O in JSON does stand for Object, but what does the *N* stand for? :-) Notation. JSON is a string format: It's a *notation* in the form of a string. This string can represent an object or other data type, but JSON is not the object itself. The example JSON that the OP posted is evidence

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread mkmanning
So you're saying JSON is not an object, it's a string? What does the O stand for then? The OP gave this example JSON: { "product_id":"03", "product_name":"Sample shoe", "product_brand":"Shoe Brand", "product_slug":"slug3", "product_description":"descrip

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread dhtml
On Apr 16, 12:42 am, mkmanning wrote: > Just an FYI, but there's no 'object side' of the json in your example. > It just an object, consisting of name-value pairs. While you can leave No, it is not an object. It is a string. > quotes off of the names, they are strings which, according to the

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread Donny Kurnia
Kyle wrote: > I'm sorry about heisting this thread, but I cannot figure out how to > post to this group. I click new post, type in my prose, and click > post, but it never appears in the topic list. Does anyone know what > I'm doing wrong? > > Thanks, > -K > Since you using gmail, you don't get

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread Rick Faircloth
Hi, Kyle... Perhaps, since you are apparently new to the group, your new posts are being moderated pending approval? Rick On Wed, Apr 15, 2009 at 7:41 PM, Kyle wrote: > > I'm sorry about heisting this thread, but I cannot figure out how to > post to this group. I click new post, type in my pro

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread Kyle
I'm sorry about heisting this thread, but I cannot figure out how to post to this group. I click new post, type in my prose, and click post, but it never appears in the topic list. Does anyone know what I'm doing wrong? Thanks, -K

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread mkmanning
Just an FYI, but there's no 'object side' of the json in your example. It just an object, consisting of name-value pairs. While you can leave quotes off of the names, they are strings which, according to the RFC, should be quoted. Doing so will not cause problems, and will save you from potentiall

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread dhtml
On Apr 15, 7:33 pm, sneaks wrote: > for anyone having similar problem heres how i resolved it: > >         function getProductInfo(product_id) { >                 jQuery.post( >                         "/wp/wp-admin/admin-ajax.php", { >                                 action: "getProductInfo",

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
for anyone having similar problem heres how i resolved it: function getProductInfo(product_id) { jQuery.post( "/wp/wp-admin/admin-ajax.php", { action: "getProductInfo", 'cookie': encode

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
the way i see it, there are quotes on the object side of the json where there should be no quotes...

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
hi garret... here is the json responsei get: { "product_id":"03", "product_name":"Sample shoe", "product_brand":"Shoe Brand", "product_slug":"slug3", "product_description":"description3", "product_active":"1", "product_type":"shoe",

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread dhtml
On Apr 15, 4:34 pm, sneaks wrote: [posting order restored] > On Apr 15, 1:28 pm, dhtml wrote: > > > On Apr 14, 9:34 pm, sneaks wrote: > > > > hi! i am trying to use jQuery.post() to send name/value to a php > > > function which then retreives data from mysql and responds withJSON > > > whic

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread sneaks
heres the function (it connects to wordpress database so i cant send a url) function getProductInfo(product_id) { jQuery.post( "/wp/wp-admin/admin-ajax.php", { action: "getProductInfo",

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread dhtml
On Apr 14, 9:34 pm, sneaks wrote: > hi! i am trying to use jQuery.post() to send name/value to a php > function which then retreives data from mysql and responds with JSON > which looks like this when i append it directly to my debug output > div: > [...] > i have tried to iterate through the

[jQuery] Re: question about dealing with JSON callback

2009-04-15 Thread Scott Sauyet
sneaks wrote: i have tried to iterate through the JSON using the jQuery.each(): but it is iterating character by character rather than by each pair It looks like your JSON response is seen as a String. What jQuery call are you using to load it? -- Scptt

[jQuery] Re: question about each function

2009-04-14 Thread MorningZ
As Leeoniya notes: $(input:text).each(function(){ if(something happened) { return false; } }) On Apr 14, 8:59 pm, Leeoniya wrote: > wait, you should be doing "return FALSE" rather than just "return" > > On Apr 14, 7:57 pm, Leeoniya wrote: > > > well according tohttp://docs.jquery.com/Core/

[jQuery] Re: question about each function

2009-04-14 Thread Leeoniya
wait, you should be doing "return FALSE" rather than just "return" On Apr 14, 7:57 pm, Leeoniya wrote: > well according tohttp://docs.jquery.com/Core/each > returning false SHOULD break out of the loop, haven't tried it tho - i > can't imagine something like this would be broken at this point, m

[jQuery] Re: question about each function

2009-04-14 Thread Leeoniya
well according to http://docs.jquery.com/Core/each returning false SHOULD break out of the loop, haven't tried it tho - i can't imagine something like this would be broken at this point, maybe your condition is never being met? On Apr 14, 7:51 pm, Leeoniya wrote: > i, too, am curious how to brea

[jQuery] Re: question about each function

2009-04-14 Thread Leeoniya
i, too, am curious how to break out of a .each() loop. On Apr 14, 7:35 pm, jack wrote: > Hi, all > > See the following. > > $(input:text).each(function(){ >     >    if(something happened) return; >    --- >    --- > > }) > > I found the 'return' only exit form a particular input element. An

[jQuery] Re: question about getJSON and surrounding JavaScript comments in JSON

2009-03-26 Thread nick hensgen
: MorningZ Subject: [jQuery] Re: question about getJSON and surrounding JavaScript comments in JSON To: "jQuery (English)" Date: Thursday, March 26, 2009, 7:49 AM That doesn't make any sense "getJSON", makes an AJAX call and expects, well, it expects JSON if what

[jQuery] Re: question about getJSON and surrounding JavaScript comments in JSON

2009-03-26 Thread MorningZ
That doesn't make any sense "getJSON", makes an AJAX call and expects, well, it expects JSON if what your calling has comments surrounding it, then it isn't JSON, so that function won't work You'll have to use the generic ".ajax" method, strip off the comments, and then, ugggh, "eval()" to turn

[jQuery] Re: Question on JQuery Licensing Issue

2009-02-26 Thread Richard D. Worth
On Mon, Feb 23, 2009 at 3:48 AM, Viki wrote: > > This is Vicky from China. I came across to know JQuery last year and > felt very interested in this masterpiece. My brother once adopted > some features or plug-in of JQuery during his graduation thesis of > designing a web application. He found i

[jQuery] Re: Question about Select working with array

2009-02-22 Thread James
The way you store mdata you would have to loop through each item to find it. What if you stored it like this: var mapdata = { 'basic': { mID:'basic', mtitle:'Basic Map' }, 'bookmobile': { mID:'bookmobile', mtitle:'Bookmobile Stops' }, 'booksbymail': { mID:'booksbymail', mt

[jQuery] Re: Question about Interface elements

2009-02-13 Thread Richard D. Worth
On Fri, Feb 13, 2009 at 4:50 AM, Skari wrote: > > Hello all, > > I am in the early stages of developing a web portal and want to > provide a drag-n-drop of blocks, so users can pretty much configure > their own custom page. I am using Drupal as a CMS and found some > pretty well functioning modul

[jQuery] Re: Question about jQuery.load()

2009-02-11 Thread Michael Lawson
There is a jQuery function that works specifically on javascript files: jQuery.getScript( url, callback ) is that what you're looking for?) cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my

[jQuery] Re: Question related to Javascript

2009-02-09 Thread seasoup
If you are using Prototype and jQuery you will need to do: var $j =jQuery.noConflict(); otherwise the will be a conflict for the $. Then, when you wan't to do things in jQuery, do $j and when you want to do things in Prototype, do $. Is $("imgDisplay0").src = imgs0Slideshow[start].image; co

[jQuery] Re: Question related to Javascript

2009-02-08 Thread MH1988
Would be great if someone could still help me out? On Feb 8, 10:01 pm, MH1988 wrote: > Sorry, just also to mention, I am integrating this within WordPress > and I am using the jQuery framework for another gallery. > > On Feb 8, 9:58 pm, MH1988 wrote: > > > Thanks so much for the help. I'm afrai

[jQuery] Re: Question related to Javascript

2009-02-08 Thread MH1988
Sorry, just also to mention, I am integrating this within WordPress and I am using the jQuery framework for another gallery. On Feb 8, 9:58 pm, MH1988 wrote: > Thanks so much for the help. I'm afraid it still isn't working > correctly. I tried [0] which to me means it initiates the very first >

[jQuery] Re: Question related to Javascript

2009-02-08 Thread MH1988
Thanks so much for the help. I'm afraid it still isn't working correctly. I tried [0] which to me means it initiates the very first image as soon as it preloads. For more details of how I am using this, I am actually using the Prototype script framework which makes this image gallery work. Is $

[jQuery] Re: Question related to Javascript

2009-02-08 Thread seasoup
Also, instead of saying var imgs0Slideshow = new Array(); imgs0Slideshow[0] = new Object(); It's easier to just say var imgs0Slideshow = []; imgs0Slideshow[0] = {}; and that achieves the exact same thing. On Feb 8, 1:10 am, seasoup wrote: > $("imgDisplay0_title").innerHTML = title; > $("imgD

[jQuery] Re: Question related to Javascript

2009-02-08 Thread seasoup
$("imgDisplay0_title").innerHTML = title; $("imgDisplay0_caption").innerHTML = caption; $("imgDisplay0_number").innerHTML = "1 of " + imgs0Slideshow.length + " Articles"; should be $("imgDisplay0_title").html(title); $("imgDisplay0_caption").html(caption); $("imgDisplay0_number").html('1 of ' +

[jQuery] Re: question about changes to :not() in 1.3

2009-01-19 Thread Ricardo Tomasi
sorry for the misinterpretation. Yeah, that seems like a bug. $(':not(div:has(div))') gave the exact same results as $('*').not ('div:has(div)') in jQuery 1.2.6. In 1.3 $(':not(div:has(div))') excludes , and any elements. On Jan 19, 7:07 pm, jdwbell wrote: > Thanks for the reply.  That would

[jQuery] Re: question about changes to :not() in 1.3

2009-01-19 Thread jdwbell
Thanks for the reply. That would give me every non-div element which contained a div. In the original example I was looking for every div which did not contain another div plus every other non-div element. Based on John's reply I'm guessing there is bug since $(':not(div:has (div))') is supposed

[jQuery] Re: question about changes to :not() in 1.3

2009-01-17 Thread Ricardo Tomasi
Shouldn't it simply be $(':not(div):has(div)') ? Note that it gives you all the chain of parents to the element which contains a DIV. On Jan 16, 6:26 pm, jdwbell wrote: > Thank you very much for your reply.  I am finding that with the > example listed below these two work as expected (that is

[jQuery] Re: question about changes to :not() in 1.3

2009-01-16 Thread jdwbell
Thank you very much for your reply. I am finding that with the example listed below these two work as expected (that is they are returning non divs and all divs which do not contain other divs): $('*').not('div:has(div)') $('*').not($('div:has(div)')) but these three: $(':not(div:has(div))') $

[jQuery] Re: question about changes to :not() in 1.3

2009-01-16 Thread John Resig
$(':not(div:has(div))') is equivalent to $('*:not(div:has(div))') is equivalent to $('*').filter(':not(div:has(div))') is equivalent to $('*').not('div:has(div)') Hope that helps to answer your question :) --John On Fri, Jan 16, 2009 at 11:24 AM, jdwbell wrote: > > Here I am trying to get ev

[jQuery] Re: question about each

2009-01-04 Thread David .Wu
by the way, do you have more sample that css substitute for js? On 1月5日, 下午2時33分, "David .Wu" wrote: > wow, thanks for your help, it's really useful to me. > > On 1月4日, 上午2時56分, Ricardo Tomasi wrote: > > > Everytime you change the "src" attribute of an image, the browser will > > fire a request

[jQuery] Re: question about each

2009-01-04 Thread David .Wu
wow, thanks for your help, it's really useful to me. On 1月4日, 上午2時56分, Ricardo Tomasi wrote: > Everytime you change the "src" attribute of an image, the browser will > fire a request to the server. That's one of the reasons why img roll- > overs have been replaced with CSS hover a long time ago,

[jQuery] Re: question about each

2009-01-03 Thread Ricardo Tomasi
Everytime you change the "src" attribute of an image, the browser will fire a request to the server. That's one of the reasons why img roll- overs have been replaced with CSS hover a long time ago, this is a waste of scripting. Something like this is much more effective (and semantically correct):

[jQuery] Re: Question about UI Accordion - multiple triggers in nested lists

2009-01-03 Thread Richard D. Worth
On Wed, Dec 17, 2008 at 11:02 AM, taykahike wrote: > > is it configurable > to open the accordion to the correct level dynamically based on the > current page? Use the fillSpace option. You can see a demo here: http://ui.jquery.com/demos/accordion#fillspace http://code.google.com/p/jquery-ui/

[jQuery] Re: question

2008-12-27 Thread Dirceu Barquette
Hi Mike, *Yes, of course I'd be delighted to have you mention my name - and even more so if you can link it to my blog at http://mg.to/. :-)* You can be shure ;-) *BTW, you may want to take a look at Google Code as an alternative to SourceForge.* I'm a GNU/Linux instructor and sourceforge has

[jQuery] Re: question

2008-12-27 Thread Michael Geary
Hi Dirceu, I'm glad that was helpful. Yes, of course I'd be delighted to have you mention my name - and even more so if you can link it to my blog at http://mg.to/. :-) BTW, you may want to take a look at Google Code as an alternative to SourceForge. Each one has some advantages and disadvant

[jQuery] Re: question

2008-12-25 Thread Dirceu Barquette
Hi Mike, Fantastic!!! This is very very good!!! I'll publish this CMS at sourceforge soon, and if you agree your name will be appear in special thanks. Ok? This is the most important contribution form my project. Thank you very much! Dirceu Barquette 2008/12/24 Michael Geary > I must have bee

[jQuery] Re: question

2008-12-24 Thread Michael Geary
I must have been getting forgetful when I posted that suggestion. As I mentioned, .toSource() is not available in all browsers, so it wouldn't be suitable for your CMS feature that you want to make available to your site's visitors. But .toString() *is* available in all browsers, and it gives you

[jQuery] Re: question

2008-12-24 Thread Dirceu Barquette
WOW!!! .toSource is amazing!!! thank you again Dirceu Barquette 2008/12/23 Michael Geary > So you have a list of the methods of an object and you want to find out > what the parameters to each method are, is that right? > > There are three ways you can do this: > > 1) In Firefox, you can

[jQuery] Re: question

2008-12-23 Thread Dirceu Barquette
(before reading... my English is so terrible... :-( ) Hi Mike, Thanks for your attention and thank you very much for the answers! My goal is a CMS application. I've been writing this code from 2 month ago. Now a day I'm ending the project. So, I need to make something like dummy end user plugin.

[jQuery] Re: question

2008-12-23 Thread Michael Geary
So you have a list of the methods of an object and you want to find out what the parameters to each method are, is that right? There are three ways you can do this: 1) In Firefox, you can call the .toSource() method of an object (including a function) to see its source code. For example, try th

[jQuery] Re: question

2008-12-23 Thread Dirceu Barquette
How can I do this? This is my question! Thank you!!! Dirceu Barquette 2008/12/23 Alexandre Plennevaux > > did you try listing the arguments array within each detected function ? > > On Tue, Dec 23, 2008 at 1:18 PM, Dirceu Barquette > wrote: > > Thanks. > > You are right! > > But, do you have

[jQuery] Re: question

2008-12-23 Thread Alexandre Plennevaux
did you try listing the arguments array within each detected function ? On Tue, Dec 23, 2008 at 1:18 PM, Dirceu Barquette wrote: > Thanks. > You are right! > But, do you have any suggest? > > Thank you! > > Dirceu Barquette > > 2008/12/23 MorningZ >> >> Advice: more specific subject lines than

[jQuery] Re: question

2008-12-23 Thread Dirceu Barquette
Thanks. You are right! But, do you have any suggest? Thank you! Dirceu Barquette 2008/12/23 MorningZ > > Advice: more specific subject lines than the ultra vague and useless > "question" will get you better and faster help > > > > On Dec 23, 6:10 am, "Dirceu Barquette" > wrote: > > Hi, > > >

  1   2   3   4   >