On Feb 23, 1:55 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
That was a good idea, Klaus - but it's having the same effect as plain
a. As the script's written it inline, it overrides the visited,
hover active styles.
Surely there must be a way round this, without adding yet another
Very kewl, but any tips on getting the key up / key down navigation
hooked up as well?
On Feb 16, 10:02 am, George [EMAIL PROTECTED] wrote:
jQuery being what it is, there's bound to be a way of doing
this in one line, though :)
Is that really hard? :(
Nazgulled wrote:
Anyone?
On Feb 22, 6:01 pm, Nazgulled [EMAIL PROTECTED] wrote:
I have this piece of code that took me a while to do it and I don't
know if it's the best way to achieve this. First, I'll explain exactly
what I want to do.
I'm using lots of
Ok, thanks for all your help...
If anyone else can provide any more insight on the differences between
those 2 pieces of code...
On Feb 23, 2:05 am, timothytoe [EMAIL PROTECTED] wrote:
I don't know if there's any practical difference. Maybe someone more
knowledgeable can chime it. Perhaps the
I bet if you asked on the jQuery development board, you'd get a good
answer. The people reading that one are more likely to understand the
internals.
On Feb 23, 4:59 am, Nazgulled [EMAIL PROTECTED] wrote:
Ok, thanks for all your help...
If anyone else can provide any more insight on the
That makes sense.
But it doesn't negate the fact that 'Google' Groups had funky response
yesterday. I hit it several times when 'Google' Groups apologized
because the boards were down, and once it came up in what looked like
a low-bandwidth version of the 'Google' Groups page.
No messages for
Greetings,
After evaluating several different javascript tooltip libraries I've
settled on the jQuery 'Tooltip' plug-in, however I'm having one minor
issue getting something working.
I'm trying to setup a series of pairs of tooltip triggers/bodies using
a generic naming system so that it's
Hi,
does the validation plugin support required hidden inputs?
I have two input fields: field1 (text) and field2 (hidden). When i
change the text od field1 a js-function is called and the value of the
hidden field2 is changed (or not if the text in field1 is the wrong
one).
In jquery.validate i
HTML code:
div id=catalog_table
table
tbody
tr
td id=order/td
/tr
..
/tbody
/table
/div
JS code:
$(#catalog_table TBODY TR).each(
function(){
That should do it! Thanks! :)
On Feb 22, 4:44 pm, Richard D. Worth [EMAIL PROTECTED] wrote:
Then it looks like you want
$(childObj).parent().prepend('div id=result_messageResult
Processed/div');
That will get you the 1 immediate parent of that element.
- Richard
On Fri, Feb 22, 2008 at
Can't put it to work... :(
I found an example, but it doesn't work too. Maybe because I'm in
firefox, on linux.. don't know.
I'm trying the .unload() jquery event now...
On Feb 22, 6:27 pm, MorningZ [EMAIL PROTECTED] wrote:
there is an onbeforeunload event you can use
Hi,
Here's the thing, I'm using the SimpleModal plugin to show a modal
dialog on my page. It doesn't really matter which plugin I'm using.
Well, I think it doesn't but I haven't actually tested any other
plugins in this scenario.
When you load any page, the modal dialog will be opened at $
derek,
i haven't thoroughly examined how bodyHandler works but i think
something like this should work, provided that your html structure won't
change:
$('div[id^=tt]').tooltip({
bodyHandler: function(){
return $(this).next().html();
}
});
if your html structure will change, you
Hi all,
I'm developing a back end for a photographer's agent, and she wants
the site to be mainly drag 'n' drop thumbnail images, so she can
create collections of various images, by dragging from various bins.
So I've started with a styled ul list of images, and each li
contains an img.
Each img
Thanks, Dave. You just gave me a stomach ache.
I just fought the browsers for two days to get my interface working
with all the mouseup and mousedown stuff. I eventually got it all
working, but only on Windows. I have not tested the Mac browsers yet.
I'll be interested in what you come up with.
Hello,
I am trying to find the first instance of a persons name on a page and
add a link to their bio.
I have seen a lot of example of selecting elements by their tag/class/
id or finding an element that contains certain text but I am at a loss
for finding and wrapping just some text. Is this a
[EMAIL PROTECTED] Macs as usual! was my first thought.
But I'm borrowing a Mac laptop to try and check stuff out over the
next few days, so I'll try and keep this thread current and will let
you know
Dave
Yes!
The CSS background image is the way forward.
Thank [EMAIL PROTECTED] for that. A layered-over-the-top-div solution would have
been a complete and horrible hack as far as I'm concerned, so this is
just great.
li.thumbnail{
position:relative;
width:75px;
height:75px;
Brainwave: CSS background-image!
I'm going to try this now...
I have a bookmarklet that reads like so...
a href=javascript:(function() {
var script = document.createElement('script');
script.src = 'http://thinknola.com/files/superduper.js';
document.getElementsByTagName('head')[0].appendChild(script); })();
Super Duper!/a
Here is
I couldn't bind 'beforeunload' to the window. document, or body tag
successfully.
I had to revert to a manual 'window.beforeunload'. I know I should be
doing something like
evt = window.attachEvent ? window.attachEvent('onbeforeunload', fn) :
window.addEventListener('beforeunload', fn, false)
Well you know - try as I like, I could NOT get the DOM method
addEventListener to work for beforeunload.
Doing it the old way:
window.onbeforeunload = function(){
return Are you sure?
}
Sorry - text got cut off:
Doing it the old way:
window.onbeforeunload = function(){
return Are you sure?
}
Worked great.
Well regexp would be useful if there was a pattern to people's names,
but there isn't.
Do you want to find any names, or a list, or a specific name?
Not sure, but from an id/class point of view, any page id should be
unique, so your order identifier if it is to be used on many TDs,
should really be a class=order.
So if you're just picking up a single id, there's no need to iterate
over, is there?
Anyway - I replicated your test and find
On Feb 23, 2008, at 2:00 PM, Dave Stewart wrote:
Not sure, but from an id/class point of view, any page id should be
unique, so your order identifier if it is to be used on many TDs,
should really be a class=order.
So if you're just picking up a single id, there's no need to iterate
over,
Hi Alan,
To test if jQuery exists, you could try:
if(typeof jQuery != 'undefined') {
// do something
}
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 23, 2008, at 1:20 PM, Alan Gutierrez wrote:
I have a bookmarklet that reads like
dennis,
Thanks for the help, both of your examples work great.
I also tried substituting in a class 'tt' in place of the individual
ids and that seems to work good as well.
Is there any speed advantage to this method? I'll probably end up
using this method instead as it seems more elegant.
Thanks Shawn. I'm awaiting the user's feedback on the points you
raised.
rgds, Andrew
Hi,I cannot get my finger behind this one:
I have this HTML:
p class=firstLineThis is the first line of the first paragraph/p
pAnd here is some more text. Bladibladibla/p
p class=firstLineThis is the first line of the secons paragraph/
p
pAnd here is some more text. Bladibladibla/p
p
derek,
i'm not sure if there are any speed advantages (in both cases jquery has
to loop through all divs on the page to find the ones you need - either
by class or by id, so there probably is none) but by using classes your
keeping your html cleaner..
as a rule, things that repeat on a
Hi Dave,
I want to find specific names (I have a list of 320 names in an xml
file). I want to scan through a page and create a link around the
first instance for one of the names in the list.
eg Stephen Boyd's favourite person in the work is Fred Von Brown.
Stephen Boyd calls Fred Von Brown
Do you know the list of names? Or are you trying to identify what
might be a name on the page (say two words in a row with initial
caps)?
On Feb 23, 12:35 pm, sspboyd [EMAIL PROTECTED] wrote:
Hi Dave,
I want to find specific names (I have a list of 320 names in an xml
file). I want to scan
it looks like he is trying to find td elements with an id that *starts* with
order,
True!
But the jquery was good. So not sure what was going on there.
Sometimes you just need to delete blocks of code and write from
scratch, as you just can't what's not quite right (the brain sees what
it
You're very close. The .slideToggle() method will slide down if hidden
and up if visible:
$(document).ready(function(){
$(.firstLine).click(function(){
$(this).next().slideToggle('slow');
});
});
Working with your code the way you had it, you could have done
el.click(function(){
$(this).slideToggle('slow');
});
On Feb 24, 1:28 am, zephyr [EMAIL PROTECTED] wrote:
Hi,I cannot get my finger behind this one:
I have this HTML:
p class=firstLineThis is the first line of the first paragraph/p
pAnd here is some more text. Bladibladibla/p
p
Timothy,
Yes, I know the list of names.
On Feb 23, 3:41 pm, timothytoe [EMAIL PROTECTED] wrote:
Do you know the list of names? Or are you trying to identify what
might be a name on the page (say two words in a row with initial
caps)?
On Feb 23, 12:35 pm, sspboyd [EMAIL PROTECTED] wrote:
Wondering if anyone can help me with the LocalScroll plugin:
I'm using the LocalScroll plugin and would like to programmatically
unbind it from the nav links and target so that I can modify the set of
links and the target, then rebind it. I tried using the lazy:true
setting, but I found that
Well you could do something like this (it would be prohibitively slow
on 250 names on one page though!!) :
var names = ['Stephen','Fred']
$(body).each(
function(){
var html = $(this).html()
$(names).each(
function(i, e){
var rx= new RegExp(e, 'gi')
For only the first name on each page, just remove the 'g' modifier
from the RegExp constructor (I'm sure you know this)
Heh heh, this is cool!
var names = ['Stephen Boyd','Fred Von Brown']
$(body).each(
function(){
var html = $(this).html()
$(names).each(
function(i, e){
var rx= new RegExp(e, 'gi')
html = html.replace(rx, 'a href=javascript:void(0);
Not sure this is 100% jQuery's problem.
I do this:
$(#logo).html(img src='images/logosmall.gif' alt='logopic' /);
But what lands in the browser is this:
div id=logoimg src=images/logosmall.gif alt=logopic/div
Interestingly, the single quotes have been converted to double quotes
and the
Try this:
$.browser.msie6 =
$.browser.msie
/MSIE 6\.0/i.test(window.navigator.userAgent)
!/MSIE 7\.0/i.test(window.navigator.userAgent);
So far as I know the problem with Vista IE7 is that it contains both
strings. So actual IE6 would NOT contain the MSIE 7.0
Hay all, Firefox 3 as support for contentEditable. This is great and
all, but i have a huge error.
http://kevin-ruscoe.plesk3.freepgs.com/contenteditable/
I cannot run execCommand() on my text, this works in safari and IE6+
I found the reason why this happens.
When i click the anchor tag, the
I'm using the jquery form plugin from a form which is retrieved via
ajax. I have multiple forms on the page.
I'm using .livequery to make sure the form is only requested once, but
didn't realize my problem is that the submit is actually occuring more
than once.
I've tried adding .livequery to
Thanks Karl, this works. Very instructive - didn't know the syntax of
the is and ternary operator in jQuery. I'll check out learningjquery!
Marc
Hello,
I have this code:
$('input#add_imageupload').livequery('click', function(){
var image = $('input#add_image').val();
alert(image);
$.ajax({
type: POST,
dataType: html,
Hi,
I'm using jqModal:ajax to load a remote php into a div modal form. So far
so good. But the returned HTML also has some jquery elements. I can't figure
out how to get them to initialize (i.e. the function call that would
otherwise be in the $(document).ready function).
I tried doing
As you might already know, there is a nice plugin you can find at
http://www.creativit.com.br/jquery/ondemand_js/index.htm
play with it... you maybe end up understanding a litte more on dinamic
script loading.
But my question remains: As native $.getScript() documentation
noticed(Warning:
Try
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
And XHTML mandates the use of quotation marks not apostrophe's which is
probly why its getting converted
~ Big Dog
timothytoe wrote:
Not sure this is 100% jQuery's
Steve,
I searched around the web a bit for a way to refresh a div tag at set
intervals but haven't found anything that pertains to jquery. I saw
some stuff about prototype and ColdFusion 8, neither of which were any
help.
Does anyone have a preferred method of doing this? I'd like to be able
Hi Faraz,
I think the problem must have something to do with your server
configuration. I posted your files on my server and it looks like it's
working fine in Opera (tried your link, and it was asking for the user
name / password).
Check it out:
Hi Jack
I haven't added a way to cleanly unbind localScroll as I didn't
thought it would be usual. If that's the case, I can tell you what
element to call unbind on.
jQuery.LocalScroll is prepared to handle dynamic content. That's why
the option lazy is there. If you choose the lazy option,
It's not a problem.
I assume you're viewing the DOM tree via Firebug (or something
similar)? If so then what you're seeing is a representation of the
tree that Firebug is generating.
The concept of XHTML vs HTML (vs XML) is pretty much gone after the
(X)HTML is parsed and turned into the DOM
As much as I appreciate your input and with all due respect, I didn't
ask for a plugin to import JS files. I asked about the code I posted
and if there is a way to improve it. I'm new to jQuery and Javascript
itself and as I took lots of time to do that tiny piece of code I just
thought that it
Also.. you mentioned prev/next links.
Maybe what you need is SerialScroll:
http://flesler.blogspot.com/2008/02/jqueryserialscroll.html
It's pretty similar to LocalScroll, it also has a 'lazy' option, but
it's meant to be used for prev/next situations.
Ariel Flesler
On 23 feb, 23:12, Ariel
OK. Since I'm creating so much of the web site on the fly, there's
really no way of knowing whether I'm valid or not, is there? I mean
it's pretty easy to make my trivial, skeletal html (or php) file
valid--there's hardly anything in it!
I tried to go through all the paths and validate. I guess
Hi,
I'm using the jQuery form plugin and SimpleModal plugin and I'm having
a little problem that I don't understand why it's happening. As my
understanding in the whole thing, this shouldn't be happening and I
can't understand why.
The thing is, I show a blue popup while the page is loading, it
58 matches
Mail list logo