Thanks for the code... but I couldn't manage to make it work at all in
IE and in FF the only time it worked is if I replaced $('body') with $
('html)! Any idea how to make it work with a specific element; e.g.
and image with id=myImage, because when I tried $('#myImage') it
didn't work as well.
Unfortunately my data isn't of type JSON, so I guess I'll go with the
Proxy option.
Anyway, thanks alot for the help :)
On Nov 30, 2:49 am, Karl Rudd [EMAIL PROTECTED] wrote:
Oh and I because of the fact that a script tag is used the only
arguments that can be passed in are GET type arguments
I forgot to mention also that I disabled the context menu with the
code
$('html').bind(contextmenu, function(e) {return false;});
and if I didn't do that, the context menu will appear and every right-
click then will fire the double-click event in IE. I guess that's
because in IE the
Ah, I don't think I made myself very clear :P
What I'm looking for is to have this:
div class=jcarousel-control
a href=# class=current1/a
a href=#2/a
a href=#3/a
a href=#4/a
/div
ul
liItem 1/li
liItem 2/li
liItem 3/li
liItem 4/li
/ul
When 'Item 1' in the main ul becomes visible.
Hi,
I've been developing a new jQuery plugin (library) to draw on the web.
https://sourceforge.net/projects/isabeladraw/
The link is a short app using this library.
Opinions and comments are very welcome.
thanks
Dirceu Barquette
On Nov 29, 6:16 pm, I-CRE8 [EMAIL PROTECTED] wrote:
I am having problems getting my TinyMCE text areas content to be seen
by the jQuery Validation routine, has anybody got or can point me at a
simpletons guide to getting this work
I have put up a test page here
On Nov 29, 11:06 pm, deronsizemore [EMAIL PROTECTED] wrote:
The code is as follows:
jQuery.validator.addMethod(lettersonly, function(value, element) {
return this.optional(element) || /^[a-z]+$/i.test(value);
}, Letters only please);
My problem is that I'm not sure where to place
Hi,
first of all sorry for my bad english, due to its not my main language..
i'm quite new in using jQuery, however i'm stuck now on making Image() object
cache. i try to cache image for img tags and background image in javascript
variable so that the $.css and $.attr can use it for passing
Konqueror and FF2 work just fine but the side scrollbar doesn't appear
when I try this basic test in IE 7.0.5730.13.
The scrollbar does not work here:
http://kittyslayer.ucdavis.edu/jquerytest/system/application/views/jquerytest.php
However, the demo site actually works:
Can anyone tell me if i can you this code with Body onunload Event.
I tried and it's not working.
any1 seeing anything?
Thanx.
body id=htmlBody
script
$(document).ready(function() {
$('#htmlBody').unload(function() {
$.blockUI({ css: {
border: 'none',
Hello,
Are there any existing jQuery plugin which can provide similar image
rollover functions such as the one provided by Dreamweaver?
Thanks.
Ray
I wanted a gallery viewer which would accomodate multiple sets of
photos in which each set could correspond to one event. Additionally I
wanted it to pick the set-name, thumbnails paths, full pics paths and
captions text etc from javascript object/array instead of markup. And
I was impressed by
Ali,
Sounds like the jQuery functions aren't loading.
The accordion is expanded because it isn't working so it's divs are
not minimized.
I bet if you comment out the tabs you'll find that you get an error on
any other jQuery functions you have.
I'm having the same problem when I try to get a
Hi All,
I am trying to get data back from the server by passing JSON values
from jQuery. Find below my code:
$(#btn).click(function() {
$.ajax({
url: http://; + location.host + /AJAXSample/
GenericHandler.ashx,
data: {name: 'Ted'},
type: GET,
dataType: json,
Hi all ;)
I'm very new to jquery.
I'm playing with JSON and have some prob to retrieve the result.
Here is the client side:
script
$(document).ready(function(){
$(#IdEmailField).blur(function(){
alert(FOO1); -- it works
$.getJSON(test.php, function(json){
No. I am definitely looking for the li sibling right before any
ul.../ul. I am building menus and submenus. Any ul...ul that
appears below a li.../li is a submenu. I know that I could add a
name or class to either the head or subhead. I wouod rather have
jQuery find these so that I don't have any
By the way...the documentation says that you can add any string
expressing to filter a prev() and next() statement with all browsers
(not just FF and Safari) should return a filtered result.
I didn't test it in IE... no cookie.
Apparently the 'mousedown' event was at random not carrying the
property that tells us what button was clicked, a triple click was
needed. I switched to mouseup and it seems to work fine, I also had
forgotten to clear the timeout and set the var to false when
And that can be shortened to:
var h = $('#header');
if (!h.next(':not(#new)').length) {
h.after('div id=newtest/div');
}
or, logically, you wouldn't insert two elements with the same ID, so
you could simply use
if (!$('#new').length)
On Nov 29, 4:50 pm, seasoup [EMAIL PROTECTED] wrote:
hi again,
ok, i'm answering to my self:
$.getJSON failed silently cuz the json response was not well written in the
php script.
Indeed, i used the json_encode php function which was not available in my
php conf.
regards,
f.
2008/11/30 fabrice.regnier [EMAIL PROTECTED]
Hi all ;)
I'm very
Oh, I meant for public websites, where neither of those would be
available to IE users. I wish I could code for FF only :(
Coming back to topic, does anyone has information on the differences
in DOM methods for 'application/xml' pages, or any plans from the
jQuery team to make it stable in this
The trouble is you are using invalid markup. You can't put an UL
directly inside another UL. It can only contain list items, so you
need a structure like this:
ul
liFirst-level/title/li
li
ul
liSubmenu/li
/ul
/li
ul
And then grab all the LIs that don't have a
It isn't possible to have an LI sibing right before a UL.
That would mean markup like this:
ul
liList Item #1/li-- LI Sibling
ul -- UL
liList Item #2/li
liList Item #3/li
/ul
/ul
That is illegal markup.
Your markup actually looks like
I'll have to disagree with you. Using document.write for such a
trivial task is not the way to keep your code clean. I'm much more
into something like:
$.getJSON('readimages.php', {imagefolder: folderName, imageprefix:
imagePrefix}, function(images){
$(images).each(function(){
If I might make a suggestion.
Right-click context menus are inherently not cross-platform compatible, as
Opera will not cancel the default right click popup.
Any any Mac users without a right mouse button are screwed.
I personally suggest using CTRL-Click. This works on a Mac testing for the
I've just commited an example for integration of TinyMCE and the
validation plugin:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymce/
The relevant code is in the index.html file:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/demo/tinymce/index.html
The code could
Not sure what's happening on the javascript end, but CSS-wise, the FF list
has an attribute of overflow:auto and the same list has an attribute of
overflow:hidden.
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Code Daemon
Sent: Sunday,
As I understand you have the problem that some information you send
via AJAX is been sended two, tree, etc. times because the user gets
desperate and can't wait a couple of seconds. If that's you case,
happened to me too. I solved with blockUI. I blocked, pages, or even
part of a page
Hello,
Consider the code snippet at the end of the post.
It alert()s me by returning the selected text.
The problem is that window.getSelection() only returns plain text. No
indication of the html tags, of the classes, nor any kind of DOM.
I think that jQuery has something more complete than
First off, I apologize if this is too noobie a question or has been
answered somewhere else (I can't find it anywhere). I'm new to jQuery,
and I'm trying to learn some basics. Anyways, I'm stumped on the
following.
How can I convert this to jQuery?
var links = ...
Jörn,
I have updated my example here:
http://ecommerce.i-cre8.com/admin/add-new-test.php
with your new code and it seems to work perfectly
Many thanks and apologies for polluting your blog
Dave Buchholz
I-CRE8
http://www.i-cre8.co.uk
Skype ID: I-CRE8
On Nov 30, 6:12 pm, Jörn Zaefferer [EMAIL
Hi! Thanks for the quick reply. So, with this code added, will it make all
fields letters only or is there a way for me to specify what field(s) I want
to allow letters only?
Thanks,
Deron
I-CRE8 wrote:
On Nov 29, 11:06 pm, deronsizemore [EMAIL PROTECTED] wrote:
The code is as
Try this:
http://plugins.jquery.com/project/constrain
On Nov 30, 12:54 pm, deronsizemore [EMAIL PROTECTED] wrote:
Hi! Thanks for the quick reply. So, with this code added, will it make all
fields letters only or is there a way for me to specify what field(s) I want
to allow letters only?
OK, I think most iof this makes sense. The one bit where there is a
gap for me is as follows:
We have both:
a id=linkToHome href=#homeHome/a
and
$('#linkToHome').history( showHome() );
Ho do I associate showHome() with the link linkToHome in the
first place?
On Nov 26, 10:11 pm, Brian
Am I right that both of these should be identical?
$('#linkList tr:gt(0):odd td:first').text();
$('#linkList tr:gt(0):odd').find('td:first').text();
The first one only returns 1 result instead of all, it behaves just like:
$('#linkList tr:gt(0):odd:first td:first').text();
If I'm right then
I'm trying to set up some select form elements for in-place editing
using jEditable, but in every case the pulldown is always empty.
Firebug doesn't reports any errors or problems.
As far as I can tell, I'm doing this according to the documentation at
the jEditable site. Is this me again?
Test
The ultimate goal would be to filter the selection so that only text
enclosed in given classes (say loremipsum and third in my example) are
returned.
First off, I'm also new to jQuery so I apologize if my solution is the
best way to do this. Anyways, here's what I came up with
html
head
SLR wrote:
First off, I'm also new to jQuery so I apologize if my solution is the
best way to do this. Anyways, here's what I came up with
It looks like we are not far from my goal. I tested a (slightly modified)
version of your suggestion and it returns me something more satisfying than
From: SLR
First off, I apologize if this is too noobie a question or
has been answered somewhere else (I can't find it anywhere).
I'm new to jQuery, and I'm trying to learn some basics.
No question is too noobie. Welcome aboard! :-)
Anyways, I'm stumped on the following.
How can I
Great! I had this on some list for way too long..
Jörn
On Sun, Nov 30, 2008 at 8:29 PM, I-CRE8 [EMAIL PROTECTED] wrote:
Jörn,
I have updated my example here:
http://ecommerce.i-cre8.com/admin/add-new-test.php
with your new code and it seems to work perfectly
Many thanks and apologies
That's good, I'm glad you got it working.
I'd still suggest moving to the generated JavaScript approach I outlined.
Hopefully it will look less complicated now that you've gotten some sleep.
:-)
Was it the document.write call that seemed complicated?
document.write(
'script
I'm new to the jQuery UI accordion. I'm hoping to use it for a menu.
I'm loving the navigation option. However, one of my team members
feels strongly that, in order to avoid confusion, every user's click
should load a page. It appears that the accordion widget prevents
navigating to the href
Deron,
you would need to add the rule:
lettersonly: true // assuming you want name to be validated with
lettersonly
to any set of rules that you want this method to apply to
I have an example form set up here:
http://ecommerce.i-cre8.com/admin/add-new-test.php
that shows how you can set up
On Nov 30, 2008, at 11:07 PM, Rodent of Unusual Size wrote:
I'm trying to set up some select form elements for in-place editing
using jEditable, but in every case the pulldown is always empty.
Firebug doesn't reports any errors or problems.
As far as I can tell, I'm doing this according to
Thats by design - an accordion header is just that, not two things at
once. In your case you're probably better of with a serverside
component. See also
http://docs.jquery.com/UI/Accordion#What_this_isn.27t
Jörn
On Sun, Nov 30, 2008 at 11:10 PM, snlsn [EMAIL PROTECTED] wrote:
I'm new to the
No question is too noobie. Welcome aboard! :-)
I appreciate the warm welcome = )
That code won't work at all.
I would suggest reading the doc page on .each():
Definitely on my to-do list...
If you just want the loop index, it's passed to the .each() callback as the
first parameter:
Bingo. Thanks again!
Is jQuery supposed to be specifically targeted at Web client-side
(i.e., browser) usage? Or to make Javascript easier in general? Most
of its functionality seems aimed at the former, but there are a number
of aspects that I can see would be useful in now-client environments.
I ask because
One way you could do this is have give the links in question a specific ID,
class or attribute.
For example:
div id=myLinks
a href=# id=link1link 1/a
a href=# id=link2link 2/a
a href=# id=link3link 3/a
/div
$('#myLinks a').click(doSomething);
function doSomething(e){
switch
From: Michael Geary
But is the loop index that useful here? I'm trying to
picture what you might do with it. There may be a
better way to do this - if you could say more about
your application, someone may have a suggestion.
From: SLR
To give you a brief rundown. Imagine having a
I have the same problem. Have you found any solution?
On Oct 10, 3:54 pm, altern [EMAIL PROTECTED] wrote:
I need some help because of great confusion that make me crazy. I have
ajax query function which works fine on firefox, ie (both 6 7)
locally and with firefox on remote server. But it
If you just want the loop index, it's passed to the .each() callback as the
first parameter:
$('a').each( function( i ){
// 'i' is the loop index
$(this).click(function(){
// You can use 'i' directly in this code
});
});
Now,
First off, I want to thank everyone for such quick replies.
That will work, but it's a fairly brittle way to do things. If you add
another link earlier in your page, it will change the loop indexes and
you'll have to revise your code to match.
I understand and agree with you. I don't think
Just wondering...
When you have a link within a link:
a id=main href=#This is some long row of test and here is a
input type=button id=clickme value=button / and some more
text/a
...how do you override the parent click event?
Thanks Jörn;
an accordion header is just that, not two things at
once.
Okay. I'll accept that. I can see how things would get messy.
In your case you're probably better of with a serverside
component.
Never considered such a thing. Interesting. Do you have any serverside
components you can
Hi there,
Where in the example is the class 'third' you mentioned?
and what is this supposed to do?
p javascript:getActiveText(); Alert me!/p
The best I can do is point you to
https://developer.mozilla.org/en/DOM/Selection.
Read on about the selection object and range object, and you'll see
returning false from the handler should cancel the context menu on
Opera and other browsers. And apparently on Macs the event for a Ctrl
+click carries the 'right-click' identifier (e.button = 2).
cheers,
- ricardo
On Nov 30, 4:07 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote:
If I might make a
Have you ever tried capturing the right-click event in Opera?
It has an additional level of security whereby each client must expressly
set the user preferences allowing a website to capture the right-click event
and stop the right-click bubble.
The project I worked on last year had a
I am using the jQuery Tooltip Plugin from
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/. Great
plugin. I am AJAX loading some content into my pages and am attempting
to use Live Query to bind the tooltips to some of those links.
Is not working:
On Nov 30, 5:33 pm, René [EMAIL PROTECTED] wrote:
Just wondering...
When you have a link within a link:
No idea why you would do this...
a id=main href=#This is some long row of test and here is a
input type=button id=clickme value=button / and some more
text/a
...how do you override
On Nov 30, 2008, at 4:14 AM, Ray M wrote:
Hello,
Are there any existing jQuery plugin which can provide similar image
rollover functions such as the one provided by Dreamweaver?
Thanks.
Ray
Hi Ray,
If you're referring to the dreaded MM_swapImage(), I think most people
these days just
Maybe this:
http://code.google.com/p/jquery-swapimage/
On Nov 30, 5:14 pm, Ray M [EMAIL PROTECTED] wrote:
Hello,
Are there any existing jQuery plugin which can provide similar image
rollover functions such as the one provided by Dreamweaver?
Thanks.
Ray
Thanks Dirceu, but i'm otherwise happy to stick with treeview.
I'm not sure if it's the best solution, but a friend of mine helped me
overcome the issue i was experiencing.
We added a line of CSS to hide treeview on load, and then set it to
display in the demo.js file once everything was loaded
plugin? How about the native .hover?
$('img').hover(function() {
$(this).attr('src',path + '' + $('this).attr('id') + '_over.gif';
},
function() {
$(this).attr('src',path + '' + $('this).attr('id') + '_off.gif';
});
That will make every image on the page a rollover, changing the src of
the
I'd also like to chime in that double-right click is probably not very
good UI design. No one expects to have to double right click
something and people will probably be even more pissed that the
context menu is gone. People like that thing. Why do you seek to
disable it? I'm curious.
On Nov
I would like to add numerical functionality to this plugin, but have
been unsuccessful in getting it to work.
In additition to the A, B, C...Z I would like to add an 0-9 category
for names that start with a number.
the way the plugin is written to auto create class names from the
letters is
Hi Jack,
thanks for the reply, yes Im just adding/removing via jq
Ive created a workaround that solves this one for me.
Also I just posted another question, I would love to get this new one
solved its driving me nuts!
Hello,
I'm enjoying the jquery cluetip plugin -- it works very nicely and
does what I want it to. But I have two requests.
(1)
$(foo).cluetip('disable');
This would disable the cluetip on a specific element or array of
elements.
$(foo).cluetip('clear_cache');
This would invalidate the
68 matches
Mail list logo