[jQuery] [OT] Firefox/Opera JS bug?

2007-12-01 Thread Allan Mullan
Hey all, Got a bit of a strange (bug?) one, am using JS to replace an image onmouseover and it's working fine in IE6 and Safari but in Firefox and Opera (latest beta) the images seem to stretch before going back to their proper size, and same onmouseout when they return to their original

[jQuery] Re: problems using variables instead of text with :contains()

2007-12-01 Thread Wizzud
This is basic javascript string manipulation, not jQuery. Below is a very (very) quick precis of strings in javascript. It may help, it may not. A string is defined by it's surrounding quotes, be they (paired) single or double. You can concatenate strings by using the + operator. A string can be

[jQuery] Re: Click through on stacked elements

2007-12-01 Thread Suni
AFAIK It's not possible this way. The click event hits the topmost element in the viewport first, and then starts bubbling up according to the DOM tree structure. Why not place the element to the front (with a higher z-index) instead? You could set it's opacity to 0 so it's invisible, but it's

[jQuery] Re: .append() problem when used with .each

2007-12-01 Thread Suni
This has nothing to do with .each. You've propably just missed how the selectors and binding work, or how the ajax works. What your script does currently: 1) You create a link and append it to #col1 2) You send an ajax-request (Which is asynchronous, meaning that the script keeps running and

[jQuery] Re: History Remote Post

2007-12-01 Thread ogurec
Hi, if i have ajax search form and submit different search query 3 times can i go back and see results for every search separately? Unless you're submitting forms via Ajax form submits can't be historized with thehistoryplugin or any otherhistorymanager. All these solutions need the

[jQuery] Re: Image Rotator Plugin?

2007-12-01 Thread eferraiuolo
I was hoping this was going to talk about the latter; rotating an image in degrees (360). On Nov 26, 12:43 pm, Andy Matthews [EMAIL PROTECTED] wrote: By rotate, do you mean flipping through a group of images, displaying one at a time? Or do you mean actually rotating the image in degrees so

[jQuery] Re: Detecting default action on previous click handler

2007-12-01 Thread Josh Nathanson
Hey Glen - there was a thread about managing multiple handlers on the same element a little while ago. The consensus was that the handlers are executed in an arbitrary order. So, I might be wrong but I don't think you can control this in the way you want. You have to sort of combine the

[jQuery] Re: Eval error with Firefox 3

2007-12-01 Thread [EMAIL PROTECTED]
Can somebody describre why using eval.call(window, data); instead of eval(data, window); On Nov 23, 4:58 pm, Cloudream [EMAIL PROTECTED] wrote: ff3 just in beta. jorn is working at mozilla, so don't worry about this... On Nov 23, 4:44 pm, Jerome Carty [EMAIL PROTECTED] wrote: Just a

[jQuery] Help finding a plugin

2007-12-01 Thread Adrian Lynch
I'm looking for a plugin that I remember someone posting on here. It scrolls a page both left and right behind a viewable area. The demo had a nav on the left and the viewable area to the right. When you clicked on a nav item the page would scroll in the viewable area, either directly to the

[jQuery] Re: Make IE 6 Work Like IE 7

2007-12-01 Thread nathandh
On Nov 27, 5:19 pm, cfdvlpr [EMAIL PROTECTED] wrote: Does there exist a jQuery plugin to do everything that Dean Edwards IE7 JS library can do? Not as a whole, but what are the specific limitations you're trying to overcome?

[jQuery] Re: Firefox/Opera JS bug?

2007-12-01 Thread [EMAIL PROTECTED]
Hi Allan, The reason is because there is a temporary pause where the image is loading the new rollover, while your javascript is continuing it's script and changing the height of the image to your new specifications. So the old image appears stretched until the new image has loaded and can be

[jQuery] Geocoding with Google Maps while a page is loading

2007-12-01 Thread Mazso
For several hours I tried to get the Google Map GeoCoding Script of Blackpool Community Church Javascript Team working with jQuery but I failed. Loading the script from an external file is no problem. But I canĀ“t get the function showAddress() starting when the page is loaded. I tried

[jQuery] XHTML limitation or safari bug ?

