nevermind. its because parents() runs for each TD (9)
On Oct 30, 11:09 am, noon wrote:
> Kind of large to paste here. My script and resulting HTML can be found
> at:http://jquery.pastebin.com/m3f98dd99
>
> If you look towards the bottom you will see the following:
>
> .pa
Kind of large to paste here. My script and resulting HTML can be found
at: http://jquery.pastebin.com/m3f98dd99
If you look towards the bottom you will see the following:
.parents('td.embedded td.latest')
.each(function(i) {
$(this)
.append(new_table)
.addClass('
I'm trying to throw the field is required option on a select when its
selected option is my default option of dashes/0. I might be going
about this the complete wrong way with the required (dependency-
callback). Help is appreciated. My HTML/JS may make more sense than
this quesiton
HTML:
I didn't notice until now that my quotes are already being escaped
somewhere between after I call $.post() and when my php page picks
them up. I have been using mysql_real_escape_string for the way into
the DB and strip_slashes for the way out.
I don't really want to strip_slashes before I post
sorry, I am incorrect. I forgot there were multiple forms. That
should work
On Jul 16, 2:29 pm, noon <[EMAIL PROTECTED]> wrote:
> livequery accepts two parameters, the first is the event to which a
> function (the 2nd parameter) is bound to.
>
> $('a.someLink')
livequery accepts two parameters, the first is the event to which a
function (the 2nd parameter) is bound to.
$('a.someLink').livequery('click', function() {
// anchors with a class of 'someLink'
// can now be dynamically inserted to the dom
// yet still have an 'onclick' event associated w
Anyone on this?
On Jul 14, 10:27 am, noon <[EMAIL PROTECTED]> wrote:
> I am using jMaps to add a point to my map and inside the point bubble
> I have a link to add the searched location to a favorites list. I am
> using livequery to catch the event handler for this dynamically
What exactly is the return from die? Is there an id field in bttt, or
are you mistaken and it should be board_id? Every post variable
passed is a string unless it is eval'd IIRC.
On Jul 14, 3:24 pm, jbhat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> So i use $.post to call click.php. The variables are
fadeIn/fadeOut can take a second parameter, a callback. I would
assume in your case that the $('app') is hidden and you are fading it
in slowly, but you don't wait until that fade in is complete and have
it fade out, therefore appearing as its doing nothing at all.
$("#app").fadeIn("slow", funct
Use an anonymous function wrapper.
$('li').livequery('click', function() {
deleteitem(id);
});
On Jul 15, 4:17 am, Tom Shafer <[EMAIL PROTECTED]> wrote:
> i got livequery to bind but i need to be able to pass a variable to it
>
> lets say i have a function like deleteitem(id)
> how can i make
If your form is dynamically created you can use livequery on that
too. I notice you have 'onclick' in yours which is incorrect
$('#addLinksForm').livequery('submit', function() {
$('#addLinks').livequery('click', function() {
// stuff
}
}
On Jul 15, 12:34 am, Tom Shafer <[EMAIL PROTECT
No. Suggestion: modify your php page to accept a POST/GET variable
specifying the function that you wish to be run...
On Jul 14, 10:11 am, Yavuz Bogazci <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is it possible to call php functions from jquery? I knew how to call
> a .php page from jquery with $.post
I am using jMaps to add a point to my map and inside the point bubble
I have a link to add the searched location to a favorites list. I am
using livequery to catch the event handler for this dynamically
created point bubble HTML/link. However nothing is firing. I've
tripled checked my ID names,
Should you? Well if thats the only javascript on the page there isn't
much point in including a library for something like that.
However you could do it by saying:
// jQuery's document ready
$(function() {
// grab the button and assign event
$("#Cancel").click(function() {
window.locatio
First of all, you should be assigning your content links (the ones on
the left) classes and not IDs. Not only is it bad practice, but
jQuery will stop after it hits the first one.
Second of all,
$("a").click(function () {
var filter = $(this).attr("id");
$("li").not(filter).not("
Don't understand when this could occur to make any sense for images
being inserted like this without an example, but at any rate...
You'll have to think about when and how this is triggered in order for
these if statements to be executed because as said, i don't understand
switch ($('#main').att
ig enough
> to display it properly ?
>
> Make it bigger and see what happens.
>
> L
>
> noon wrote:
> > I wrapped it in a div and slid the div. Still same problem, visible
> > again athttp://nunyez.googlepages.com/slidedowntest
>
> > On Jul 8, 6:37 pm, Karl Swe
___
> Karl Swedbergwww.englishrules.comwww.learningjquery.com
>
> On Jul 8, 2008, at 8:31 AM, noon wrote:
>
>
>
> > Anyone have any ideas on this one? It's really stumping me.
>
> > On Jul 7, 9:15 am, noon <[EMAIL PROTECTED]> wrote:
> >>
at to do with the event handler. I gave the links ids of
> "cross-link1", "cross-link2", etc. and tried this:
>
> $('#cross-link1').click(function() {
> location.reload(true)
>
> });
>
> but it doesn't really do anything.
>
> Thanks a
5Body text." ); }
> else {document.write( "Title 1
> >Body text." ); }
>
> I the if/else statement doesn't seem to be working. Also, it only
> reads the current hash on a manual refresh of the page. Here is the
> link if helps any:http://www
I see your problem now. What about using a z-index and have them
float on top of each other? This way no element is kicked out of
position. I don't know your CSS savvy but having a container for the
item with a position of relative, and then the children with absolute
positioning would have the
alert(document.location.toString().split('#')[1]) will get you the
hash. From there an if statement or a switch/case would serve you.
On Jul 8, 8:54 am, mitchel <[EMAIL PROTECTED]> wrote:
> Hello.
>
> Admittedly, I know very little about jQuery or javascript in general
> but it seems like it shou
Anyone have any ideas on this one? It's really stumping me.
On Jul 7, 9:15 am, noon <[EMAIL PROTECTED]> wrote:
> I don't know why it does this. I am experiencing hidden content (the
> username label) until the animation is complete and the "bump"
> oc
I'm aware that it binds opening to the click function but I want to
open without click.
On Jul 7, 6:19 pm, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> noon wrote:
> > All jMaps functions never seen to return a handler that I can use, but
> > only fire the callback if
All jMaps functions never seen to return a handler that I can use, but
only fire the callback if provided. I used jMaps to add a marker and
centered the map. On this newly created marker, how can I get to the
other G* methods such as openInfoWindow?
Cut and pasted your example. Works fine for me. Do you not have an
"onready" opening function, eg $(function() {}?
On Jul 7, 10:04 am, SimDigital <[EMAIL PROTECTED]> wrote:
> How could i replace a html content inside the div?
>
> I have 1 div (ini text) and everytime i click a
> button, i want to
I don't know why it does this. I am experiencing hidden content (the
username label) until the animation is complete and the "bump"
occurs. See it for yourself
http://nunyez.googlepages.com/slidedowntest
Help appreciated
I have the following HTML structure:
...
...
I have the following code:
$('#new-msgs')
.appendTo('#prev-msgs')
.wrap('');
I want everything inside #new-msgs to be appended to #prev-msgs, and
not #new-msgs as well. Using a selector of "#new-msgs *" loses the
h
I have the following code which is clearing the contents of an input
box and modifying its css.
$('.untouched')
.focus(function(){
$(this).val('');
$(this).removeClass('untouched');
$('.add-msg').css('display','inline');
})
.
Thanks a lot !
$("p.more a").click(function() {
$(this).parent().siblings("div.overflow").toggle();
$(this).toggle(
function() {$(this).html("« Less"); alert('1');},
function() {$(this).html("More »"); alert('2');}
);
});
I am referring to "p.more a" when
http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery
This url used to display fine in IE6 (im pretty sure...) and now when
I open it, the 2-column content is hidden as soon as jQuery fires (on
ready). Why is this happening? I've tested this on two machines
running IE6. Is this happening to
=== jQuery code ===
$(function(){
$("a.toggle")
.click(function(){
if ( $(this).parent("fieldset").hasClass("collapsed") )
{
$(this).parent("fieldset").removeClass("collapsed");
}
Hello, i've been writing javascript for a while now. So, as you can
imagine I am struggling just a bit. I browsed a few of the beginner
tutorials and didn't see what I was looking for. I understand that
methods like .is or .hide are special to the jquery library and you
can't access these using
> Instead, make your code a static function:
Mike,
You're a huge help! That all makes much more sense now. Here is what
I ended up with:
(function( $ ) {
$.rjax = function(options) {
$.ajax($.extend({
dataType: "script",
beforeSend: function(xhr) {xhr.setRequestHeader("Accept
35 matches
Mail list logo