Thank you, Mike. You're so patient and helpful!
Apparently I didn't understand insertAfter() well enough. I thought it
would move the object, not duplicate the object.
Is there a function in jQuery that simply moves an object? Or, if I
remove() the object, do I need to add() it again if I want to
Hello,
Is it possible to use ClueTip in such a manner as to simply "call" the
ClueTip and pass it the title and tip as a parameter?
I posted a question a few days ago about how to get ClueTip to open from a
link in an Iframe document so that it opens in the parent window (instead
of being "clipp
Rick,
That did the trick.
Thank You!
Randy
On Jan 3, 12:18 am, "Rick Faircloth" wrote:
> Just a possibility, Randy, but this might be one of those
> cases where you could use the "LiveQuery" plug-in to re-bind
> the link after the DOM has been updated with your new HTML.
>
> Check this out a
Do you notice that the page also blanks out when you get the error? Why is
that?
Try this:
Open your page and open the Firebug panel.
Now click the button that provokes the error. Then click on the filename in
the Firebug error message (my.etc.js line 68). You should get the source
code for you
Nevermind... I figured out what was wrong.
I needed another / after the bracket to terminate the regex.
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
> Behalf Of Rick Faircloth
> Sent: Friday, January 02, 2009 10:28 PM
> To: jquery-en@goo
Just a possibility, Randy, but this might be one of those
cases where you could use the "LiveQuery" plug-in to re-bind
the link after the DOM has been updated with your new HTML.
Check this out and see if it helps you.
http://brandonaaron.net/docs/livequery/
Rick
> -Original Message-
>
The code is below. I cannot get the link that was added to the
blue to be fired after the code is ran. It works fine for
Item1 remove me link Any ideas?
http://www.w3.org/1999/xhtml";>
Untitled Document
$(document).ready(function(){
$(".color").click(function(){
//alert(
I'm running this code to validate that an entry
into any field with a class of "number"
is a number after all $,. are disregarded.
I'm not getting any response on my page on blur
for the field.
Is there something wrong with this code?
Thanks,
Rick
$(':input.number').each(function() {
I get this error in the Firefox error console: "$ is not defined".
it points me to line
$("div#respond>h3").html("Reply to");
I'm sure I've set jQuery properly because it works fine in other
browsers and the other jQuery effects I use can work in Firefox. Only
this part does not work. Actually, i
Hi All... Really sorry to be going over this again. It's been one
solid week all day and night. I know more, though not enough yet. Hope
this is easy to understand. I REALLY need help. I've tried 100's of
things all thru new years eve and day as well. hehehe
WORKING menu must stay working though
Actually ive been using firebug for a while as a CSS developer tool,
and i was trying to debug the script, im just not a js guru..
Thank you for your help ;-)
On Jan 2, 4:55 pm, Ricardo Tomasi wrote:
> The "else" statement doesn't accept a condition. Change 'else' to
> 'else if' and it should b
I have a table which needs to be sorted. Tablesorter plugin does not
fully work. I am trying to call a simple alternate function from
jQuery $(document).ready method. How to make it work?
$(document).ready(function() {
$("#tableID").tablesorter({
});
alternate('tableID');
Because I'm an advocate for licensing and was told I probably should
mention: the 'rescope' function is a stripped down version of Dojo's
dojo.hitch function. Infinitely useful in the real world, but
technically if used [in production] should retain attribution. It is
available under new BSD and
nice example, now i think i get it.
Indeed actionscript (v2 at least) is based on ecmascript, much like
javascript if i'm not mistaken.
I came to web design/dev from actionscript one and gradually made my
way to jquery. Anyway, actionscript keeps you away from the internal
cooking by using a meta
That's not true. You can set the html element's background...
html {
background: yellow;
}
The reason it doesn't work here is that there is no document.html
property. You either can reference the element via
document.documentElement or just via "html" selector:
$("html").css("background", "
Thanks a lot Peter, that function is really neat !
On Sat, Jan 3, 2009 at 2:25 AM, pete higgins wrote:
>
> Here is your orig snippet rewritten to use the rescope function I pasted:
>
> var datascape = {
> 'mouseX': 0,
> 'myInterval': 0,
> 'create': function(){
> $('#datascape').bind('mou
Thanks, Alexandre, it's kind of you to say that.
About this code...
> datascape.myInterval = setInterval(window.datascape.move,400);
Let's break it down a little. It's exactly the same as doing:
var callback = window.datascape.move;
datascape.myInterval = setInterval( callback, 400 );
As
On Fri, Jan 2, 2009 at 8:19 PM, nate wrote:
>
> Brian
>
> thanks for the tip. I tried both single and double quotes but that
> didn't work.
hmmm ... I just found this in the docs:
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29
Did you also
Got it working with "data[UserContactDetail][phone]": {phoneUS:
true}
and instead of using echo $form->input('phone'); to generate the code
I manually typed . I
am unsure as to why the auto generated field doesn't work since it
looks the same to me.
Hi Mike,
I can't thank you enough for taking your time to teach this newbie how
to do it right. I really appreciate your help
Sincerely
Raine
On Jan 2, 12:40 pm, "Michael Geary" wrote:
> Don't thank me, Joe, thank Brendan Eich who developed JavaScript. :-)
>
> (But thanks for your comment the
Here is your orig snippet rewritten to use the rescope function I pasted:
var datascape = {
'mouseX': 0,
'myInterval': 0,
'create': function(){
$('#datascape').bind('mousemove', rescope(this, function(e)
{
this.mouseX = e.pageX;
})).bind("mouseover", rescope(t
Brian
thanks for the tip. I tried both single and double quotes but that
didn't work.
Interesting I have figured out the reason why your example didn't work(and
now does). It doesn't work when you have elements in the array which don't
need animation/are in the same state initially as the final animation state.
So I now have an active class indicating it's state and the selector I
On Fri, Jan 2, 2009 at 5:26 PM, MarkAtHarvest wrote:
>
>
> I am trying to run a javascript for a dropdown menu, I need to access the
> down.gif from images/down.gif , I have two links from where I need to
> include this javascript
>
> one link is in index.jsp in root folder and other is /admin/li
Michael, did you know that i 'm becoming a big fan of your explanations?
if i follow your explanation correctly, this should have worked, isn't it ?
datascape.myInterval = setInterval(window.datascape.move,400);
Yet it didn't. I guess i 'm kind of assimilating the javascript window
object to ac
On Fri, Jan 2, 2009 at 2:32 PM, nate wrote:
>
> Jörn,
>
> Thanks for your response.
>
> I got it to submit with
>
> submitHandler: function(form) {
> form.submit();
> },
>
> now I have a problem when using the cakephp form helper.
>
> This works with the manually created input
>
Strange. In my tests the last element's callback was always called
last. jQuery's animations are time-based, that means both animations
should end at the same time, with a small offset for the last element
at most.
Anyway, you already have a solution. I had first rewritten yours
before trying the
Forget browsers older than IE6, they are unsupported by jQuery (and
ignored by most web developers). Your problem could be anything, do
you have a test page we can take a look at, or some code?
I guess it has to do with the ready/load events, as when you reload
the page the images are in the brow
The "else" statement doesn't accept a condition. Change 'else' to
'else if' and it should be fine, and start using Firebug for Firefox
so you can debug your scripts, or "Visual Web Developer" for IE.
On Jan 2, 2:04 pm, Bob O wrote:
> I must not be getting it, this is whati have now, and it is st
I've always found this bit of code useful:
var rescope = function(scope, method){
if(!method){ method = scope; scope = null; }
if(typeof method == "string"){
scope = scope || window;
if(!scope[method]){ throw(['method not found']); }
That is an excellent idea; I agree completely. There's nothing inefficient
about it either.
It also leaves the door open to return additional data without breaking your
existing code.
{ "valid":true }
{ "valid":false }
Now if you want to add other properties to that data, you don't have to
cha
I am trying to run a javascript for a dropdown menu, I need to access the
down.gif from images/down.gif , I have two links from where I need to
include this javascript
one link is in index.jsp in root folder and other is /admin/list.jsp. Now
the question is if I access the images with location i
ok. I did it :) I can get the position of the image..
thank you "the_woodsman" :)
This is probably a good reason to make it a habit to return a JSON
object, so that the data is not simply a string of characters with the
associated ambiguities. I realize this leaves me open to
counterarguments of 'it's not a efficient' but really that's a minor
worry (to me that is).
On Jan 2,
Hi Carrajo,
W3C HTML specs says: associate a label with a form control.
There are two standards ways to makup the label element - explicitly and
implicity.
See: http://www.w3.org/TR/REC-html40/interact/forms.html#edef-LABEL
So, lets rewrite your markup using label implicity:
Honda
Toyota
I gotta admit, I didn't think this would work, but it did. I thought
it didn't matter what the name and/or id of an input box was, as long
as the id was unique. Guess I was wrong. Thanks for your help, I
would have never thought of that!
On Jan 2, 4:01 pm, RobG wrote:
> On Jan 3, 3:17 am, Tim
Good point. Of course, data.length is a number, so it won't have a newline
to worry about anyway. But if you're just displaying the data *string*, the
brackets (or choose your favorite delimiter) are an excellent idea:
console.log( '[' + data + ']' );
That would make it obvious if data has a n
Thats cool thanks Brian and Ricardo for your time.
Ricardo that did look really good but it doesn't work for me.
jQuery("div.mainLiner div.panel").not(':last')
.slideUp(750, function(){
console.log("not last");
}).end()
.filter(':last')
.slideUp(750, function(){
console.log("last");
//callback
}
Hi Alexandre,
Don't go adopting a coding practice just because of a single mailing list
message. :-)
There's nothing wrong with quoting property names in an object literal, but
the majority of experienced JavaScript programmers do not quote them except
when necessary. As an example, browse throu
I'm a fan of this approach:
console.log('[' + data.length + ']')
andy
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Michael Geary
Sent: Friday, January 02, 2009 4:23 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: JQUERY .P
The 'if' statement in JavaScript is reliable.
If your "if( data == 'no' )" is taking the "else" path, the most likely
reason is that the data variable is indeed not equal to "no".
Even though the console.log showed a value of "no", are you sure there isn't
a newline at the end? What does "consol
These are the radio buttons on my form
Honda
Toyota
Mazda
Using jquery how can I add another selection to the list? Something
like
$label.append(' Ford'); ? I can't figure out the syntax.
Any help please.
Thanks
On Jan 3, 3:17 am, TimW66 wrote:
> Thanks for the response. I changed the name attribute to be "save",
> but that didn't work either.
Change the name and the id, neither should have a value of "submit".
> I think what's happening is there are
> other event handlers getting executed in the f
The context menu calls the following function (note, this function is
called called from a simple "ul ... li" style of top menu, and the
same behavior is observed there):
function saveChanges(t, leaveScreen) {
$('form').trigger('submit');
if( leaveScreen ) {
exitSc
Do you know any example of getting new position of dragged image?
Hi!
I'm working on a website, & I need to get the jcarousel (http://
sorgalla.com/jcarousel/) work with jquery 1.1.3.1 but it simply
won't.
The main carousel application uses jquery 1.2.3
Does it mean that it won't work on an earlier version?
Was it major syntax changes between 1.1.3.1 & 1.2.3
Jörn,
Thanks for your response.
I got it to submit with
submitHandler: function(form) {
form.submit();
},
now I have a problem when using the cakephp form helper.
This works with the manually created input
rules: {
phone: {ph
On Fri, Jan 2, 2009 at 10:16 AM, tawright915 wrote:
>
> I'm having problems wrapping my head around how to code this:
>
> I have two textboxes both are required. However if a user fills out
> one of the textboxes then the other is no longer required.
>
$('#the_form').submit(function()
{
Don't thank me, Joe, thank Brendan Eich who developed JavaScript. :-)
(But thanks for your comment the other day about the .slowEach plugin... I
guess I'll take credit for that one...)
-Mike
> From: Joe
>
> Nice trickery there Mike! I dig it!
>
> On Jan 2, 3:34 am, "Michael Geary" wrote:
>
What is the code for the context menu? I have a hunch it is somewhere
in there.
Joe
On Jan 2, 11:17 am, TimW66 wrote:
> Thanks for the response. I changed the name attribute to be "save",
> but that didn't work either. I think what's happening is there are
> other event handlers getting exec
Nice trickery there Mike! I dig it!
On Jan 2, 3:34 am, "Michael Geary" wrote:
> I don't know about the $.fn.myplugin part - that's not how you would
> typically call a plugin function in the first place.
>
> But in general, given any object 'foo' and any property 'bar', you can
> reference the
Yes, Raine, that would certainly work. A couple of notes...
First, 'default' is a reserved word in JavaScript. You can use it as a
method name if you want, but not using foo.default notation. That may work
in some browsers, but you can't count on it working in all of them. You
would have to use f
Thanks alot,
I'm trying to get position (coordinate) of the image..
Do you know how can I get their position?
Its all code about drag..
$(document).ready(
function()
{
$('#insideParent').Draggable(
{
I'm just taking a shot in the dark, but have you looked at eval()? I
saw this used in a demo page, and thought it was ingenious. The text
they want to execute is shown on the screen. The JS gets the text and
calls eval() on it. This might get you what you want.
On Jan 2, 10:57 am, yellow1912
hello,
I was sure that my script failed the ie execution test.
IE7: activex and script check block the script, then allow and it
works.
IE6: it works
IE5.5: my script waits the image loading with a animated gif, than
show the images. This ie waits without end or errors.
IE5, IE4: raise two errors
Thanks for the response. I changed the name attribute to be "save",
but that didn't work either. I think what's happening is there are
other event handlers getting executed in the for loop, and one of
those is returning a value that val gets set to, such that it doesn't
propagate to the next fun
Thanks Mike,
I'm following this tutorial here:
http://www.learningjquery.com/2007/10/a-plugin-development-pattern
I have several public functions like this:
$.fn.response.redirect.default = function (){//something here};
$.fn.response.redirect.type1 = function (){//something here};
$.fn.respons
Thanks; I didn't know about console.dir(). My workaround puts it on
fewer lines, without all the jQuery plugins, so it's more useful.
On Jan 2, 9:59 am, "Dan G. Switzer, II"
wrote:
> It's a Firebug change. Use console.dir() instead (but I agree--I like
> the old console.log() method)
>
> On Fri,
I have a suspicion...give the button a name other than submit.
http://jibbering.com/faq/names/
That's because you can't set the background color of the HTML tag. It
doesn't have that attribute. Even if you could do that, one would override
the other.
What you probably want to do is to set the bg of the body tag, then set the
bg of a container INSIDE the body like so:
-Ori
I must not be getting it, this is whati have now, and it is still not
working as needed.
$(document).ready(function() {
var $select = $('select#campaign_type_select');
var $value = $select.val();
var $coupon_div = $('#campaign_create_coupon');
var $broadcast_div = $('#campaign_create_broa
Anyone have an idea?
On Dec 30 2008, 4:25 pm, TimW66 wrote:
> Hi all,
>
> I have a submit button, and a function tied to it via $('form').submit
> (function() { ... }); When the button is clicked, this function gets
> executed, and the data gets sent to the server. However, I also call
> this
It's a Firebug change. Use console.dir() instead (but I agree--I like
the old console.log() method)
On Fri, Jan 2, 2009 at 1:10 AM, Danny wrote:
>
> Has anyone else noticed that Firebug before 1.2 would treat console.log
> ($('div')) as an array and list all the matched elements on the
> console
You may want to ask on the jQuery UI mailing list:
http://groups.google.com/group/jquery-ui
which is a dedicated list for questions about jQuery UI plugins[*], in case
your question was missed here.
- Richard
[*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-ui/
On Fri, Dec 19, 200
Anyone have any ideals why when the if statement is being by-passed?
I want to be able to change the background of the page,
I can successfully do
$(document.body).css("background", "yellow");
but I have two separate css backgrounds, one sets the body tag and one sets
the html tag.
So how do I set the html tags background
I've tried
$(document.html).css("bac
I'm new to jquery but I have no idea how to do this. Any help would be
greatly appreciated and would lead down the correct path. Thank you in
advance.
There's 2 sections in my form.
1) Vehicle Makes
Basically, I want the user to be able to enter their make if it's not
in the list. Once the user
This had me scratching my head for a while, so I wanted to share it in
case it might help someone else:
It seems that using JQuery's attr() function to set a table cell's
colspan attribute does not always work properly. Sometimes although
the attribute is set properly in the DOM (which can be ve
Hello,
Looking to outsource a project that entails heavy jquery work for home
page for a site thats based on Drupal (D5) CMS.
Any candidates that could get involved with the project immediately or
even maybe have a team that can handle it as time release is critical,
please email me personally f
Hi!
I want to reuse examples of
http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
for an accordion.
Here is Html code:
Question One Sample Text
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi
malesuada, ante at feugiat tincidun
Well, it all depends how you're intending to save the shirt
customisations in the back end!
Assuming you're saving some list of images for shirts (along with
their positions) in your database, there's no reason this couldn't be
done via ajax.
I'd advise, however, making this save in a traditiona
I'm having problems wrapping my head around how to code this:
I have two textboxes both are required. However if a user fills out
one of the textboxes then the other is no longer required.
Any suggestions?
Thanks
Tom
Hello
Sometimes I hav problems with exscale.se's live search tool.
When I integrate it to my site IE7 cannot load the webpage with the
live search tool?
Does someone have a clue or an other livesearch Tool?
Greetings Simon
Ok, this is my script and the piece of html that is related to it.
The HTML:
...
...
The JS code:
$("#productname")
.autocomplete("ax/suggest.html", {
minChars: 2,
max: 10,
scroll: false,
matchContains: true,
I found the problem, it was an extra form tag that I had on the page
nested in my other form tag. I copied and pasted in code for paging
from the table sorter plugin and never removed the form tag from the
example. Once I removed that it worked great. Thanks for your
response. I have to say that t
What version are you using? Also, more of your code (an entire simplified
test page ideally) would help. Also note, there is a dedicated list for
questions about jQuery UI plugins[*]
http://groups.google.com/group/jquery-ui
- Richard
[*] http://rdworth.org/blog/2008/10/jquery-plugins-and-jquery-
Hi
I am trying to do something with Jquery and Ajax
But I am not sure that its possible or not.
its my example, you can see what I am trying to do.
http://www.unikhas.org/design/index.jsp
I want to save all the things after I desing my tshirt.
Is it possible to do that in Jquery or Ajax ?
or shoul
actually , the written javascript directly checks the url of browser nd if
it finds a dff , it fires a location.replace command .
Plz suggest how can i stop this default behaviour.
On Fri, Jan 2, 2009 at 6:51 AM, Ricardo Tomasi wrote:
>
> If the iframe has access to the parent frame it's on the s
Could you post a testpage?
Jörn
On Fri, Jan 2, 2009 at 3:31 AM, nate wrote:
>
> I am using the jQuery Validate plugin with a form in cakePHP. When I
> click submit the form is validated but not submitted to the server.
> When I change the form name From user to user1 it submits properly so
> it
Very good job!! Fantastic!!! Amazing
Thank you!
Dirceu Barquette
2009/1/1 Nathan Maves
> great job guys!
> is there going to be an easy way to view the source of the new functional
> demos?
>
> On Wed, Dec 31, 2008 at 8:03 PM, Richard D. Worth wrote:
>
>> jQuery UI 1.6 release candidate 3
I am trying to write a code for window.open in jQuery. here is my
code:
OpenNewWindow = function(strURL, winName, options) {
this._settings = $.extend({
toolbar: no,
location: no,
directories: no,
status: no,
Thanks for that, never done custom events before.
Unfortunately, the whole idea of saving in the $input.data() doesn't
work - I think this is because It's not technically the same DOM
element, it's a new DOM form element, created from the same markup as
one that had data attachments.
I've attac
jQuery can't really parse xml, only html.
But browsers can:
http://www.w3schools.com/Xml/xml_parser.asp
On Jan 2, 5:22 am, jhm wrote:
> > jQuery needs a context for find() to work.
>
> That worked thanks! The xml file I was really using actually had a
> context similar. But it also had a header
Also,
var params = '{wdgtype:"1"}';
should be
var params = {wdgtype:"1"};
On Jan 1, 11:35 am, tep wrote:
> Hello all,
>
> I am trying to create a widget within .NET that's why using JSONP. But when
> i run the code below, i get the error 'Invalid Json Primitive' on client
> side before calling w
In an event callback function such as the one that's called from .change(),
'this' is not a jQuery object. It is a simple DOM element. You need to wrap
it in $() to get a jQuery object if you want to use jQuery methods. Or, you
can use DOM properties directly.
I would also suggest using a $ prefi
I don't know about the $.fn.myplugin part - that's not how you would
typically call a plugin function in the first place.
But in general, given any object 'foo' and any property 'bar', you can
reference the 'bar' property in either of two ways:
foo.bar
Or:
foo['bar']
If 'bar' is a met
You rock Ricardo! :) Thank you very much.
Just one last question. The submit button (#submitButton) doesn't seem
to be serialized along with other fields... And I need its value. How
would you add it to the post collection?
Regards,
-jj.
On 1 jan, 22:03, Ricardo Tomasi wrote:
> That's what s
The image thumbs don't stay active when selected for some reason. I
still haven't really dove into Galleria yet as I'm working on some
things with Dialog at the moment but I thought I'd mention it...
@Deaven Select "Edit my membership" and choose your notification
preferences...
Hi all i have one jquery calendar
$('selector').datePicker(); which is giving me in dd/mm/
i want to change this format to -mm-dd
i tried with
$.datePicker.setDateFormat('ymd','-');
error: $.datePicker is undefined
and tried with this code
$("#sd").datepicker.setDateFormat('ymd','-')
I found and fixed the problem for Wordpress.
In the header, I had the inline code: Code:
var $j = jQuery.noConflict();
$j(function() {
$j('#tab-panel1 ul').tabs({ fxFade: true, fxSpeed:
'fast' });
$j('#tab-panel2 ul').tabs({ fxFade: true, fxSpeed:
'fast' });
Something like this
var func = 'myFunc';
Can I call the function like this for example:
$.fn.myplugin.(func)();
(I'm using this in a plugin I'm working on)
Thank you very much
I am wanting to stop receiving these emails, but cannot get in to
cancel them. I thought that I cancelled my account, but am still
receiving the emails. Any ideas on how to shut this down?
Deaven Butler
On Jan 2, 2009, at 2:09 AM, Nikola wrote:
Thats great info... I did the same but
Hello all,
a little new the js and jquery any help would be fantastic...
I have this in my linked myFx.js file:
$(document).ready(function() {
var selected_type = $('select#campaign_type_select');
var coupon_div = $('#campaign_create_coupon');
var broadcast_div = $('#campaign_create_broadc
Thats great info... I did the same but in my case the caption text is
missing where as the prev/next buttons are ok.
94 matches
Mail list logo