After at least 4 hours in Firebug and CSS code, I switched something
that started working. I'm amazed at how difficult it was to do, when
it should have been so simple, but all's well that ends well. Thanks
again.
Forgot to mention, your id for your anchor is invalid; it should begin
with a letter (which is why I changed it in the code above).
On Mar 7, 9:12 pm, mkmanning wrote:
> You can also create your html in jQuery such that you can bind your
> event at the time:
>
> $('').attr({'id':'id_1','href':'#
You can also create your html in jQuery such that you can bind your
event at the time:
$('').attr({'id':'id_1','href':'#'}).addClass('test2').text('test
again').click(function(){
event.preventDefault();
alert($(this).attr("id"));
}).appendTo('#testing');
On Mar 7, 5:19 pm, brian wrote:
>
Thank you guys! I did not know that jquery can handle only its 'own'
bound events. I will have to use mootools as it works fine. I just
wanted to avoid mixing jquery and mootools in the same function.
Hi,
I am having some issues with my site. I have a main Nav with four links that
load in 4 different sections.
You can see the page I am working on here:
http://idea-palette.com/official/newofficialsite4.html
http://idea-palette.com/official/newofficialsite4.html
What I am trying to do is,
I have the same problem with .find, except running against an HTML
string (not AJAX related).
ie something like:
jQuery(somehtml).find('link').each(...
IE,FF,Opera all find the elements ok - chrome & safari just don't find
them.
jQuery JavaScript Library v1.3.2
J
On Feb 7, 4:48 pm, pedalpet
This article will point the way
http://www.learningjquery.com/2008/03/working-with-events-part-1
On Mar 7, 8:30 pm, MorF wrote:
> Hi there,
> I have a problem, and I haven't found the solution after even ater
> googling a lot.
> I have a funtion written, which generates elements
> for example
Hi there,
I have a problem, and I haven't found the solution after even ater
googling a lot.
I have a funtion written, which generates elements
for example
[HTML]
this is a div
[/HTML]
And then I've also written a function which should give an alert after
clicking the div "generated"
$(".gener
With the markup example in the OP, use this:
var dp = $('#deal-post tbody tr');
dp.find('input[name^=dealAmount]').keyup(function(){
var amount = $(this);
$('#deal-summary tbody tr:eq('+dp.index(amount.closest('tr'))
+')').find('td.inc-current').text(amount.val());
});
On Mar 7
if($(this).value == $("#user").value
should be
if($(this).val() == $("#user").val()
On Mar 7, 7:05 pm, "namiras...@googlemail.com"
wrote:
> I have a Username field and a repeat Username field. The repeat one
> calls this function
>
> $("#user2").blur(function()
> {
> $("#msgbox_check").remo
http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F
On Sat, Mar 7, 2009 at 7:21 PM, method8 wrote:
>
> Each time I add new HTML to a div, either by .html('') or by .load...
> it looks great but it seems that the newly added html's event do not
On Sat, Mar 7, 2009 at 5:31 PM, Miguel wrote:
>
> Here's what I'm trying to do:
>
> Jquery:
> *
> $(".test").click(function(event){
>
> event.preventDefault();
>
> $("#testing").html('test again a>');
>
> });
>
> $("#test2").click(function(event){
>
> event.preventDefault();
> Another option, though less desirable, would be to make the slides all
> the same width, even if the picture inside is different. Then I could
> at least have a background on the entire slide. The way it is now,
> the slide size is being set by Cycle, so I can't even get the
> background to lo
Each time I add new HTML to a div, either by .html('') or by .load...
it looks great but it seems that the newly added html's event do not
bind to the page's javascript/jquery. That means that a span or a div
cannot be clicked even if it's been added. Any ideas how to solve this
issue?
Thanks
I have a Username field and a repeat Username field. The repeat one
calls this function
$("#user2").blur(function()
{
$("#msgbox_check").removeClass().addClass('messagebox').text
('Checking...').fadeIn("slow");
if($(this).value == $("#user").value)
{
$("#msgbox_check").fadeTo(200,0.1,function
Here's what I'm trying to do:
Jquery:
*
$(".test").click(function(event){
event.preventDefault();
$("#testing").html('test again');
});
$("#test2").click(function(event){
event.preventDefault();
alert($(this).attr("id"));
});
***
html:
Another option, though less desirable, would be to make the slides all
the same width, even if the picture inside is different. Then I could
at least have a background on the entire slide. The way it is now,
the slide size is being set by Cycle, so I can't even get the
background to look right.
On Sat, Mar 7, 2009 at 6:21 PM, Josh Powell wrote:
>
> 6 of one... half dozen of another...
I don't buy that. I've suggested using an attribute whose purpose is
well defined. Making up attributes that aren't represented by the
DOCTYPE is a bad idea. Don't get me wrong--I've done it before. Thoug
6 of one... half dozen of another...
On Mar 7, 12:04 pm, brian wrote:
> On Sat, Mar 7, 2009 at 2:16 PM, Josh Powell wrote:
>
> > Why do you have the [] characters in the name of the elements? That
> > might screw up selectors.
>
> PHP, likely. But there's no need to use the name in the selecto
Here's an even better set of console.log() calls:
$.getJSON(friendURL, function(friends){
console.log( 1, friends.length );
$.getJSON(replyURL, function(replies){
console.log( 2, friends.length );
$.extend(friends, replies);
console.log( 3, friends.length );
});
consol
On Mar 7, 2009, at 4:20 PM, ricardobeat wrote:
this seems to work:
scrubbed = code.html().replace(/]*-->/gi,"");
I don't think that is going to work, either (at least, it didn't for
me in firebug). You're probably expecting the character set, [^-->],
to negate the string "-->", but it d
What is the exact name of your plugin function as defined in line 13 of your
pastebin code? Is it "psHover" or is it something else?
-Mike
_
From: Sergio Michels
Hi all,
i'm trying to build a plugin that create ":hover" and ":active" rules in my
form (to work with ie sucks). But when
I've been trying to get these centered and I can't for the life of me
figure out how to do it. I've tried putting extra divs on the
outside, using every display property available and I still can't get
it.
http://derekperkins.com/seatability1/test-post-on-bill/
I really just want the outer cont
Put some console.log() calls in your code and run it with Firebug enabled:
$.getJSON(friendURL, function(friends){
console.log(1);
$.getJSON(replyURL, function(replies){
console.log(2);
$.extend(friends, replies);
console.log(3);
});
console.log(4);
$.each(friends,
I'm working on a Twitter webapp, and I want to display both the
friends_timeline and replies streams, mixed together in chronological
(or reverse chronological) order. (FYI: the replies stream collects
tweets from people you *don't* follow as well as people you do. That's
why I want both.)
I can
Hi all,
i'm trying to build a plugin that create ":hover" and ":active" rules in my
form (to work with ie sucks). But when i call the plugin, i receave this
error: "$("input").psHover is not a function".
Anyone?
Pastebin: http://pastebin.com/f20a1fea5
I'm currently using cluetip with livequery, but is it possible to use
it with live too?
$('#mydiv a.tooltip').livequery(function(event) {
$(this).cluetip({cluetipClass: 'tooltipclass', width: 400});
});
Using the below code doesn't seem to work very well if the c
Hello,
I have two different horizontal carousels located sideby side in two
table cells in a one row/two columns table (of course the images
located in ul lists). In Firefox this is working fine, but IE7 expands
the cells up to the total width that all images need resp. to the
width the ul element
The demo that combines datatables.js with jEditAble.js
athttp://www.datatables.net/examples/example_editable.html is not
ready for prime time.
As a database developer, I think this union is fantastic. I'll make a
$100 donation to both jEditAble.js and Datatables.js if we can get a
professional im
this seems to work:
scrubbed = code.html().replace(/]*-->/gi,"");
The expression you had would eat everything between the first "". There's probably a more elegant way to do it, but
I can't help any further.
cheers,
- ricardo
On Mar 6, 4:10 pm, Adam wrote:
> Hey there,
>
> I'm trying to use J
You can satisfy condition 1 and 3 with this:
$('a:not([href*=javascript])[target!=_blank]')
But it's not that easy for nº 2. What is saved on the onclick
attribute is a function, not plain text. You can see the source code
of the function with the .toString() method, so you could do this:
$('a:
function weightTotal(){
var total = 0;
$('.weight').each(function(){
total += +$(this).val(); //if it's an empty string +"" == 0
});
$('#grand_total').html( total + "%" );
}
cheers,
- ricardo
On Mar 6, 9:58 pm, shallowman wrote:
> Hello all,
>
> I am trying to add the values
For those of you who may still be looking for a solution, we commented
out line 67 of jquery.treeview.js which reads
toggler.apply($(this).next());
This fix appears to work. Any comments would be appreciated,
especially from Jorn.
On Feb 25, 10:30 am, Mike B wrote:
> Jorn, could you be more sp
On Sat, Mar 7, 2009 at 2:16 PM, Josh Powell wrote:
>
> Why do you have the [] characters in the name of the elements? That
> might screw up selectors.
PHP, likely. But there's no need to use the name in the selector.
> Another options is to give the dealAmount inputs a new attribute with
> a v
It will be an actual 19k across the wire if your web server has GZIP
going on the file will still show as 56k whether GZIP is on or
not
On Mar 7, 11:15 am, JohneeM wrote:
> Ok im obviously missing something here but on the JQuery home page it
> advertises the fact that its 19kb, when you
Hello,
I have a series of tabs on my page that I'd like to have dynamic
content inside. Throughout the course of reading over multiple issues,
I've discovered that what I'd like to do most likely can be done; but
I may be taking the wrong approach. First, a copy of my script block:
Why do you have the [] characters in the name of the elements? That
might screw up selectors.
Another options is to give the dealAmount inputs a new attribute with
a value of an incrementing numbers, foo="0" say. As long as the post
amounts are in the same order you could:
$('[name=dealAmount'
In the jQuery documentation under animate there is an example as
follows:
$("#go3").click(function(){
$("#go1").add("#go2").click();
});
which is used to transform 2 blocks below the example code.
I have an image carousel with 7 images in a row with right and left
pointing arrows at e
Long answer:
Check out the section on Traversing in the jquery documentation on the
site. Lots of good examples and documentation on there.
Short answer:
console.log($(element).children()));
On Mar 7, 1:33 am, Alain Roger wrote:
> Hi,
>
> i need to debug jQuery code and i would like to know
Is there a specific part that's inconceivable? I can imagine one way
to do it--probably very similarly to how Facebook does it--which
follows.
Markup-wise, the containing div + image must look roughly like
The JavaScript watches for click-dragging on #small-profile-img, and
sets #small-profi
For starters, give each of your dealAmount[] inputs an ID according to
the "Posting" index. Something like "deal_amount_1", "deal_amount_2",
etc.
Next, do the same for the inc-current TDs. Give each an ID like,
"whatever_1", "whatever_2", etc.
Grab all of the inputs using $('.deal-post') and appl
Ok im obviously missing something here but on the JQuery home page it
advertises the fact that its 19kb, when you actually download the .min
file its 56k. Thats quite a difference!
Is it possible too get it 19kb?
Hello
can some body help my. I have from with two combo box( all listing cities).
I need to be able to validate the combo box value so if their value is
different then submit the form else no
thnaks
Hello every one
i am new and need to use Validaiton plug in to validate two from can some
body help me
thanks
document.ready means "the DOM is ready", you'll be fine creating nodes
there
window.load is used when you need to wait until images are loaded and
"after the fact" stuff happens
On Mar 6, 11:58 pm, Bob wrote:
> I am moving an app to the jquery framework. There is a good deal of
> script that I
download plug in, include the script on page, follow plugin API
bharani kumar wrote:
Assum for example i want this plugin
http://plugins.jquery.com/project/Plugins/category/20
Add to list,
How to customize this into my work area,
Can some one share your ideas,
thank
Assum for example i want this plugin
http://plugins.jquery.com/project/Plugins/category/20
Add to list,
How to customize this into my work area,
Can some one share your ideas,
thanks
--
உங்கள் நண்பன்
பரணி குமார்
Regards
B.S.Bharanikumar
POST YOUR OPINION
http://bharanikumariyerphp.site88
Thanks for your reply.I reviewed the code and it was a structure
problem, I've set a few things up differently and now it works.
Thanks :)
On Mar 6, 10:01 am, James wrote:
> I don't see any issues with the code you posted. I suggest try
> removing some code from inside-out to debug. Start by rem
I've tried getting this to work properly in IE with a variety of
different methods, and none are working. The page in question is here:
http://elixir.biz/coders/marlins/incoming/photos.php
If you hover over the "blue team" text it will display a drop-down
menu. However, in IE6 and IE7 once you've
I want to find out if a particular absolutely positioned element on my
page is visible. I want to use offestParent() to cumulatively add up
the offsets from the 'root' of the document, and use $
(window).scrollTop() to find out the amount of scrolling. My code
(excluding the calculation of the scr
Is there a jQuery plugins which can be used for implementing that face
markers like in Facebook and Orkut Photo albums?
Or anybody have any leads on how to start to build one for the same?
Thanks,
Saneef
+91 98861 35466
http://saneef.pixelring.net/phoogler
http://twitter.com/saneef
I am moving an app to the jquery framework. There is a good deal of
script that I don't want to load until the landing page is up, and
this includes dom node creation and manipulation that I want to tie in
to the jquery event structure.
This would seem to dictate window.onload instead of $(docum
I just can't figure that out!
On FB, you get to change the thumnail for your profile picture.
You have a containing div with dimensions of about 50x50 and you can
move the image (which is actually bigger) inside that containing div
until it displays what you want.
Ideas?
Hi guys, let's get straight to the problem.
First, I have this "deal-post" table (actually content is
generated dynamically from PHP code, but I omitted it here and make it
static for simplicity sake):
Posting
Descriptio
Hi
If someone knows a place to post jquery jobs, please let me know.
We are looking for a subcontractor for a couple of our a week. Which
may depend on the developer availability.
If you're interrested, please send your resume, rate and contact
information to j...@vimba.ca
Position : Javascrip
Is there is why to make the superfish menu go from right to left and
not left to right?
I'm dynamically creating several elements which I want to
rotate with custom degree, append it to some div, and bind onclick
method to them. I tried jquery-rotate and Wilq32.RotateImage, but they
don't work like they should - it seems to me that call to rotate
function somehow breaks a command ch
Hi,
so i found why my code was not working...basically i found the reason but
not how to walkaround it for now.
in fact my data cells (2nd table) is loaded with a getJSON data collection
(as you can see below):
$.getJSON("lg.php",{ start: 0, offset : 10 },
function(data)
{
i want to select "a" tags that :
1.it's href dos not contain "javascript:"
2.its onclick attribute dos not contain "return false"
3. and it's target is "not _blank"
i wrote this rules with jQuery like this 2 codes but it's not working
true, where is my problem ?!
1.
$("A :not('a...@on
Hi,
i need to debug jQuery code and i would like to know if there is an easy way
to display (as alert or into FFconsole) the children tags of a particular
element ?
thanks
Al.
Hi james,
Thanks for your quick reply. Here is my code.
HTML CODE
--
TopLeft
TopRight
BottomLeft
BottomMiddle
BottomRight
Required JSON Look like
---
61 matches
Mail list logo