Hello,
I badly need an Autocomplete Plugin. So I would like to ask you, what
is the best solution to go with?
Thanks for your help,
Stefan Sturm
Aha! So if I understand the implications of this, a selector always
returns a wrapper object that acts like BOTH a javascript array and
like a single DOM element – even though it is really neither. And
this allows us to write elegant code that treats selectors as single
objects, or as arrays, wh
Operations like .val() return a string, so If you need to extend a
string you have to use String.prototype:
String.prototype.slug = function(){return this.trim().etc...}
The way you've done it works, but in the same way 'trim' works, i.e.
you have to pass the string to the function:
$.slug($('#
Thanks, had a good read, figured it out in part.
Now I'm stuck trying to introduce an array to do my bidding ...
Example below.
The array is an example of how I want to loop through to use those
values.
Underneath is the perfect code for clicking an Anchor and changing its
BGcolour differently e
Hello,
I need to load jQuery in a dynamic an synchronous way. How can I do
that?
It seems that the usual ways to dynamically load scripts (like DOM
insert) are all asynchronous. Basically, I am looking for a function
like getScript, outside jQuery.
Thanks!
Its depending on your requirement, normally it should on onblur event.
On Thu, Oct 22, 2009 at 10:27 AM, talasan.nichol...@gmail.com <
talasan.nichol...@gmail.com> wrote:
>
> Is this on submit or live? I don't see how I'd use that.
>
> On Oct 20, 10:41 pm, Bi Jing wrote:
> > You can set id attri
I take it back. If I omit the jQuery library, the HTML still doesn't
render as expected in FF3. That means jQuery is off the hook and
either FF3 has a bug or my markup/css is wrong.
Do you have two different forms on your page, or is it one form with an id
of 'testform' and a class of 'uplform'? Your code says you want to look at
the inputs in the #testform, but your email says you want to look at the
inputs belonging to form.uplform. If they're the same form, you can do
$(th
On Oct 21, 12:43 pm, Dave Methvin wrote:
> > 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?
I did not try wrapping th
.load() is really nice if all you're doing is loading some content into an
element. It's a nice convenience method.
If you're going to take the results of the ajax call and maybe put different
parts of the content in different places, or do some manipulation or other
munging on it before you add i
Err. This was directed towards the if and else JS.
I'm already using the jQuery validator; and I've been through the docs
and can't find anything that would really do what I want it to.
The label will change, but I also need another element to change [the
fields description]
So the example woul
> That's correct, the problem is that it's an authentication service and while
> I *could* put the credentials on the URL, it would be sending them in the
> clear across the internet, which is not acceptable.
That's a tough one. A typical jsonp implementation uses either iframes
or (in jQuery's $
> How can I test that a control selection failed to find anything?
if ( $("#missing").length == 0 ) {
// it's not there
}
However, remember that if you apply jQuery methods to an empty
selection it does nothing:
$("#missing").hide(); // no-op
How can I test that a control selection failed to find anything? This
doesn't work:
var sumthin = $('#IDoNotExist');
if (sumthin == null)
alert('didnt find');
Thanks,
Brad
Is this on submit or live? I don't see how I'd use that.
On Oct 20, 10:41 pm, Bi Jing wrote:
> You can set id attribute of element, e.g. username_desc
> And then using following script,
> if(success){
> $("#username_desc").html('default msg');}else{
>
> $("#username_desc").html('error msg');
>
I'm not entirely sure that some of these fixes apply to my situation
as I'm not using cycle plugin.
I am having the same issue as the original poster however, please see
for yourself.
http://samgabellshoots.com/
Any pointers on how to fix or at least 'hide' the issue until after
load would be g
Thanks Dave I think you may be on to something. I think $("*:has(>
div.someClass)") would work. Won't be fast, but that's not a concern.
I'll give it a shot tomorrow.
On Oct 21, 12:40 pm, Dave Methvin wrote:
> > Is there anyway to write a custom filter which returns the parent
> > nodes of the s
I see. My gotcha on this is that the images are user-submitted, so
while I have a width set for them, the height is going to be variable.
I wrapped the function that calls cycle in a $(window).load function
to wait until images have loaded, and that seems to have fixed me
right up. Thanks much.
O
U need set the rules for your validation:
frmSubmittal.validate({
debug: false,
focusCleanup: false,
focusInvalid: false,
onfocusout: false,
onkeyup: false,
errorPlacement: function(error, element) {
error.prependTo( element.parents("div.ctrlHolder"));
},
er
I think there is a bit of confusion here as to how Coldfusion works.
By default the Coldfusion server will return the generated HTML all at
once. So if you have a long query your not going to get even the first
bit of the document until the CF server is done with it. What your
asking your .js to d
I've visited this site(http://www.intomobile.com/2009/10/09/hands-on-
the-nokia-n900-at-ctia-fall-2009.html) and there is an interesting
feature to spread the link in social sites like facebook, twitter and
others (just point your mouse to the article image). I've found that
the effect is provided
That's correct, the problem is that it's an authentication service and while
I *could* put the credentials on the URL, it would be sending them in the
clear across the internet, which is not acceptable.
On Wed, Oct 21, 2009 at 4:59 PM, Mike Alsup wrote:
>
> > Yes, it is on a different domain (wh
Mike! Crawl back under your rock, you fathead!!!
There...how's that? :o)
Rick
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Mike Alsup
Sent: Wednesday, October 21, 2009 7:51 PM
To: jQuery (English)
Subject: [jQuery] Re: loading mes
Image demo:
http://jquery.malsup.com/corner/image.html
On Oct 21, 12:34 pm, Dave Methvin wrote:
> 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!
what am I doing wrong here? I cannot figure out how to use the
addMethod().
var frmSubmittal = $("#frmSubmittal");
//validates the form
frmSubmittal.validate({
debug: false,
focusClean
> 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 GE
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 wrote:
>
> > The alert below never occurs (and a breakpoint is never hit if
>
> Hope that helps.
>
> --Karl
Bah, this is getting entirely too civil. Snooze... :-)
> 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,
>
> 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
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 imag
try this:
$data = array('votes_for'=>7, 'votes_against'=>4);
echo json_encode($data);
exit;
On Oct 19, 5:31 am, Maarten 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
> string, not an objec
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
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 ) {
ret
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
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
Thanks, I'll check it out. :)
On Oct 21, 3:59 pm, James 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 wrote:
>
>
>
> > Tha
Thank you also for this great link!
On Oct 21, 3:50 pm, James 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 request.
> As men
Thanks for your quick response! It helped!!
On Oct 21, 3:20 pm, KeeganWatkins 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
> - the window.loca
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 wrote:
> Thanks for replying James.
>
> I'm still having some issues. Is there a place where I
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 wrote:
>
> Hey. I have two functions show after the message. The first works
> fine. When a chec
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
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 wrote:
> Not with the way your
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
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(){
$("opti
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 R
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 ?
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
"writeDoc.c
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 the
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 seco
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 wrote:
> Hi, so, I have a pretty basic plugin, and I'm trying to access a
> variable that'
Not possible.
On Oct 21, 9:02 am, Subtle 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 with no toolbars. Is
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
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 doesn't
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. wrote:
> I wonder if there´s some function that execute when all the elements
> of the form are loaded, some like an onload complete
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. 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 wh
Why doesn't $(document).ready() fit the bill for you?
On Oct 21, 3:16 pm, Edgar Méndez. 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 help will be ve
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;
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 w
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.
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?
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 s
.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 wrote:
> I've got one for ya, JQuery and Ajax.
>
> I want to have a button image, let's stay it's in
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 conten
> 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?
> 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
How can I catch with Jquery a user refreshing the page with his
browser? Thank you!
OK, I needed to trigger the submit event on the form, not the click
event on the submit button.
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!
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
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
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 Am
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", en
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 wrote:
> Hi Josh,
>
> Now I'm really confused. Did you post the wrong link? This is what I
> see in the :
>
>
> Untitled Document
>
>
> 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 me
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 show_new_
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
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
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 wrote:
> Karl , this did work for me previously , but the problem started
> today and it started giving me "jQuery undef
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
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());
}
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(elem
OK. This starting to work. I didn't have 'function' surrounded by
. 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 file is finishe
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 bet
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 back
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
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 wrote:
> I pasted what you posted in. The page just displays this"
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', functi
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 func
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 and ?
This is the current .html file:
http://www.w3.org/
TR/xhtml11/DTD/xh
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
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() {
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
http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
http://www.w3.org/1999/xhtml";>
Collecting Data...
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;
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 wrote:
> Howdy!
>
> In my app, I have a file upload form that submits to an iframe, with
> the server returning an XML document.
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
wrote:
Using the minified v
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 wrote:
> Hi there,
>
> When using Jquer
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.
now lets look at our php file - the javascript will post a
here is our JQuery we gonan use
$(function() {
$.ajax({
url: "update.php",
cache: false,
succes
I am very newer to JQuery, beg U pardon.
While, in every table row I have two link button :
Up
Down
And I click "up" the table row will move up, the "down" is same
move down.
But, I add a row into table use append string to table, like
following:
$("#bt
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 wrote:
>
> Hi,
>
> This is my first attempt at using addMetho
1 - 100 of 125 matches
Mail list logo