Hallo all.
I'm using the tablesorter 2.0 plugin and I found it marvellous.
I have a question about the sorting algorithm.
Imagine that i got a table with 2 columns with text content: column A
and column B
When i first order column A I click on the header and the content is
sorted in ascending
[bump] Anybody out there with any clues or suggestions?
On Oct 15, 11:05 am, gdekadt gdek...@gmail.com wrote:
Hi all sorry - I can't figure this out and I'm a little thick.
I'm using the great validation plug-in from bassistance and would like
to use it to stop a form submitting contents of
This works for me.
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Vary simple if you take the time to read docs.
/jon
On Oct 21, 5:41 am, Bi Jing beco...@gmail.com wrote:
You can set id attribute of p element, e.g. username_desc
And then using following script,
if(success){
Here are two files ( one html and one .php file). I'm trying to get
backend.php to send text to the .html file but nothing happens. Does
anyone know what is wrong with this or how to debug it?
thanks,
Bob
here is the html file:
-
!DOCTYPE html PUBLIC -//W3C//DTD
Hi!
Sorry to flood please disregard my previous attemp to post for this
same issue. This is the real post.
I have this code within the ready function:
$(form.uplform).live('submit', function(){
if($(this).attr('validate')=='true'){
Using the minified version, pointed by the link
http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js , I am
not able to use jQuery. Looking at the source file, seems the script
file is messed up.
The link http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js
work fine
jitu
Hello,
I am wondering if someone can share a good clean way of converting a
single digit day to a double digit day. For example, I have date1 = 5
and I want that to be 05.
Thanks in advance
Peter
I have setup superfish on my wp powered site, its all working fine and
looking great in firefox/ie, but safari is well out of wak. The jquery
effects are working, however the second level styles seem to be
removed. If anyone could take a look in safari and help me out it
would be much
Great plugin. Very flexible and easy to implement.
I'm not sure if this is a bug or I'm doing something wrong but here
goes.
My list of items are:
Grenada, St Georges
France, Nuits Saint-Georges
Canada, Georgetown
Georgia, Tbilisi
is set to default and the cacheLength is at default too.
Now, I
I've been using the cycle plugin a lot lately (thanks a tonne,
malsup!). I'm trying to write a wrapper plugin for the Cycle plugin
that will allow me preload (more accurately, queue load) images for a
banner slideshow.
I've run into an issue with the cycle.addSlide function... it seems to
be
I've got one for ya, JQuery and Ajax.
I want to have a button image, let's stay it's inactive state it's a
grey circle, when someone clicks it once, it'd change to a blue circle
(update associated DB field to blue), click it again and it becomes
a red circle (update the DB field to red) and so
Hi!
I have this code:
$(form.uplform).live('submit', function(){
if($(this).attr('validate')=='true'){
$(#testforminput).each(function(){
alert($(this).attr('name'));
hi, i use the followig accordion menu:
function initMenu() {
$('#submenu ul').hide();
//$('#submenu ul:first').show();
$('#submenu li a').click(
function() {
var checkElement = $(this).next();
if((checkElement.is('ul')) (checkElement.is(':visible'))) {
return
Hi,
I was practicing some examples , on click of a button a
calendar slidesdown dynamically, but whenever I am clicking some
content on the calendar its geting posted back and its dissapearing,
my code is as follows
html xmlns=http://www.w3.org/1999/xhtml;
head
meta
Hi all,
I'm trying to animate the width of a box, but I'm noticing that during
the animation jQuery is setting the element's display property to
'block' (which is not what I want, I want 'inline'). At the completion
of the animation it resets it to the desired setting. I've tried over-
riding
Hi All,
Just wanted to share this link:
http://blog.freelancer-id.com/index.php/2009/10/12/jquery-animate-advanced
thanks.
Hi there,just one question - do you need to use frames or would prefer to do
this without frames ?
On Wed, Oct 21, 2009 at 12:46 PM, bobslf bob...@gmail.com wrote:
Here are two files ( one html and one .php file). I'm trying to get
backend.php to send text to the .html file but nothing
looks at this example
var itemlist = $(.list);
itemlist.each(function(i) { // in this line notice i declared a variable i
within the brackets you forget to do this.
itemlist.eq(i).remove(); // .eq(i). is the magic here.
});
On Wed, Oct 21, 2009 at 8:41 AM, jan jnroche.5...@gmail.com wrote:
I would suggest only using a CDN to store media files like images / videos
etc.scripts would perform a lot better if you ran them locally.
I used to run the jquery script remotely before, however i sometimes used to
get draggy animation so i just downloaded the script and worked local.
On Wed,
var old_day = 5;var new_day;
if(old_day.length == 1) {
new_day = 0 + old_day;
}
is this what you mean
here is an alternative if your old_day is an integer value
var old_day = 5;var new_day;
if(String(old_day).length == 1) {
new_day = 0 + old_day;
}
On Wed, Oct 21, 2009 at 8:48 AM,
would it be possible for you to use a float instead of display inline ?
On Wed, Oct 21, 2009 at 6:33 AM, Jared N jaredma...@gmail.com wrote:
Hi all,
I'm trying to animate the width of a box, but I'm noticing that during
the animation jQuery is setting the element's display property to
On Oct 21, 7:51 am, waseem sabjee waseemsab...@gmail.com wrote:
Hi there,just one question - do you need to use frames or would prefer to do
this without frames ?
I don't care: whatever works. This is just a sample that I'm trying to
get working. I need backend.php to be able do update the
Hi,
This is my first attempt at using addMethod and it's always returning
true, for some reason.
This is placed outside of document.ready
jQuery.validator.addMethod(checkemail, function(email) {
var email = $('#email').val();
$.post(user/checkemail, { email : email },
Howdy!
In my app, I have a file upload form that submits to an iframe, with
the server returning an XML document. Though I am able to consume this
XML using jQuery in Firefox 3.5 and Chrome 4 without issue, the same
code fails in Internet Explorer 8. The relevant snippet of my code
follows:
I should add that I've started learning to use firebug and I can break
at the onload() function but not on any of the others.
Bob
On Oct 21, 8:11 am, bobslf bob...@gmail.com wrote:
On Oct 21, 7:51 am, waseem sabjee waseemsab...@gmail.com wrote:
Hi there,just one question - do you need to
The method has to return something else then undefined. You can use the
remote-method instead, it allows you to do remote checks:
http://docs.jquery.com/Plugins/Validation/Methods/remote
Jörn
On Wed, Oct 21, 2009 at 2:12 PM, Samuurai djbe...@gmail.com wrote:
Hi,
This is my first attempt at
I am very newer to JQuery, beg U pardon.
While, in every table row I have two link button :
td
a href=# class=upUp/a
a href=# class=downDown/a
/td
And I click up the table row tr will move up, the down is same
move down.
But, I add a row into table use
ok here is our sample HTML layout we gonna usei created a div with the class
target - now we are gonna pull our updates in here.
div class=target
/div
now lets look at our php file - the javascript will post a
?php
echo this is my value;
?
here is our JQuery we gonan use
$(function() {
I'm having the same issue.
On another note, I'm curious as to a better way to use this on images.
Currently I'm having to put it as the background image on an element,
but this is no good for resizing.
Thanks.
Chris Coppenbarger
On Oct 14, 8:43 am, Paul paulverh...@gmail.com wrote:
Hi there,
On Oct 21, 2009, at 7:56 AM, waseem sabjee wrote:
I would suggest only using a CDN to store media files like images /
videos etc.
scripts would perform a lot better if you ran them locally.
That's not necessarily true.
On Wed, Oct 21, 2009 at 11:06 AM, jitu nair.jiten...@gmail.com
I wrote a simple test case to demonstrate the problem:
http://prune.da-shiz.net/uploads/jeff/tmp/ie-makes-me-a-sad-man/
Thanks,
Jeff
On Oct 21, 5:50 am, Jeff Winters jeff.twitiner...@micand.com wrote:
Howdy!
In my app, I have a file upload form that submits to an iframe, with
the server
I can not say because of what is happening, but I can suggest a way
how to deal with
declare global variable:
var cnt = 0;
$(select:#stock).change(function()
{
var stock = $(select#stock).val();
if (cnt == 0){
cnt = 1;
OK, thanks. The backend.php makes sense. But I'm not sure how to
format the .html file. I tried this and it doesn't work. Do I need to
put $(function somewhere else?
Bob
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd
html
slight syntax errorthis was your code
$(function() {
$.ajax({
url: backend.php,
cache: false,
success: function(html) {
$(.target).html(html);
}
}
}
this is what it should be
$(function() {
i think$.ajax({
type:GET,
url:implement/stock_mysql.php,
data:'stockID='stock, // send this data to server
success : function(msg) {
alert(msg); // server response
},
error : function() {
alert(there was a problem handling your request, try again later.);
}
});
might be more simple
I pasted what you posted in. The page just displays this
$(function() { $.ajax({ url: backend.php, cache:
false, success: function(html) { $(.target).html(html); } });
Should the 'function' be between head and /head?
This is the current .html file:
!DOCTYPE html PUBLIC
Is there anyway to write a custom filter which returns the parent
nodes of the selector? ie) div.someClass:parentNode or ancestor:
div.someClass would return the parent element of div.someClass.
I know you can use .parent() in jQuery, but am using Selenium RC and
am limited to using selector
live() doesn't support submit()
http://docs.jquery.com/Events/live
your each should work assuming there is an attribute "validate" in your
markup
instead of live look at livequery plugin
j...@creatusadvertising.com wrote:
Hi!
I have this code:
$("form.uplform").live('submit',
It looks to me like there should be an extra }); at the end of the
function. Is that right? Anyway, I tried it with with that and I still
get a line printed with the jquery function source code.
Bob
On Oct 21, 9:12 am, bobslf bob...@gmail.com wrote:
I pasted what you posted in. The page just
Fantastic!!!
I got it working.. my first ever ajax request.. :P Thanks Jorn for
this great plugin.
For other readers, have your remote script return true or false -
no need for JSON.
Here's my working code.
rules:{
email: {
required: true,
email: true,
What the corners do is get the background-color of the parent element.
If there is none set on the parent element, it keeps going up until it
finds a background-color.
You can do one of two things. Set a background-color on the parent
element or in the javascript, it allows you to change the
Try setting the width of a non-floated element that has display:
inline with CSS and see what you get. I haven't been able to change
the width of a non-floated, inline element with CSS, so I don't
imagine it can be done with JavaScript either.
waseem's suggestion is probably your best
OK. This starting to work. I didn't have 'function' surrounded by
script /script. However it is not displaying what backend.php is
sending in real time. Backend.php is just counting to 3 with a delay
of 1 second after each echo function. I see the backend's display but
only after the entire php
You need to create a new plugin method:
$(function() {
$.validator.addMethod(no_urls,
function(value, element) {
var re = new RegExp(([a-z\d\\-]+\\.)+[a-z]+), i); // or
whatever RegExp you want
var url_found = re.test(value);
return this.optional(element)
Give live ago instead of click.
something like:
$(document).ready(function(){
$(.up,.down).live(click,function(){
var row = $(this).parents(tr:first);
if ($(this).is(.up)) {
row.insertBefore(row.prev());
} else {
row.insertAfter(row.next());
}
});
Karl , this did work for me previously , but the problem started
today and it started giving me jQuery undefined Error.
I changed the link to point to the NON-minified version and it works
fine.
I checked the minified link again and right now it is not even
accessible.
Thanks
Regards
jitu
Strange I am using Firefox and once I deleted the cache, now it
works fine
and I am able to use the link to the minified version.
Thanks
jitu
On Oct 21, 7:24 pm, jitu nair.jiten...@gmail.com wrote:
Karl , this did work for me previously , but the problem started
today and it started
Hallo all.
I need to add an include css from an iframe to a parent as described
in the title.
Is it possible via jQuery?
Kind regards
Massimo
I've been using $.ajax() for ages, and am now developing on a site
where they alwats use load(). Does anybody know which is best (if
either), ans pros and cons for each one?
Cheers in advance,
Hogsmill
Hello Guys,
I'm sure that I'm doing something blatantly wrong here but I can't
spot what's wrong. I've got the following code snippet.
http://pastebin.com/m71102c16
Now, when calling the method change_testimonial() I get the log entry
in the console as expected however the callback to
not sure what you mean by hack or abusing the ul/li elements
HTML 4.01 defines a set of elements, each with its own semantics. Some
are meant as generic wrappers or containers in order to support
language or style information (that's the DIV and SPAN elements).
Others have a more precise
Yes that is the correct link.
I copied your example page and added a query to it...
http://meded.ucsd.edu/testQuery.cfm
On Oct 15, 2:02 pm, Karl Swedberg k...@englishrules.com wrote:
Hi Josh,
Now I'm really confused. Did you post the wrong link? This is what I
see in the head:
meta
I have a page with the following properties:
Several non-form input elements (a text field, a few buttons).
There is an add file and a remove file button. Whenever the
add file is clicked, new_file_count is incremented and a form is
created (ID: nc- + new_file_count, NAME: ncform, enctype:
When it comes to issues like you are presenting I defer to higher powers
Example: YUI framework, even in latest 3.0 release. Menu is built with
UL/LI with containing DIV structures:
http://developer.yahoo.com/yui/3/examples/node-menunav/node-menunav-3_source.html
here's a live example on
Hi,
I'm trying to implement superfish onto a wordpress site I'm working
on, but just can't get it to work.
I believe I've done everything right, and searched the web for
solutions but nothing as yet has helped.
You can view the site at www.sdm-intl.com, it's the main blue menu on
the site that
Hi,
I was working with validation, but am having problems using the method
max for maximal numbers. I live in Holland and for us the decimal
character is a comma, and I can use comma's for validating the max
value of a field.
Could someone please make an addon like numberDE for max? So i can
Right, you can't corner an img element because the img element can't
have children. Put the img in a div and round that. Better yet, create
the img src with rounded transparent corners!
OK, I needed to trigger the submit event on the form, not the click
event on the submit button.
How can I catch with Jquery a user refreshing the page with his
browser? Thank you!
Is there anyway to write a custom filter which returns the parent
nodes of the selector? ie) div.someClass:parentNode or ancestor:
div.someClass would return the parent element of div.someClass.
Not that I know of, but you might be able to use the :has selector if
you know enough about the
A paragraph element placed after an image is not honoring the
margin-top CSS parameter.
The IMG is an inline element unless you have changed it in CSS. Did
you try making it a block element, or wrapping it in a DIV?
Hi,
I am using this jquery sliding menu.Its working on onclick event.I
wanted to make it to a mouseover/mouseout.This is the orginal script.
Original = http://www.webresourcesdepot.com/sliding-top-menu-with-jquery/
topMenuAction = this is the click button
openCloseIdentifier= this is the
.toggle() allows you to rotate through multiple functions, you might
want to check it out in the docs:
http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...
On Oct 21, 2:58 am, The Danny Bos danny...@gmail.com wrote:
I've got one for ya, JQuery and Ajax.
I want to have a button image,
Hi, so, I have a pretty basic plugin, and I'm trying to access a
variable that's set when the plugin is initialized. I'd also like to
change that variable on the fly.
Is it possible?
(function($) {
$.fn.plugin = function(options){
// default settings
var
Using window.open I can achieve this, however, from what I understand
window.open is normally used for popups. What I want is the first
time the user opens their browser and points to my site, they should
see my site with no toolbars. Is it possible to do this jQuery?
I wonder if there´s some function that execute when all the elements
of the form are loaded, some like an onload complete function where i
could excecute some actions...
Any help will be very appreciate.
hi lukas,
you can't specifically listen for refreshes, but you can listen for
unload events. an unload event is dispatched when:
- a link is clicked to navigate away from the page
- the window.location property is changed
- the tab is closed
- the browser window is closed
- etc
to play around
Hey. Essentially I have two lists one id with available one id with
selected. When you click on an element within the available (a
checkbox) it executes a function
$(.availableProfile).click(function(event) {
elementID = event.target.id;
Why doesn't $(document).ready() fit the bill for you?
On Oct 21, 3:16 pm, Edgar Méndez. edgar9...@gmail.com wrote:
I wonder if there´s some function that execute when all the elements
of the form are loaded, some like an onload complete function where i
could excecute some actions...
Any
or do you mean after the user completely fills in the form.. that
would be different, much different, than loaded
On Oct 21, 3:16 pm, Edgar Méndez. edgar9...@gmail.com wrote:
I wonder if there´s some function that execute when all the elements
of the form are loaded, some like an onload
I believe you could do $(#formId).ready(function(){ doWhatever
(); });
Of course you can select the form however you want to.
On Oct 21, 3:16 pm, Edgar Méndez. edgar9...@gmail.com wrote:
I wonder if there´s some function that execute when all the elements
of the form are loaded, some like an
Hey. I have two functions show after the message. The first works
fine. When a checkbox is clicked with the class availableProfile, its
class is removed, selectedProfile added. It is then appended to
anotehr list and destroyed in the original. However when i click the
now moved checkbox it
Try the onbeforeunload event:
http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript
This will execute before the user's request is actually sent, giving
them the option to cancel the request.
As mentioned, you can't really specifically listen for a refresh, only
the leaving the
Not possible.
On Oct 21, 9:02 am, Subtle subtlekil...@gmail.com wrote:
Using window.open I can achieve this, however, from what I understand
window.open is normally used for popups. What I want is the first
time the user opens their browser and points to my site, they should
see my site
Not with the way your code is currently structured.
You'd have to move the settings variable outside of your function.
Something set to like:
$.fn.plugin.settings = { ... }
On Oct 21, 7:28 am, Joel Taylor joelatay...@gmail.com wrote:
Hi, so, I have a pretty basic plugin, and I'm trying to
Hi all,
I'm currently working on a form with JQuery and the validation plugin.
This works great.
I do have 1 little problem, i have 2 submit buttons on there:
Temporarily save Continue process
the first button should just submit the form to the server, and NOT
validate anything. The second
Hi folks,
has anyone faced a problem that in Chorme when printing certain element
using printArea Plugin, whole page is being printed?
e.g.:
$('#invoice').printArea();
- it prints whole page, not the element alone
Also in FF, when printing element there is report in Firebug with
I am having the same issue that Thor describes, and although I have
tried the fixes suggested by Karl I have been unable to fix the issue.
Maybe there is a different way to achieve the goal? Perhaps there is a
way to pre-load the entire jcarousel container and then place it in
the page rather
Hi, i want to use jquert dragabble , but i want to copy item. that
mean, i want to drag item and then drop to another place. So, i will
have now two items.
Can you help me ?
You said I get the log entry in the console. You have two in there.
Which one? Both?
If you get the log entry Show Testimonial Fired?
If so, then it did fire. It's something else that didn't work as
expected, but perhaps made you to believe the callback did not fire.
On Oct 21, 5:04 am, Sir
Hello,
I am trying to extract value of a dropdown on select and use it in a
function.
Jquery has .each method to loop over matches, but I just need the
first match. I could use each and break loop after first run, but
there must be a better way..
$(#venue).change(function(){
It's unclear what you want to do.
Do you want the value of the first selected option?
And by adding first, does that mean your drop-down is a multi-select
dropdown (allows for selecting more than one option)?
Please clarify.
If for selected values, you can use:
$(#selectBoxID).val();
(If it's a
Thanks for replying James.
I'm still having some issues. Is there a place where I can read about
Plugin scope?
If I am adding settings in by the line you type, how do I access the
properties of the object inside the main function?
h
On Oct 21, 2:58 pm, James james.gp@gmail.com wrote:
Hi. I have two Cycle slideshows on this page. The first shows exactly
as expected. The second drops the bottom of the background image when
the slides change. This happens in Webkit browsers (or at least Safari
and Chrome) only. Any ideas why/
http://staging.pixelluxe.com/tt/child.html
http://docs.jquery.com/Events/live
elements added after the initial DOM load will not be recognized by jQuery
unless the afore-referenced live() method is used.
On Wed, Oct 21, 2009 at 12:40 PM, Ali alisem...@gmail.com wrote:
Hey. I have two functions show after the message. The first works
Try giving this article a read about plugin development pattern:
http://www.learningjquery.com/2007/10/a-plugin-development-pattern
That should answer your questions.
On Oct 21, 10:46 am, Joel Taylor joelatay...@gmail.com wrote:
Thanks for replying James.
I'm still having some issues. Is
Thanks for your quick response! It helped!!
On Oct 21, 3:20 pm, KeeganWatkins keeganwatk...@gmail.com wrote:
hi lukas,
you can't specifically listen for refreshes, but you can listen for
unload events. an unload event is dispatched when:
- a link is clicked to navigate away from the page
Thank you also for this great link!
On Oct 21, 3:50 pm, James james.gp@gmail.com wrote:
Try the onbeforeunload
event:http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript
This will execute before the user's request is actually sent, giving
them the option to cancel the
Thanks, I'll check it out. :)
On Oct 21, 3:59 pm, James james.gp@gmail.com wrote:
Try giving this article a read about plugin development
pattern:http://www.learningjquery.com/2007/10/a-plugin-development-pattern
That should answer your questions.
On Oct 21, 10:46 am, Joel Taylor
Hi Thor,
I've had this issue before. As Karl suggests, I was able to fix it by
giving the parent element (the one calling the cycle plugin) a fixed
height (the height of the images you're cycling) and an overflow of
hidden in the CSS. If the slides are of different heights, set the
height to the
An update - I've been told it's happening on Firefox in most cases as
well. I have v3.5.3 on a PC and that works fine, though I've been told
the same issue happens on 3.0 on a PC and I've seen it for myself on
3.5.3 on a Mac.
http://staging.pixelluxe.com/tt/child.html
I've been looking around and besides my best efforts I haven't been
able to figure it out.
All the function extending I see extends on an _object_.
I want to extend on a string.
/**
* Returns a slug version of a string
*/
jQuery.extend ({
slug: function( text ) {
I need to set some headers (I wish this were doable by just passing in
a map), but it seems that beforeSend is never being called. Needless
to say that's a bit of a problem for me.
The alert below never occurs (and a breakpoint is never hit if I put
it there), but I can see that the ajax request
try this:
$data = array('votes_for'=7, 'votes_against'=4);
echo json_encode($data);
exit;
On Oct 19, 5:31 am, Maarten maartenwie...@gmail.com wrote:
Hi,
I am using jQuery.get to make an AJAX request to the server which
should return a JSON object, but it is interpretated by jQuery as a
Slideshows work best when you declare the image sizes using the height
and width attrs. When the images are cached it's not a problem
because the browser knows the dimensions of the image, but if the
images are not cached there is a reasonable chance that your slideshow
will start before the
I've had this issue before. As Karl suggests, I was able to fix it by
giving the parent element (the one calling the cycle plugin) a fixed
height (the height of the images you're cycling) and an overflow of
hidden in the CSS. If the slides are of different heights, set the
height to the
The alert below never occurs (and a breakpoint is never hit if I put
it there), but I can see that the ajax request is being sent.
j$.ajax({
'url': serviceUrl,
dataType: jsonp,
data: params,
Hope that helps.
--Karl
Bah, this is getting entirely too civil. Snooze... :-)
Yes, it is on a different domain (which is why jsonp is being used). What
strategy would you suggest for me to be able to specify headers? It's a
must-have for my application.
On Wed, Oct 21, 2009 at 4:43 PM, Mike Alsup mal...@gmail.com wrote:
The alert below never occurs (and a breakpoint is
Yes, it is on a different domain (which is why jsonp is being used). What
strategy would you suggest for me to be able to specify headers? It's a
must-have for my application.
You can't. Are you saying you're trying to access a jsonp service
that requires specific request headers on the GET
1 - 100 of 123 matches
Mail list logo