2007-12-01 Thread Max_B
Find this while setting an email obfuscation trick. In a xhtml file served as application/xhtml+xml there is a span : lt;pgt;test: lt;span class=dmsqgt;click therelt;/spangt;lt;/pgt; Given this bit of jquery code: $(function () { $('.dmsq').one('click', function () {

[jQuery] list items and show comments? NEWBIE

2007-12-01 Thread msjoedin
Hi all! I am struggling to make my first jQuery implementation and I really would need some help. Here's my thing... I have a list of Click here to view comments and I then want to call the fadeIn(normal) on the comment div. Do I need to use the foreach for each object? Or is there any other

[jQuery] Replace = ajax problem.

2007-12-01 Thread Cati
Hello I got a problem. I use a blockui plugin, and I want to use a form on it. When click ok button, the ajax upload datas to server, server check the form is valid, and if it not, the return html code contain that class: error-msg. I can find this class, but my problem in redraw the form.

[jQuery] Re: Jquery Ajax dropping special characters

2007-12-01 Thread Stanley
Does the + count as an illegal character? Perhaps I am doing something wrong, but despite using escape() on my variables before sending them via $.ajax the + character does not get converted. On Nov 27, 11:52 am, Mark Lacas [EMAIL PROTECTED] wrote: Why not escape the data with javascript's

[jQuery] Re: Scroll effect

2007-12-01 Thread dante
I kind of liked the effect, so i quickly wrote a prototype using dojo, though there is really no dojo-specific stuff going on (except the _Line class, which is just an object with a start, end, and a .getValues() method to return a point based on a percentage passed (n = 0..1)) this could all

[jQuery] Re: Replacing contents using an array

2007-12-01 Thread [EMAIL PROTECTED]
Hi Mali, Try this instead: I'm still fairly new to jQuery (1 week), so I'm sure there must be an even shorter way... $(function() { $(#newText).click(function(){ $('#myList a').each(function(x){ if (!this.origText) {

[jQuery] Re: Firefox/Opera JS bug?

2007-12-01 Thread Allan Mullan
Hey Lee, Thanks for that but I am already preloading the images in a div and am using the .onload method to do the mouseover effects... Also not sure if I could optimize the images even better, they are pretty tiny for what they are. Cheers, Allan -Original Message- From:

[jQuery] Re: Replacing contents using an array

2007-12-01 Thread Wizzud
An alternative? $(document).ready(function(){ var txtLinks = $('a'); // change selector to suit var txts = { newText: [My new text A,My new text B,My new text C,My new text D,My new text E,My new text F] , oldText: $.map(txtLinks, function(v,i){ return $ (v).text(); })

[jQuery] Re: slideUp submenu before loading a new page (it won't wait)

2007-12-01 Thread Karl Swedberg
On Nov 30, 2007, at 9:57 PM, Rob_ wrote: So, in your situation, you can do this: $(dt.current).next('dd').addClass(show) Makes me blush, thank you ;-) Maybe I'm looking for solutions to deeply... BTW: any useful philosophy behind your use of single and double quotes? I assume you can mix

[jQuery] A 5 line script that doesn't work in IE

2007-12-01 Thread Gordan
I'm loosing my mind over this :-( http://www.writesomething.net/users/ (show classical users list link) I have a few lines of code which are extremly simple and work as expected in FF, but IE is refusing to cooperate :-( I tried literally everything but it just returns the expected identifier,

[jQuery] Re: Replacing contents using an array

2007-12-01 Thread Mali
Hello Lee, It's work like a charm!! :) thank you very much for your help. I'll study this more. It's fun! Regards, Mali On Dec 1, 11:47 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Mali, Try this instead: I'm still fairly new to jQuery (1 week), so I'm sure there must be an even

[jQuery] Re: Scrolling Quote Craziness

2007-12-01 Thread sawmac
Thanks for the heads-up, Dave. Actually, though, I'm not seeing that problem in Safari 3 Mac. Weird. Yesterday, all of the text overlapped, but it looks fine now (actually looks great--awesome effect) in Safari 3. --dave

[jQuery] Referencing the target element with clueTip

2007-12-01 Thread Dan M
All, If I'm using an ajax solution with clueTip, how can I pass in the target element so that I can generate dynamic content based on the element being hovered over? Dan

[jQuery] Re: A 5 line script that doesn't work in IE

2007-12-01 Thread Erik Beeson
To check if an element has a particular class: $(...).is('.theClass'); To add a class to an element: $(...).addClass('theClass'); To remove a class: $(...).removeClass('theClass'); See also: http://docs.jquery.com/Traversing/is#expr http://docs.jquery.com/Attributes/addClass#class

[jQuery] Re: A 5 line script that doesn't work in IE

2007-12-01 Thread Karl Rudd
They word class in JavaScript is a reserved word, that could be causing the problem. To reference the class of a DOM object in raw JavaScript you actually use className. Having said that, I suggest you use a little more of a jQuery approach and try something like this: function

[jQuery] Re: Replacing contents using an array

2007-12-01 Thread Jake McGraw
Here's a solution I think you'll find helpful: JavaScript: Trans = { t1:New Text 1, t2:New Text 2, t3:New Text 3 }; $(function(){ $(#newText, #oldText).click(function(){ if ($(this).is(.active)) {return;} $(a).each(function(){ if (Trans[this.id]) {

[jQuery] Re: A 5 line script that doesn't work in IE

2007-12-01 Thread Leonardo K
I think the problem is $('#users').attr({class: ''}); try to use: $('#users').removeClass(users_cloud); u could change this: $('#users').attr({class: 'users_cloud'}); to this: $('#users').addClass(users_cloud); On Dec 1, 2007 10:14 PM, Gordan [EMAIL PROTECTED] wrote: I'm loosing my mind

[jQuery] Re: list items and show comments? NEWBIE

2007-12-01 Thread Jake McGraw
No, jQuery automatically assigns events to the entire selector set: $(function(){ $(#Comments a).click(function(){ /* All anchors will perform this function when clicked */ $(this).next( div.Comment:eq(0)).fadeIn(slow); /* Note the use of the this keyword */ }); }); Assuming your

[jQuery] Re: Geocoding with Google Maps while a page is loading

2007-12-01 Thread Jake McGraw
Are you getting any specific JavaScript errors (using Firebug)? Also could you provide a link to the page you're trying to work on? I have some experience using jQuery an Google Maps. - jake On Dec 1, 2007 4:26 PM, Mazso [EMAIL PROTECTED] wrote: For several hours I tried to get the Google Map

[jQuery] Re: A 5 line script that doesn't work in IE

2007-12-01 Thread Danny
The answers given here (use is and addClass and removeClass for element classes) are correct, but the more general problem is using reserved words in objects. You can always quote them and they'll work: { class: 'foo', for: 'foo', function: 'foo' } all fail, but { 'class': 'foo', 'for': 'foo',

[jQuery] Re: A 5 line script that doesn't work in IE

2007-12-01 Thread Dave Methvin
{ 'class': 'foo', 'for': 'foo', 'function': 'foo' } Javascript will like those but IE will not. You have to use className and htmlFor if you want them to work as CSS attributes in IE. However, its most portable to work with what jQuery gives you.