Just wanted to add a strange behaviour, I recognized inspecting the
code at runtime with firebug.
When I set a breakpoint in the line after I set the load image ($("img
[name='imageChange']").attr('src',
'load.gif');). The image is correctly displayed and stays after I
continue execution until the
$("#txt").focus() function() {
// this is when the user tabs to the control or clicks on it
});
$("#txt").blur() function() {
// when the user tabs out or clicks on something else
});
if you check the JQuery events page you will other helpful event
like :
keyup
keydown
mouseup
mousedown
you can
Hi jQuery,
when I clone a div that contains input fields with ajax then the cloned
version will not
do any ajaxing? is this normal?
btw: I do use clone( true )
regards,
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
Hi all.
I am using cluetip successfully on a multiple-tip, dynamic site to
show a preview of a customer testimonial with a link inside the tip to
go to the full testimonial. The cluetip is attached to the A tag
surrounding the icon (of the customer's company logo). All
testimonials are inside a
Working example: http://www.williamworley.com/jquery/createposting.php
So I seemed to have figured out a way to get this to work correctly
but its more code than I would like for using jquery.
Basically what I've done is make it so you have form validation using
Jorns Validation Plugin per tab w
Thanks for the tip and also the cycle plugin - It works great!
-- Forwarded message --
From: Mike Alsup
Date: Jun 16, 4:17 pm
Subject: Need help cuz I don't get 'this'
To: jQuery (English)
> $(this).find('img').attr('src');
jQuery selectors accept a 2nd argument for context,
You can do a normal post in an iframe, with URL encoded JSON (decode
server-side), just watch the max string length for a URL.
On Jun 16, 4:43 pm, Rosa Spina wrote:
> Thanks for answer.
> Yes, It's a post request for a page located on a different domain:
> fromhttp://localhost:8080tohttp://loca
Or simply $('.open').removeClass('open'), iteration is built-in :)
On Jun 16, 3:02 pm, brian wrote:
> $('.open').each(function()
> {
> $(this).removeClass('open');
>
> });
>
> On Tue, Jun 16, 2009 at 1:17 PM, Dave Maharaj ::
>
> WidePixels.com wrote:
> > I have 5 divs which can load content
Hi
I am using jQuery data store and wished to make deep copy of elements,
including all the data stored with jQuery.
So I'm using the allData plugin provided here :
http://stackoverflow.com/questions/999535/how-to-get-from-an-element-all-the-data-set-using-the-data-method
also I made a qui
Mike Alsup,
Thanks so much for pointing out the obvious; no really, I mean it
sincerely. I so often overlook the obvious, to my cost. I didn't realize
that I could simply pass a bare integer to the cycle call.
Admiration and gratitude for a wonderfully well thought out and effective
tool!
Um, java?
I think what you want i something likevar params = {
TotalApartmentsServed: $('#TotalApartmentsServed').val(),
TotalWashroomsPerApartment:$('#TotalWashroomsPerApartment').val(),
TotalPowerPipeUnits: $('#TotalPowerPipeUnits').val(),
DrainStackLength: $('#DrainS
Hi All,
I have the following code, which I am trying to pass in 5 variables.
$(function(){
$('#DrainStackDiameter').change(function(){
var params = {
TotalApartmentsServed: $('#TotalApartmentsServed'),
TotalWashroomsPerApartment:$('#TotalWashroomsPerApa
On Jun 17, 3:46 am, theprodigy wrote:
> I've been trying for a while to alter the second to last row of a
> table. I've tried several ways. The number of rows is dynamic so I
> can't hard code a number into nth-child. I used $rowNeeded =
> $thisRow.parents('table:first').children().children().l
Hi all,
I am using validate (1.5.4) plugin to validate numeric input field
with max:5000.00. When the numeric value is formatted as "2,999.00",
the max validation failed. After some investigation, it turns out the
max function compare the value "2,999.00" as string with 5000.00
instead of 2999.
>
> Foo text
> Bar text
> Baz text
>
> If anybody has a cleaner solution, I'd sure love to know about it.
This is what I'd do:
Foo text
Bar text
Baz text
$(function() {
$('#cycleport').cycle({
prev: '#
I use jQuery 1.3.2 and tried to use:
$('.applied').each(function(){
$(this).css('background-color', '#ff').animate
({backgroundColor: "#000" }, "slow");
});
For some reason, the background doesn't change and my firefox debugs
the error o
ok, I'm having a really tough time with this.
here's a part of my code (most of this Thanks to Karl, part thanks to
mkmanning, very little thanks to me, lol):
$('a.moveup').click(function(event) {
var $thisRow = $(this).parents('tr:first');
var $thisTable = $('#main_table');
Ahh, great. Thanks.
On Jun 16, 11:05 pm, Ricardo wrote:
> Standard CSS selector for multiple classes. liEven is not a descendant
> of .liRow, just put them together:
>
> $("#ulList .liRow.liEven:first")
>
> On Jun 16, 9:57 am, Dave wrote:
>
>
>
> > Hi
>
> > How do you get the first element when
Assuming the second input field is triggered by a user instigated event,
then you could just trigger that event.
$('input#change').click(function() {
$('input#source').attr('value', 'This is the value changed by a
button');
$('something').trigger('blur',fn);
});
-Original Mes
> $(this).find('img').attr('src');
jQuery selectors accept a 2nd argument for context, which makes this a
bit more readable, imo:
var src = $('img',this).attr('src');
Hi, I'm trying to change the value of an input field (target) which
depends on another input (source). It works well when I manually
change the source value. But if I changed the source value with
another button, the target value remains the same. Here's the code...
$(document).ready(function() {
Standard CSS selector for multiple classes. liEven is not a descendant
of .liRow, just put them together:
$("#ulList .liRow.liEven:first")
On Jun 16, 9:57 am, Dave wrote:
> Hi
>
> How do you get the first element when the element got multiple
> classes?
>
>
> 1
> 2
>
>From a different forum I got this which works:
$(this).find('img').attr('src');
On Jun 16, 11:18 am, Logictrap wrote:
> I'm using the jqery cycle plugin with an onAfter & OnBefore function.
>
> These functions process the current div as 'this' - what I sent was
> the code in my div that is get
I watched a slidedeck today which talked about developing for WebOS, which
is all based around JavaScript. Does anyone know if it's possible to use
jQuery for WebOS development?
andy
OK, there were no takers on this. In the unlikely event that anyone's
interested, here's the work-around that I arrived at. It's simple enough
that I think it will not cause me any problems, but I sure would like to
know what the "right" solution might be.
In the HTML, an image collection like t
Thanks for answer.
Yes, It's a post request for a page located on a different domain: from
http://localhost:8080 to http://localhost:8081 (two tomcat istances). I know
it's not allowed by cross domain rules, in fact I use Json for get requests,
but I don't know how to do with post requests because
Hello,
Here is my situation. I have an autocomplete control on my page that
is working perfectly. I wanted to mimic a drop down menu by placing an
image just to the right of the text box. When a user clicks that drop
down arrow image, I want the whole list to display below the textbox.
So far, I
The error means you're trying to access a resource that located on
another domain.
You can only use AJAX POST or GET on a resource that is located on the
same domain as the page that is calling it.
If that is the case in your scenario, could you provide more code for
us to locate the issue?
On J
You can simplify your approach; it's not necessary to copy the
properties to the new link as you can just get them at runtime when
the link is clicked (you also don't need to iterate over all the
anchors):
$('').click(function(){
var props = $(this).prev();
//do your modal stuff h
I didn't have this mail issue, but there was this weird thing that
happened yesterday where when you log into jQuery groups, you were
asked whether the content is spam or not. The jQuery group, all your
posts and favorites from the jQuery group all disappeared from your
profile and favorites. But
Make sure the page your Javascript is on is also also uses utf-8
content-type (e.g. in meta tags). Same for your PHP script.
On Jun 16, 1:45 am, Obi1 wrote:
> Hi,
>
> I'am having a bit of a problem with special chars in a getJSON
> response which is the result from php and smarty
>
> the file ca
Yes, please define "not working".
The problem most likely lies in what is returned here:
var pageData = document.getElementById("MainDiv").innerHTML;
to be used in the $.ajax() call.
On Jun 16, 6:44 am, Rosa Spina wrote:
> brian ha scritto:
>
> > Define "not working". That's a bit vague. Also,
IE seems to have a problem with returning the correct header for the
XML content-type. You'd have to either have the server force the
content-type text/xml for .xml files, or if generated through a script
(e.g. PHP) have the script set the header content-type when serving
the XML.
I've came upon a
$('ul').find('li[typeref=E][typeid=1]')
NB: an id attribute that starts with a number isn't valid markup.
On Jun 16, 10:05 am, Paul Hutson wrote:
> Hello,
>
> I've been trying to work this out for a bit now but seem to have come
> a bit unstuck.
>
> I'd like to be able to use .find to search a
A couple quick examples that might help (there're many more ways):
console.log( $('table tr:last').prev() );
var trow = $('table tr');
console.log( $(trow[trow.length-2]) );
console.log( trow.eq(trow.length-2) );
Modify the selectors as needed for multiple/nested tables.
HTH
On Jun 16, 10:46
Hi,
I've been working on a project that uses xml. But for some reason, it
does not work in internet explorer. And after hours and hours of
debugging, I cannot figure out why. I would deeply appreciate it if
you could help me. I hope this isn't asking too much, but what is
wrong from the code belo
$('.open').each(function()
{
$(this).removeClass('open');
});
On Tue, Jun 16, 2009 at 1:17 PM, Dave Maharaj ::
WidePixels.com wrote:
> I have 5 divs which can load content into them. I have added an on click add
> class open. When the page loads initially none are open, click on one link
> an
I've been trying for a while to alter the second to last row of a
table. I've tried several ways. The number of rows is dynamic so I
can't hard code a number into nth-child. I used $rowNeeded =
$thisRow.parents('table:first').children().children().length - 1 to
get the second to last row, but it d
It's weird. My groups settings are still set to "No Email" but they
keep coming!
Mike
I'm tasked with created a series of filters with checkboxes.
for example lets say i have 3 categories, customers, groups, acccount
customers contains groups and groups contain accounts.
i want to be able all records as checkboxes in 3 different sliding
panels on the same page. Then as any chec
I have 5 divs which can load content into them. I have added an on click add
class open. When the page loads initially none are open, click on one link
and the open class gets added but if another link is clicked i need to
closed the open tag.
How can tell jquery to look for an open tag if it fin
Hello,
I've been trying to work this out for a bit now but seem to have come
a bit unstuck.
I'd like to be able to use .find to search an element and find
out if there are any items with two attributes the same as a search
choice.
i.e. : My UL looks like this :
Element 1
Element 2
Does anyone know if it is possible to upload a file from a jquery modal form
(http://jqueryui.com/demos/dialog/#modal-form) ?
I just need some help with the ajax call. The back-end will be asp with
AspUpload that will handle the file upload.
brian ha scritto:
Define "not working". That's a bit vague. Also, where are you calling
your function from? Can you confirm that it is being called?
Something like this might work for you:
function PostHTMLContentTOServer() {
$.ajax({
url: "MyData.aspx",
Does anyone else find the plugin site (http://plugins.jquery.com/)
difficult to use? It's great that there are so many plugins to choose
from, but it sure makes it hard to find what you need. I only use
jQuery and the plugins occasionally, so I'm not always up to date on
the "best of breed" plugin
This is a complete noob question for which I apologize in advance. I
have a form that creates multiple instances of a contact text box that
I want to use the same Autocomplete function. The ids on the fields
are dynamic. The code as I have it works but rather than creating a
function for each f
Can anyone clue me in on situation with the AJAX history management
for JQuery 1.3.2?
All the plugins I could find are outdated in terms of browser support
and flexibility. This one: http://stilbuero.de/jquery/history/ looks
like the most polished but does not seem to work with 1.3.2 at all.
Wok
I'm using the jqery cycle plugin with an onAfter & OnBefore function.
These functions process the current div as 'this' - what I sent was
the code in my div that is getting passed as 'this'.
I can see that using children is the way to get the attribute I want,
but I don't quite understand how to
I have a div which loads a form. On that page I have other buttons that get
i need to disable until the form is submitted preventing the user from doing
anything other than submit or cancel.
If they submit the form i then need to enable all the buttons but that's not
working.
I have:
function f
Hey guys,
i have following problem: When the user on my website presses a image
link, I prevent the default behaviour, and toggle some table rows
(show or hide them, depending on the the image src (closed.gif /
opened.gif)). Since I got a lot of rows I run over and toggle, the
function takes some
Define "not working". That's a bit vague. Also, where are you calling
your function from? Can you confirm that it is being called?
Something like this might work for you:
function PostHTMLContentTOServer() {
$.ajax({
url: "MyData.aspx",
type: "POST",
I suppose you can switch key and value
On Jun 16, 8:02 am, Sanjay Khandkar wrote:
> Hi,
>
> I was able to obtain the key or display name from autocomplete list
> using your example of "email".
>
> The problem is this
>
> a. Search should take place on the "display" field (in the name field
> - r
Maybe something like this:
$('a').each(function()
{
var self = this;
var btn_link = $(''+$(self).text()+'');
var href = $(self).attr('href'); // to be used in modal code
$(btn_link).click(function()
{
// set up your modal code here
$("#modal").jqm({
ajax:'@href',
ajaxText: '
There wasn't much chatter on the jQuery day here on the group last
year either (yet it was packed!)
So i wouldn't gauge interest in it by this mailing list :-)
On Jun 16, 10:41 am, ak732 wrote:
> So... is there no interest in a jQuery conference up in Boston this
> year?
>
> Incidentally, thi
Hi all,
I'm newbie to Jquery so excuse me for dummy question.
I'm facing with the issue of making a call to another domain with
mozilla firefox. When I need a GET request, I use JQuery.getJson and
it works fine. The problem is when I need to do a POST request, I
tried with:
jQuery.post(
Hi,
I'am having a bit of a problem with special chars in a getJSON
response which is the result from php and smarty
the file called by the getJSON is something like this:
compile_check = true;
$smarty->debugging = false;
$smarty->template_dir = $CFG->smartydirs . "/templates";
$smarty->
Hi,
I'm trying to figure out how to set up dynamic sorting and was
wondering the best way to approach it (and maybe an example). Any
suggestions?
I've also tried adjust scrolling sensitivity, but no luck with:
var myScroll = $('.selector') sortable('option', 'myScroll');
Thank you.
Thx for sharing ... could you explain please ?
On May 29, 2:49 pm, weidc wrote:
> found a way.
>
> On 29 Mai, 11:44, weidc wrote:
>
> > hi,
>
> > i need to know all days of a month / year.
> > for example today is friday 29. and the month got 31 days. ( at the
> > moment i just know that today
Well, at first, sorry about my english.
The question i have is: "How can i have a match in the results list
when the letters maching only are in the second or third word?"
Is it possible?
I'm going to tell you an example. In the demo page (http://
jquery.bassistance.de/autocomplete/demo/) at fi
Hi,
I was able to obtain the key or display name from autocomplete list
using your example of "email".
The problem is this
a. Search should take place on the "display" field (in the name field
- row.name)
b. Display item in the textbox should be the "display field again (the
name field - row.n
I am provided a json object that looks something like this:
{"pager_offset":50,"types":[1,2,4]}
If I feed that json object in to the jQuery $.get() function as the
data the request it makes is like this:
?pager_offset=50&types=1&types=2&types=4
Note that it really should be this in order for t
You're right, by the way, the pages are .ascx pages, ma they lived
"alone", like .aspx pages (they're not embedded in .aspx pages).
And the second page where redirect the user in NewUser.ascx (or .aspx,
it all the same).
Thanks for precisation.
Luis
So... is there no interest in a jQuery conference up in Boston this
year?
Incidentally, this entire post doesn't show up when searching through
the group posts. I searched on "conference", on "Boston" and on
"Guinness" without pulling up this topic. Weird.
Well first off.. you can't redirect to a user control (ascx) because
that's not a "page" per se
Secondly, your original post gives no indication *where* to send the
user
On Jun 16, 10:05 am, ciupaz wrote:
> So putting value="NewUser.ascx" in the tag?
>
> Luis
i guess that is .eq(i) :)
So putting value="NewUser.ascx" in the tag?
Luis
Thanks MorningZ. What would you reccommend to get something like this
working? What language, or languages, etc?
On Jun 16, 8:51 am, MorningZ wrote:
> Understand that jQuery is running on your user's browser so no,
> it cannot natively send/receive email
>
> On Jun 16, 9:47 am, inkexit w
$("#Users").change(function() {
var url = $(this).val();
top.location = url;
});
On Tue, Jun 16, 2009 at 3:53 PM, ciupaz wrote:
>
> Hi all,
> I have an .ascx page with a populated combobox:
>
>
> ---New User---
> Ted Wilson
> Katy Bruce
>
>
> I need that when the use
Hi all,
I have an .ascx page with a populated combobox:
---New User---
Ted Wilson
Katy Bruce
I need that when the user select "New User" he will be redirected to
another page where he can insert the new user's value.
Ho can I accomplish this?
Thanks in advance.
Lu
Understand that jQuery is running on your user's browser so no,
it cannot natively send/receive email
On Jun 16, 9:47 am, inkexit wrote:
> Any help here, people? If this can't be done with jQuery, would
> somebody tell me that?
Any help here, people? If this can't be done with jQuery, would
somebody tell me that?
I am not sure on what are you trying to do, but
alert($("#ulList .liEven:first").attr("class")); /* Returns Success*/
Maurício
-Mensagem Original-
De: Dave
Para: jQuery (English)
Enviada em: terça-feira, 16 de junho de 2009 09:57
Assunto: [jQuery] Get first element when the
Ok, so I have to split it up.
Thanks for the answer. =)
On Jun 16, 3:02 pm, waseem sabjee wrote:
> Sorry syntax error
>
> var list_items = $(".liRow");
>
> $("#btSave").click(function() {
>
> alert(list_items.eq(0).attr("class"));
>
> }
> });
>
> On Tue, Jun 16, 2009 at 3:01 PM, waseem sabjee w
Sorry syntax error
var list_items = $(".liRow");
$("#btSave").click(function() {
alert(list_items.eq(0).attr("class"));
}
});
On Tue, Jun 16, 2009 at 3:01 PM, waseem sabjee wrote:
> var list_items = $(".liRow");
>
> $("#btSave").click(function() {
>
> alert(list_items).eq(0).attr("class"));
var list_items = $(".liRow");
$("#btSave").click(function() {
alert(list_items).eq(0).attr("class"));
}
});
On Tue, Jun 16, 2009 at 2:57 PM, Dave wrote:
>
> Hi
>
> How do you get the first element when the element got multiple
> classes?
>
>
>1
>2
>3
>
Hi
How do you get the first element when the element got multiple
classes?
1
2
3
4
$("#btSave").click(function(event) {
alert($("#ulList .liRow:first").attr("class"));/* Success */
alert($("#ulList .liRow .liEven:first").attr("c
I don't think you understood what code to show
what you need to show is what is wrapped around your initial post's
code so that it will be easier to help you understand "this"
On Jun 16, 8:18 am, Logictrap wrote:
> Thank you that worked!!!
>
> I think I may understand how to use children if yo
Thank you that worked!!!
I think I may understand how to use children if you could also show
how to get the img src attribute when 'this' contains:
http://www.test.org"; target="_blank">Test Logo
I fixed this issue by flushing IE by doing $(this).hide(); followed
immediately by $(this).show(); and it recalc'd the heights and display
was normal then.
On 15 June, 18:47, Jimbo wrote:
> Hi guys,
>
> Got a nice problem with IE :-( FF and chrome etc are absolutely fine.
> Using IE7 atm.
>
> I
Not really. My question is there function like .get() that returns
jQuery object instead of dom element
On Jun 16, 2:04 pm, waseem sabjee wrote:
> var collection = $("input");
>
> collection.each(function(i) {
> collection.addClass("blah");
> if(i == 3) {
>
> }
> });
>
> did you mean something l
On Jun 3, 2009, at 5:56 PM, Gustavo Salomé wrote:
If youre talking about Jeditable then id of the edited dom element is
sent automatically. There is no need for any unorthodox magic.
Try get it here:
http://jsbin.com/ejejo/edit
I made a live example too.
2009/6/3 bharani kumar
The Boss ,
i am giving my answer to my question.
The fireworks does not support focus event on table or div elements.
ie7 does. That is way i get problem. Here is text code below. You can
test it by clicking div and table elements. If it works you will get
an alert (ie7 only) Fireworks and opera shows alert
this is a css issue very common with Joomla integration of new menu,
the original template menu css does not get removed when installing a
new menu and some of this css is needed to adapt new menu to theme of
template. There are different techniques that can be used to style a
menu , yet arr
var collection = $("input");
collection.each(function(i) {
collection.addClass("blah");
if(i == 3) {
}
});
did you mean something like that ?
On Tue, Jun 16, 2009 at 12:59 PM, Lauri B. wrote:
>
> I have collection: var collection = $(input);
> var i = 3;
>
> Is there easier way to get third
I have collection: var collection = $(input);
var i = 3;
Is there easier way to get third jquery object from collection.
Currently i'm using method like
$(collection.get(i)) or $(collection[i])
But i think something like this could be more comfort:
example: collection.get(i).addClass('blah');
I want to remove spaces from pasted phone numbers into a phone number
field prior to the validation being run.
I've applied class="number" to the phone number input field, which
validates correctly when anything other than numbers are entered or
onsubmit.
I've also created an event handler that
What is causing superfish to screw up my menu here:
http://www.ramvalley.com/new/
ive tried changing the templates but everytime its the same thing..
i have no knowledge of css or php :(
please help.
Thank you
I want to remove spaces from pasted phone numbers into a phone number
field prior to the validation being run.
I've applied class="number" to the phone number input field, which
validates correctly when anything other than numbers are entered or
onsubmit.
I've also created an event handler that
I want to post some HTML (contained in a div on the page) data using
jQuery using $.ajax() method.
But it is not working.
function PostHTMLContentTOServer() {
var pageData = document.getElementById
("MainDiv").innerHTML;
$.ajax({
url: "MyD
Egipicio wrote:
>
> Good night
>
> I think wanting to know if you have GPL on my site ..
>
> someone asked the sorce of the whole system if I only mandatory
> available?
>
> obs: The system does not GPL and everything was done by my in
> php . just plug
> jquery GPL and that this coupled s
Hi folks,
I'm having difficulty understanding how to get Klaus's history plugin
working in my application.I have an "ebook" application in which
the page has a static index of pages which, when an individual link
is clicked, a file is loaded into an adjacent div (#ebook).
Upon being load
Perfect, thank you very much Waseem.
Luis
$("#color").change(function() {
if($(this).val() == 2) {
$("#buttons").hide():
} else {
$("#buttons").show();
}
});
On Tue, Jun 16, 2009 at 11:09 AM, ciupaz wrote:
>
> Hi all,
> I have a select option like this:
>
>
> Select a color
> Red
> Green
> Blue
> White
>
Hi all,
I have a select option like this:
Select a color
Red
Green
Blue
White
Black
and a button:
How can I hide the button is the combo has "Select a color" selected,
and show the button when the user select a color?
Thanks in advance.
Lui
This code works on ie7, but it does not work on firefox.
it just shows a alert when focus occur on an element. you can just
click something on the page
and you will see alert at ie7.
var _focusedElement;
$(document).ready(function() {
$("*").bind("focus", function(e) {
Thanks.
"mir ist ein licht aufgegangen"
On Jun 16, 10:57 am, Jörn Zaefferer
wrote:
> Nope, not anymore. The check is now more explicit: if (response ===
> true) { ... } else { displayError }, where before if was just if
> (response) ...
>
> Jörn
>
> On Tue, Jun 16, 2009 at 8:55 AM, david wrote:
Nope, not anymore. The check is now more explicit: if (response ===
true) { ... } else { displayError }, where before if was just if
(response) ...
Jörn
On Tue, Jun 16, 2009 at 8:55 AM, david wrote:
>
> Hi all.
> In the new version of jquery.validate (1.5.3) there is an option to
> get a remote
Isn't it more a server side question ?
I would suggest that you try in the browser location bar to generate
the url (by hand) and see if there also the problem consists.
If yes then you have first to solve it on the server side.
I use in my scripts a session id which i pass through getjson as
argu
100 matches
Mail list logo