[jQuery] Can somebody tell me how I can Unsubscribe to the mailing list Pleeeeeeeeease!

2010-01-07 Thread Darren Bernard

Can somebody tell me how I can Unsubscribe to the mailing list Please! 
  
_
Got more than one Hotmail account? Save time by linking them together
 http://clk.atdmt.com/UKM/go/186394591/direct/01/

[jQuery] Re: tablesorter and pager: How to modify table cells in cache?

2009-06-26 Thread Darren Brierton

The things is $('#my_table').cache was the first thing I tried, but I
just get 'undefined' for that ...

On Jun 25, 11:10 pm, paulhagstrom  wrote:
> I worked on something related to this like a year ago, I don't
> remember all that much about what I did.  However, looking back at the
> code: What I was trying to do was inject an entire row into the cache
> (not modify the rows) (after which I resorted). I built it basically
> on the model of appendToCache as I recall.
>
> You might just try looking at the cache attribute of the tablesorter
> object, something like the following:
>
> c = jQuery('#table').cache;
> totalrows = c.normalized.length;
> for(var i=0; i < totalrows; i++) {
> c.row[i][9].attr('disabled', 'disabled);
>
> }
>
> This isn't great, since it also disables the actually checked
> checkboxes, you could presumably test to see if they're checked before
> disabling them if this actually works.
>
> The way I actually did it was more complicated; I'd added into
> tablesorter an injectToCache(table, cache, newrow) function to
> tablesorter, then created an event handler for injectRow (on the model
> of, e.g., applyWidgets, appendCache), which I fired on the table. The
> existing appendCache handler, for example, has access to the cache.
>
> On Jun 25, 3:50 pm, Lee R Lemon III  wrote:
>
>
>
> > Do you have this working somewhere I can look at I have some
> > ideas, but not sure...
>
> > Worst case if you can not find the cached rows you could just
> > create a javascript array of the choosen row when they click the check
> > box then refer to your own array
>
> > On Jun 25, 11:23 am, Darren Brierton 
> > wrote:
>
> > > I'm using tablesorter with the pager plugin. The last cell of each row
> > > in the table contains a checkbox. The user should not be allowed to
> > > check more than 10 rows (out of several hundred); once ten checkboxes
> > > are checked I want to make all the others disabled. Now if I wasn't
> > > using the pager plugin this would be simplicity itself; using the
> > > pager plugin it is still simple to disable all the unchecked
> > > checkboxes currently displayed. But how do I access the rows of the
> > > table that are cached by the tablesorter plugin that are not currently
> > > in the DOM? I'm sure it is quite easy, I just can't seem to figure out
> > > how to access the cached table. I assume that once I can access the
> > > cache I can disable the checkboxes just as I would the ones on the
> > > page (and I also assume that I still have to separately disable the
> > > ones on the page as well as the ones in the cache). Can anyone
> > > enlighten me?
>
> > > Thanks in advance.
>
> > > Best, Darren


[jQuery] Re: tablesorter and pager: How to modify table cells in cache?

2009-06-26 Thread Darren Brierton

http://rolexrankings.com/en/rankings/?help

It went live last night. I'll be rolling out a bunch of updates over
the next couple of weeks. At the moment I already do something very
much like your worst case. Once you've checked the tenth checkbox the
remaining unchecked checkboxes on the page you're looking at get
disabled. If you then go to another page of the table the checkboxes
there aren't disabled, but if you click one you get an alert and the
checkbox is set back to unchecked.

On Jun 25, 9:50 pm, Lee R Lemon III  wrote:
> Do you have this working somewhere I can look at I have some
> ideas, but not sure...
>
> Worst case if you can not find the cached rows you could just
> create a javascript array of the choosen row when they click the check
> box then refer to your own array
>
> On Jun 25, 11:23 am, Darren Brierton 
> wrote:
>
>
>
> > I'm using tablesorter with the pager plugin. The last cell of each row
> > in the table contains a checkbox. The user should not be allowed to
> > check more than 10 rows (out of several hundred); once ten checkboxes
> > are checked I want to make all the others disabled. Now if I wasn't
> > using the pager plugin this would be simplicity itself; using the
> > pager plugin it is still simple to disable all the unchecked
> > checkboxes currently displayed. But how do I access the rows of the
> > table that are cached by the tablesorter plugin that are not currently
> > in the DOM? I'm sure it is quite easy, I just can't seem to figure out
> > how to access the cached table. I assume that once I can access the
> > cache I can disable the checkboxes just as I would the ones on the
> > page (and I also assume that I still have to separately disable the
> > ones on the page as well as the ones in the cache). Can anyone
> > enlighten me?
>
> > Thanks in advance.
>
> > Best, Darren


[jQuery] tablesorter and pager: How to modify table cells in cache?

2009-06-25 Thread Darren Brierton

I'm using tablesorter with the pager plugin. The last cell of each row
in the table contains a checkbox. The user should not be allowed to
check more than 10 rows (out of several hundred); once ten checkboxes
are checked I want to make all the others disabled. Now if I wasn't
using the pager plugin this would be simplicity itself; using the
pager plugin it is still simple to disable all the unchecked
checkboxes currently displayed. But how do I access the rows of the
table that are cached by the tablesorter plugin that are not currently
in the DOM? I'm sure it is quite easy, I just can't seem to figure out
how to access the cached table. I assume that once I can access the
cache I can disable the checkboxes just as I would the ones on the
page (and I also assume that I still have to separately disable the
ones on the page as well as the ones in the cache). Can anyone
enlighten me?

Thanks in advance.

Best, Darren


[jQuery] Request for note added to doc for ready()

2008-12-25 Thread Darren

Please can a note be added to the doc for ready() wrt the bug in
Safari that div widths can be reported incorrectly if external
stylesheet is included after jquery.js.

Please see http://dev.jquery.com/ticket/3690

Thanks,
Darren


[jQuery] Re: element creation using wrap behaves oddly

2008-09-25 Thread darren

yea! weird huh?

yes the workarounds do work (and there's even a few more that i can
think of) but i was simply scratching my head when i came up against
the problem.

ill see if i can make sense of the source, and perhaps submit a ticket
so that someone with a better understanding can give it a look. thanks
for your responses ricardo.


On Sep 25, 10:04 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> Hmmm...
>
> Actually, after some tests I found my idea of this to be false. You
> can indeed attach event handlers before an element is inserted into
> the DOM. Sorry :D
>
> But I don't know what's weirder: this construct for wrapping/attaching
> a handler at the same time or that the wrap() function prevents the
> event function from being attached. I'm not sure it's technically a
> bug, but the elements do seem to lose it's bound functions when passed
> to the wrap() function. There must be a reason for that, like the
> element having to be recreated and it's impossible to recover
> functions bound to events, but I haven't looked at the code.
>
> Anyway, hope the alternatives I showed can be useful.
>
> cheers,
> - ricardo
>
> On 26 set, 01:28, darren <[EMAIL PROTECTED]> wrote:
>
> > i don't see how creating the element, assigning the handler, and
> > replacing or appending something works... yet, creating the element,
> > assigning the handler, and wrapping it doesn't.
> > can you help me understand what the difference is?
>
> > On Sep 25, 5:39 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
>
> > > It doesn't work for you because my code is not missing a ), actually I
> > > made a mistake on rewriting it. I'm assigning the click handler to the
> > > 'b' element which was wrapped, it's not inside thewrapfunction. It
> > > should read:
>
> > > $('b').wrap('').click(function(){
> > >     alert("foo");
>
> > > });
>
> > > The second snippet I posted assigns it to the  that was created but
> > > it's not really needed.
>
> > > $('b').wrap('').parent().click(function(){
> > >     alert("foo");
>
> > > });
>
> > > As I said before, you can't attach an event handler to the element
> > > before it is appended to the DOM. While you write the click() function
> > > inside thewrap() it will never work.
>
> > > - ricardo
>
> > > On Sep 25, 4:58 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > > > sorry for the double post, not sure how that happened.
>
> > > > ricardo, your code is missing a closing ) at the end. it should be...
> > > > $('b').wrap($('').click(function(){
> > > >     alert("foo");
>
> > > > }));
>
> > > > your element creation: $('')
> > > > is equivalent to the shorthand i used: $("")
>
> > > > in either case, the click handler does not get assigned for me, so i
> > > > am not sure how it works for you?
>
> > > > On Sep 24, 1:30 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
>
> > > > > I believe you can't assing an event handler to an element before it is
> > > > > added to the DOM. This works for me:
>
> > > > > $('b').wrap($('').click(function(){
> > > > >     alert("foo");
>
> > > > > });
>
> > > > > Or if you want the click event assigned to  and not 
>
> > > > > $('b').wrap($('').parent().click(function(){
> > > > >     alert("foo");
>
> > > > > });
>
> > > > > - ricardo
>
> > > > > On Sep 24, 3:08 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > > > > > i just want to bring this up for discussion to see what people have 
> > > > > > to
> > > > > > say about it and to further my understanding of how jquery works and
> > > > > > why it works that way. maybe its a bug?
>
> > > > > > imagine the base code Hello World!
>
> > > > > > // fails to assign click handler:
> > > > > >$("").click(function(){
> > > > >     alert("foo");
> > > > > })
>
> > > > > > // also fails... wrapAll, wrapInner etc
>
> > > > > > // works as expected:
> > > > > > $("b").replaceWith($("Hello 
> > > > > > World").click(function(){
> > > > > >     alert("foo");}));
>
> > > > > > // also works as expected: html, prepend, append, after, before,
> > > > > > etc...
>
> > > > > > i found thisodd. thoughts?


[jQuery] Re: element creation using wrap behaves oddly

2008-09-25 Thread darren

i don't see how creating the element, assigning the handler, and
replacing or appending something works... yet, creating the element,
assigning the handler, and wrapping it doesn't.
can you help me understand what the difference is?




On Sep 25, 5:39 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> It doesn't work for you because my code is not missing a ), actually I
> made a mistake on rewriting it. I'm assigning the click handler to the
> 'b' element which was wrapped, it's not inside thewrapfunction. It
> should read:
>
> $('b').wrap('').click(function(){
>     alert("foo");
>
> });
>
> The second snippet I posted assigns it to the  that was created but
> it's not really needed.
>
> $('b').wrap('').parent().click(function(){
>     alert("foo");
>
> });
>
> As I said before, you can't attach an event handler to the element
> before it is appended to the DOM. While you write the click() function
> inside thewrap() it will never work.
>
> - ricardo
>
> On Sep 25, 4:58 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > sorry for the double post, not sure how that happened.
>
> > ricardo, your code is missing a closing ) at the end. it should be...
> > $('b').wrap($('').click(function(){
> >     alert("foo");
>
> > }));
>
> > your element creation: $('')
> > is equivalent to the shorthand i used: $("")
>
> > in either case, the click handler does not get assigned for me, so i
> > am not sure how it works for you?
>
> > On Sep 24, 1:30 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
>
> > > I believe you can't assing an event handler to an element before it is
> > > added to the DOM. This works for me:
>
> > > $('b').wrap($('').click(function(){
> > >     alert("foo");
>
> > > });
>
> > > Or if you want the click event assigned to  and not 
>
> > > $('b').wrap($('').parent().click(function(){
> > >     alert("foo");
>
> > > });
>
> > > - ricardo
>
> > > On Sep 24, 3:08 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > > > i just want to bring this up for discussion to see what people have to
> > > > say about it and to further my understanding of how jquery works and
> > > > why it works that way. maybe its a bug?
>
> > > > imagine the base code Hello World!
>
> > > > // fails to assign click handler:
> > > >$("").click(function(){
> > >     alert("foo");
> > > })
>
> > > > // also fails... wrapAll, wrapInner etc
>
> > > > // works as expected:
> > > > $("b").replaceWith($("Hello World").click(function(){
> > > >     alert("foo");}));
>
> > > > // also works as expected: html, prepend, append, after, before,
> > > > etc...
>
> > > > i found thisodd. thoughts?


[jQuery] Re: element creation using wrap behaves oddly

2008-09-25 Thread darren

sorry for the double post, not sure how that happened.

ricardo, your code is missing a closing ) at the end. it should be...
$('b').wrap($('').click(function(){
alert("foo");
}));

your element creation: $('')
is equivalent to the shorthand i used: $("")

in either case, the click handler does not get assigned for me, so i
am not sure how it works for you?






On Sep 24, 1:30 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> I believe you can't assing an event handler to an element before it is
> added to the DOM. This works for me:
>
> $('b').wrap($('').click(function(){
>     alert("foo");
>
> });
>
> Or if you want the click event assigned to  and not 
>
> $('b').wrap($('').parent().click(function(){
>     alert("foo");
>
> });
>
> - ricardo
>
> On Sep 24, 3:08 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > i just want to bring this up for discussion to see what people have to
> > say about it and to further my understanding of how jquery works and
> > why it works that way. maybe its a bug?
>
> > imagine the base code Hello World!
>
> > // fails to assign click handler:
> >$("").click(function(){
>     alert("foo");
> })
>
> > // also fails... wrapAll, wrapInner etc
>
> > // works as expected:
> > $("b").replaceWith($("Hello World").click(function(){
> >     alert("foo");}));
>
> > // also works as expected: html, prepend, append, after, before,
> > etc...
>
> > i found this odd. thoughts?


[jQuery] element creation using wrap behaves oddly

2008-09-24 Thread darren

i just want to bring this up for discussion to see what people have to
say about it and to further my understanding of how jquery works and
why it works that way. maybe its a bug?

imagine the base code Hello World!

// fails to assign click handler:
$("b").wrap($("").click(function(){
alert("foo");
}));
// also fails... wrapAll, wrapInner etc


// works as expected:
$("b").replaceWith($("Hello World").click(function(){
alert("foo");
}));
// also works as expected: html, prepend, append, after, before,
etc...


i found this odd. thoughts?


[jQuery] element creation using wrap behaves oddly

2008-09-24 Thread darren

i just want to bring this up for discussion to see what people have to
say about it and to further my understanding of how jquery works and
why it works that way. maybe its a bug?

imagine the base code Hello World!

// fails to assign click handler:
$("b").wrap($("").click(function(){
alert("foo");
}));
// also fails... wrapAll, wrapInner etc


// works as expected:
$("b").replaceWith($("Hello World").click(function(){
alert("foo");
}));
// also works as expected: html, prepend, append, after, before,
etc...


i found this odd. thoughts?


[jQuery] problem with a draggable object

2008-07-08 Thread darren

Hi

I wrote a script that makes objects that are kind of like sticky
notes.  You can move them around the page.  I'm using .draggable() via
the UI core library.

My problem is that these notes often have scroll bars on them.  When a
user clicks the scrollbar to scroll the div, they move the object
instead.  Using the scroll wheel works as it should (scrolling the
div, not moving it).  Is there anything I can do to fix this?

You can see an example here:
http://isebeta.uvic.ca/Library/Texts/AYL/M/Scene/1.1
-click annotations (bottom left)
- click any underlined text
- move / scroll a long note (some notes are short and dont have
scrollbars, some are longer)


[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-03 Thread darren

Hi Jeff

thanks a lot for taking a look at my problem.  I edited the
jquery-1.2.6 file and added {} codeblocks to the problem area you
described, and still the same error.  Strange that the error is so
deep in the jquery library.  did you use firebug to find that bug? I'm
finding firebug to be somewhat of a pain for javascript debugging,
especially the beta with firefox 3.  Are there any other good js
debuggers out there?

If anybody else has any suggestions for me, i would really appreciate
it. thanks

On Jul 2, 6:33 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> As a note, your "apparatusTooltips.js" script has a badly-formed array on
> lines 30-37.  This doesn't affect FF but will kill IE.
>
> But onto the underlying problem.
>
> The actual issue seems to be with the grep method:
>
> // Go through the array, only saving the items
> 1197 // that pass the validator function
> 1198 for ( var i = 0, length = elems.length; i < length; i++ )
> 1199    if ( !inv != !callback( elems[ i ], i ) )
> 1200       ret.push( elems[ i ] );
>
> When show is called, it first filters by ':hidden'.
>
> There is only 1 element in the elems array.
>
> The loop starts off correctly, going through 1198, 1199, 1200 for the first
> iteration.
>
> The second iteration it exist the "for" loop as (i
> But when exiting the loop, it still executes line 1200, adding a null value
> to the return array.
>
> This is likely a bug in FireFox, but it would probably go away if code
> blocks { } were expressly defined around the for loop and the if statement.
>
> JK
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of darren
> Sent: Wednesday, July 02, 2008 4:42 PM
> To: jQuery (English)
> Subject: [jQuery] Re: cant upgrade from 1.2.3 to 1.2.6
>
> right.
>
> ok well this doesn't look like just an each() error, its happening
> with click() now too.
>
> here is the page with the 
> errors:http://isebeta.uvic.ca/Library/Texts/AYL/M/Scene/1.1
>
> generate the errors by clicking on "show" or "[+]" in the Commentary
> menu to the lower left of the page.
> The former generates a "object not defined" error
> the latter generates a "this.style not defined"
>
> Again, this code works correctly with 1.2.3.
>
> A suggestion on the irc channel was to first check if the thing being
> passed into .each() is not undefined, but I don't really understand
> this suggestion.
>
> thanks for any help.
>
> On Jul 2, 3:55 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> > That part of the code is the $.each iteration.  What is the call stack
> when
> > the error is thrown?
>
> > Without a better context, it's going to be really hard to see what's going
> > on.
>
> > Do you have a demo page with this error?  Even if you can't post the full
> > page for security reasons, if you can reproduce the error with a simpler
> > demo page that would help track it down.
>
> > JK
>
> > -Original Message-
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> > Behalf Of darren
> > Sent: Wednesday, July 02, 2008 3:00 PM
> > To: jQuery (English)
> > Subject: [jQuery] cant upgrade from 1.2.3 to 1.2.6
>
> > Hi
>
> > I'm trying to upgrade a project from jquery 1.2.3 to 1.2.6, but doing
> > so is causing a error in my script  Firebug gives the error:
>
> > object is undefined
> > var name, i = 0, length =
> object.length;http://../script/jquery-1.2.6.js
> > Line 725
>
> > I'm going to try to step through my code and narrow down the problem,
> > but i'd appreciate any other suggestions.  thanks


[jQuery] Re: cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread darren

right.

ok well this doesn't look like just an each() error, its happening
with click() now too.

here is the page with the errors:
http://isebeta.uvic.ca/Library/Texts/AYL/M/Scene/1.1

generate the errors by clicking on "show" or "[+]" in the Commentary
menu to the lower left of the page.
The former generates a "object not defined" error
the latter generates a "this.style not defined"

Again, this code works correctly with 1.2.3.

A suggestion on the irc channel was to first check if the thing being
passed into .each() is not undefined, but I don't really understand
this suggestion.

thanks for any help.

On Jul 2, 3:55 pm, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote:
> That part of the code is the $.each iteration.  What is the call stack when
> the error is thrown?
>
> Without a better context, it's going to be really hard to see what's going
> on.
>
> Do you have a demo page with this error?  Even if you can't post the full
> page for security reasons, if you can reproduce the error with a simpler
> demo page that would help track it down.
>
> JK
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of darren
> Sent: Wednesday, July 02, 2008 3:00 PM
> To: jQuery (English)
> Subject: [jQuery] cant upgrade from 1.2.3 to 1.2.6
>
> Hi
>
> I'm trying to upgrade a project from jquery 1.2.3 to 1.2.6, but doing
> so is causing a error in my script  Firebug gives the error:
>
> object is undefined
> var name, i = 0, length = 
> object.length;http://../script/jquery-1.2.6.js
> Line 725
>
> I'm going to try to step through my code and narrow down the problem,
> but i'd appreciate any other suggestions.  thanks


[jQuery] possible bug in each()? moving from 1.2.3 to 1.2.6

2008-07-02 Thread darren

Hi

Im trying to use 1.2.6, moving from 1.2.3.  I have a working function
in 1.2.3 but it is not working with the updated jquery library, and
I'm wondering if i have found a bug.

The trouble call is this:

jQuery('#apparatus .annotation').each( function(i){
...

When stepping over this call, firebug returns an error of "object not
defined".

As I mentioned, this code is working correctly with jQuery 1.2.3.
Note also I'm using jQuery, not $ for all of my calls.  Also, im using
jQuery.noConflict(). I have tried to used the uncompressed and packed
versions, witht he same result.

Any suggestions?


[jQuery] cant upgrade from 1.2.3 to 1.2.6

2008-07-02 Thread darren

Hi

I'm trying to upgrade a project from jquery 1.2.3 to 1.2.6, but doing
so is causing a error in my script  Firebug gives the error:

object is undefined
var name, i = 0, length = object.length;
http://../script/jquery-1.2.6.js
Line 725

I'm going to try to step through my code and narrow down the problem,
but i'd appreciate any other suggestions.  thanks


[jQuery] [treeview] hundreds of requests for images in IE6.

2008-07-01 Thread Darren

Hello,

I am using the jQuery treeview plugin and am noticing that every time
I expand and collapse nodes the browser is making hundreds of requests
for the images associated with the tree.

I notice it also happens on the treeview demo page. Does anyone have a
workaround for this?

Many Thanks.
Darren



[jQuery] [treeview] hundreds of requests for images in IE6.

2008-07-01 Thread Darren

Hello,

I am using the jQuery treeview plugin and when expanding nodes in IE6
the browser is making large amounts of requests for the supporting
images.

Is there a way around this so that each image is only requested once.

I noticed that this also happens with the samples.

Thanks.
Darren.


[jQuery] when to call noConflict?

2008-05-20 Thread darren

hi everybody

I have some code where i need to use jQuery.noConflict()

Do i call it before or after
jQuery(document).ready() ?


[jQuery] Re: how i can access classes in my div?

2008-05-12 Thread darren

you could even use commas in your selector so that you aren't
repeating your statements.

On May 12, 5:51 pm, Luciano <[EMAIL PROTECTED]> wrote:
> hdfsuahd it`s ok ok..
> i forgot space.."#box2. bloc-top"
>
> On 12 maio, 20:35, Luciano <[EMAIL PROTECTED]> wrote:
>
> > how i can access classes in my div?
> > example:
>
> > $("#box1.bloc-top").click(function () {
> >   $(".bloc-center").slideToggle("slow");
>
> > });
>
> > $("#box2.bloc-top").click(function () {
> >   $(".bloc-center").slideToggle("slow");
>
> > });
>
> > $("#box3.bloc-top").click(function () {
> >   $(".bloc-center").slideToggle("slow");
>
> > });
>
> > 
> >  content top
> >  content slideToggle
> > 
>
> > 
> >  content top
> >  content slideToggle
> > 
>
> > etc..
> > i tryed this it but no success


[jQuery] Re: growl for jquery

2008-05-12 Thread darren

very nice.

I could see myself going way overboard with something like this. Note
to self, less is more.

On May 11, 4:55 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> Growl for jquery
>
> http://projects.zoulcreations.com/jquery/growl/
>
> Rey


[jQuery] Re: JQ Comments and Bug help

2008-05-11 Thread darren

hi there

I'm fairly new to jQuery / javascript as well, but when i run into
similar problems, I can usually determine what is wrong using
firebug.  If you aren't using it yet, get it now, as it will save you
a lot of head scratching.  Your problem looks like you are trying to
access a function on an object that doesn't have such a function.
This happens to me when i think a variable is holding an object of
some type but its really not (this is why I dont like nonstrict type
systems).  Anways, using firebug, load your page so you can see the
script in firebug, then add a breakpoint to a statement immediately
preceding your problem statement.  Have the script freeze at that
breakpoint and look at your variables.  do you see anything strange?
something you didn't expect? an "undefined" variable or "null"
variable perhaps?  This may sound confusing, if so, go to www.getfirebug.com
and read about the debugger.  I promise you its worth your time to
learn how to use it.

good luck

Darren

On May 11, 1:07 pm, [EMAIL PROTECTED] wrote:
> This message was also posted in the General Discussion Group, but I'm a bit
> confused how things work around here so please forgive this newbie to the
> JQuery  world.
>
> It's taken me a little while, but I believe I have finally succumbed to the
> power and wonder that is... JQuery.  I have been bouncing from framework to
> framework for about 9 months, much of that time devoted to building my  own.  
> I
> was on the cusp of giving in to ExtJS at one point, but in the end,  the
> fancy widgets weren't a compelling enough force to make me commit.  As  my own
> framework continued to evolve (and be rewritten) my objectives became  
> clearer,
> and one of those objectives was developing a way to deal with the  dom (and
> other things) in a terse-as-possible way - you know, keep  subclassing or
> funneling the code until it would take a line or 2 to manage  complex widgets 
> - not
> to mention the flexibility of javascript syntax to help  keep things brief.
> Given another 2 or 22 years, I think my system would  have been very close to
> JQuery.
>
> That said, I am still a JQuery super-newbie, and although code is starting
> to happen and I'm starting to get the magic, I'm having a problem with some
> basic stuff.  Forgive me if this is not in the proper section on this  site.
>
> When I attempt to use the resizeable or draggable classes in jquery.ui, I
> run into errors.  When using draggable, I get a "this.helper.offsetParent  is
> not a function". message.  For resizeable I get...
> this.element.position is not a function
> [Break on this error] var o =  this.options, iniPos =
> this.element.position(), el =this.element,
>
> I'm trying to drag and/or resize a simple div (whether it's created on the
> fly or in the html) all I do is add the dot-draggable() to the object and I 
> get
>  the error message (in FF).  The cursor does change to the appropriate
> states (for resizeable) and obviously, from the error messages, I've made it  
> into
> the code that should be doing the dragging and resizing.
>
> Can you explain what's going on?  Any help is very much  appreciated.  And
> also, thank you for creating a brilliant piece of  code.  I am hoping it will
> become my framework of choice for a long time to  come.
>
> **Wondering what's for Dinner Tonight? Get new twists on family
> favorites at AOL Food.
> (http://food.aol.com/dinner-tonight?NCID=aolfod000301)


[jQuery] Re: find by partial id

2008-05-11 Thread darren

could you try to build up the whole id name with a string variable?

var full_id = knownCommonPart + chaingPart;
jQuery("#" + full_id).doStuff();

On May 11, 12:37 am, vladv <[EMAIL PROTECTED]> wrote:
> hello
> please help me with a simple question
>
> i have a control which is rendered couple of times (gridview) and gets
> some id which i know only part of, for example if i named my label
> lblName then on each row I will have
>
> gvMyGrid$ctr32$lblName or something like this..
>
> how can I find all the labels? can I find by partial id?
>
> I tried $("#*lblName"). but it doesn't work
>
> Thank you


[jQuery] Re: SELECTOR MADNESS! How To Grab Lowest Child Node's Text?!

2008-05-08 Thread darren

hey joe, it looks like testing node types may help with your problem.
Google node types and you'll find that DOM text nodes are type 3,
element nodes are type 1 etc etc. You could do something using the
selector expression [nodeType=3] to determine if the current node you
have selected is a text node.

On May 7, 4:22 pm, Ariel Flesler <[EMAIL PROTECTED]> wrote:
> Hey, made a 10 min class to do this. It doesn't use jQuery at all, so
> it will work as fast as possible.
> You only need to specify the translating function.
>
> Made a blog post to detail its use.
>
> http://flesler.blogspot.com/2008/05/textnode-translator-for-javascrip...
>
> I never used Google translator, but it probably requires AJAX, so pay
> attention to the 'sync' part.
>
> Cheers
>
> --
> Ariel Fleslerhttp://flesler.blogspot.com
>
> On 7 mayo, 16:22, Joe <[EMAIL PROTECTED]> wrote:
>
> > Balazs,
>
> > Thanks, but I tried your plugin and it did not work.  There is no demo
> > for say clicking a button and converting the page; the bookmarklet is
> > cool, but doesn't really help when I can't get the plugin to work.  I
> > emailed you so hopefully I'll hear back...
>
> > I did actually re-create your plugin, but didn't author it or add any
> > bells and whistles, just translating an entire page and/or element...
>
> > Cheers.
>
> > Joe
>
> >www.subprint.com
>
> > On May 7, 1:39 pm, Balazs Endresz <[EMAIL PROTECTED]> wrote:
>
> > > Hi! I replied in the previous thread but it hasn't appeared in Google
> > > groups, just 
> > > here:http://www.nabble.com/Selector-Madness!--How-to-Select-all-the-Text-o...
> > > So there is a translate plugin that works this way:
>
> > >http://code.google.com/p/jquery-translate/
>
> > > On May 5, 9:32 pm, Joe <[EMAIL PROTECTED]> wrote:
>
> > > > Last week I had a question on how to traverse the DOM and find all 
> > > > elements that had some text (p, a, li, h1, etc.) so I could manipulate
> > > > it with Google's translation API.  Well with some help from the
> > > > community I was able to accomplish this feat.
>
> > > >http://groups.google.com/group/jquery-en/browse_thread/thread/c63da32...
>
> > > > However, I have a bigger problem.  Now, when I grab 
> > > > theallproperelements:
>
> > > > $a = $(' #container > * ').contents();
>
> > > > And parse thru them tofindwhich ones have text, it does just that
> > > > BUT if an unordered list is within a div and that UL has text it will
> > > > show up not only with the UL, but within the DIV as well.
>
> > > > $a.each(function()
> > > > { ... translate stuff here ..});
>
> > > > So in iteration one, wefindthe DIV, and then locate any andALLtext
> > > > in the DIV.  Quite a bit for the header navigation.
>
> > > > Example Result for Div:
> > > > HOME BUSINESS CONTACT ABOUT
>
> > > > Then the next iteration is the UL, and it finds its text, which is
> > > > basically the same as the DIV's text result.
>
> > > > Example Result for UL:
> > > > HOME BUSINESS CONTACT ABOUT
>
> > > > Then the next iteration is the LI element, which has the proper text
> > > > but,
>
> > > > The next iteration is the A element which is finally the text I
> > > > actually want to translate.
>
> > > > Example Result for LI and A:
> > > > HOME
>
> > > > So myquestionis how can Itraversedown and grab thelastchild on
> > > > that particular "branch" of theDOM.  Surely there's a way to check if
> > > > current node has or does not have a child, but how with jQuery?
>
> > > > Thanks!
>
> > > > BTW, Ariel Fleisler's recommendation from the previous post appears to
> > > > be the best approach, but my pure Javascript mixing with jQuery skills
> > > > are not quite up to snuff to hash that out...- Ocultar texto de la cita 
> > > > -
>
> > - Mostrar texto de la cita -


[jQuery] Re: $ is not defined

2008-05-06 Thread darren

yeah I get that error when libraries conflict.  We are using the
Prototype and jQuery libraries together on a project.  If it is an
issue of multiple libraries using the $, try the above solution of
using jQuery() instead of $().  Also look into the jQuery noConflict
function.

On May 6, 5:42 pm, Adwin  Wijaya <[EMAIL PROTECTED]> wrote:
> It can be becaused the $ was used by another library like in wordpress
> admin (if i am not wrong), $ is assigned to their own lib.
>
> so try to use this : jQuery('#yourid').val(); :)
>
> On May 6, 11:57 pm, motob <[EMAIL PROTECTED]> wrote:
>
> > When ever I get the $ not defined error, its because my core jQuery
> > library is not there, for example when I switch from jquery.pack to
> > jquery.min and I forget to change the 

[jQuery] Re: need some help with selecting text nodes

2008-05-06 Thread darren

oh man, i wish i could do as you suggested, that was my first idea and
it would make things so much easier.  However, the code i'm working
with is markup of Shakespeare's works.  Its incredibly complex and we
use Cocoon to generate these pages from xml.  long story short, my
employer can't afford to make such a change now so I have to make due
with what's there.  I think i came up with a reasonable solution
though:

1. Find the div with the lower tln value. Then get its index with
respect to the parent.
2. Find the next highest div tln and get its index as well.
3. From this we know the text node lies within the indexes, so search
for the text there.

Again, because of the code complexity, this does not always work, but
at least i'm making progress.  Thanks for your insight though.



On May 6, 9:28 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> I tried to cut corners by skimming your html.  I see it now.  The divs close
> and the text is after the div.
> This is really strange HTML to me.  Why not just put the text inside the
> div?  Or just wrap the text inside a span?
> If you wrap the text inside spans, then the jQuery is pretty simple.  I
> whipped up a sample.
>
> http://commadot.com/jquery/findTextElements.php
>
> $("#tln21").next("span").addClass("highlight")
>
> Sometimes, fancy JS is not as good as clean html.
>
> Glen
>
> On Mon, May 5, 2008 at 6:51 PM, darren <[EMAIL PROTECTED]> wrote:
>
> > hi glen, thanks for replying.
>
> > That still wouldn't work. With that you are looking for the text
> > inside div elements which are descendants of of the id'd element.
> > What i want to select are certain text elements of the id'd element.
> > I figured something out, but this is surprisinlgy difficult:
>
> > 
> > 
> > 
> > 
> > 
> > ...
> > 
>
> > I had to use .contains() and [nodeType=3] to pick text nodes.  not
> > pretty.
>
> > On May 5, 4:23 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> > > $("#tln21 div").text();
>
> > > Like that?  By the way, firebug is very helpful to test our selectors and
> > > see what they come up with.
> > > Hmm, it would be nice to have a tutorial on how to do this.  I can try
> > and
> > > whip one up.
>
> > > Glen
>
> > > On Mon, May 5, 2008 at 2:47 PM, darren <[EMAIL PROTECTED]> wrote:
>
> > > > hi Joe, thanks for your comment
>
> > > > If you look closer, you can see that the text is not actually in the
> > > > div element.  i basically need to select the text after that node:
>
> > > > 
> > > >   
> > > >   Some text
> > > >   
> > > >   some more text
> > > >   
> > > >   even more text
> > > > 
>
> > > > So that wouldnt work
>
> > > > On May 5, 2:06 pm, Joe <[EMAIL PROTECTED]> wrote:
> > > > > $("#tln21').text();
>
> > > > > This will return the text associated with id="tln21".
>
> > > > >http://docs.jquery.com/Attributes/text
>
> > > > > Joe
>
> > > > >www.subprint.com
>
> > > > > On May 5, 2:34 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > > > > > Hi everybody, new member here.
>
> > > > > > I have a project with the following snipped of code:
>
> > > > > > =start html=
> > > > > > 
> > > > > >   
> > > > > >  
> > > > > >   As I remember, Adam, it was
> > upon
> > > > > > this fashion
> > > > > >   5bequeathed me by will but poor a thousand
> > > > > >   
> > > > > >  
> > > > > >   crowns, and, as thou say'st,
> > > > > > charged my brother,
> > > > > >   
> > > > > >  
> > > > > >   on his blessing, to breed me
> > well;
> > > > > > and
> > > > > >   
> > > > > >  
> > > > > >   there begins my sadness. My
> > > 

[jQuery] Re: php mysql

2008-05-06 Thread darren

Yeah, you can use jquery to help you make ajax calls to your server,
but really, all of the database programming is done there.  you'd
still use php or python.  jquery just hlps you make things look good
from the client side.

On May 6, 1:58 am, FreakDev <[EMAIL PROTECTED]> wrote:
> jQuer is a javascript "framework" and not a all a "server side" langage...
>
>
>
> On Tue, May 6, 2008 at 2:57 AM, John <[EMAIL PROTECTED]> wrote:
>
> > I have the same question. I have over 20k rows of data in mysql, and
> > the idea is for there to be an update button beside each row. I don't
> > see any examples of how to interact with the database here -- in php
> > it's $sql = "..."; in ruby/rails it's Thing.new[...], but what's up
> > with jquery? I don't think an explanation would be voodoo - it'd be a
> > lifesaver. I already understand the old ways - school me on the
> > jquery.
> > Thanks
> > John
>
> > > This is a pretty big question. What you need to do is learn how to do
> > > it with regular HTTP interaction with the backend. Once you understand
> > > that you'll be able to adapt it to Ajax. A firm grounding in HTTP
> > > makes XHR pretty straightforward.
>
> > > Doing this right is not simple. You should probably read up on REST
> > > and understand which parts should GET and which parts should POST (or
> > > really even PUT/DELETE but that's often unused due to bad support and
> > > general lack of understanding).
>
> > > The take away point is that if you don't know how to do every part
> > > with regular forms and backend interaction already, doing it in Ajax
> > > will seem like insurmountable voodoo.
>
> --
> FreakDev
>
> www.FreakDev.com


[jQuery] Re: need some help with selecting text nodes

2008-05-05 Thread darren

hi glen, thanks for replying.

That still wouldn't work. With that you are looking for the text
inside div elements which are descendants of of the id'd element.
What i want to select are certain text elements of the id'd element.
I figured something out, but this is surprisinlgy difficult:






...


I had to use .contains() and [nodeType=3] to pick text nodes.  not
pretty.

On May 5, 4:23 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> $("#tln21 div").text();
>
> Like that?  By the way, firebug is very helpful to test our selectors and
> see what they come up with.
> Hmm, it would be nice to have a tutorial on how to do this.  I can try and
> whip one up.
>
> Glen
>
> On Mon, May 5, 2008 at 2:47 PM, darren <[EMAIL PROTECTED]> wrote:
>
> > hi Joe, thanks for your comment
>
> > If you look closer, you can see that the text is not actually in the
> > div element.  i basically need to select the text after that node:
>
> > 
> >   
> >   Some text
> >   
> >   some more text
> >   
> >   even more text
> > 
>
> > So that wouldnt work
>
> > On May 5, 2:06 pm, Joe <[EMAIL PROTECTED]> wrote:
> > > $("#tln21').text();
>
> > > This will return the text associated with id="tln21".
>
> > >http://docs.jquery.com/Attributes/text
>
> > > Joe
>
> > >www.subprint.com
>
> > > On May 5, 2:34 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > > > Hi everybody, new member here.
>
> > > > I have a project with the following snipped of code:
>
> > > > =start html=
> > > > 
> > > >   
> > > >  
> > > >   As I remember, Adam, it was upon
> > > > this fashion
> > > >   5bequeathed me by will but poor a thousand
> > > >   
> > > >  
> > > >   crowns, and, as thou say'st,
> > > > charged my brother,
> > > >   
> > > >  
> > > >   on his blessing, to breed me well;
> > > > and
> > > >   
> > > >  
> > > >   there begins my sadness. My
> > > > brother Jaques he keeps
> > > >   
> > > >  
> > > >   at school, and report speaks
> > > > goldenly of his profit.
> > > >   10For my part, he keeps me rustically at home, or, to
> > > > speak
> > > >   
> > > >  
> > > >   more properly, stays me here at
> > > > home unkept; for call
> > > >   
> > > >  
> > > >   you that "keeping" for a gentleman
> > > > of my birth that differs
> > > >   
> > > >  
> > > >   not from the stalling of an ox?
> > > > His horses are bred
> > > >   
> > > >  
> > > >   better, for, besides that they are
> > > > fair with their feeding,
> > > >   15they are taught their man�ge, and to that end riders
> > > >   
> > > >  
> > > >   dearly hired; but I, his brother,
> > > > gain nothing under
> > > >   
> > > >  
> > > >   him but growth, for the which his
> > > > animals on his
> > > >   
> > > >  
> > > >   dunghills are as much bound to him
> > > > as I. Besides this nothing
> > > >   
> > > >  
> > 

[jQuery] Re: need some help with selecting text nodes

2008-05-05 Thread darren

oh and yes, firebug is a Godsend. It is the most useful tool in my
programming environment, by a long shot. I strongly recommend people
learn all of its features like the debugger and the profiler.

On May 5, 4:23 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> $("#tln21 div").text();
>
> Like that?  By the way, firebug is very helpful to test our selectors and
> see what they come up with.
> Hmm, it would be nice to have a tutorial on how to do this.  I can try and
> whip one up.
>
> Glen
>
> On Mon, May 5, 2008 at 2:47 PM, darren <[EMAIL PROTECTED]> wrote:
>
> > hi Joe, thanks for your comment
>
> > If you look closer, you can see that the text is not actually in the
> > div element.  i basically need to select the text after that node:
>
> > 
> >   
> >   Some text
> >   
> >   some more text
> >   
> >   even more text
> > 
>
> > So that wouldnt work
>
> > On May 5, 2:06 pm, Joe <[EMAIL PROTECTED]> wrote:
> > > $("#tln21').text();
>
> > > This will return the text associated with id="tln21".
>
> > >http://docs.jquery.com/Attributes/text
>
> > > Joe
>
> > >www.subprint.com
>
> > > On May 5, 2:34 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > > > Hi everybody, new member here.
>
> > > > I have a project with the following snipped of code:
>
> > > > =start html=
> > > > 
> > > >   
> > > >  
> > > >   As I remember, Adam, it was upon
> > > > this fashion
> > > >   5bequeathed me by will but poor a thousand
> > > >   
> > > >  
> > > >   crowns, and, as thou say'st,
> > > > charged my brother,
> > > >   
> > > >  
> > > >   on his blessing, to breed me well;
> > > > and
> > > >   
> > > >  
> > > >   there begins my sadness. My
> > > > brother Jaques he keeps
> > > >   
> > > >  
> > > >   at school, and report speaks
> > > > goldenly of his profit.
> > > >   10For my part, he keeps me rustically at home, or, to
> > > > speak
> > > >   
> > > >  
> > > >   more properly, stays me here at
> > > > home unkept; for call
> > > >   
> > > >  
> > > >   you that "keeping" for a gentleman
> > > > of my birth that differs
> > > >   
> > > >  
> > > >   not from the stalling of an ox?
> > > > His horses are bred
> > > >   
> > > >  
> > > >   better, for, besides that they are
> > > > fair with their feeding,
> > > >   15they are taught their man�ge, and to that end riders
> > > >   
> > > >  
> > > >   dearly hired; but I, his brother,
> > > > gain nothing under
> > > >   
> > > >  
> > > >   him but growth, for the which his
> > > > animals on his
> > > >   
> > > >  
> > > >   dunghills are as much bound to him
> > > > as I. Besides this nothing
> > > >   
> > > >  
> > > >   that he so plentifully gives me,
> > > > the something that
> > > >   20nature gave me his countenance se

[jQuery] Re: need some help with selecting text nodes

2008-05-05 Thread darren

hi Joe, thanks for your comment

If you look closer, you can see that the text is not actually in the
div element.  i basically need to select the text after that node:


   
   Some text
   
   some more text
   
   even more text


So that wouldnt work

On May 5, 2:06 pm, Joe <[EMAIL PROTECTED]> wrote:
> $("#tln21').text();
>
> This will return the text associated with id="tln21".
>
> http://docs.jquery.com/Attributes/text
>
> Joe
>
> www.subprint.com
>
> On May 5, 2:34 pm, darren <[EMAIL PROTECTED]> wrote:
>
> > Hi everybody, new member here.
>
> > I have a project with the following snipped of code:
>
> > =start html=
> > 
> >   
> >  
> >   As I remember, Adam, it was upon
> > this fashion
> >   5bequeathed me by will but poor a thousand
> >   
> >  
> >   crowns, and, as thou say'st,
> > charged my brother,
> >   
> >  
> >   on his blessing, to breed me well;
> > and
> >   
> >  
> >   there begins my sadness. My
> > brother Jaques he keeps
> >   
> >  
> >   at school, and report speaks
> > goldenly of his profit.
> >   10For my part, he keeps me rustically at home, or, to
> > speak
> >   
> >  
> >   more properly, stays me here at
> > home unkept; for call
> >   
> >  
> >   you that "keeping" for a gentleman
> > of my birth that differs
> >   
> >  
> >   not from the stalling of an ox?
> > His horses are bred
> >   
> >  
> >   better, for, besides that they are
> > fair with their feeding,
> >   15they are taught their man�ge, and to that end riders
> >   
> >  
> >   dearly hired; but I, his brother,
> > gain nothing under
> >   
> >  
> >   him but growth, for the which his
> > animals on his
> >   
> >  
> >   dunghills are as much bound to him
> > as I. Besides this nothing
> >   
> >  
> >   that he so plentifully gives me,
> > the something that
> >   20nature gave me his countenance seems to take from
> >   
> >  
> >   me. He lets me feed with his
> > hinds, bars me the
> >   
> >  
> >   place of a brother, and as much as
> > in him lies, mines my
> >   
> >  
> >   gentility with my education. This
> > is it, Adam, that
> >   
> >  
> >   grieves me; and the spirit of my
> > father, which I think
> >   25is within me, begins to mutiny against this servitude.
> >   
> >  
> >   I will no longer endure it, though
> > yet I know no wise
> >   
> >  
> >   remedy how to avoid it.
> >   
> >
> > End HTML
>
> > I have a short selection of text and a tln that the text should be
> > found near.  I wan to use jquery to find this text node so that i can
> > manipulate it.  My trouble is that I dont understand how the DOM
> > treats text nodes and element nodes.
>
> > So say for example i had the information (tln21) and a text snippet
> > "He lets me".  What i tried was:
> > $("#tln21').siblings()
> > But this is only returning element siblings, not text siblings.
>
> >   what can i do here? thanks for any help.


[jQuery] need some help with selecting text nodes

2008-05-05 Thread darren

Hi everybody, new member here.

I have a project with the following snipped of code:

=start html=

  
 
  As I remember, Adam, it was upon
this fashion
  5bequeathed me by will but poor a thousand
  
 
  crowns, and, as thou say'st,
charged my brother,
  
 
  on his blessing, to breed me well;
and
  
 
  there begins my sadness. My
brother Jaques he keeps
  
 
  at school, and report speaks
goldenly of his profit.
  10For my part, he keeps me rustically at home, or, to
speak
  
 
  more properly, stays me here at
home unkept; for call
  
 
  you that "keeping" for a gentleman
of my birth that differs
  
 
  not from the stalling of an ox?
His horses are bred
  
 
  better, for, besides that they are
fair with their feeding,
  15they are taught their man�ge, and to that end riders
  
 
  dearly hired; but I, his brother,
gain nothing under
  
 
  him but growth, for the which his
animals on his
  
 
  dunghills are as much bound to him
as I. Besides this nothing
  
 
  that he so plentifully gives me,
the something that
  20nature gave me his countenance seems to take from
  
 
  me. He lets me feed with his
hinds, bars me the
  
 
  place of a brother, and as much as
in him lies, mines my
  
 
  gentility with my education. This
is it, Adam, that
  
 
  grieves me; and the spirit of my
father, which I think
  25is within me, begins to mutiny against this servitude.
  
 
  I will no longer endure it, though
yet I know no wise
  
 
  remedy how to avoid it.
  
   
End HTML

I have a short selection of text and a tln that the text should be
found near.  I wan to use jquery to find this text node so that i can
manipulate it.  My trouble is that I dont understand how the DOM
treats text nodes and element nodes.

So say for example i had the information (tln21) and a text snippet
"He lets me".  What i tried was:
$("#tln21').siblings()
But this is only returning element siblings, not text siblings.

what can i do here? thanks for any help.


[jQuery] Re: Using jQuery to track advert clicks

2007-12-12 Thread Darren Savery


Hi everyone,

Thanks for the help. I ended up using Chris's example. It didn't work
at first so I changed the code. Here is the finished jQuery code in
case anyone is interested :

$(document).ready(function() {
$("a.adtrack").click(function(){

//Get url of image advert
var adURL = $("a.adtrack").attr("href");

$.ajax({
   type: "GET",
   url: "adtrackingpage.asp",
   data: "advertURL=" + adURL
  });
 });
});

On the tracking page, I used the following ASP VBScript :

<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
  If condition = "" Then
MM_IIf = ifFalse
  Else
MM_IIf = ifTrue
  End If
End Function
%>
<%

Set Insert = Server.CreateObject ("ADODB.Command")
Insert.ActiveConnection = MM_Tracking_STRING
Insert.CommandText = "INSERT INTO dbo.adtracker (URL)  VALUES (?) "
Insert.Parameters.Append Insert.CreateParameter("varTitle", 200, 1,
50, MM_IIF(Request.Querystring("advertURL"),
Request.Querystring("advertURL"), Insert__varTitle & ""))
Insert.CommandType = 1
Insert.CommandTimeout = 0
Insert.Prepared = true
Insert.Execute()

%>

Works perfectly!

For those that are interested and might have a use for it in future,
one of the most important factors in search engine rankings (at the
moment) is direct inbound links from other websites e.g. (A - B).
People using click tracking usually use a tracking page that sits
between these 2 e.g. (A - C -B). In doing so, the link 'love' isn't
passed on to the target URL. Using the above code, the link is left
inact while tracking still occurs. Sweet!

Thanks!


[jQuery] Using jQuery to track advert clicks

2007-12-11 Thread Darren Savery

Hi,

Is it possible to use jQuery to track advert clicks? I have adverts
that appear on certain pages of my site. Whenever someone clicks on an
advert, I would like to record this as a new entry in a database table
(tblAdvertClicks).

I know I could pass the visitor to a processing page then forward them
on to the advert destination, but I want the link to do directly from
my site to the advertisers - without a 3rd page being involved (this
is for SEO purposes in case anyone is interested). Someone suggested
jQuery could do this.

Can anyone help?