Do you want to hit the server to put the item in a cart there (for
session/persistance) and then refresh the minicart or do you want to set
a cookie or something in the client and update the minicart with data
you already have in the client?
If you want to hit the server, do you have any ser
I kept having to do
$('#content').load(url + " #content");
but ended up having
What i ready wanted was to completely replace the element with
selected content from an ajax load, hence,
$('#content).replace(url);
/**
* ajax load content and replace self
* replaced object must have 'i
> i'm trying to create a "news ticker" using the cycle plugin.
> everything works really well, but i run into some trouble -
> first, i want to use the pager to show which article is on and how
> many there are, but i want it on the right side or at the bottom of
> the div containing the item. i c
i'm trying to create a "news ticker" using the cycle plugin.
everything works really well, but i run into some trouble -
first, i want to use the pager to show which article is on and how
many there are, but i want it on the right side or at the bottom of
the div containing the item. i couldn't fi
Of course, this works just fine using the built-in methods of XmlDocument
(appendChild, createElement).
I am just mildly surprised this does not work with the JQuery methods.
On Fri, Aug 29, 2008 at 8:37 PM, Patrick Burrows <[EMAIL PROTECTED]> wrote:
> At this point I've tried every combination
At this point I've tried every combination of .after I could think of. I
think, at this point, this is simply not possible using JQuery.
On Fri, Aug 29, 2008 at 7:50 PM, Patrick <[EMAIL PROTECTED]> wrote:
>
> Is anyone aware of a simple example which appends a node to an
> existing XmlDocument?
>
It looks to me like you forgot to write any JavaScript to do all the actions
you described below.
On Fri, Aug 29, 2008 at 7:21 PM, fear and wonder
<[EMAIL PROTECTED]>wrote:
>
> what i'm trying to do is have a login form on my site, it looks like
> this right now...
>
> Email:
>
> Password:
>
>
> Ok so I tried what you said but still no change.
>
> I am new to jQuery so please excuse my ignorance in the questions
> below.
>
> I am not sure what exactly this line does:
> onAfter.apply($('a:first')[0]);
That line isn't needed. The anchor demo was written before I added
synthetic events f
what i'm trying to do is have a login form on my site, it looks like
this right now...
Email:
Password:
then when you click submit it uses ajax to load the login page that
checks if you entered the right email and password. if you didn't, it
would show the login form again. but if you try to
Is anyone aware of a simple example which appends a node to an
existing XmlDocument?
I am successfully able to update an XmlDocument using the attr()
method. So:
$(xmlElement).attr("Name","new name");
I am even able to create new attributes using this method.
What I would like to be able to do
Hi there, I'm a novice with jquery and would like to create a shopping
cart where I can add a product without refreshing the page. I've
searched extensively and can only find tutorials about drag and drop
functionality. All I want to be able to do is hit the add button and
the minicart gets upda
Ok so I tried what you said but still no change.
I am new to jQuery so please excuse my ignorance in the questions
below.
I am not sure what exactly this line does:
onAfter.apply($('a:first')[0]);
I can see what the onAfter function does, but this line makes no sense
to me. Am I calling the ri
one way to approach what you're trying to do is with a simple
setInterval (http://developer.mozilla.org/index.php?title=En/DOM/
Window.setInterval), so that the parser has a bit of breathing room
between calls to someFunc.
if you just loop through, you're essentially saying "call someFunc as
many
a common trick i use to get around situations where an event may be
bound twice is to add an unbind into the chain. like so:
var kd = function(event) {
alert(event.keyCode);
}
$().unbind('keydown', kd).keydown(kd);
it's a bit quick and dirty, but it works.
-micah
On Aug 29, 9:12 am, me-a
>On Aug 29, 4:42 pm, Matt <[EMAIL PROTECTED]> wrote:
> Check the docs:http://docs.jquery.com/Utilities
>
> example:
>
> if( jQuery.browser.mozilla ) {
> //do css stuff...
>
> }
Thanks!
I am experiencing a problem with Firefox 2 and jQuery 1.2.6. I am
doing a basic slide using the $.animate into negative territory. The
animation jumps to the positive value quickly before resting at the
correct negative value. The larger the negative value, the larger the
positive swing.
This is
Hey guys.
I've poured over the docs, and mouseover/hover/etc only trigger once.
I want it to continue to trigger a function while the element is
hovered.
I've tried:
$('#element').hover(function() {
while(true) {
someFunc;
}
}, function() {});
Unfortunately, this screws things up. The
Hello all,
I'm using jqDnR (http://dev.iceburg.net/jquery/jqDnR/) to allow things to be
draggable on the my page. Applying it to div tags is super easy and works
great. Unfortunately when I try to apply it to an image I can't get it to
work. This is what I use for a div:
$('#container').jqDrag('.D
Hi,
Finally got the drop-down to appear and list everything correctly, I'd
put '\n' in the php rather than "\n" - Oooops!!
Thanks for your suggestions though.
Matt
On Aug 29, 4:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I don't think it's the formatting. In your original query, you
you can do $(':input:visible') instead.
i've found that :not can be picky at times. could be totally imagined
on my part, but i usually use $.not() instead, despite the extra
traversal of the nodeset involved.
-micah
On Aug 29, 10:19 am, anuradha k <[EMAIL PROTECTED]>
wrote:
> Hi All
>
> I am t
Check the docs: http://docs.jquery.com/Utilities
example:
if( jQuery.browser.mozilla ) {
//do css stuff...
}
On Aug 29, 10:44 am, GiJeet <[EMAIL PROTECTED]> wrote:
> Hello, is it possible to use JQuery to determine the browser type/
> version at runtime and apply a custom .css specific to t
did you try changing the doctype ?
Alexandre Plennevaux
http://www.lab-au.com
On Fri, Aug 29, 2008 at 9:44 PM, MorningZ <[EMAIL PROTECTED]> wrote:
>
> So i have some usage of jqModal in my project
>
> and this is what's going on:
>
> (screenshot: http://i38.tinypic.com/2edavs2.jpg)
>
> you ca
Sorry, my mistake. There was extraParams line after that comma. So,
jQuery code should be like this:
$(document).ready(function(){
$("#txtSearchBox").autocomplete("Autocomplete.aspx",
{
maxItemsToShow: 10,
minChars: 3,
delay: 40,
Hi,
Finally got the first drop-down to appear, I'd put '\n' in the php
rather than "\n" - Oooops!!
Still not sure how to get the second field on my form to update based
on the input to the first autocomplete, any suggestions?
This is what I've tried:
$(document).ready(function(){
$("#lotno1").
Don't use a timer for this - it is extra complication and not very reliable.
In many cases you can simply chain the effects together, which queues them
behind the scenes:
// Slide an element open and then slide it closed
$('#test').slideDown( 'slow' ).slideUp( 'slow' );
For more complex
So i have some usage of jqModal in my project
and this is what's going on:
(screenshot: http://i38.tinypic.com/2edavs2.jpg)
you can see that "jqmOverlay" has a z-index of 2999
and
jqmWindow has a z-index of 3000
So, in a correct and working world, jqmWindow should be *on top* of
jqmOverlay
After a lot of trial and error I determined that the site's existing
CSS was NOT at fault. From there I started looking at page markup.
What I eventually found was that every page is dynamically generated
and shares a common header. The first line in every page is:
Removing it fixes the probl
Alex Weber wrote on 8/29/2008 10:15 AM:
i'd rather use packed then minified though :)
Use minified, not packed. Although a packed file is smaller, it's overall
performance is worse when compared to minified:
-
This means, in the end, that using a minifed version of the code is much fas
Hello, is it possible to use JQuery to determine the browser type/
version at runtime and apply a custom .css specific to that browser
type? If so, would appreciate some sample code so I can see how it's
done. TIA
G
Hey thanks, didn't know that tool, awesome =)
i was just using fiddler and there's something bizarre happening
around here...
When i change the select box , sometimes the ajax execute sucefully,
showing response 200 on fiddler.
But most times its just don't respond... i click the select box and
Joel,
That fixed it. Thanks for your help.
Justin
On Aug 28, 7:43 pm, "Joel Birch" <[EMAIL PROTECTED]> wrote:
> Hi Justin,
>
> The onHide callback will fire whenever the function that hides other
> submenus runs, which it does when moving from submenu to submenu.
> Hence, it is not suitable fo
Hi
Were you able to solve this problem. I am also facing a similar
problem and posted my problem today. So wanted to know if you were
able to find out the root cause
thank you
anuradha k
On Aug 15, 10:10 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> why is it that in firefox you can enab
I didn't knew fiddler, nice tool =)
im testing the script with fiddler now, and something very strange is
happening...
When i change the select box designated with the function, the first
times it's ok, and a 200 OK line pops on fiddler.
But after de 3th or 4th change it stop showing messages on
Hi All
I am trying to do a simple jQuery, where in the selector fetches me
all the empty fields in the form page.
var inputFieldsArray = $(":input:not(:hidden)"); // to get the fields
that arent hidden
for(var i=0; i
Hello. So I have a problem that when I get jQuery code in ajax
response and you click few times to activate ajax call, there are
multiple instances of same code. Lets see the example with keydown.
FILE 1:
$(document).ready(
function() {
$("#my_div").click(function
Javascript offers setTimeout(code, interval_in_milliseconds). If your
first animation is of a precise length, you could do something like
this:
function anima1(){
//play animation1, which is 15 seconds long
}
function anima2(){
//play animation2
}
anima1;
setTimeout("anima2", 15000);
On Aug
I am having a little problem and am new to jquery. Is there something
of a page load function that is only called on an actual reload of the
page? I am using hidden divs on my page that are shown with the click
of a button. Shown below:
$(document).ready(function(){
$("#edtDiv").hide()
Hi Michael,
The solution is simpler than you think.
All you have to do when you load an HTML document that contains a
script, is to think of it as being automatically injected into your
jQuery namespace ($). This means that you no longer have to do
another .ready() or jQuery(callback) inside yo
If i had to take a guess, i'd say there was an error getting raised
from the AJAX call for whatever reason
i'd suggest downloading "Fiddler" (http://www.fiddlertool.com) and
watching the network traffic to see if the call raises an error
I don't think it's the formatting. In your original query, you were
only collecting saleno. In your second, you're specifically matching a
certain saleno but applying the wildcard on lotno. Also, you might try
ordering your comparisons. Something like:
"SELECT `LotNo`, `A`, `Description` FROM bat
Those are great links, guess I used the wrong google key words.
Thanks,
On Aug 29, 8:09 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> John...
>
> You could focus on some of the things which can be condensed in the document
> using jQuery. For example. In an app I'm writing, I want rounded cor
I'm far from a specialist , but i think its a piece of cake so , here
we go...
I have the following function being called whenever a combobox is
changed:
function ajax_do(pAcao, pId , pIdt){
if (typeof pId == 'undefined' ) pId = '0';
if (typeof pIdt == 'undefined' ) pIdt = '0';
$('#message
Can't anyone help me
thats a pretty good solution... ive also been thinking about using
cachefly as a backup maybe... i'd rather use packed then minified
though :) im sure i can find one here on googlecode thogh
thanks!
On Aug 28, 9:48 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> These are just static files?
>
>
I'm using the latest Tabs in a project that already has an established
page layout. I'm using the tab styles like the ones at
http://stilbuero.de/jquery/tabs_3/.
On Mozilla, Opera and Safari the tabs display fine, but on IE 6 the
space below the tab label and tab bottom is missing. As a result in
Hi,
I am using the bassistance.de jQuery Autocomplete 1.0.2 plugin with a
simple server data provider and the following snippet of code:
$('input.autocompletable').autocomplete('/my_data_source', {
matchContains: true,
mustMatch: true,
minChars: 2,
Wow, that sure is nice and concise.
Thanks Richard
On Aug 29, 12:45 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> You could do something like this:
>
> $("#mySpan").find(":input").removeAttr("checked").val("").hide()
>
> - Richard
>
> Richard D. Worthhttp://rdworth.org/
>
> On Thu, Aug 28
You could cancel the submit (stick with return false) and submit again
after the animation finished.
$(".advancedSearchForm").submit(function(){
var form = this;
$(".colorList").slideToggle("fast",
function(){
$(this).html("loading");
$(this).sl
Hi,
I'm trying to animate my page before a form is submitted (regular, no
ajax).
$(".advancedSearchForm").submit(function(){
$(".colorList").slideToggle("fast",
function(){
$(this).html("loading");
$(this).slideToggle("slow");
}
Documentation = good
http://docs.jquery.com/UI/Datepicker/datepicker#options
dateFormat String
The format for parsed and displayed dates. This attribute is one of
the regionalisation attributes. For a full list of the possible
formats see the formatDate function.
Format dates for ISO stand
John...
You could focus on some of the things which can be condensed in the document
using jQuery. For example. In an app I'm writing, I want rounded corners on
some of my containers but both the color of the container, and the
background against which it is displayed are dynamic, so I couldn't u
awesome! Thanks so much. I have to admit, I like the 'devo hat' logo
better!
On Aug 28, 10:35 pm, Don Quijote de Nicaragua <[EMAIL PROTECTED]>
wrote:
> http://jquery.com/blog/2007/01/13/jquery-wallpapers/
> Don Quijote de Nicaragua.
> Elder Soto
>
> On 28 ago, 08:38, tlphipps <[EMAIL PROTECTED]
The problem is when a table generated by dataTables plugin is loading it
insert in the rows an image that would be loaded after the table.
Excuse me because my native language is spanish, not english.
Regards!
On Thu, Aug 28, 2008 at 5:38 PM, Karl Rudd <[EMAIL PROTECTED]> wrote:
>
> Do you me
The problem is when a table generated by dataTables plugin is loading
it insert in the rows an image that would be loaded after the table.
Excuse me because my native language is spanish, not english.
Regards!
Actually I doubt that it works in anything but Firefox, as that is the
only browser that ignores the trailing comma in object literals.
Remove the one after width: 270 and it should work fine across
browsers.
You can also enable strict warnings in Firefox to get a warning about those.
Jörn
On Fri
$("#link").click(function() {
$("#myform").valid();
});
See http://docs.jquery.com/Plugins/Validation/valid for details.
Jörn
On Fri, Aug 29, 2008 at 9:18 AM, Raman <[EMAIL PROTECTED]> wrote:
>
> How can I validate a form by click in text hyperlink using Jquery
> Validate plugin
>
> Please hel
I'm using jQuery autocomplete and here's my code:
.
Thanks - I've changed the Query to:
$query = "SELECT `LotNo`, `A`, `Description` FROM batemans WHERE
`SaleNo` LIKE $SaleNo AND `LotNo` LIKE '%$q%' ORDER BY LotNo ASC";
but it still only shows one value in the drop-down.
The output of the query can be seen at (this shows multiple values, ie
the
Not quite sure what you're trying to achieve, but I assume you want to
take some form data, form a query string, and submit to a server side
script (php) that will handle the db query. I would use an html form
with a submit button. Something like:
No AJAX here -- one the query string is fill
How can I validate a form by click in text hyperlink using Jquery
Validate plugin
Please help...
Hello,
I'm using the jQuery Form PlugIn( http://www.malsup.com/jquery/form/ )
to handle my Forms. I like it, but I have a question about an
improvment:
At this time all form fields are send using post, but it wold be nice,
to send all form fields json encoded as one post parameter.
Is there a wa
Thanks!
On Aug 29, 12:08 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> This should work:
>
> $("h2.drawer-handle:not(#rides-button)").click(function(){
> // your click handler here
>
> });
>
> On Aug 28, 2:24 pm, René <[EMAIL PROTECTED]> wrote:
>
> > Here's some markup:
>
> > Saved
>
I have an Atom service XML document (example at end of post) and I
need to select tags by name and with a specific namespace URI. The
equivalent to the following in normal DOM JS:
someXML.getElementsByTagNameNS( "http://www.w3.org/2005/Atom";,
"title" );
Is this possible in JQuery, or do I have
I want to be able to set the value of an input box in the parent of an
iframe from the iframe.
The parent has the following input box:
So far I've tried the following in the IFRAME
and
and
and
Not having much luck here and stumbling in the dark. I'm a JQuery
newbie, be kind.
In addition, I would recommend:
http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
...which, incidentally, is the number one result when you Google
"jquery for web designers". ;-)
On Aug 29, 5:29 am, john teague <[EMAIL PROTECTED]> wrote:
> I'm giving a presentation to a
If all you want is a handler for a click on a element, use the click()
method:
$('#foo').click(function(){
alert('You clicked the foo element');
});
On Aug 28, 7:49 pm, dduck1934 <[EMAIL PROTECTED]> wrote:
> I had a quick question with the bind() method in jquery
>
> how do i use the bind to bi
Quick start - this link: http://www.fullonrobotchubby.co.uk/random/drag_text.htm
Hi there.
I've got a page where you can drag a group of boxes around. Dropping
them over a droppable div causes data to be entered into that div. I
need to be able to get the data in multiple times, so I need to reve
Hi. this is a very simple question.
How exactly do I change the date format for the UI Datepicker?
I'm trying this code attaching the datepicker to a txtfield txtdatefrom. The
datepicker is working but the Date format does not change. How exactly do I
do this?
$(document).re
Hi Brian,
your approach worked like a charm.
thanks and best regards,
Gordon
On 28 Aug., 18:17, Brian Schilt <[EMAIL PROTECTED]> wrote:
> Would you be able to store the Reference Number in the value attribute
> of the checkbox? That would make things a lot easier.
>
>
> Then you could do some
Hi,
My name is Alex, first of all thank you for your great component
jCarousel.
I have some questions about your component, I use it with the AJAX
method but I don’t know how reload it in AJAX (for example, when I
click on a button, I can reload my jCarousel on the page without
reload the entire
One way to achieve that is to trigger the search method when
appropiate, eg. on blur. Something like this:
$("#suggest1").autocomplete(cities).blur(function() {
$(this).search();
}).result(function(event, data, formatted) {
alert(!data ? "No match!" : "Selected: " + formatted);
});
71 matches
Mail list logo