I'd say its a scope issue with the var i
I am not a JS expert so this is not definitive
var I = 0, dt = 5;
for (i=1;i<=dt;i++) {
I = i;
$.ajax({
type: "GET",
url: "http://example.com/5740/"+i+"/page.html";,
dataType: "text",
success: function(data){
alert(I);
}
})};
untested; I might eith
Monica wrote:
Newbie here...
I have a table $("#searchDataTable"), each row has an unique id. What
is the JQuery code to get the value(text) of particular cell in this
table?
$("#rowId td:nth-child(x)").text(); where #rowId is the id of the
particular row, x is the column number.
steph
Hello,
isn't it possible to use a Regex expression anymore?
I need to validate a few inputs text using a regex expression.
How can I do this?
Thanks,
Miguel
On Dec 13, 12:24 am, "Josh Nathanson" <[EMAIL PROTECTED]> wrote:
> Good news Jorn. Thanks for an awesome plugin.
>
> -- Josh
>
> -
I'm doing some simple ajax using .load --- clicking on a table row
loads some html from an external file into a div.
My question - do I need to remove the contents of the div (#myWindow)
before loading the new html, or does .load do this?
$('.myTrigger).click(function(){
var wf = $(this)
Newbie here...
I have a table $("#searchDataTable"), each row has an unique id. What
is the JQuery code to get the value(text) of particular cell in this
table?
I'm using jquery.cookie.js with Drupal 5.5, and am trying to pass a
value between some jquery code etween a module I wrote and the rest of
the site. I found I could set the cookie in my module, and it would be
set correctly the next time I entered the module. But from rest of the
site, I don't see
The request is still failing. Any other ideas?
On Dec 18, 11:37 am, "Jake McGraw" <[EMAIL PROTECTED]> wrote:
> The problem is that the form is actually submitting before you can get a
> response, this is the nature of an asynchronous request (the first A in
> AJAX). Perhaps you could bind the th
I need acceess function outside plugin in jquery.
How to its possible?
$.JQuery.fn.Plugin.function_plugin();
I need help
Sounds like a good plugin, but may I offer a couple of suggestions?
1. Post a demo of the plugin. I don't have time to download and setup
all the plugins I might potentially want to use. A quick sample takes
me seconds to make that evaluation, rather than 30+ minutes to go
through a setup ar
That does not seem to work for me in IE.
Matt
On Dec 18, 6:23 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> I'm curious why you implemented your own scrolling rather than using:
>
> tbody {
> height: 200px important!;
> overflow: scroll;
>
> }
>
> - Richard
>
> On Dec 15, 2007 5:18 PM,
Wow. I just created an account and started looking at existing pages to
get a feel for how they are put together. I think I'll need a course in
the syntax before I want to attempt much. :) Here I thought I'd be
able to just start typing... (off to find those links mentioned earlier
in thi
I'm having a problem with the jquery.fn.offset = function() in
jquery-1.2.1.js using IE 6.0. In trying to step through the code in
Visual Studio (not easy), the debugger kept throwing me out of the
code at the very top of the function. I finally figured out that in
the line
var left = 0,
Thanks for your help Hamish,
I just got this working with the ajaxForm plugin.
Got a problem when looping ajax requests. I have probably made a
mistake somewhere but I can't find it.
dt=5;
for (i=1;i<=dt;i++) {
$.ajax({
type: "GET",
url: "http://example.com/5740/"+i+"/page.html";,
dataType: "text",
success: function(data){
alert(i);
}
})};
This alerts "5" 4 times.
See! I *knew* there was a better way. Thanks for the example - it
works like a charm and I learned a new math function. It did take me a
minute to spot your typo - a comma and period seriously need to be
more than two pixels different:
var to = jQuery(''),attr({id:list+'-b',class:cssClass})
Tha
Andy,
You can generate your own links by using the pagerAnchorBuilder option.
http://www.malsup.com/jquery/cycle/pager2.html
http://www.malsup.com/jquery/cycle/pager3.html
Mike
On Dec 18, 2007 10:15 PM, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> A little clarification. I have a product deta
A little clarification. I have a product details page which contains 4
images of various states (distance shot, closeup, artwork, etc.). I
will only ever have 4 shots, and so I'd like each link to be able to
trigger the appropriate slide from Cycle. The images will always be in
the same order.
I'
I'm looking to use the excellent Cycle plugin for a product page I'm
building. I tried out the pager demo (http://www.malsup.com/jquery/
cycle/int2.html), but had some issues getting it working. I'd like to
generate the links myself as I'd like to put some custom title
attributes on each link.
Is
You keep saying "rendered". Let's be clear about this.
The ready statement fires after the DOM has been been created in-memory can
can be accessed through selectors.
The browser doesn't "pause" the rendering of the page once the DOM has been
loaded to handle events.
For example, you'll notice
A possible alternative (untested!) to ponder upon...
function balance(list,cssClass){
// new second 'half' of list...
var to = jQuery(''),attr({id:list+'-b',class:cssClass})
// original list, with new id and class, and new list placed
after...
, from = jQuery('#'+list
The demo page is not loading any jquery.
if this is the url
http://jqueryplugins.weebly.com/jquerysheet-in-action.html
- S
On 18/12/2007, Robert-CFL <[EMAIL PROTECTED]> wrote:
>
>
> I know there's not to much content, but let me know if you want to
> help out with this plugin. it has GREAT poss
Yes, you're quite right. I missed out the h3's initially, then added
them back in without thinking!
It should have been something like...
var cols = $('#dsViewport').find('div.column');
$('#dsViewport h3').each(function(){ // assuming you want the h3?
var numPrecedingColumns =
cols.in
This particular code in not work IE 6/7 but works in firefox. Can't get a
demo up right now but any suggestions are welcomed.
function ie_fix()
{
//update filters
$('#select_destination_filter').change(function()
{
//select values
var destina
Oops, I hit send too quickly:
$.post("example.php",
"{A:'A'}",
success: function (data) {
alert(data.err)
},
'json'
);
On Dec 18, 2007 5:47 PM, Mike Alsup <[EMAIL PROTECTED]> wrote:
> You need to include the dataType property if you're expecting json
You need to include the dataType property if you're expecting json back:
$.post("example.php",
"{A:'A'}",
dataType: 'json',
function (data) {
alert(data.err)
});
Mike
On Dec 18, 2007 2:32 PM, mmoreira <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> W
MarcelloP schrieb:
Hi all!
I want to show some CSS code in a textarea with the help of Chili
showing the code with syntax highlight, so the user can edit easily
the code.
But, how to get back the code without the element created by the
Chili?
thks in advance to anyone who want to reply.
jQue
"return false;" needs to be the _last_ thing it does, so move it to
the end of the function.. otherwise it hits return and quits the
function without doing anythig else.
eg:
$("#addShiftForm").submit(function() {
// do some stuff
return false;
});
On Dec 19, 7:54 am, pedalpete <[EMAIL
you can use apply()
example :
var el = $('#myDiv')[0];
var myFunc = function () {
console.log(this);
};
myFunc.apply(el, [{type : "", target : el}]);
i stumbled on this when looking through the trigger function.
probably not the best use of it, however i though it might be usefull.
-Byron
I know there's not to much content, but let me know if you want to
help out with this plugin. it has GREAT possibilities. I know alot
of people have been looking for something like this. let me know what
you guys think.
I'll work on documentation when i get time.
http://plugins.jquery.com/pr
I have exactly the same problem... And didn't find yet an answer... I
have all sort of crazy characters... The "é", "è" and all that stuffs,
they make horrible things.
Even if on my PHP page which I load, I put é or &eagrave;
If someone can answer both of our problems, would be great !
On Oct 2
It's easy to write a parser to convert the months to a sortable value,
but the days and years are trickier. the current code is as follows:
// add parser through the tablesorter addParser method
$.tablesorter.addParser({
// set a unique id
Thanks, Jonathan.
Hello!
Why return one object from php script called from $.post ();
Example:
$.post("example.php",
"{A:'A'}",
function (data) {
alert(data.err)
});
example.php
print "{ ";
print " err: 'teste' ";
print "} ";
This script not runnable correctly.
S
I do all the JavaScript within $(document).ready and not in the
window.onload.
As far as I understand, the $(document).ready event is fired before
the HTML is rendered (DOMContentLoaded in FF). Is this correct or am I
mistaken?
-daniEL
On Dec 18, 8:47 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wro
I've now tried this using the ajaxForm plugin for jquery, and the
redirect has stopped, and the form is being submitted, but the success
is not being returned even though I can see the successful response
via firebug.
I have barely made any changes to the ajaxForm example, so I am
surprised this
>Someone else with more experience should confirm this, but I believe the
>ready function fires after the HTML is loaded but before the images or
>other
>binary content is downloaded. I don't believe it has anything to do with
>the browser rendering the page or not.
The goal of $(document).ready
I've had some success playing with this technique:
http://home.tampabay.rr.com/bmerkey/examples/nonscroll-table-header.html
It's not perfect - it currently uses expressions in the css, which could be
pulled out / adapted into an external javascript file. You can turn the
horizontal scrolling on
Someone else with more experience should confirm this, but I believe the
ready function fires after the HTML is loaded but before the images or other
binary content is downloaded. I don't believe it has anything to do with
the browser rendering the page or not.
If you used the window.onload even
Jimbo, good to know the plugin is working for you now.
-- Josh
- Original Message -
From: <[EMAIL PROTECTED]>
To: "jQuery (English)"
Sent: Monday, December 17, 2007 7:43 PM
Subject: [jQuery] Re: ClockPick and IE7
Josh
I found the issue but it caused me a bunch of other problems.
To be more precise:
In Opera(9.3) and IE6 / 7 this is what's happens
- The page is loaded with the css rendering
- The elements in question are rendered with the jQuery plugins (here
is the problem, because the user sees this rendering life )
- window.onload gets executed
As far as I understa
Although I have minimal familiarity with XUL in FF, my first thought would
be that the core javascript functions may possibly operate differently with
XUL.
For example, see Koch's site on cross-platform compatibility with different
javascript functions in different browsers, such as
http://www.qu
Hey thanks for the help...
I add the [] to the string. I don't get the invalid label error but
nothing is alerted ? No errors in fire bug.
On Dec 17, 4:10 pm, "Benjamin Sterling"
<[EMAIL PROTECTED]> wrote:
> wrap it in [] like:
> [{"job_Description":"My Job","job_Notes":"My jobs notes are here.
I need to sort a table based on the date format: 10-Dec-2007. Does
anyone know if this is possible with Tablesorter?
I've tried us, uk & iso to no avail.
Thanks, Jay
On Dec 18, 12:05 pm, Wizzud <[EMAIL PROTECTED]> wrote:
> var cols = $('#dsViewport').find('div.column');
> $('#dsViewport h3').each(function(){ // assuming you want the h3?
> var numPrecedingColumns =
> cols.index( $('div.column:first', this)get(0) );
> // . do whatever .
>
Thanks Hamis,
I think I'm getting closer, but maybe I'm not putting return false in
the right location.
I have been able to either stop the redirect, but the form does not
get submitted by .ajax.
now my jquery code looks like this, but nothing gets submitted.
[ code]
$("#addShiftForm").submit(f
Please somebody help-me
On 18 dez, 13:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> i use a jsGrid plugin, but i need access a the method(populate)
> populate outside the plugin.
>
> How its possible.
>
> I try:
>
> $.jQuery.fn.jsGrid.populate();
> $.jQuery.fn.jsGrid.fn.populate();
> $.
Anyone?
On Dec 12, 10:30 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I was going to post this in the jQuery plugins group, but I see
> traffic there is next to nil. I've been using jQuery and its
> associated plugins for about six months now. I lurk this group a lot
> and h
It's a best practice to use var a = this to avoid the scope leak that you
mentioned.
Cheers,
-Jonathan
On 12/18/07, Joel Stein <[EMAIL PROTECTED]> wrote:
>
>
> > Also you might want to do "var a = this" so that it doesn't conflict
> with any global variables.
>
> Thanks, Josh. That's what I sus
Well, yes and no... you must echo the output of the function calls in order
for the AJAX call to get the information... you can do something like this
though, to hold off echoing until the end of the file. I've also included
the exit command, because you generally don't want any other information
o
The problem is that the form is actually submitting before you can get a
response, this is the nature of an asynchronous request (the first A in
AJAX). Perhaps you could bind the the submit to one of the callbacks:
jQuery("#googleCheckout").submit(function() {
var $form = jQuery(this);
if
Another patch, as I realized I needed to round the number of list
items, otherwise it wouldn't work with uneven lists. Replace
var itemsLength = items.length/2;
with
var itemsLength = Math.round(items.length/2);
Try using hover() instead.
Hover() has built-in code for testing whether the element under the
mouse has the target element as an ancestor.
On Dec 18, 9:23 am, don Jao <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> I'm pretty new to jQuery, and my JavaScript sills aren't very good to0, but
> they'
var cols = $('#dsViewport').find('div.column');
$('#dsViewport h3').each(function(){ // assuming you want the h3?
var numPrecedingColumns =
cols.index( $('div.column:first', this)get(0) );
// . do whatever .
});
You can tighten or loosen the selectors to fit your actual
I have the following html code:
https://sandbox.google.com/checkout/
cws/v2/Merchant/747474/checkout" method="post">
https://sandbox.google.com/checkout/buttons/checkout.gif?
merchant_id=747474&w=160&h=43&style=WHITE&variant=TEXT&loc=en_US"
height="43" width="160" />
I want to dynamically loa
> Also you might want to do "var a = this" so that it doesn't conflict with any
> global variables.
Thanks, Josh. That's what I suspected. As far as the "var a =
this"... is that because using "var" to declare the variable makes its
scope within the function alone, or is the "var" unnecessary?
i use a jsGrid plugin, but i need access a the method(populate)
populate outside the plugin.
How its possible.
I try:
$.jQuery.fn.jsGrid.populate();
$.jQuery.fn.jsGrid.fn.populate();
$.jsGrid.populate();
etc
and nothing working!!
Please helpme
On Dec 18, 9:46 am, pixeline <[EMAIL PROTECTED]> wrote:
> i'm facing a complex traversing question, can you help?
>
> I need to know the number of a specific element with class="column"
> that are BEFORE my selected element.
>
> So, say i have this html (see below) and i am in this selection:
>
Yeah, this is exactly what the problem was. I managed to type in the
right search string finally and found the answer in here. I actually
decided to use $.post for my json request and IE does not cache POSTs.
On Dec 18, 6:35 am, Andy K <[EMAIL PROTECTED]> wrote:
> On Dec 18, 10:22 am, "Jesse R.
> > on rails etc... These "serve" the data to the visitor's browser software,
> > and that data can be html, xml, css or javascript and jquery included. but
> > it cannot RUN or EXECUTE it.
> >
> In classic Asp we use server side Java/Vb Script.
Of course you can run any language server side usin
Just out of curiosity, does this work?
var data = $("#editDiv form").serializeArray();
Mike
On Dec 18, 2007 7:55 AM, elias <[EMAIL PROTECTED]> wrote:
>
> Hi, I have a following problem, FF2 works fine, IE not:
>
> I have a form that is written dynamically on page, by dynamically I
> mean that f
jQuery seems to have an issue with manipulating html when in a XUL
document.
The following code ( yes, the jquery is loaded, hence the
alert(jQuery)) crashes somewhere (there is no easy way of including
firebug in XUL) when processing the .html or .append functions and
blanks out the element.
It
Hey,
Thanks for the plug.
I'm just adding the final touches to the next article.
I would love to hear if anyone has any suggestions, otherwise I'll
keep wandering near the designers to hear what they're battling with
next.
Cheers.
On Dec 6, 7:50 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> So s
I must say the jCarousel located here is fantastic:
http://sorgalla.com/jcarousel/
Now, The effect with the thickbox is nice, but I would love it if
there was a Jquery plugin that mixed jCarousel with SlideViewer.
So basically, on this page:
http://www.gcmingati.net/wordpress/wp-content/lab/jqu
Hi, I have a following problem, FF2 works fine, IE not:
I have a form that is written dynamically on page, by dynamically I
mean that form html comes from ajax response like this:
function getForm() {
$.ajax({
url: actionurl,
Thanks, It solved my problem,
But I have another small one:
The thing is, I made a function called load() that loads the result of a php
file into a div. When done it calls a function called all_js() that contains
all the js (all the events that didn't work previously etc.).
The problem is that
On Dec 18, 10:22 am, "Jesse R." <[EMAIL PROTECTED]> wrote:
> I am working on building a shopping cart and wanted to utilize
> jQuery's ajax methods to enhance some response times. If you go
> tohttp://www.blueskyvineyard.com/dry-wineand add an item to the cart,
> then either click the "+" or "-"
I had to tweak the script to get this working right in IE. v1.92 is
now available:
http://jqueryjs.googlecode.com/svn/trunk/plugins/corner/jquery.corner.js
Mike
On Dec 18, 2007 8:04 AM, Mike Alsup <[EMAIL PROTECTED]> wrote:
> Here's an example of how to use the jQuery Corner plugin on an imag
hello,
i'm facing a complex traversing question, can you help?
I need to know the number of a specific element with class="column"
that are BEFORE my selected element.
So, say i have this html (see below) and i am in this selection:
$('#dsViewport h3').each(function(index){
...
$amountOfColum
I second and third that. I happened to look at the commit history in the
core files recently. David's name is there as much as Brandon and John's
lately. And I know you've done (and continue to do) a lot on the
documentation. Great job.
- Richard
On Dec 18, 2007 8:49 AM, Karl Swedberg <[EMAIL PRO
No problem. Please post back here if/when you find a workable
solution. I haven't really dug deep into the subject yet.
On Dec 17, 6:25 pm, Shawn <[EMAIL PROTECTED]> wrote:
> The first link is an interesting approach, but unfortunately not
> suitable in my case. The table in question is popula
David,
I hope I'm not the first to say this to you ...
You've been doing an awesome job! I've been blown away by how much
work you've done, not only for the documentation wiki, but also for
the core jquery.js. It's been amazing to see all the bug fixes you've
committed to svn the past cou
Hi all!
I want to show some CSS code in a textarea with the help of Chili
showing the code with syntax highlight, so the user can edit easily
the code.
But, how to get back the code without the element created by the
Chili?
thks in advance to anyone who want to reply.
MarcelloP
Here's an example of how to use the jQuery Corner plugin on an image:
http://www.malsup.com/jquery/corner/image.html
Mike
On Dec 17, 2007 7:12 PM, bdee1 <[EMAIL PROTECTED]> wrote:
>
>
> i know there are jquery plugins to round the corners on divs but is there one
> that will work on images? t
>Is there a JQuery way of achieving the same of that prototype function?
jQuery.inArray is similar to string's method 'indexOf' but for arrays.
So contains would be:
jQuery.inArray( some_array, some_value ) != -1
Cheers
Ariel Flesler
On 18 dic, 05:04, Francesco Vivoli <[EMAIL PROTECTED]> wr
looks like that could work - i will give it a shot tonight. thanks!
Jack Killpatrick wrote:
>
>
> This isn't a jquery based solution (I don't know of any), but might do
> what you need:
>
> http://www.netzgesta.de/bevel/
>
> - Jack
>
> bdee1 wrote:
>> i know there are jquery plugins to ro
Hi Everyone,
I'm pretty new to jQuery, and my JavaScript sills aren't very good to0, but
they're not too bad either.
I'm in need to fade a whole div, with couple of input fields, text and
images inside it from 50% to 100% opacity. I used simple way to get it:
$("div").mouseover( function() { $(
Hi,
I have really stuck with this one. :) I have divs that contain html
text. What I need is when I move mouse over that div link is displayed
to edit content. I have such code:
$J('div.editable_content').mouseover(function(event) {
$J(event.target).css("border", "1px solid b
Got it fixed:
document.getElementById('serial').value=serial.hash;
This worked for me!
Thank you for your time.
Richard D. Worth-2 wrote:
>
> If you could provide a link to a test page online, that would make it much
> easier for someone to see what you're seeing and hopefully help you debu
OK. I put it on my test server. Right now does not happen because I'm
loading a stylesheet dynamically to fix the problem for the moment.
http://www.speculor.com/jquery/combi/
Hopefully someone can help me.
-daniEL
On Dec 18, 3:28 am, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> It'd be helpf
Thanks Ariel
ok, two things:
-Is there a JQuery way of achieving the same of that prototype function?
-in fact I don't have any $().removeClass in my code: this call is buried
within
some initialization code, might be from idTabs.
If it was a call I'd wrote I'd have tried to rewrite it, the pr
I think you need to add "return false;" to the end of your submit
function.
This will tell the browser not to redirect to "addShift.php" after
running your function.
You should make the action page the 'non-ajax' alternative, so if the
function doesn't execute it can continue anyway.
On Dec 18,
Yes it is work actually.
What do you want to do, can you give us a example or detail.
2007/12/17, rsmolkin <[EMAIL PROTECTED]>:
>
>
> Does this actually work? Did you get this to work? I am trying to do
> the exact same thing, so for each link I need to pass 3 parameters to
> by server script.
I am working on building a shopping cart and wanted to utilize
jQuery's ajax methods to enhance some response times. If you go to
http://www.blueskyvineyard.com/dry-wine and add an item to the cart,
then either click the "+" or "-" to increase or decrease the quantity,
it works just as expected i
I'm curious why you implemented your own scrolling rather than using:
tbody {
height: 200px important!;
overflow: scroll;
}
- Richard
On Dec 15, 2007 5:18 PM, Matt <[EMAIL PROTECTED]> wrote:
>
> This scrolls the tbody part of a table. To use it you have to set up
> some CSS for the scroll
Interface is no longer supported, as of jQuery 1.2. All future support is in
jQuery UI, the replacement for Interface. Here's some info about the UI
Dialog:
Docs
http://docs.jquery.com/UI/Dialog
Demos
http://dev.jquery.com/view/trunk/ui/current/demos/ui.dialog.html
Tests
http://dev.jquery.com/vi
$("#commenting").append(""+fill+"x")
.find('.deleteTag').bind('click', function(){
// perform removal
});
On Dec 18, 7:09 am, Kyle <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This is frustrating! First, because I'm having a problem I can't
> solve. Second, because I can't track down the solu
86 matches
Mail list logo