[jQuery] Re: getJSON returning undefined instead of XMLHttpRequest

2009-09-20 Thread Blixa
Wonderful! Thanks. On Sep 20, 12:16 pm, Michael Geary wrote: > Ah, I did misread the problem. Now I follow you, thanks for the > clarification. > > There is indeed a better and simpler way to do this, which works with > *any*kind of asynchronous callback. You don't need to rely on having a > sp

[jQuery] Re: Browser sniffing - the correct way?

2009-09-20 Thread RobG
On Sep 18, 1:32 am, ldexterldesign wrote: [...] > This still leaves the issue of targeting browsers with JS/jQuery. You still seem to be missing the message: trying to compensate for browser quirks by detecting specific browsers is a flawed strategy. Browser detection is usually based on the u

[jQuery] Re: Convert AJAX XML response to HTML

2009-09-20 Thread Ricardo
First, make proper use of XML: Success Number of Slots Then it's easy: $.get('myserver.xyz', function(data){ var $xml = $(data); var status = $xml.find('status').text(); if ('Success' == status){ $('#myelement').html( $xml.find('response').html() ); }

[jQuery] Re: How do you make text selectable when using IE browser?

2009-09-20 Thread RobG
On Sep 19, 6:53 am, amtames wrote: > Hi, > > We recently had our site redeveloped by a professional firm. We > originally requested that users not be able to copy and paste text > from our site. This has created an outcry and we would like to have > text be selectable. I see that they achieved

[jQuery] [ScrollTo] animation only when mouseover

2009-09-20 Thread macsig
Hi there, I'm trying to use scrollTo in oder to scroll vertically a div. I want to use 2 anchors, one to go up and the other to go down and I need that the effect works ONLY when the mouse is over the anchor (when I move it out the animation has to stop). How can I achieve so? For instance the c

[jQuery] Suggestions on form validtion

2009-09-20 Thread Scott Haneda
Hello, I created this: http://dl.getdropbox.com/u/340087/Drops/09.20.09/form-e3ae8599-180653.html The basics are that jQuery will immediately hide a div that is the right most column. $('div.right').hide(); I have three input elements that when focus is given, I take the next() element, wh

[jQuery] [tablesorter] parsers[i] is undefined

2009-09-20 Thread macsig
Hello guys, I have hard time to use tablesorter 2.0 with a javascript div update. I have tried it in several ways (using default Rails rjs file or all jquery call) but the result is the same: I get parsers[i] is undefined. Here what i would like to achieve: I have a list of states (California, Fl

[jQuery] Re: help to simplify code

2009-09-20 Thread Karl Swedberg
Sure. // find all "a" elements within $navigation (which is a variable for $ ('#navigation') $navigation.find('a') // bind two events to those links: mouseenter and mouseleave. pass the event object as an argument to the anonymous function .bind('mouseenter mouseleave', function(event) {

[jQuery] Removing an element from Droppable with N elements triggers N times the event.

2009-09-20 Thread msordo
Hi all. My situation: I've a droppable div that I use for querying a database. Everytime I drag-drop an element to this droppable div, it updates the query. Following the same idea, if I remove an element from this div, it should update the query (deleting the removed element from the query). Th

[jQuery] Re: data function

2009-09-20 Thread Mike McNally
No, that's not what I meant. I mean this: add an "id" or "class" value to your elements **in order to identify them in the console.log() output**. Keep using the "data()" function for storing values. Again, data() does really work; I use it all over the place and I've never had any problems wi

[jQuery] Re: Variable Lifetime

2009-09-20 Thread Michael Geary
The reason you can't find any information about jQuery variables is that jQuery doesn't have variables! :-) You're talking about JavaScript, not jQuery. jQuery is not a language of its own, it's just a library of JavaScript code that you can use in your own JavaScript code. If you look for inform

[jQuery] Re: jqModal problem

