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
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
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
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
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
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
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
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
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
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?
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
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
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 () {
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
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.
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
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
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) {
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:
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(); })
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
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,
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
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
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
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
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
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]) {
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
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
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
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',
{
'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.
33 matches
Mail list logo