2009-09-20 Thread Dennis Madsen
I've done that now - doesn't help me :( I've uploaded a zip-file with the complete sample if it's easier for you: http://dennismadsen.com/uploads/modalTest/modalTest.zip On Sep 20, 9:56 pm, Mad-Halfling wrote: > Have you tried adding > modal: true > into your jqm statement? > > On Sep 20, 5:52 

[jQuery] Re: Queue event after getJSON request

2009-09-20 Thread Michael Geary
In your first example, you're trying to call a .queue() method on the return value from $.getJSON(). $.getJSON() returns either an XMLHttpRequest object or nothing. It doesn't return the $ object. Also, $getJSON() returns *before* the request is completed. In the second example, you're trying to

[jQuery] Re: jQuery Star Rating from Fyneworks

2009-09-20 Thread Kewats
More specifics: I added the following function to jquery.rating.js. I want to have a variable called "permatip" which starts out as the tip from the stored value (this is connected to a db), and gets overwritten every time the user clicks on a particular star, via the "select" method. My problem

[jQuery] Re: jqModal problem

2009-09-20 Thread Mad-Halfling
Have you tried adding modal: true into your jqm statement? On Sep 20, 5:52 pm, Dennis Madsen wrote: > I'm trying to use the jqModal plugin on my > page:http://dev.iceburg.net/jquery/jqModal/ > > Here is a sample showing my problem:http://dennismadsen.com/uploads/modalTest/ > > If you see this e

[jQuery] Re: fadeIn with IE 8 Compatibility Mode forced off

2009-09-20 Thread Mad-Halfling
Sorry to bump this, but can anyone shed any light on this please? On Sep 16, 10:51 am, Mad-Halfling wrote: > Hi, are there problems with the animation with IE8 compatibility mode > forced off?  I am using > meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" > to force IE 8 out of compatib

[jQuery] Variable Lifetime

2009-09-20 Thread Mad-Halfling
Am I correct in thinking that variable in jquery are limited in scope by their parent functions, and if I want to persist data during a particular page's lifetime (thinking of a page that will exist for a while, being updated by AJAX calls, etc) I need to put it in an input control on that page -

[jQuery] Re: Powerfull WYSIWYG editor with upload image capability

2009-09-20 Thread Meroe Meroe
What about tinymce? We use it in our app and love it. --- Why Be Red? Project Management Software http://whybered.com On Sun, Sep 20, 2009 at 3:45 PM, Anush Shetty wrote: > > > On Sun, Sep 20, 2009 at 11:29 AM, David D wrote: > >> You don't need to use ckfinker. Ckeditor 3 ju

[jQuery] Re: Powerfull WYSIWYG editor with upload image capability

2009-09-20 Thread Anush Shetty
On Sun, Sep 20, 2009 at 11:29 AM, David D wrote: > You don't need to use ckfinker. Ckeditor 3 just needs an upload and a > browse url. You can make them in your prefered language. > > This one looks good too http://github.com/zilenCe/mootools-filemanager ( works with TinyMCE ) - Anush

[jQuery] Re: data function

2009-09-20 Thread cafaro
I'll just make an array to store the data for each element. On Sep 20, 8:30 pm, cafaro wrote: > I already thought about adding it to an ID/class values, but the > problem is that i need to pass a DOM object. > > On Sep 20, 4:28 pm, cafaro wrote: > > > Yes, and it returns true. > > > On Sep 19,

[jQuery] Queue event after getJSON request

2009-09-20 Thread cerberos
I'm trying to queue to start once a getJSON request has finished but it's not working, I'm getting '...queue is not a function'. I've tried $.getJSON("http://";, function (data){ $.each(data, function(i,item){ ... }); }).queue(function(){ $("#div").fadeIn(); }); and $.getJ

[jQuery] Re: data function

2009-09-20 Thread cafaro
I already thought about adding it to an ID/class values, but the problem is that i need to pass a DOM object. On Sep 20, 4:28 pm, cafaro wrote: > Yes, and it returns true. > > On Sep 19, 6:47 pm, Mike McNally wrote: > > > Have you put a console.log() call in your mouseover handler? > > > On Sat

[jQuery] jQuery Star Rating from Fyneworks

2009-09-20 Thread Kewats
I'm trying to adapt the Star Rating method given at: http://www.fyneworks.com/jquery/star-rating/#tab-Testing. I would like to use #3-B, except that when I click on a particular rating I want the tip to permanently change to the corresponding text, instead of reverting back to the original upon t

[jQuery] AJAX search result filtering

2009-09-20 Thread Toaster
Hello I was thinking of having my search result filters affect data automatically without reloading the page. What would be the best approach to this? I was thinking of attaching $.post(); to each filter checkbox or dropdown to submit that elements input then have the page update the results ta

[jQuery] Re: help to simplify code

2009-09-20 Thread alienfactory
Thanks Karl That was more then i expected. However the $navigation.find('a') section is a little over my head could add a few comments to that one to help me understand it Terry On Sep 20, 8:49 am, Karl Swedberg wrote: > Here is another way you could do it: > > var bgColors = { >    servi

[jQuery] jqModal problem

2009-09-20 Thread Dennis Madsen
I'm trying to use the jqModal plugin on my page: http://dev.iceburg.net/jquery/jqModal/ Here is a sample showing my problem: http://dennismadsen.com/uploads/modalTest/ If you see this example in a IE6 or IE7 or IE8 in compatibility mode, you will see, that the the modal box is not 100% opacity.

[jQuery] Re: help to simplify code

2009-09-20 Thread Karl Swedberg
Here is another way you could do it: var bgColors = { services: '#8ac2b7', vision: '#9e97ca', approach: '#e5b120', team: '#cf1858' }; var $navigation = $('#navigation'); $('#bodycopy').children() .bind('mouseenter', function() { $(this).siblings().stop().fadeTo('slow', .2); $n

[jQuery] Re: Some problems with rounded corners

2009-09-20 Thread Cecil Westerhof
2009/9/20 Mike Alsup : >> For the biggest part this works. There is a problem with the >> displaying of the buttons. In Firefox and MIE it goes allright. But in >> Opera and Konqueror (and possible Safari, because this uses the same >> engine as Konqueror) the border is not displayed. That is not

[jQuery] Re: help to simplify code

2009-09-20 Thread ryan.j
http://docs.jquery.com/Traversing/siblings On Sep 20, 3:51 pm, alienfactory wrote: > i was asking about javascript/jquery not html 101 but that is cool > though and yes that was snarky. LOL > > No worries at least you are trying to help thanks > > I dont see where you are fading the addtional di

[jQuery] Re: help to simplify code

2009-09-20 Thread alienfactory
i was asking about javascript/jquery not html 101 but that is cool though and yes that was snarky. LOL No worries at least you are trying to help thanks I dont see where you are fading the addtional div see link above for sample you focused on the navigavtion but i have 4 divs when mousing over

[jQuery] Re: data function

2009-09-20 Thread cafaro
Yes, and it returns true. On Sep 19, 6:47 pm, Mike McNally wrote: > Have you put a console.log() call in your mouseover handler? > > > > On Sat, Sep 19, 2009 at 10:03 AM, cafaro wrote: > > > Hi, > > > I'm trying to get the data() function working, but no success so far. > > Here's the code I've

[jQuery] Re: Some problems with rounded corners

2009-09-20 Thread Mike Alsup
> For pages with a lot of text (and other content) I would like to have > the possibility to hide and show parts of the page with 'buttons'. I > have come a long way, but have some problems. I made a page to show > them: >    http://www.decebal.nl/testing.html > > I have come a long way and for t

[jQuery] Re: [Attrib "external" not working...]

2009-09-20 Thread Sergios Singeridis
add this and it will work. if you want it to work it needs the following js code. function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i > Hi, > > Why this code not working? > > google > > url www.google.com ope

[jQuery] Clear (cancel) Option

2009-09-20 Thread Carlos Raniery
Hello, I'm trying to enable or disable the clear (cancel) from a button click. I also want to remove/add the star-rating-hover css class of this clear/cancel option. Is it possible? My code is based on Test 3-B example. Thanks in advance.

[jQuery] Re: [Attrib "external" not working...]

2009-09-20 Thread Steven Yang
tryhttp://www.google.com";>google On Sun, Sep 20, 2009 at 7:25 PM, Lord Gustavo Miguel Angel < goosfanc...@gmail.com> wrote: > Hi, > > Why this code not working? > > google > > url www.google.com open in same windows. > > > Thank´s >

[jQuery] [Attrib "external" not working...]

2009-09-20 Thread Lord Gustavo Miguel Angel
Hi, Why this code not working? google url www.google.com open in same windows. Thank´s

[jQuery] Re: help to simplify code

2009-09-20 Thread ryan.j
for fear of offending you further, i apologise in advance for posting code. personally i'd be tempted to call 'test1(this)' on the mouseover and mouseout events and have it do something like... function test1(t) { var c = $(t).css('background-color') var o = '1'

[jQuery] Re: help to simplify code

2009-09-20 Thread ryan.j
i wasn't being snarky mate, just that you phrased your question like a homework assignment! besides, i thought i /was/ answering your question tbh :S On Sep 20, 3:14 am, alienfactory wrote: > wow really! not sure what to say about that. > > Here is a development link to the actual > projecthtt

[jQuery] Some problems with rounded corners

2009-09-20 Thread Cecil Westerhof
For pages with a lot of text (and other content) I would like to have the possibility to hide and show parts of the page with 'buttons'. I have come a long way, but have some problems. I made a page to show them: http://www.decebal.nl/testing.html I have come a long way and for the most part

[jQuery] Re: getJSON returning undefined instead of XMLHttpRequest

2009-09-20 Thread Michael Geary
Ah, I did misread the problem. Now I follow you, thanks for the clarification. There is indeed a better and simpler way to do this, which works with *any*kind of asynchronous callback. You don't need to rely on having a specific object returned that you can stuff data into. Simply use a closure.

[jQuery] Re: Paste an image into a tag...

2009-09-20 Thread Hogsmill
Hi Dan, > In order to paste an image from the clipboard, you'll need something that > can also upload the image to the server on the paste operation. Absolutly. Cheers for suggestion - I'll have a look at XStandard; sounds like it'l fit the bill. This is for an app, not a web site, so the user