Re: [jQuery] jqModal r7 IE6 Problems

2007-02-23 Thread Brice Burgess
Jake McGraw wrote:
> Anyone have any ideas? Does r7 not work with IE6?
Jake,

  I've updated the plugin page (http://dev.iceburg.net/jquery/jqModal) 
with a crash fix for IE6. Let me know if you're still having problems.

As of now, the only bug I'm aware of has to do with page interactivity 
and IE6. If you disable the overlay, IE6 will still cover the page with 
a transparent iframe (to avoid active-x bleed through).. rendering the 
background page unusable. E.g. In example 5, you will not be able to 
click the close links (or any other links) after activating the squares.

  I plan to integrate the bgiframe plugin technique to fix the 
interactivity issue. I remember failing to accomplish this using 
width/height of 100% + absolute top/left positioning in a containing 
element (the weindow). In Firefox the iframe would appear properly 
placed.. however it was a no go in IE6 ... the only browser which needs 
this baneful kludge to behave well with activex object ( 
elements nonetheless).

  My previous code looked something like;


...
[[[ dialog content


  This method "armchair" worked, but in practice, elements would still 
bleed through in IE6. So, I opted to go with the covering iframe 
temporarily until I could figure this out.

  Anyone have any thoughts (Brandon) :) ?

~ Brice

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Release: jQueryHelp - code reference application

2007-02-23 Thread Sean O

As long as the jQuery API Browser is updated to reflect the current version
of jQuery, and if the URL parameters are the same, then yes :)

If they do change, I'll update the program and post a new version.


SEAN O



Andy Matthews-4 wrote:
> 
> Will this automatically load in updates when new versions are released? 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Sean O
> Sent: Thursday, February 22, 2007 2:03 PM
> To: discuss@jquery.com
> Subject: Re: [jQuery] Release: jQueryHelp - code reference application
> 
> 
> John,
> 
> 
> Thanks for the kind words.  Attaboys right back at you for the
> collaboration
> w/Jack & Ext.  I hope you can better jQuerize those lovely-to-use, but
> byzantine-to-code Ext libraries!
> 
> 
> 
> SEAN O
> 
> 
> 
> John Resig wrote:
>> 
>> Very nice! Great job Sean!
>> 
>> --John
>> 
>> On 2/22/07, Sean O <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi guys,
>>>
>>>
>>> Today I'm releasing jQueryHelp - a small code reference application 
>>> for Windows.  Just download and run, no install required.  To gain 
>>> insight on any jQuery function, simply highlight (or just place the 
>>> cursor inside!) it and hit Ctrl-Shift-J to look up on Jörn's API 
>>> Browser.  It's IDE independent, so it'll work in Dreamweaver, 
>>> Notepad++, or your weapon of choice.
>>>
>>> http://www.sean-o.com/jquery/jqueryhelp/
>>>
>>> Note: this is an initial release and not widely tested -- but it 
>>> should work... and shouldn't cause any harm. (don't like it? just 
>>> delete the
>>> .exe)
>>>
>>> Hope this can be of some help in your jQuery projects...
>>>
>>>
>>> 
>>> SEAN O
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Release%3A-jQueryHelp---code-reference-applicat
>>> ion-tf3273256.html#a9101528 Sent from the JQuery mailing list archive 
>>> at Nabble.com.
>>>
>>>
>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/Release%3A-jQueryHelp---code-reference-application-tf3
> 273256.html#a9107114
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Release%3A-jQueryHelp---code-reference-application-tf3273256.html#a9131114
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 IE6 Problems

2007-02-23 Thread Benjamin Sterling

This is how I am using it, take a look at the js file at the link below.

http://ov-staging.informationexperts.com/common/js/ecs.js

Look for the function "setECSSecondaryLinks", and check out the code from
line 75 thru 104  that is the click event similiar to what you originally
posted and the dialog box does not need a trigger because I used .jqmShow();


Take a look at the code and let me know if this is what you are trying to
do.

Now to answer your question, I should the link because you had a link in
your first post and assumed that is what was needed.



--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 IE6 Problems

2007-02-23 Thread Jake McGraw

Thanks for the prompt reply, I normally use jqModal class on an anchor but I
wrote this version using jqmShow() because my application has a series of
events that takes place before the jqModal window has to be shown. I could
change it, but why add an anchor for the Modal window if it will never be
clicked? Is jqmShow() not fully functional yet?

- jake

On 2/23/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:


Jake,

you should set up your function something like:

$().ready(function() {
  $('#popup').jqm();
});

view


content


Do you have a better example of what you are trying to accomplish?  I am
currently using the modal and am not having any issues with any browsers.

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 IE6 Problems

2007-02-23 Thread Benjamin Sterling

Jake,

you should set up your function something like:

$().ready(function() {
 $('#popup').jqm();
});

view


content


Do you have a better example of what you are trying to accomplish?  I am
currently using the modal and am not having any issues with any browsers.

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Problems with toggle

2007-02-23 Thread Yansky

Check out this tutorial:
http://www.learningjquery.com/2007/02/more-showing-more-hiding


Eugene Louw wrote:
> 
> yes, that is exactly what I want to achieve.
> 
> On 2/23/07, Yansky <[EMAIL PROTECTED]> wrote:
>>
>>
>> What effect are you trying to acheive? Do you want the first div to be
>> shown
>> and the second div hidden on the first click and then vice-versa on the
>> second click?
>>
>>
>> Eugene Louw wrote:
>> >
>> > I don't think the toggle(function, function) works or am i trying to
>> use
>> > it
>> > incorrectly?
>> >
>> > here is a extremely simple example ::
>> >
>> > http://www.w3.org/1999/xhtml";>
>> > 
>> > Testing :: 
>> > 
>> > 
>> >
>> > 
>> > 
>> > Flip
>> > 
>> > Hallo World
>> > 
>> > 
>> > 
>> >
>> > My jquery ::
>> >
>> > * $Date: 2007-01-22 00:27:54 -0500 (Mon, 22 Jan 2007) $
>> >  * $Rev: 1153 $
>> >
>> >
>> > Kind Regards,
>> >
>> > EUgene Louw
>> >
>> > ___
>> > jQuery mailing list
>> > discuss@jquery.com
>> > http://jquery.com/discuss/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Problems-with-toggle-tf3281893.html#a9129868
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> 
> Eugene Louw
> 
> Nowhere, South Africa
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-toggle-tf3281893.html#a9130061
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Problems with toggle

2007-02-23 Thread Eugene Louw

yes, that is exactly what I want to achieve.

On 2/23/07, Yansky <[EMAIL PROTECTED]> wrote:



What effect are you trying to acheive? Do you want the first div to be
shown
and the second div hidden on the first click and then vice-versa on the
second click?


Eugene Louw wrote:
>
> I don't think the toggle(function, function) works or am i trying to use
> it
> incorrectly?
>
> here is a extremely simple example ::
>
> http://www.w3.org/1999/xhtml";>
> 
> Testing :: 
> 
> 
>
> 
> 
> Flip
> 
> Hallo World
> 
> 
> 
>
> My jquery ::
>
> * $Date: 2007-01-22 00:27:54 -0500 (Mon, 22 Jan 2007) $
>  * $Rev: 1153 $
>
>
> Kind Regards,
>
> EUgene Louw
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

--
View this message in context:
http://www.nabble.com/Problems-with-toggle-tf3281893.html#a9129868
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





--

Eugene Louw

Nowhere, South Africa

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Problems with toggle

2007-02-23 Thread Yansky

What effect are you trying to acheive? Do you want the first div to be shown
and the second div hidden on the first click and then vice-versa on the
second click?


Eugene Louw wrote:
> 
> I don't think the toggle(function, function) works or am i trying to use
> it
> incorrectly?
> 
> here is a extremely simple example ::
> 
> http://www.w3.org/1999/xhtml";>
> 
> Testing :: 
> 
> 
> 
> 
> 
> Flip
> 
> Hallo World
> 
> 
> 
> 
> My jquery ::
> 
> * $Date: 2007-01-22 00:27:54 -0500 (Mon, 22 Jan 2007) $
>  * $Rev: 1153 $
> 
> 
> Kind Regards,
> 
> EUgene Louw
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problems-with-toggle-tf3281893.html#a9129868
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsible Tables

2007-02-23 Thread rolfsf

the key is not to use multiple theads, but rather a row of th's in each
tbody, as you'll see in here:
http://www.monkeypuzzle.net/testfiles/jquery/Accordion_table/index_2.html 




Christiaan van Woudenberg wrote:
> 
> I used the same design pattern of a single table with multiple theads
> another project of mine, and after testing for Opera support, found that
> the W3C spec doesn't allow multiple theads in a table, only multiple tbody
> tags, just so you know ...
> 
> See the XHTML Strict DTD at
> http://www.w3.org/TR/2000/REC-xhtml1-2126/DTD/xhtml1-strict.dtd and
> you'll see that only zero or one thead elements are allowed.
> 
> Christiaan van Woudenberg
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Collapsible-Tables-tf3274184.html#a9129798
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Validation plugin 1.0 alpha 2

2007-02-23 Thread Lee Hinde
Wait, there's more. :-)

Using the latest WebKit,  I got all the way
through, no crash.

Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522+
(KHTML, like Gecko) Safari/419.3
rule: digit (0, 6, 6)
rule: url (0, 6, 6)
rule: email (0, 8, 8)
rule: number (0, 10, 10)
rule: numberDE (0, 10, 10)
rule: date (0, 3, 3)
rule: dateISO (0, 6, 6)
rule: dateDE (0, 6, 6)
rule: required (0, 17, 17)
rule: minLength (0, 11, 11)
rule: maxLength (0, 10, 10)
rule: rangeLength (0, 3, 3)
rule: minValue (0, 3, 3)
rule: maxValue (0, 3, 3)
rule: rangeValue (0, 3, 3)
rule: equalTo (0, 2, 2)
method default messages (0, 16, 16)
$.validator.addMethod (0, 3, 3)
validator.validateForm(): simple (0, 2, 2)
validator.validateForm(): checkboxes: min/required (0, 3, 3)
validator.validateForm(): selects: min/required (0, 3, 3)
validator.validateForm(): with equalTo (0, 2, 2)
validator.validateElement(): simple (0, 3, 3)
validator.hideElementErrors(): input (0, 2, 2)
validator.hideElementErrors(): radio (0, 2, 2)
validator.hideElementErrors(): errorWrapper (0, 2, 2)
validator.hideElementErrors(): container (1, 2, 3)
validator.isFormValid() (0, 5, 5)
validator.showErrors() (0, 4, 4)
validator.showErrors() - external messages (0, 4, 4)
validator.findRules() - internal - input (0, 4, 4)
validator.findRules() - internal - select (0, 2, 2)
validator.findRules() - external (0, 4, 4)
validator.findRules() - external - complete form (0, 1, 1)
validator.findRules() - internal - input (0, 7, 7)
validator.formatMessage (0, 2, 2)
Tests completed in 9468 milliseconds.
1 tests of 181 failed.

On 2/21/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Lee Hinde schrieb:
> >> Thanks. I wonder if that may be the same issue as with jQuery core...
> >> it's testsuite tends to crash Safari, too. Could you click through the
> >> demos
> >> (http://jquery.bassistance.de/validate/demo-test/validate-demo.html) and
> >> see if anything fails there?
> >>
> >>
> >
> > Tabbing through and typing gibberish (a specialty  of mine), I had no
> > problems with this page in Safari
> >
> Ok, thanks.
>
> --
> Jörn Zaefferer
>
> http://bassistance.de
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Problems with toggle

2007-02-23 Thread Eugene Louw

I don't think the toggle(function, function) works or am i trying to use it
incorrectly?

here is a extremely simple example ::

http://www.w3.org/1999/xhtml";>

Testing :: 





Flip

Hallo World




My jquery ::

* $Date: 2007-01-22 00:27:54 -0500 (Mon, 22 Jan 2007) $
* $Rev: 1153 $


Kind Regards,

EUgene Louw
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jqModal r7 IE6 Problems

2007-02-23 Thread Jake McGraw

Javascript:

   $(function(){
   var popup = $("#popup").jqm();
   $("a").click(function(){
   popup.jqmShow();
   });
   });

Body:

Click me!

Close

Hello, world!


Crashes IE:
Line: 0
Error: Object required

Unable to debug, but I was having another problem with IE6 and jqModal with
a much more complex document that pointed to hash[...].w as the culprit.

Anyone have any ideas? Does r7 not work with IE6?

- jake
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] What would be the best way to...?

2007-02-23 Thread Ⓙⓐⓚⓔ
$("[EMAIL PROTECTED]").each(function(i){
this.append("" + this.val()
+ "").remove()
})

is a bit shorter... and throwing the remove at the end of the chain
will save you a small fraction of a millisecond!

I just took Glen's code and shortened it. I've used the append and
remove before.

On 2/23/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> I havent tested, but this is in the ballpark I think:
> $("[EMAIL PROTECTED]").each(function(i){
>
> currentName = this.attr("name");
>  currentValue = this.val();
>  this.append("" + cuurentValue +
> ";
>  this.remove
> ();
> });
> So this would destroy the input and replace with textarea.
> There might be a better way, but I "think" this should work.
>
> Glen
>
>
>
> On 2/23/07, Brian Miller <[EMAIL PROTECTED]> wrote:
> > I need to replace a whole lot of  elements on a page
> > with  elements.  (I have limited control over how the fields are
> > generated.)  The contents of the form fields must remain - I just want to
> > change the "shape" of the field to make it bigger and allow multiline
> > input.
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
Rats!  CF 4.5 and CF 5 aren't eligible for upgrades!

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 1:18 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Found out about the upgrade price and let me know.

Rey





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery taconite val()

2007-02-23 Thread Mike Alsup
> That's big news for me, Mike.  It marks the first time I've ever been able
> to blame a bug instead of me when my app is behaving strangely! :)

It's fix now, Paul.  Have at it!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Problems with toggle

2007-02-23 Thread Eugene Louw

Hi,

I have a problem with the following function,

 function flipper(clicked, idone, idtwo) {
   $(clicked).toggle(
   function() { //first
   $(idone).toggle();
   $(idtwo).toggle();
   },
   function() { //second
   $(idtwo).toggle();
   $(idone).toggle();
   }
   );
}

It seems like $(clicked).toggle builds up a stack and every time the
function flipper gets called it executes the appropriate function but then
steps down the previously clicked stack. It also doesn't hit a function the
first time flipper is executed

so it will go,

nothing

first

second / first

second / first / second

etc.


Kind Regard,

Eugene Louw
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] What would be the best way to...?

2007-02-23 Thread Glen Lipka

I havent tested, but this is in the ballpark I think:

$("[EMAIL PROTECTED]").each(function(i){
 currentName = this.attr("name");
 currentValue = this.val();
 this.append("" + cuurentValue +
";
 this.remove();
});

So this would destroy the input and replace with textarea.
There might be a better way, but I "think" this should work.

Glen


On 2/23/07, Brian Miller <[EMAIL PROTECTED]> wrote:


I need to replace a whole lot of  elements on a page
with  elements.  (I have limited control over how the fields are
generated.)  The contents of the form fields must remain - I just want to
change the "shape" of the field to make it bigger and allow multiline
input.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Incompatibilities with IE: Selection and Range Object (not jQuery related).

2007-02-23 Thread Glen Lipka

I meant the jQuery API.
http://www.jquery.com/api or
http://www.visualjquery.com or
http://jquery.bassistance.de/api-browser/

Actually, the one you want is wrap(), I think.  Unless I misunderstood.
http://jquery.bassistance.de/api-browser/#wrapString

Glen


On 2/23/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:


Could you send me a link to that API? I've been in the MSDN
site
but it's a mess: first you see a brief description of the object but no API,
then you search for it and end up in a page where the navigation menu is in
cyrilic, then you search again to find it the object seems to be integrated
in C# and C++ and the windows API but again you can't find the actual
interface...

So yeah, I'll try with appendTo(), butI would be thankful if you cound
send me a link to the API.

And thanks ;)

Abel

On 2/23/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> Couldn't you use the appendTo() function?
> The API reference example looks just like what you are asking.
>
> Glen
>
>
> On 2/23/07, Abel Tamayo < [EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I'm trying to create a plugin for jQuery that willlet you edit text in
> > an iFrame like it was a text processor, but I need to work with ranges and
> > selections and, while this is extremely easy with W3C compliant browsers,
> > Adapting the work to IE is a real pain. What I need to know is the
> > translation of this script:
> >
> > var r = window.getSelection().getRangeAt(0);
> > var e = document.createElement ("p");
> > r.surroundContents(e);
> >
> > that changes this range:
> >
> > foolink
> >
> > into this:
> >
> > foolink 
> >
> > It seems like IE's "special" object TextRange does something similar,
> > but it only selects text, not the HTML tags that conform the document.
> >
> > Any ideas? Thanks in advance.
> >
> > Abel.
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Incompatibilities with IE: Selection and Range Object (not jQuery related).

2007-02-23 Thread Abel Tamayo

Could you send me a link to that API? I've been in the MSDN
site
but it's a mess: first you see a brief description of the object but no API,
then you search for it and end up in a page where the navigation menu is in
cyrilic, then you search again to find it the object seems to be integrated
in C# and C++ and the windows API but again you can't find the actual
interface...

So yeah, I'll try with appendTo(), butI would be thankful if you cound send
me a link to the API.

And thanks ;)

Abel

On 2/23/07, Glen Lipka <[EMAIL PROTECTED]> wrote:


Couldn't you use the appendTo() function?
The API reference example looks just like what you are asking.

Glen


On 2/23/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:

> Hi all,
> I'm trying to create a plugin for jQuery that willlet you edit text in
> an iFrame like it was a text processor, but I need to work with ranges and
> selections and, while this is extremely easy with W3C compliant browsers,
> Adapting the work to IE is a real pain. What I need to know is the
> translation of this script:
>
> var r = window.getSelection().getRangeAt(0);
> var e = document.createElement ("p");
> r.surroundContents(e);
>
> that changes this range:
>
> foolink
>
> into this:
>
> foolink 
>
> It seems like IE's "special" object TextRange does something similar,
> but it only selects text, not the HTML tags that conform the document.
>
> Any ideas? Thanks in advance.
>
> Abel.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Losing height value

2007-02-23 Thread Yansky

I think I found a way around it. If I use jQuery to put an internal CSS rule
into the 

[jQuery] What would be the best way to...?

2007-02-23 Thread Brian Miller
I need to replace a whole lot of  elements on a page
with  elements.  (I have limited control over how the fields are
generated.)  The contents of the form fields must remain - I just want to
change the "shape" of the field to make it bigger and allow multiline
input.

What would be the best/tersest way to do that?  For some reason, it's just
not coming to me.  Selecting them all is easy enough, but replacing one
kind of tag with another is just throwing me off today.

Thanks!

- Brian


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jqUploader updated

2007-02-23 Thread Alexandre Plennevaux
Jason, i've just updated the script. Thank you for your time!

http://www.pixeline.be/test/jquery/jqUploader/index.html 




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Huck
Sent: vendredi 23 février 2007 21:33
To: discuss@jquery.com
Subject: Re: [jQuery] jqUploader: flash-based file upload


I just went to your demo page, selected a PDF from my desktop and uploaded it, 
and it worked. You'll see the PDF in your file list if you look. I also noticed 
other people had uploaded mp3s and other file types as well.

It was Firefox 2.0.0.1 on Mac OS X 10.4.8. Javascript enabled. I didn't do 
anything special.

- Jason






Alexandre Plennevaux wrote:
> 
> Jason, can you give me more details? I can't reproduce this, unless i 
> turn javascript off, of course
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of Jason Huck
> Sent: jeudi 22 février 2007 22:31
> To: discuss@jquery.com
> Subject: Re: [jQuery] jqUploader: flash-based file upload
> 
> 
> FYI, despite the allowed extensions specified in your code, I was able 
> to upload a PDF file without errors.
> 
> This was in Firefox 2.x/Mac.
> 
> Looks interesting, though!
> 
> - jason
> 
> 
> 
> 
> Alexandre Plennevaux wrote:
>> 
>> Hello,
>>  
>> my Plugin replacing file input fields with a richer Flash based 
>> upload field (with progress bar) is ready for your delicate use:
>> HYPERLINK
>> "http://www.pixeline.be/test/jquery/jqUploader/index.html"http://www.
>> p ixeline.be/test/jquery/jqUploader/index.html
>>  
>>  
>> I haven't been able to test it on other platforms than IE7 and FF2 on 
>> Windows XP. So shoot me if it does not work on your platform.
>>  
>>  
>>  
>> Special thanks to Vlada and Alex Cook for your help and advise!
>>  
>>  
>> Alexandre
>>  
>>  
>> 
>> Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte 
>> Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels 
>> Belgie-Belgique-Belgium
>> 
>> Tel:+32(0)2.219.65.55
>> Fax:+32(0)2.426.69.86
>> Mobile:+32(0)476.23.21.42
>> HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
>> HYPERLINK
>> "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be
>> 
>> HYPERLINK
>> "blocked::http://www.mediaruimte.be/"
>> _ _
>> 
>> The information in this e-mail is intended only for the addressee 
>> named above.  If you are not that addressee, please note that any 
>> disclosure, distribution or copying of this e-mail is prohibited.
>> Because e-mail can be electronically altered, the integrity of this 
>> communication cannot be guaranteed.
>> 
>> _
>> _
>> 
>> 
>>  
>> 
>> --
>> Ce message Envoi est certifié sans virus connu.
>> Analyse effectuée par AVG.
>> Version: 7.5.441 / Base de données virus: 268.18.3/694 - Date: 
>> 20/02/2007
>> 13:44
>>  
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.
> html#a9108752 Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> --
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 
> 23/02/2007
> 4:39
>  
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

--
View this message in context: 
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9126205
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 23/02/2007 4:39
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqUploader: flash-based file upload

2007-02-23 Thread Alexandre Plennevaux
Just noticed it's on the second choice of the select field. I guess it's shown 
by default in your configuration. I'll modify it accordingly. 

In any case, clientside restriction is more for the convenience of the user 
(well, those not on a mac with FF) so they don't have to wait for the end of 
the transfer to be informed of the non compliant file format. It's very easy to 
circonvene (just download the page, edit it, by  adding your .exe extension). 
So it's far from being enough in terms of security, hence you really should 
have a second line of defense at the server level. Implement filetype 
restriction in your serverside script. On the server, at least, it is 
failproof. 

thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Huck
Sent: vendredi 23 février 2007 21:33
To: discuss@jquery.com
Subject: Re: [jQuery] jqUploader: flash-based file upload


I just went to your demo page, selected a PDF from my desktop and uploaded it, 
and it worked. You'll see the PDF in your file list if you look. I also noticed 
other people had uploaded mp3s and other file types as well.

It was Firefox 2.0.0.1 on Mac OS X 10.4.8. Javascript enabled. I didn't do 
anything special.

- Jason






Alexandre Plennevaux wrote:
> 
> Jason, can you give me more details? I can't reproduce this, unless i 
> turn javascript off, of course
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of Jason Huck
> Sent: jeudi 22 février 2007 22:31
> To: discuss@jquery.com
> Subject: Re: [jQuery] jqUploader: flash-based file upload
> 
> 
> FYI, despite the allowed extensions specified in your code, I was able 
> to upload a PDF file without errors.
> 
> This was in Firefox 2.x/Mac.
> 
> Looks interesting, though!
> 
> - jason
> 
> 
> 
> 
> Alexandre Plennevaux wrote:
>> 
>> Hello,
>>  
>> my Plugin replacing file input fields with a richer Flash based 
>> upload field (with progress bar) is ready for your delicate use:
>> HYPERLINK
>> "http://www.pixeline.be/test/jquery/jqUploader/index.html"http://www.
>> p ixeline.be/test/jquery/jqUploader/index.html
>>  
>>  
>> I haven't been able to test it on other platforms than IE7 and FF2 on 
>> Windows XP. So shoot me if it does not work on your platform.
>>  
>>  
>>  
>> Special thanks to Vlada and Alex Cook for your help and advise!
>>  
>>  
>> Alexandre
>>  
>>  
>> 
>> Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte 
>> Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels 
>> Belgie-Belgique-Belgium
>> 
>> Tel:+32(0)2.219.65.55
>> Fax:+32(0)2.426.69.86
>> Mobile:+32(0)476.23.21.42
>> HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
>> HYPERLINK
>> "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be
>> 
>> HYPERLINK
>> "blocked::http://www.mediaruimte.be/"
>> _ _
>> 
>> The information in this e-mail is intended only for the addressee 
>> named above.  If you are not that addressee, please note that any 
>> disclosure, distribution or copying of this e-mail is prohibited.
>> Because e-mail can be electronically altered, the integrity of this 
>> communication cannot be guaranteed.
>> 
>> _
>> _
>> 
>> 
>>  
>> 
>> --
>> Ce message Envoi est certifié sans virus connu.
>> Analyse effectuée par AVG.
>> Version: 7.5.441 / Base de données virus: 268.18.3/694 - Date: 
>> 20/02/2007
>> 13:44
>>  
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.
> html#a9108752 Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> --
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 
> 23/02/2007
> 4:39
>  
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

--
View this message in context: 
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9126205
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 23/02/2007 4:39
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Incompatibilities with IE: Selection and Range Object (not jQuery related).

2007-02-23 Thread Glen Lipka

Couldn't you use the appendTo() function?
The API reference example looks just like what you are asking.

Glen


On 2/23/07, Abel Tamayo <[EMAIL PROTECTED]> wrote:


Hi all,
I'm trying to create a plugin for jQuery that willlet you edit text in an
iFrame like it was a text processor, but I need to work with ranges and
selections and, while this is extremely easy with W3C compliant browsers,
Adapting the work to IE is a real pain. What I need to know is the
translation of this script:

var r = window.getSelection().getRangeAt(0);
var e = document.createElement ("p");
r.surroundContents(e);

that changes this range:

foolink

into this:

foolink 

It seems like IE's "special" object TextRange does something similar, but
it only selects text, not the HTML tags that conform the document.

Any ideas? Thanks in advance.

Abel.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] drag & drop : proxy element?

2007-02-23 Thread Circlefusion

I use the word "proxy" because that is how it is worded in YUI. I'm referring
to the ghosted element that is physically being dragged along with the
cursor during a drag and drop. 

It seems that the interface plugin drag and drop function creates a copy of
the element being dragged. I've found that this causes problems when
dragging table rows in IE. The ghosted element either doesn't display, or it
ends up dragging the entire table as the ghosted element. I can get it to
work by sticking divs inside the table rows and using those as the draggable
elements, but that seems like a silly solution. 

It would be ideal to be able to define a "proxy" element to be used during
the drag. That way I can define CSS just for that element to affect how the
ghosted image appears. I can also use a div for this ghosted element to
represent the table row that I'm trying to drag. Or I could use an image for
the ghosted element.

Does JQuery/Interface provide a way to use a proxy element during a drag and
drop?

Thanks,

Brian
-- 
View this message in context: 
http://www.nabble.com/drag---drop-%3A-proxy-element--tf3281374.html#a9127254
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How to drag and drop with vanishing draggable?

2007-02-23 Thread Circlefusion



Stefan Petre wrote:
> 
> Hi
> remove 'fx' option
> 
> Stefan
> 
> 

Hello Stefan,

That solution prevents the revert from animating when the drop is invalid. I
want the dragged item to slide back into place if it is dropped in the wrong
area, but I want it to NOT slide back (turn off fx) if the drop is valid. Is
there any way to allow the fx setting for bad drops, but turn it off for
successful drops? I think that would be ideal.

Thanks

Brian
-- 
View this message in context: 
http://www.nabble.com/How-to-drag-and-drop-with-vanishing-draggable--tf3028757.html#a9127116
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
Thanks, Chris!
 
It's good to know I've got some "backup" when I'm in new
territory like I am with jQuery and AJAX.
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Jordan
Sent: Friday, February 23, 2007 3:52 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
 
Man, I'm sorry I missed out on this thread! It looked like a good one.

Rey's right, though Rick. The jQuery/CF community is a great one. Holler any
time you need help. On the subject of AjaxCFC for jQuery. I'm using it in a
production application right now and having zero problems with it. In fact,
I *love* it! troubleshooting is an absolute breeze with the enhancements
that Rob has added. I wrote an example of how to use it on the HouseOfFusion
CF-Talk list. If you're going to use AjaxCFC for jQuery and need help give a
holler. :o)

Cheers,
Chris


 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery taconite val()

2007-02-23 Thread Paul
That's big news for me, Mike.  It marks the first time I've ever been able
to blame a bug instead of me when my app is behaving strangely! :)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Friday, February 23, 2007 1:49 PM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery taconite val()

> Mike, here's an interesting quirk.  If I try to clear the value ( select="#modify input" value="" />) Taconite doesn't work.  If I insert a
> value, even a space () it does
work.
> Should I use another method to clear the value of an input?

That's a bug.  I'll get it fixed and upload a new rev tonight.  Thanks
for catching it, Paul!

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
Hey!  I appreciate that, Rey!
I don't know anyone over there and doubt they would
give the time of day if I called.

Thanks!

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 2:57 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Rick, I've contacted Tim Buntel, Adobe ColdFusion product manager to see 
if he might be able to help. I can't promise anything but if anyone can 
do something regarding ColdFusion its him.

Rey...





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Christopher Jordan

Man, I'm sorry I missed out on this thread! It looked like a good one.

Rey's right, though Rick. The jQuery/CF community is a great one. Holler 
any time you need help. On the subject of AjaxCFC for jQuery. I'm using 
it in a production application right now and having zero problems with 
it. In fact, I *love* it! troubleshooting is an absolute breeze with the 
enhancements that Rob has added. I wrote an example of how to use it on 
the HouseOfFusion CF-Talk list. If you're going to use AjaxCFC for 
jQuery and need help give a holler. :o)


Cheers,
Chris

Rey Bango wrote:

LOL! Congrats man. I felt the same way when I made my first Ajax app.

Now aren't you glad that you have the best Ajax/JS library at your 
disposal along with some of the best CF coders to help you knock it out? ;)


Rey...

Rick Faircloth wrote:
  

You're right... I tried that and it worked!

Sniff...sniff...my first ajax application...I'm so proud.  ;o)

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, February 23, 2007 12:16 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

You don't want cfdump. Use cfoutput instead. You might have to do some basic
formatting, but that's not a big deal. 






___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

  


--
http://www.cjordan.us

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
You're right... I check the website and CF 4.5 and 5 aren't
eligible for an upgrade... bummer...

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, February 23, 2007 2:20 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

You might be able to but I think that Adobe and Macromedia both had policies
that you couldn't upgrade from more than two versions back.





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
Thanks, Michael!
 
I appreciate your help, too!
 
Oh. and concerning 4.5. I haven't used CFFORM or any of the built-in query
functions.  I write all those by hand. CFUPDATE and the rest proved to be
too
limiting.  Never used *any* Flash, either.
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael E. Carluen
Sent: Friday, February 23, 2007 1:27 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
 
Alright Rick! Now it's a whole new world ahead of you. From this point, I
guarantee you'll change how you design and code your apps. Man, I am just
amazed how you're getting all the mileage from that box of 4.5 you have.
 
jQuery's ajax implementation is definitely one of the catalysts I've had.
CFC's is the other- so you need to check it out one of these days.  I was
never too fond of CF's cfforms and even its flash forms- so I have never
deployed an app that used those.
 
So, have fun with your new found ajax on jQuery!
 
Michael
 
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery taconite val()

2007-02-23 Thread Mike Alsup
> Mike, here's an interesting quirk.  If I try to clear the value ( select="#modify input" value="" />) Taconite doesn't work.  If I insert a
> value, even a space () it does work.
> Should I use another method to clear the value of an input?

That's a bug.  I'll get it fixed and upload a new rev tonight.  Thanks
for catching it, Paul!

Mike

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqUploader: flash-based file upload

2007-02-23 Thread Jason Huck

I just went to your demo page, selected a PDF from my desktop and uploaded
it, and it worked. You'll see the PDF in your file list if you look. I also
noticed other people had uploaded mp3s and other file types as well.

It was Firefox 2.0.0.1 on Mac OS X 10.4.8. Javascript enabled. I didn't do
anything special.

- Jason






Alexandre Plennevaux wrote:
> 
> Jason, can you give me more details? I can't reproduce this, unless i turn
> javascript off, of course 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Jason Huck
> Sent: jeudi 22 février 2007 22:31
> To: discuss@jquery.com
> Subject: Re: [jQuery] jqUploader: flash-based file upload
> 
> 
> FYI, despite the allowed extensions specified in your code, I was able to
> upload a PDF file without errors.
> 
> This was in Firefox 2.x/Mac.
> 
> Looks interesting, though!
> 
> - jason
> 
> 
> 
> 
> Alexandre Plennevaux wrote:
>> 
>> Hello,
>>  
>> my Plugin replacing file input fields with a richer Flash based upload 
>> field (with progress bar) is ready for your delicate use:
>> HYPERLINK
>> "http://www.pixeline.be/test/jquery/jqUploader/index.html"http://www.p
>> ixeline.be/test/jquery/jqUploader/index.html
>>  
>>  
>> I haven't been able to test it on other platforms than IE7 and FF2 on 
>> Windows XP. So shoot me if it does not work on your platform.
>>  
>>  
>>  
>> Special thanks to Vlada and Alex Cook for your help and advise!
>>  
>>  
>> Alexandre
>>  
>>  
>> 
>> Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte 
>> Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels 
>> Belgie-Belgique-Belgium
>> 
>> Tel:+32(0)2.219.65.55
>> Fax:+32(0)2.426.69.86
>> Mobile:+32(0)476.23.21.42
>> HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
>> HYPERLINK 
>> "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be
>> 
>> HYPERLINK
>> "blocked::http://www.mediaruimte.be/"_
>> _
>> 
>> The information in this e-mail is intended only for the addressee 
>> named above.  If you are not that addressee, please note that any 
>> disclosure, distribution or copying of this e-mail is prohibited.
>> Because e-mail can be electronically altered, the integrity of this 
>> communication cannot be guaranteed.
>> 
>> __
>> 
>> 
>>  
>> 
>> --
>> Ce message Envoi est certifié sans virus connu.
>> Analyse effectuée par AVG.
>> Version: 7.5.441 / Base de données virus: 268.18.3/694 - Date: 
>> 20/02/2007
>> 13:44
>>  
>> 
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9108752
> Sent from the JQuery mailing list archive at Nabble.com.
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> -- 
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 23/02/2007
> 4:39
>  
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9126205
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery taconite val()

2007-02-23 Thread Paul
Mike, here's an interesting quirk.  If I try to clear the value () Taconite doesn't work.  If I insert a
value, even a space () it does work.
Should I use another method to clear the value of an input?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Friday, February 23, 2007 1:14 PM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery taconite val()

> 

That should be written like this:



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery taconite val()

2007-02-23 Thread Paul
Thanks!

Feeling a bit sheepish,
paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Alsup
Sent: Friday, February 23, 2007 1:14 PM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery taconite val()

> 

That should be written like this:



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach

You're a genius ;)

Thanks again for all the help!


Blair Mitchelmore-2 wrote:
> 
> I think your problem might be that in your autosave plug-in you call fcn 
> directly. Try running fcn.apply(this) instead to manually adjust the 
> scope so 'this' references the DOM element again.
> 
> -blair
> 
> Daemach wrote:
>> Bleh.
>>
>> When I pass a function in via the plugin's method with the below code, it
>> doesn't recognize the "this" scope anymore.  Am I not passing the
>> function
>> in correctly?
>>
>> $('input:[EMAIL PROTECTED]').each( function() {
>> $(this).autoSave(function(){
>> $.AjaxCFC({
>> url: "some.cfc",
>> method: "updateAttendee",
>> data: {
>> fid:this.id,
>> field:this.id.split("_")[0],
>> id:this.id.split("_")[1],
>> value:this.value},
>> success: function(r){}
>> });
>> });
>>
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gmail-style-updates-tf3269331.html#a9126037
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery taconite val()

2007-02-23 Thread Mike Alsup
> 

That should be written like this:



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqUploader: flash-based file upload

2007-02-23 Thread Alexandre Plennevaux
Jason, can you give me more details? I can't reproduce this, unless i turn 
javascript off, of course 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Huck
Sent: jeudi 22 février 2007 22:31
To: discuss@jquery.com
Subject: Re: [jQuery] jqUploader: flash-based file upload


FYI, despite the allowed extensions specified in your code, I was able to 
upload a PDF file without errors.

This was in Firefox 2.x/Mac.

Looks interesting, though!

- jason




Alexandre Plennevaux wrote:
> 
> Hello,
>  
> my Plugin replacing file input fields with a richer Flash based upload 
> field (with progress bar) is ready for your delicate use:
> HYPERLINK
> "http://www.pixeline.be/test/jquery/jqUploader/index.html"http://www.p
> ixeline.be/test/jquery/jqUploader/index.html
>  
>  
> I haven't been able to test it on other platforms than IE7 and FF2 on 
> Windows XP. So shoot me if it does not work on your platform.
>  
>  
>  
> Special thanks to Vlada and Alex Cook for your help and advise!
>  
>  
> Alexandre
>  
>  
> 
> Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte 
> Lakensestraat/Rue de Laeken 104 B-1000 Brussel-Bruxelles-Brussels 
> Belgie-Belgique-Belgium
> 
> Tel:+32(0)2.219.65.55
> Fax:+32(0)2.426.69.86
> Mobile:+32(0)476.23.21.42
> HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
> HYPERLINK 
> "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be
> 
> HYPERLINK
> "blocked::http://www.mediaruimte.be/"_
> _
> 
> The information in this e-mail is intended only for the addressee 
> named above.  If you are not that addressee, please note that any 
> disclosure, distribution or copying of this e-mail is prohibited.
> Because e-mail can be electronically altered, the integrity of this 
> communication cannot be guaranteed.
> 
> __
> 
> 
>  
> 
> --
> Ce message Envoi est certifié sans virus connu.
> Analyse effectuée par AVG.
> Version: 7.5.441 / Base de données virus: 268.18.3/694 - Date: 
> 20/02/2007
> 13:44
>  
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

--
View this message in context: 
http://www.nabble.com/jqUploader%3A-flash-based-file-upload-tf3270610.html#a9108752
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 23/02/2007 4:39
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-02-23 Thread Brice Burgess
Benjamin Sterling wrote:
> Brice, good stuff, I am using the plugin and it is working great.
>
> Just in case anyone wants to see it in action:
>
> http://ov-staging.informationexperts.com/index.htm 
> 

Benjamin,

  Looks excellent.. it's good to see the plugin put to use.

  You may want to have the confirm (are you sure you want to delete this 
item?) dialog inlined to increase interactivity/page responsiveness. 
Only use ajax to process the request if the user clicks yes -- delete.

  One way you can attach the ID/KEY of the item to be deleted is via an 
onShow callback.

e.g.

If your confirm dialog looks something like;



Are you sure?








   (( note jqmClose is assigned to the "no" button -- I need to update 
my confirm() override example @ http://dev.iceburg.net/jquery/jqModal/ 
with this!  ))

And your delete buttons look something like;

---
  (( where 123 is the items primary key in a DB...))
---

Then you can use jqModal to display the confirmation + attach the ID like;
---

$().ready(function(){
  $('#confirmDelete').jqm({
trigger: 'input.deleteButton',
onShow: assignID })
.find('form')
  .ajaxForm({...}); // assign Mike Alsup's kickass forms plugin to 
handle the ajax submit

  function assignID(h){
// get the ID from trigger
   var id = h.t.value;

   // assign the id to the confirm form
   h.w.find('input:hidden').val(id);
  }

});

It's that easy & elegant!

Disclaimer:  I wrote this code in my email client, potential syntax 
errors + dysfunctions.

~ Brice

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery taconite val()

2007-02-23 Thread Paul
I think I may be missing something in the jQuery Taconite implementation. To
clear a text field's value I would typically just use $("#modify
input").val("abc");  Using Taconite I expected I would use , but it doesn't work.  I've worked
around it by simply using $("#modify input").val("abc"); in the
XML response, but I'd like to correct my understanding as well.  What am I
overlooking?

 

 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rey Bango
Rick, I've contacted Tim Buntel, Adobe ColdFusion product manager to see 
if he might be able to help. I can't promise anything but if anyone can 
do something regarding ColdFusion its him.

Rey...

Rick Faircloth wrote:
> Thanks for the offer for CF 5, Rey.
> 
> Since I'm planning to upgrade to CF 8 in the summer
> and using CF 5 would involve installing it on my production server, too,
> do you think I should still upgrade to CF 5?
> 
> One of the reasons I haven't upgraded so far to CF 7 is that Adobe
> decided that those of us still using 4.5 wouldn't get an upgrade price.
> I balked at paying the full $1300 price.
> 
> I wonder if I could use the CF 5 to get an upgrade price on CF 8?
> 
> Rick
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 12:16 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> Yep, what you'll need to do is output the query using cfoutput. You'll 
> want to format the outputted data in either CSS or a plain ole table.
> 
> You can also see if this will work with CF 4.5:
> 
> http://www.cflib.org/udf.cfm?ID=548
> 
> Its mimics cfdump but I can't remember is CF 4.5 supports UDFs.
> 
> My offer of CF 5 still stands so let me know.
> 
> Rey...
> 
> Rick Faircloth wrote:
>> Yes, it's true... up to this point, 4.5 has always been able to do
>> everything I've needed.  However, now I'm finding myself so far
>> behind functionally that I can't discuss programming solutions
>> with other programmers.
>>
>> Yes, Daemach has been helping me, and so has Michael Carluen.
>>
>> He sent detailed code, but I haven't been able to get it to work, yet.
>> I've modified it some to fit the data in an existing database.
>>
>> I also don't have the use (being still in 4.5) of cfdump which is part
>> of his code.  I don't know if that's critical to the function of the
> entire
>> code
>> or not.
>>
>> Here's what I've got so far...
>>
>> mycfpage.cfm
>>
> 
>> -
>>
>> 
>>
>>  Select User_First_Name, User_Last_Name
>> from resm_users
>>where User_ID = '#URL.User_ID#'
>>
>> 
>>
>>   
>>
>>
>> Form_Page.cfm
>>
> 
>> --
>>
>> 
>>
>> 
>> 
>>  Form_Page
>>  
>> 
>>
>> 
>>
>> $(function(){
>> $("#User_ID").change( function() {
>> var User_ID = $(this).val();
>> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
>> });
>> });
>>  
>> 
>>
>>  
>> 
>>
>> 
>>
>> 
>>
>> 
>> Ricky
>> Jacqui
>> Julie
>> 
>>
>> 
>>
>> 
>>
>> 
>> 
>>
> 
>> --
>>
>> Does this look right?  What changes are needed?
>>
>> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
>> Is there a work around for the lack of that function?
>>
>> Thanks for your help!
>>
>> Rick
>>
>>
>>
>>
>>
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Rey Bango
>> Sent: Friday, February 23, 2007 10:43 AM
>> To: jQuery Discussion.
>> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
>>
>> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
>> on my shelf collecting dust. Let me know if you want it and I'll send it 
>> to you. :)
>>
>> Also, it sounds like Daemach helped you. If you need another example, 
>> sans CFCs, let me know and I'll whip something up.
>>
>> Rey
>>
>>
>>
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Collapsible Tables

2007-02-23 Thread xiaan

I used the same design pattern of a single table with multiple theads another
project of mine, and after testing for Opera support, found that the W3C
spec doesn't allow multiple theads in a table, only multiple tbody tags,
just so you know ...

See the XHTML Strict DTD at
http://www.w3.org/TR/2000/REC-xhtml1-2126/DTD/xhtml1-strict.dtd and
you'll see that only zero or one thead elements are allowed.

Christiaan van Woudenberg


Carl Parrish-4 wrote:
> 
> What I'm trying to do.
> When a thead is clicked I'd like for the tbody row group below it to
> become
> visable.
> So I have a table like this
> 
> First row group
> 
>  1st Item in row group 1
> 2nd Item in row group 1
> 
> Second row group
> 
>  1st Item in row group 2
> 2nd Item in row group 2
> 
> 
> 
> I've seen several
> tutorials on how to deal with collapsible list, but so far nothing on
> tables. What I haven't been able to figure out so far is how to determine
> which tbody is connected to which thead. I think xpath could help me here
> but I admit I don't know it that well so I'm not sure. something like
> $(".rowGroup thead").onClick.(function(){
> $(tbody between this and next thead).show();
> }
> );
> Can anyone help or point me in the right direction of where I can buy a
> clue?
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Collapsible-Tables-tf3274184.html#a9125560
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Nicolas Hoizey
> Untested, but reading the code I assume this would work:
>
> $("#something").ajaxSuccess(fn);
>
> function fn(r, s) {
>   $(this).unbind("ajaxSuccess");
>   // do what you want, then rebind
>   $(this).ajaxSuccess("fn");
> }

It seems unbind doesn't work on ajaxSuccess or ajaxStop...


-Nicolas

-- 
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
phpHeaven: http://www.phpheaven.net/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Mike Alsup
The settings object is a new object for each call to $.ajax.  You
should be able to use this technique.

> The thing is that I have to run my function each time the element is
> updated.
>
> If I set myTag to 1 on first run, it will never run again.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-02-23 Thread Brice Burgess
Brandon Aaron wrote:
> This is really great work. I think you might be able to save a few
> extra bytes by dropping the closing tag when creating single elements.
> jQuery will add them for you.
>
> This:
> $('') and $('')
>
> Instead of this:
> $('') and $('')
>
> --
> Brandon Aaron

Brandon,

  Excellent tip! :) This is just what I'm looking for -- every byte 
counts! ;)

  Also, thanks for all your work w/ dimensions. I'll be looking into 
updaing jqDnR to include universal resize handles  which work off event 
mouse coord + targets top/left position -- I think this will be 
beneficial (code size + flexibility wise) over declaring SE, SW, N, S, 
E, W, ... etc. as with previous models. Then, the resize can be limited 
by axis (x/y) to establish NS/NW/NE/SE/...  vs. N/S/E/W orientation, and 
a min||max X(width),Y(height) can be given.

  ~ Brice

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Nicolas Hoizey
> $().ready(function(){
> $().ajaxStart($.blockUI).ajaxStop($.unblockUI);
> });

Maybe ajaxStop is better than ajaxSuccess for my needs, but I don't  
need to block the UI.


-Nicolas

-- 
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
phpHeaven: http://www.phpheaven.net/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Smith, Allex
http://www.adobe.com/products/coldfusion/productinfo/product_editions/#s
3

:(

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, February 23, 2007 11:20 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?


You might be able to but I think that Adobe and Macromedia both had
policies that you couldn't upgrade from more than two versions back.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Friday, February 23, 2007 12:01 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Thanks for the offer for CF 5, Rey.

Since I'm planning to upgrade to CF 8 in the summer and using CF 5 would
involve installing it on my production server, too, do you think I
should still upgrade to CF 5?

One of the reasons I haven't upgraded so far to CF 7 is that Adobe
decided that those of us still using 4.5 wouldn't get an upgrade price.
I balked at paying the full $1300 price.

I wonder if I could use the CF 5 to get an upgrade price on CF 8?

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 12:16 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Yep, what you'll need to do is output the query using cfoutput. You'll
want to format the outputted data in either CSS or a plain ole table.

You can also see if this will work with CF 4.5:

http://www.cflib.org/udf.cfm?ID=548

Its mimics cfdump but I can't remember is CF 4.5 supports UDFs.

My offer of CF 5 still stands so let me know.

Rey...

Rick Faircloth wrote:
> Yes, it's true... up to this point, 4.5 has always been able to do
> everything I've needed.  However, now I'm finding myself so far behind

> functionally that I can't discuss programming solutions with other 
> programmers.
> 
> Yes, Daemach has been helping me, and so has Michael Carluen.
> 
> He sent detailed code, but I haven't been able to get it to work, yet.

> I've modified it some to fit the data in an existing database.
> 
> I also don't have the use (being still in 4.5) of cfdump which is part
> of his code.  I don't know if that's critical to the function of the
entire
> code
> or not.
> 
> Here's what I've got so far...
> 
> mycfpage.cfm
>


> -
> 
> 
> 
>  Select User_First_Name, User_Last_Name
>  from resm_users
> where User_ID = '#URL.User_ID#'
> 
> 
> 
> 
> 
> 
> Form_Page.cfm
>


> --
> 
> 
> 
> 
> 
>   Form_Page
>   
> 
> 
> 
> 
> $(function(){
> $("#User_ID").change( function() {
> var User_ID = $(this).val();
> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
> });
> });
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Ricky
> Jacqui
> Julie 
> 
> 
> 
> 
> 
> 
> 
>


> --
> 
> Does this look right?  What changes are needed?
> 
> Remember, I can't use the cfdump at the end of the mycfpage.cfm page. 
> Is there a work around for the lack of that function?
> 
> Thanks for your help!
> 
> Rick
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 10:43 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just
> sitting on my shelf collecting dust. Let me know if you want it and 
> I'll send it to you. :)
> 
> Also, it sounds like Daemach helped you. If you need another example,
> sans CFCs, let me know and I'll whip something up.
> 
> Rey
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How do I check for the existence of an object?

2007-02-23 Thread Daemach

Thanks all!



Daemach wrote:
> 
> I want to create a global object to store some settings in, but only if it
> doesn't exist already.  If it doesn't exist and I try to use something
> like if (myObj == 'undefined') myObj = new Object();  I get an error
> saying the object is not defined.
> 
> Yeah I should know stuff like this ;)
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-check-for-the-existence-of-an-object--tf3280307.html#a9125240
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Andy Matthews
You might be able to but I think that Adobe and Macromedia both had policies
that you couldn't upgrade from more than two versions back.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Friday, February 23, 2007 12:01 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Thanks for the offer for CF 5, Rey.

Since I'm planning to upgrade to CF 8 in the summer and using CF 5 would
involve installing it on my production server, too, do you think I should
still upgrade to CF 5?

One of the reasons I haven't upgraded so far to CF 7 is that Adobe decided
that those of us still using 4.5 wouldn't get an upgrade price.
I balked at paying the full $1300 price.

I wonder if I could use the CF 5 to get an upgrade price on CF 8?

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 12:16 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Yep, what you'll need to do is output the query using cfoutput. You'll want
to format the outputted data in either CSS or a plain ole table.

You can also see if this will work with CF 4.5:

http://www.cflib.org/udf.cfm?ID=548

Its mimics cfdump but I can't remember is CF 4.5 supports UDFs.

My offer of CF 5 still stands so let me know.

Rey...

Rick Faircloth wrote:
> Yes, it's true... up to this point, 4.5 has always been able to do 
> everything I've needed.  However, now I'm finding myself so far behind 
> functionally that I can't discuss programming solutions with other 
> programmers.
> 
> Yes, Daemach has been helping me, and so has Michael Carluen.
> 
> He sent detailed code, but I haven't been able to get it to work, yet.
> I've modified it some to fit the data in an existing database.
> 
> I also don't have the use (being still in 4.5) of cfdump which is part 
> of his code.  I don't know if that's critical to the function of the
entire
> code
> or not.
> 
> Here's what I've got so far...
> 
> mycfpage.cfm
>

> -
> 
> 
> 
>  Select User_First_Name, User_Last_Name
>  from resm_users
> where User_ID = '#URL.User_ID#'
> 
> 
> 
> 
> 
> 
> Form_Page.cfm
>

> --
> 
> 
> 
> 
> 
>   Form_Page
>   
> 
> 
> 
> 
> $(function(){
> $("#User_ID").change( function() {
> var User_ID = $(this).val();
> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
> });
> });
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Ricky
> Jacqui
> Julie 
> 
> 
> 
> 
> 
> 
> 
>

> --
> 
> Does this look right?  What changes are needed?
> 
> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
> Is there a work around for the lack of that function?
> 
> Thanks for your help!
> 
> Rick
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 10:43 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just 
> sitting on my shelf collecting dust. Let me know if you want it and 
> I'll send it to you. :)
> 
> Also, it sounds like Daemach helped you. If you need another example, 
> sans CFCs, let me know and I'll whip something up.
> 
> Rey
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Nicolas Hoizey
> You can use ajaxSuccess but go ahead and take advantage of the
> settings object.  Something like:
>
> $().ajaxSuccess(function(e, xhr, settings) {
> if (settings.myTag) return;
> // do your extra work and call ajax
> $.ajax({
> myTag: 1,
> url: blah.php,
> type: 'post'
> });
> });

The thing is that I have to run my function each time the element is  
updated.

If I set myTag to 1 on first run, it will never run again.

Thanks for the hint anyway!


-Nicolas

-- 
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
phpHeaven: http://www.phpheaven.net/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Mike Alsup
You can use ajaxSuccess but go ahead and take advantage of the
settings object.  Something like:

$().ajaxSuccess(function(e, xhr, settings) {
if (settings.myTag) return;
// do your extra work and call ajax
$.ajax({
myTag: 1,
url: blah.php,
type: 'post'
});
});



On 2/23/07, Nicolas Hoizey <[EMAIL PROTECTED]> wrote:
> In a page that gets modified by ajax calls, I would like to run my
> own function after each change.
>
> My function does ajax calls, so if I use the ajaxSuccess binding, it
> goes recursively and crash...
>
> Any idea?
>
>
> -Nicolas
>
> --
> Nicolas "Brush" HOIZEY
> Clever Age   : http://www.clever-age.com/
> Gastero Prod : http://www.gasteroprod.com/
> Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
> phpHeaven: http://www.phpheaven.net/
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How do I check for the existence of an object?

2007-02-23 Thread Blair Mitchelmore
You can do (typeof myObj == 'undefined') and I think you can also do 
(myObj == undefined) thanks to the completely mind-blowing line of code 
at the beginning of jQuery
window.undefined = window.undefined;

-blair

Daemach wrote:
> I want to create a global object to store some settings in, but only if it
> doesn't exist already.  If it doesn't exist and I try to use something like
> if (myObj == 'undefined') myObj = new Object();  I get an error saying the
> object is not defined.
>
> Yeah I should know stuff like this ;)


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Blair Mitchelmore
I think your problem might be that in your autosave plug-in you call fcn 
directly. Try running fcn.apply(this) instead to manually adjust the 
scope so 'this' references the DOM element again.

-blair

Daemach wrote:
> Bleh.
>
> When I pass a function in via the plugin's method with the below code, it
> doesn't recognize the "this" scope anymore.  Am I not passing the function
> in correctly?
>
> $('input:[EMAIL PROTECTED]').each( function() {
> $(this).autoSave(function(){
> $.AjaxCFC({
> url: "some.cfc",
> method: "updateAttendee",
> data: {
> fid:this.id,
> field:this.id.split("_")[0],
> id:this.id.split("_")[1],
> value:this.value},
> success: function(r){}
> });
> });
>


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How do I check for the existence of an object?

2007-02-23 Thread Mike Alsup
> if (myObj == 'undefined') myObj = new Object();  I get an error saying the
> object is not defined.

Try this instead:

if (typeof myObj = 'undefined') myObj = {};

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How do I check for the existence of an object?

2007-02-23 Thread Klaus Hartl
Daemach schrieb:
> I want to create a global object to store some settings in, but only if it
> doesn't exist already.  If it doesn't exist and I try to use something like
> if (myObj == 'undefined') myObj = new Object();  I get an error saying the
> object is not defined.
> 
> Yeah I should know stuff like this ;)

You have to use the typeof operator:

if (typeof myObj == 'undefined') myObj = new Object();


But I would write that as follows anyway:

var myObj = myObj || {};



-- Klaus




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How do I grab just the selected objects out of the jquery object?

2007-02-23 Thread Klaus Hartl
Blair Mitchelmore schrieb:
> $("p").get() returns a regular array with the jQuery set as its members.
> 
> -blair

And with FireBug you are done with:

console.log( $('p') );


-- Klaus

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Incompatibilities with IE: Selection and Range Object (not jQuery related).

2007-02-23 Thread Abel Tamayo

Hi all,
I'm trying to create a plugin for jQuery that willlet you edit text in an
iFrame like it was a text processor, but I need to work with ranges and
selections and, while this is extremely easy with W3C compliant browsers,
Adapting the work to IE is a real pain. What I need to know is the
translation of this script:

var r = window.getSelection().getRangeAt(0);
var e = document.createElement("p");
r.surroundContents(e);

that changes this range:

foolink

into this:

foolink

It seems like IE's "special" object TextRange does something similar, but it
only selects text, not the HTML tags that conform the document.

Any ideas? Thanks in advance.

Abel.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach

Bleh.

When I pass a function in via the plugin's method with the below code, it
doesn't recognize the "this" scope anymore.  Am I not passing the function
in correctly?

$('input:[EMAIL PROTECTED]').each( function() {
$(this).autoSave(function(){
$.AjaxCFC({
url: "some.cfc",
method: "updateAttendee",
data: {
fid:this.id,
field:this.id.split("_")[0],
id:this.id.split("_")[1],
value:this.value},
success: function(r){}
});
});



Blair Mitchelmore-2 wrote:
> 
> Functions in JavaScript run at a certain scope. A lot of the time, if 
> the function isn't a part of some Object that scope defaults to the 
> window object. All JavaScript functions also have two functions that 
> allow you to redefine the scope of a function as you call it: apply and 
> call. apply takes 2 arguments: the new scope to call the function under 
> and an array of arguments to call the function with. call does the same 
> thing but instead of an array of arguments, you just supply the 
> arguments as additional arguments to that function call.
> 
> Example:
> var scope = "Scope";
> var arg = "Arg";
> var fn = function(e) {
> window.alert(this + " => " + e);
> };
> fn(arg); // alerts " => Arg"
> fn.apply(scope,[arg]); // alerts "Scope => Arg"
> fn.call(scope,arg); // alerts "Scope => Arg"
> 
> This allows you to redefine the this variable on the fly. Additionally, 
> the reason self is used rather than this in fn.apply(self) is because 
> 'this' changes scope once you enter a new function. So inside the 
> anonymous function defined in the setTimeout call, the scope variable 
> 'this' is likely to be the window object. So you have to save a 
> reference to the 'this' you want to use as a separate variable so it can 
> be referenced elsewhere: hence self = this followed by (inside the 
> anonymous function) fn.apply(self).
> 
> -blair
> 
> Daemach wrote:
>> Yeah that worked.  I'm not certain I understand why though :)
>>
>> It does make sense that the closure would actually have to be created
>> inside
>> the event handler but .apply(self) is a new one for me.  What exactly is
>> that doing?
>>
>>
>> Blair Mitchelmore-2 wrote:
>>> $(document).ready( function() {
>>> var timer;
>>> var fn = function(e) {
>>> if (e && e.type == 'blur') {
>>> if (timer)
>>> window.clearTimeout(timer);
>>> }
>>> // Do stuff
>>> alert(this.id);
>>> }
>>> $('#test').blur(fn).keyup(function() {
>>> var self = this;
>>> timer = window.setTimeout(function() {
>>> fn.apply(self);
>>> },2000);
>>> }).keydown(function() {
>>> if (timer) window.clearTimeout(timer);
>>> });
>>> });
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gmail-style-updates-tf3269331.html#a9124502
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach

Bleh.

When I pass a function in via the plugin's method with the below code, it
doesn't recognize the "this" scope anymore.  Am I not passing the function
in correctly?

$('input:[EMAIL PROTECTED]').each( function() {
$(this).autoSave(function(){
$.AjaxCFC({
url: "some.cfc", 
method: "updateAttendee", 
data: { 
fid:this.id,
field:this.id.split("_")[0],
id:this.id.split("_")[1],
value:this.value}, 
success: function(r){}
});
});


Daemach wrote:
> 
> This last example helped.  I think I have it now :)
> 
> jQuery.fn.autoSave = function(fcn,settings) {
>   settings = jQuery.extend({
>   delay: 600,
>   beforeClass: "asBefore",
>   afterClass: "asAfter"
>   }, settings);
>   
>   createCSSClass(".asBefore", "background-color:#FF");
>   createCSSClass(".asAfter", "background-color:#ddFFdd"); 
> 
>   if (!window.aSc) {
>   aSc = new Object();
>   aSc["timer"] = new Array();
>   aSc["fn"] = new Array();
>   }
>   
>   var p = aSc["fn"].length;
>   
>   aSc["timer"][p] = null;
>   aSc["fn"][p] = function(e) {
>   
>   if (e && e.type == 'blur') {
>   if (aSc["timer"][p])
>   window.clearTimeout(aSc["timer"][p]);
>   }
>   
>   if (this.value != this.title){
>   fcn();
>   
> jQuery(this).removeClass(settings.beforeClass).addClass(settings.afterClass);
>   }
>   }
> 
>   return this.each(function(){
>   jQuery(this).attr("title",this.value).keyup(function() {
>   if (this.value != this.title){
>   if (jQuery(this).is('.' + settings.afterClass))
> jQuery(this).removeClass(settings.afterClass);
>   if (!jQuery(this).is('.' + settings.beforeClass))
> jQuery(this).addClass(settings.beforeClass);  
>  
>   var self = this;
>   aSc["timer"][p] = window.setTimeout(function()
> {aSc["fn"][p].apply(self);},settings.delay);
>   }
>   }).keydown(function() {
>   if (aSc["timer"][p]) 
> window.clearTimeout(aSc["timer"][p]);
>   }).blur(aSc["fn"][p]);
>   
>   });
> };
> 
> Blair Mitchelmore-2 wrote:
>> 
>> Functions in JavaScript run at a certain scope. A lot of the time, if 
>> the function isn't a part of some Object that scope defaults to the 
>> window object. All JavaScript functions also have two functions that 
>> allow you to redefine the scope of a function as you call it: apply and 
>> call. apply takes 2 arguments: the new scope to call the function under 
>> and an array of arguments to call the function with. call does the same 
>> thing but instead of an array of arguments, you just supply the 
>> arguments as additional arguments to that function call.
>> 
>> Example:
>> var scope = "Scope";
>> var arg = "Arg";
>> var fn = function(e) {
>> window.alert(this + " => " + e);
>> };
>> fn(arg); // alerts " => Arg"
>> fn.apply(scope,[arg]); // alerts "Scope => Arg"
>> fn.call(scope,arg); // alerts "Scope => Arg"
>> 
>> This allows you to redefine the this variable on the fly. Additionally, 
>> the reason self is used rather than this in fn.apply(self) is because 
>> 'this' changes scope once you enter a new function. So inside the 
>> anonymous function defined in the setTimeout call, the scope variable 
>> 'this' is likely to be the window object. So you have to save a 
>> reference to the 'this' you want to use as a separate variable so it can 
>> be referenced elsewhere: hence self = this followed by (inside the 
>> anonymous function) fn.apply(self).
>> 
>> -blair
>> 
>> Daemach wrote:
>>> Yeah that worked.  I'm not certain I understand why though :)
>>>
>>> It does make sense that the closure would actually have to be created
>>> inside
>>> the event handler but .apply(self) is a new one for me.  What exactly is
>>> that doing?
>>>
>>>
>>> Blair Mitchelmore-2 wrote:
 $(document).ready( function() {
var timer;
var fn = function(e) {
if (e && e.type == 'blur') {
if (timer)
window.clearTimeout(timer);
}
// Do stuff
alert(this.id);
}
$('#test').blur(fn).keyup(function() {
var self = this;
timer = window.setTimeout(function() {
fn.apply(self);
},2000);
}).keydown(function() {
if (timer) window.clearTimeout(timer);
});
 });
>> 

Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Benjamin Sterling

I do:
$().ready(function(){
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
});

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach

This last example helped.  I think I have it now :)

jQuery.fn.autoSave = function(fcn,settings) {
settings = jQuery.extend({
delay: 600,
beforeClass: "asBefore",
afterClass: "asAfter"
}, settings);

createCSSClass(".asBefore", "background-color:#FF");
createCSSClass(".asAfter", "background-color:#ddFFdd"); 

if (!window.aSc) {
aSc = new Object();
aSc["timer"] = new Array();
aSc["fn"] = new Array();
}

var p = aSc["fn"].length;

aSc["timer"][p] = null;
aSc["fn"][p] = function(e) {

if (e && e.type == 'blur') {
if (aSc["timer"][p])
window.clearTimeout(aSc["timer"][p]);
}

if (this.value != this.title){
fcn();

jQuery(this).removeClass(settings.beforeClass).addClass(settings.afterClass);
}
}

  return this.each(function(){
jQuery(this).attr("title",this.value).keyup(function() {
if (this.value != this.title){
if (jQuery(this).is('.' + settings.afterClass))
jQuery(this).removeClass(settings.afterClass);
if (!jQuery(this).is('.' + settings.beforeClass))
jQuery(this).addClass(settings.beforeClass);
 
var self = this;
aSc["timer"][p] = window.setTimeout(function()
{aSc["fn"][p].apply(self);},settings.delay);
}
}).keydown(function() {
if (aSc["timer"][p]) 
window.clearTimeout(aSc["timer"][p]);
}).blur(aSc["fn"][p]);

  });
};

Blair Mitchelmore-2 wrote:
> 
> Functions in JavaScript run at a certain scope. A lot of the time, if 
> the function isn't a part of some Object that scope defaults to the 
> window object. All JavaScript functions also have two functions that 
> allow you to redefine the scope of a function as you call it: apply and 
> call. apply takes 2 arguments: the new scope to call the function under 
> and an array of arguments to call the function with. call does the same 
> thing but instead of an array of arguments, you just supply the 
> arguments as additional arguments to that function call.
> 
> Example:
> var scope = "Scope";
> var arg = "Arg";
> var fn = function(e) {
> window.alert(this + " => " + e);
> };
> fn(arg); // alerts " => Arg"
> fn.apply(scope,[arg]); // alerts "Scope => Arg"
> fn.call(scope,arg); // alerts "Scope => Arg"
> 
> This allows you to redefine the this variable on the fly. Additionally, 
> the reason self is used rather than this in fn.apply(self) is because 
> 'this' changes scope once you enter a new function. So inside the 
> anonymous function defined in the setTimeout call, the scope variable 
> 'this' is likely to be the window object. So you have to save a 
> reference to the 'this' you want to use as a separate variable so it can 
> be referenced elsewhere: hence self = this followed by (inside the 
> anonymous function) fn.apply(self).
> 
> -blair
> 
> Daemach wrote:
>> Yeah that worked.  I'm not certain I understand why though :)
>>
>> It does make sense that the closure would actually have to be created
>> inside
>> the event handler but .apply(self) is a new one for me.  What exactly is
>> that doing?
>>
>>
>> Blair Mitchelmore-2 wrote:
>>> $(document).ready( function() {
>>> var timer;
>>> var fn = function(e) {
>>> if (e && e.type == 'blur') {
>>> if (timer)
>>> window.clearTimeout(timer);
>>> }
>>> // Do stuff
>>> alert(this.id);
>>> }
>>> $('#test').blur(fn).keyup(function() {
>>> var self = this;
>>> timer = window.setTimeout(function() {
>>> fn.apply(self);
>>> },2000);
>>> }).keydown(function() {
>>> if (timer) window.clearTimeout(timer);
>>> });
>>> });
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gmail-style-updates-tf3269331.html#a9124271
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Michael E. Carluen
Alright Rick! Now it's a whole new world ahead of you. From this point, I
guarantee you'll change how you design and code your apps. Man, I am just
amazed how you're getting all the mileage from that box of 4.5 you have.

 

jQuery's ajax implementation is definitely one of the catalysts I've had.
CFC's is the other- so you need to check it out one of these days.  I was
never too fond of CF's cfforms and even its flash forms- so I have never
deployed an app that used those.

 

So, have fun with your new found ajax on jQuery!

 

Michael

 

> -Original Message-

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

> Behalf Of Rey Bango

> Sent: Friday, February 23, 2007 9:43 AM

> To: jQuery Discussion.

> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

> 

> LOL! Congrats man. I felt the same way when I made my first Ajax app.

> 

> Now aren't you glad that you have the best Ajax/JS library at your

> disposal along with some of the best CF coders to help you knock it out?

> ;)

> 

> Rey...

> 

> Rick Faircloth wrote:

> > You're right... I tried that and it worked!

> >

> > Sniff...sniff...my first ajax application...I'm so proud.  ;o)

> >

> > Rick

> >

> > -Original Message-

> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

> > Behalf Of Andy Matthews

> > Sent: Friday, February 23, 2007 12:16 PM

> > To: 'jQuery Discussion.'

> > Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

> >

> > You don't want cfdump. Use cfoutput instead. You might have to do some

> basic

> > formatting, but that's not a big deal.

> >

> >

> >

> >

> >

> > ___

> > jQuery mailing list

> > discuss@jquery.com

> > http://jquery.com/discuss/

> >

> 

> ___

> jQuery mailing list

> discuss@jquery.com

> http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rey Bango
Found out about the upgrade price and let me know.

Rey

Rick Faircloth wrote:
> Thanks for the offer for CF 5, Rey.
> 
> Since I'm planning to upgrade to CF 8 in the summer
> and using CF 5 would involve installing it on my production server, too,
> do you think I should still upgrade to CF 5?
> 
> One of the reasons I haven't upgraded so far to CF 7 is that Adobe
> decided that those of us still using 4.5 wouldn't get an upgrade price.
> I balked at paying the full $1300 price.
> 
> I wonder if I could use the CF 5 to get an upgrade price on CF 8?
> 
> Rick
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 12:16 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> Yep, what you'll need to do is output the query using cfoutput. You'll 
> want to format the outputted data in either CSS or a plain ole table.
> 
> You can also see if this will work with CF 4.5:
> 
> http://www.cflib.org/udf.cfm?ID=548
> 
> Its mimics cfdump but I can't remember is CF 4.5 supports UDFs.
> 
> My offer of CF 5 still stands so let me know.
> 
> Rey...
> 
> Rick Faircloth wrote:
>> Yes, it's true... up to this point, 4.5 has always been able to do
>> everything I've needed.  However, now I'm finding myself so far
>> behind functionally that I can't discuss programming solutions
>> with other programmers.
>>
>> Yes, Daemach has been helping me, and so has Michael Carluen.
>>
>> He sent detailed code, but I haven't been able to get it to work, yet.
>> I've modified it some to fit the data in an existing database.
>>
>> I also don't have the use (being still in 4.5) of cfdump which is part
>> of his code.  I don't know if that's critical to the function of the
> entire
>> code
>> or not.
>>
>> Here's what I've got so far...
>>
>> mycfpage.cfm
>>
> 
>> -
>>
>> 
>>
>>  Select User_First_Name, User_Last_Name
>> from resm_users
>>where User_ID = '#URL.User_ID#'
>>
>> 
>>
>>   
>>
>>
>> Form_Page.cfm
>>
> 
>> --
>>
>> 
>>
>> 
>> 
>>  Form_Page
>>  
>> 
>>
>> 
>>
>> $(function(){
>> $("#User_ID").change( function() {
>> var User_ID = $(this).val();
>> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
>> });
>> });
>>  
>> 
>>
>>  
>> 
>>
>> 
>>
>> 
>>
>> 
>> Ricky
>> Jacqui
>> Julie
>> 
>>
>> 
>>
>> 
>>
>> 
>> 
>>
> 
>> --
>>
>> Does this look right?  What changes are needed?
>>
>> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
>> Is there a work around for the lack of that function?
>>
>> Thanks for your help!
>>
>> Rick
>>
>>
>>
>>
>>
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
>> Behalf Of Rey Bango
>> Sent: Friday, February 23, 2007 10:43 AM
>> To: jQuery Discussion.
>> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
>>
>> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
>> on my shelf collecting dust. Let me know if you want it and I'll send it 
>> to you. :)
>>
>> Also, it sounds like Daemach helped you. If you need another example, 
>> sans CFCs, let me know and I'll whip something up.
>>
>> Rey
>>
>>
>>
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Daemach

OK I get it now :)  Thanks very much for your indulgence.  Your post is
timely, of course - I just ran into another problem while trying to convert
my code into a plugin.  I'm trying to create a plugin that allows me to do
something like this:

$("input").autoSave(function(){ ajax code goes here},{options});

The problem at the moment is that if I use a common function (fn) as the
closure repository, and call the autosave function more than once with
different settings strange things happen.  To be expected, really...  I'm
thinking I need to store the fn function in a global array, creating a new
object for each element, or at least each call to the plugin but I'm not
certain.  Trial and error is all I know :)  My code looks like this so far
(createCSSClass is a function by Sam Collett):

jQuery.fn.autoSave = function(fcn,settings) {

settings = jQuery.extend({
delay: 600,
beforeClass: "asBefore",
afterClass: "asAfter"
}, settings);

createCSSClass(".asBefore", "background-color:#FF");
createCSSClass(".asAfter", "background-color:#ddFFdd"); 


timer = null;
fn = function(e) {
if (e && e.type == 'blur') {
if (timer)
window.clearTimeout(timer);
}

if (this.value != this.title){
fcn();

jQuery(this).removeClass(settings.beforeClass).addClass(settings.afterClass);
}
}

  return this.each(function(){
jQuery(this).attr("title",this.value).keyup(function() {
if (this.value != this.title){
if (jQuery(this).is('.' + settings.afterClass))
jQuery(this).removeClass(settings.afterClass);
if (!jQuery(this).is('.' + settings.beforeClass))
jQuery(this).addClass(settings.beforeClass);
 
var self = this;
timer = window.setTimeout(function() 
{fn.apply(self);},settings.delay);
}
}).keydown(function() {
if (timer) window.clearTimeout(timer);
}).blur(fn);

  });
};

Any advice?




Blair Mitchelmore-2 wrote:
> 
> Functions in JavaScript run at a certain scope. A lot of the time, if 
> the function isn't a part of some Object that scope defaults to the 
> window object. All JavaScript functions also have two functions that 
> allow you to redefine the scope of a function as you call it: apply and 
> call. apply takes 2 arguments: the new scope to call the function under 
> and an array of arguments to call the function with. call does the same 
> thing but instead of an array of arguments, you just supply the 
> arguments as additional arguments to that function call.
> 
> Example:
> var scope = "Scope";
> var arg = "Arg";
> var fn = function(e) {
> window.alert(this + " => " + e);
> };
> fn(arg); // alerts " => Arg"
> fn.apply(scope,[arg]); // alerts "Scope => Arg"
> fn.call(scope,arg); // alerts "Scope => Arg"
> 
> This allows you to redefine the this variable on the fly. Additionally, 
> the reason self is used rather than this in fn.apply(self) is because 
> 'this' changes scope once you enter a new function. So inside the 
> anonymous function defined in the setTimeout call, the scope variable 
> 'this' is likely to be the window object. So you have to save a 
> reference to the 'this' you want to use as a separate variable so it can 
> be referenced elsewhere: hence self = this followed by (inside the 
> anonymous function) fn.apply(self).
> 
> -blair
> 
> Daemach wrote:
>> Yeah that worked.  I'm not certain I understand why though :)
>>
>> It does make sense that the closure would actually have to be created
>> inside
>> the event handler but .apply(self) is a new one for me.  What exactly is
>> that doing?
>>
>>
>> Blair Mitchelmore-2 wrote:
>>> $(document).ready( function() {
>>> var timer;
>>> var fn = function(e) {
>>> if (e && e.type == 'blur') {
>>> if (timer)
>>> window.clearTimeout(timer);
>>> }
>>> // Do stuff
>>> alert(this.id);
>>> }
>>> $('#test').blur(fn).keyup(function() {
>>> var self = this;
>>> timer = window.setTimeout(function() {
>>> fn.apply(self);
>>> },2000);
>>> }).keydown(function() {
>>> if (timer) window.clearTimeout(timer);
>>> });
>>> });
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gmail-style-updates-tf3269331.html#a9123839
Sent from the JQuery mailing lis

Re: [jQuery] How do I grab just the selected objects out of the jquery object?

2007-02-23 Thread Blair Mitchelmore
$("p").get() returns a regular array with the jQuery set as its members.

-blair

Daemach wrote:
> I got burned by a debug plugin last night so I'm modifying a great object
> dumper to run as a jquery plugin.  Dumping the entire jquery object is too
> much and not useful for this application - I only want the objects in the
> current selection set.  If I do:
>
> var tmp = $("p");
>
> and there are  2 "p" elements on the page, the selection set is tmp[0] and
> tmp[1].  Is there another location in the object where these references
> reside? Or what is an elegant and fast way to strip just those items?
>
> Eventually I want to call this using $("p").dump() or $("p").debug()


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] How do I check for the existence of an object?

2007-02-23 Thread Daemach

I want to create a global object to store some settings in, but only if it
doesn't exist already.  If it doesn't exist and I try to use something like
if (myObj == 'undefined') myObj = new Object();  I get an error saying the
object is not defined.

Yeah I should know stuff like this ;)
-- 
View this message in context: 
http://www.nabble.com/How-do-I-check-for-the-existence-of-an-object--tf3280307.html#a9123723
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
> Now aren't you glad that you have the best Ajax/JS library at your 
> disposal along with some of the best CF coders to help you knock it out?
;)

Absolutely!

I've just got to figure out how to apply this in some of my apps.

I just need to figure out how to combine some of this with the jqModal
plugin
and I'll be in a new realm of app construction!  And jQuery makes it s
easy!

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 12:43 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

LOL! Congrats man. I felt the same way when I made my first Ajax app.

Now aren't you glad that you have the best Ajax/JS library at your 
disposal along with some of the best CF coders to help you knock it out? ;)

Rey...





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] How do I grab just the selected objects out of the jquery object?

2007-02-23 Thread Daemach

I got burned by a debug plugin last night so I'm modifying a great object
dumper to run as a jquery plugin.  Dumping the entire jquery object is too
much and not useful for this application - I only want the objects in the
current selection set.  If I do:

var tmp = $("p");

and there are  2 "p" elements on the page, the selection set is tmp[0] and
tmp[1].  Is there another location in the object where these references
reside? Or what is an elegant and fast way to strip just those items?

Eventually I want to call this using $("p").dump() or $("p").debug()
-- 
View this message in context: 
http://www.nabble.com/How-do-I-grab-just-the-selected-objects-out-of-the-jquery-object--tf3280273.html#a9123599
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Gmail-style updates

2007-02-23 Thread Blair Mitchelmore
Functions in JavaScript run at a certain scope. A lot of the time, if 
the function isn't a part of some Object that scope defaults to the 
window object. All JavaScript functions also have two functions that 
allow you to redefine the scope of a function as you call it: apply and 
call. apply takes 2 arguments: the new scope to call the function under 
and an array of arguments to call the function with. call does the same 
thing but instead of an array of arguments, you just supply the 
arguments as additional arguments to that function call.

Example:
var scope = "Scope";
var arg = "Arg";
var fn = function(e) {
window.alert(this + " => " + e);
};
fn(arg); // alerts " => Arg"
fn.apply(scope,[arg]); // alerts "Scope => Arg"
fn.call(scope,arg); // alerts "Scope => Arg"

This allows you to redefine the this variable on the fly. Additionally, 
the reason self is used rather than this in fn.apply(self) is because 
'this' changes scope once you enter a new function. So inside the 
anonymous function defined in the setTimeout call, the scope variable 
'this' is likely to be the window object. So you have to save a 
reference to the 'this' you want to use as a separate variable so it can 
be referenced elsewhere: hence self = this followed by (inside the 
anonymous function) fn.apply(self).

-blair

Daemach wrote:
> Yeah that worked.  I'm not certain I understand why though :)
>
> It does make sense that the closure would actually have to be created inside
> the event handler but .apply(self) is a new one for me.  What exactly is
> that doing?
>
>
> Blair Mitchelmore-2 wrote:
>> $(document).ready( function() {
>>  var timer;
>>  var fn = function(e) {
>>  if (e && e.type == 'blur') {
>>  if (timer)
>>  window.clearTimeout(timer);
>>  }
>>  // Do stuff
>>  alert(this.id);
>>  }
>>  $('#test').blur(fn).keyup(function() {
>>  var self = this;
>>  timer = window.setTimeout(function() {
>>  fn.apply(self);
>>  },2000);
>>  }).keydown(function() {
>>  if (timer) window.clearTimeout(timer);
>>  });
>> });

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
Thanks for the offer for CF 5, Rey.

Since I'm planning to upgrade to CF 8 in the summer
and using CF 5 would involve installing it on my production server, too,
do you think I should still upgrade to CF 5?

One of the reasons I haven't upgraded so far to CF 7 is that Adobe
decided that those of us still using 4.5 wouldn't get an upgrade price.
I balked at paying the full $1300 price.

I wonder if I could use the CF 5 to get an upgrade price on CF 8?

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 12:16 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Yep, what you'll need to do is output the query using cfoutput. You'll 
want to format the outputted data in either CSS or a plain ole table.

You can also see if this will work with CF 4.5:

http://www.cflib.org/udf.cfm?ID=548

Its mimics cfdump but I can't remember is CF 4.5 supports UDFs.

My offer of CF 5 still stands so let me know.

Rey...

Rick Faircloth wrote:
> Yes, it's true... up to this point, 4.5 has always been able to do
> everything I've needed.  However, now I'm finding myself so far
> behind functionally that I can't discuss programming solutions
> with other programmers.
> 
> Yes, Daemach has been helping me, and so has Michael Carluen.
> 
> He sent detailed code, but I haven't been able to get it to work, yet.
> I've modified it some to fit the data in an existing database.
> 
> I also don't have the use (being still in 4.5) of cfdump which is part
> of his code.  I don't know if that's critical to the function of the
entire
> code
> or not.
> 
> Here's what I've got so far...
> 
> mycfpage.cfm
>

> -
> 
> 
> 
>  Select User_First_Name, User_Last_Name
>  from resm_users
> where User_ID = '#URL.User_ID#'
> 
> 
> 
>   
> 
> 
> Form_Page.cfm
>

> --
> 
> 
> 
> 
> 
>   Form_Page
>   
> 
> 
> 
> 
> $(function(){
> $("#User_ID").change( function() {
> var User_ID = $(this).val();
> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
> });
> });
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Ricky
> Jacqui
> Julie
> 
> 
> 
> 
> 
> 
> 
> 
>

> --
> 
> Does this look right?  What changes are needed?
> 
> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
> Is there a work around for the lack of that function?
> 
> Thanks for your help!
> 
> Rick
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 10:43 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
> on my shelf collecting dust. Let me know if you want it and I'll send it 
> to you. :)
> 
> Also, it sounds like Daemach helped you. If you need another example, 
> sans CFCs, let me know and I'll whip something up.
> 
> Rey
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Priest, James \(NIH/NIEHS\) [C]
> -Original Message-
> From: Rey Bango [mailto:[EMAIL PROTECTED] 
 
> the new AjaxCFC for jQuery. I had dinner with Rob Gonda last 
> night and put the pressure on him to get it out the door.


Yeah - hurry up :)

I'm getting ready to work on my first jQuery/AjaxCFC app - but I won't
be able to use it until it's out of beta due to policies here at work...
:\

Speaking of which - does anyone have an 'auto complete' type example
done with jQuery and AjaxCFC they'd be willing to share?   I need to
build an admin component to add users and I'd like to use jQuery/Ajax
and have the user enter Last name and have it auto populate as they
type  

Thanks!
Jim 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rey Bango
LOL! Congrats man. I felt the same way when I made my first Ajax app.

Now aren't you glad that you have the best Ajax/JS library at your 
disposal along with some of the best CF coders to help you knock it out? ;)

Rey...

Rick Faircloth wrote:
> You're right... I tried that and it worked!
> 
> Sniff...sniff...my first ajax application...I'm so proud.  ;o)
> 
> Rick
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Andy Matthews
> Sent: Friday, February 23, 2007 12:16 PM
> To: 'jQuery Discussion.'
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> You don't want cfdump. Use cfoutput instead. You might have to do some basic
> formatting, but that's not a big deal. 
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
It works!  When I changed the cfdump to cfoutput query = etc.,
it worked fine.

Thanks, Daemach!

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: Friday, February 23, 2007 12:10 PM
To: discuss@jquery.com
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?


It looks ok to me, though I don't see that syntax very much to init jQuery. 
I usually use:


$(document).ready( function() {

$("#User_ID").change( function() {
var User_ID = $(this).val();
$("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
});

});


You don't need cfdump - whatever you generate on the cfm page will show up
within that div.  Just dump a table.

I would also highly recommend using firefox with the firebug addon for
debugging - it will change your life.  http://www.getfirebug.com  Click on
the checkmark in the lower right corner to open firebug, click on console
then change the selection in the select box - when you see the post/get show
up expand it then you can see what was sent to the server and what it
returned.


Rick Faircloth wrote:
> 
> Yes, it's true... up to this point, 4.5 has always been able to do
> everything I've needed.  However, now I'm finding myself so far
> behind functionally that I can't discuss programming solutions
> with other programmers.
> 
> Yes, Daemach has been helping me, and so has Michael Carluen.
> 
> He sent detailed code, but I haven't been able to get it to work, yet.
> I've modified it some to fit the data in an existing database.
> 
> I also don't have the use (being still in 4.5) of cfdump which is part
> of his code.  I don't know if that's critical to the function of the
> entire
> code
> or not.
> 
> Here's what I've got so far...
> 
> mycfpage.cfm
>

> -
> 
> 
> 
>  Select User_First_Name, User_Last_Name
>  from resm_users
> where User_ID = '#URL.User_ID#'
> 
> 
> 
>   
> 
> 
> Form_Page.cfm
>

> --
> 
> 
> 
> 
> 
>   Form_Page
>   
> 
> 
> 
> 
> $(function(){
> $("#User_ID").change( function() {
> var User_ID = $(this).val();
> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
> });
> });
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Ricky
> Jacqui
> Julie
> 
> 
> 
> 
> 
> 
> 
> 
>

> --
> 
> Does this look right?  What changes are needed?
> 
> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
> Is there a work around for the lack of that function?
> 
> Thanks for your help!
> 
> Rick
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 10:43 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
> on my shelf collecting dust. Let me know if you want it and I'll send it 
> to you. :)
> 
> Also, it sounds like Daemach helped you. If you need another example, 
> sans CFCs, let me know and I'll whip something up.
> 
> Rey
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context:
http://www.nabble.com/Best-way-to-do-AJAX...-CF-or-jQuery--tf3276462.html#a9
122693
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rey Bango
I haven't tried it out just yet but will do that later on today.

Thanks for getting that to me. A good CF-based Taconite example will go 
a long way to getting some good examples into the new AjaxCFC for 
jQuery. I had dinner with Rob Gonda last night and put the pressure on 
him to get it out the door.

Rey...

Daemach wrote:
> Was the example I emailed ok Rey?  Let me know if you need something else.  I
> chose the addRows example because it involved something cf programmers are
> familiar with, namely dumping a query into a table.  It took me a while to
> figure out how to do that with DOM programming and with jQuery.  I also
> mixed dumping straight JS and using the eval function to run some jQuery to
> show the flexibility.
> 
> 
> Rey Bango-2 wrote:
>> Daemach,
>>
>> I'd be interested in seeing a sample of AjaxCFC for jQuery using 
>> taconite. Its something that I'm sure Rob Gonda would love to include in 
>> his sample apps for AjaxCFC.
>>
>> Can you email me a sample?
>>
>> Rey
>>
>> Daemach wrote:
>>> By the way, Mike Alsup just released a new plugin for jQuery called
>>> taconite
>>> that blends some of the best of CF and jQuery. Traditional ajax
>>> programming,
>>> for more complex operations such as building tables, interacting with DOM
>>> elements, etc. requires quite a bit of work and occasionally multiple
>>> operations to do what you need.  Taconite is a nice bridge - I'll let him
>>> explain further:  http://www.malsup.com/jquery/taconite/
>>>
>>> BTW, with this method you can get by with using $.ajax() as he describes,
>>> pulling the taconite objects straight from a .cfm page.  I still use
>>> ajaxCFC
>>> to handle the ajax side because I like the flexibility of going with
>>> whichever method is best suited for the job and because I like keeping
>>> specific functions wrapped in component methods. 
>>>   
>>>
>>> Rick Faircloth wrote:
 A question for you CF & jQuery coders.

 What's the best (easiest) way to work with AJAX?

 ColdFusion or jQuery?

 Why?

 I would appreciate your insights.I haven't used AJAX, yet,
 but I'm really interested in trying to figure it out.  It would
 be especially useful in some of the web-based apps that I'm
 building that would be used in place of traditional software.
 Being able to avoid page changes and page refreshes would
 go a long way in helping me sell people on the apps.

 Rick

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Michael E. Carluen
Hi Andy. Yes, I agree- definitely use cfoutput.  The cfdump was just to
shorten the example code.

 

Michael

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, February 23, 2007 6:15 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

 

Michael...

 

You probably shouldn't be using cfdump on your output page. That includes
loads of javascript, extra styles and lots of HTML crap. You'd be better off
using cfoutput or calling your CFC directly.

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael E. Carluen
Sent: Friday, February 23, 2007 12:51 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Rick,

 

So, lets crawl before we walk here. This should help you understand using
load() with CF basics.

 

---

On your form page:





$(function(){

$("#realtor").change( function() {

var realtor_id = $(this).val();

 
$("#mycfpagecontent").load("mycfpage.cfm?realtor=" + realtor_id);

});

});





Matt

Jacqui

Julie





---

 

Then on your query page: mycfpage.cfm



SELECTfname, lname

FROM   realtorsdb

WHEREid = #URL.realtor#





---

 

Once you get this, then your doing Ajax on CF.  

 

Then go to http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm

 

After that, your to Rob Gonda's ajaxCFC.. Then you're all set!

 

Hope that helps!

 

Michael

 

 

 

 

 

 

 

 

 

 

 

 

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Thursday, February 22, 2007 7:49 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

 

Hmmm. trying to put this into action, but I'm not straight on how to do it.

 

I figured what you meant was to create two pages. one page would have

the ajax line you wrote out and the other would the mycfpage.cfm

 

I have a query on the mycfpage.cfm.

 



 

 Select Title, Text

   from announcements

 



 

.along with the page HTML, body, head tags, etc. (or should it just have

the query?)

 

Now I'm not sure how you want me to put the jQuery code on a page that

I called ajax_test.cfm.  Should the line you wrote out go in the body "as
is"

or should it be written out in the head section with the
$(document).ready(function() {, etc

around it?

 

You can tell, I'm new to both jQuery and ajax!

 

I appreciate your help!

 

Rick

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael E. Carluen
Sent: Thursday, February 22, 2007 9:01 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

 

Rick,

 

You need both.  You use jQuery to send requests to a server side scripting
language like CF (or php, asp, cgi, etc) .

Perhaps the simplest way to introduce yourself to an "ajax" activity would
be to use jQuery's load() function.

 

Try this:

 

$("##displaycfoutput").load("mycfpage.cfm?param1=#something#¶m2=#somethi
ngelse#");

 

On your mycfpage.cfm, put a database query using the URL vars your passed.

 

Hope that helps.

 

Michael

 

 

 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Running a function when something changes...

2007-02-23 Thread Choan C. Gálvez
On 2/23/07, Nicolas Hoizey <[EMAIL PROTECTED]> wrote:
> In a page that gets modified by ajax calls, I would like to run my
> own function after each change.
>
> My function does ajax calls, so if I use the ajaxSuccess binding, it
> goes recursively and crash...
>
> Any idea?

Untested, but reading the code I assume this would work:

$("#something").ajaxSuccess(fn);

function fn(r, s) {
  $(this).unbind("ajaxSuccess");
  // do what you want, then rebind
  $(this).ajaxSuccess("fn");
}

HTH.
-- 
Choan


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
You're right... I tried that and it worked!

Sniff...sniff...my first ajax application...I'm so proud.  ;o)

Rick

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, February 23, 2007 12:16 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

You don't want cfdump. Use cfoutput instead. You might have to do some basic
formatting, but that's not a big deal. 





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery API in PDF Format

2007-02-23 Thread Rey Bango
Thanks Sam! I wasn't aware you were collecting this! This is great info.

Rey


> Have updated my post listing different versions of the documentation
> (on there is also links to another PDF of the API and PDF cheat sheets
> (although they are out of date, there are links to updated HTML
> versions in the linked blog post) ).
> 
> http://webdevel.blogspot.com/2007/01/jquery-documentation.html
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Andy Matthews
You don't want cfdump. Use cfoutput instead. You might have to do some basic
formatting, but that's not a big deal. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Friday, February 23, 2007 10:52 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Yes, it's true... up to this point, 4.5 has always been able to do
everything I've needed.  However, now I'm finding myself so far behind
functionally that I can't discuss programming solutions with other
programmers.

Yes, Daemach has been helping me, and so has Michael Carluen.

He sent detailed code, but I haven't been able to get it to work, yet.
I've modified it some to fit the data in an existing database.

I also don't have the use (being still in 4.5) of cfdump which is part of
his code.  I don't know if that's critical to the function of the entire
code or not.

Here's what I've got so far...

mycfpage.cfm

-



 Select User_First_Name, User_Last_Name
   from resm_users
  where User_ID = '#URL.User_ID#'
  


  


Form_Page.cfm

--





Form_Page





$(function(){
$("#User_ID").change( function() {
var User_ID = $(this).val();
$("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
});
});











Ricky
Jacqui
Julie 








--

Does this look right?  What changes are needed?

Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
Is there a work around for the lack of that function?

Thanks for your help!

Rick






-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 10:43 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting on
my shelf collecting dust. Let me know if you want it and I'll send it to
you. :)

Also, it sounds like Daemach helped you. If you need another example, sans
CFCs, let me know and I'll whip something up.

Rey





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rey Bango
Yep, what you'll need to do is output the query using cfoutput. You'll 
want to format the outputted data in either CSS or a plain ole table.

You can also see if this will work with CF 4.5:

http://www.cflib.org/udf.cfm?ID=548

Its mimics cfdump but I can't remember is CF 4.5 supports UDFs.

My offer of CF 5 still stands so let me know.

Rey...

Rick Faircloth wrote:
> Yes, it's true... up to this point, 4.5 has always been able to do
> everything I've needed.  However, now I'm finding myself so far
> behind functionally that I can't discuss programming solutions
> with other programmers.
> 
> Yes, Daemach has been helping me, and so has Michael Carluen.
> 
> He sent detailed code, but I haven't been able to get it to work, yet.
> I've modified it some to fit the data in an existing database.
> 
> I also don't have the use (being still in 4.5) of cfdump which is part
> of his code.  I don't know if that's critical to the function of the entire
> code
> or not.
> 
> Here's what I've got so far...
> 
> mycfpage.cfm
> 
> -
> 
> 
> 
>  Select User_First_Name, User_Last_Name
>  from resm_users
> where User_ID = '#URL.User_ID#'
> 
> 
> 
>   
> 
> 
> Form_Page.cfm
> 
> --
> 
> 
> 
> 
> 
>   Form_Page
>   
> 
> 
> 
> 
> $(function(){
> $("#User_ID").change( function() {
> var User_ID = $(this).val();
> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
> });
> });
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Ricky
> Jacqui
> Julie
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 
> Does this look right?  What changes are needed?
> 
> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
> Is there a work around for the lack of that function?
> 
> Thanks for your help!
> 
> Rick
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 10:43 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
> on my shelf collecting dust. Let me know if you want it and I'll send it 
> to you. :)
> 
> Also, it sounds like Daemach helped you. If you need another example, 
> sans CFCs, let me know and I'll whip something up.
> 
> Rey
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Daemach

Was the example I emailed ok Rey?  Let me know if you need something else.  I
chose the addRows example because it involved something cf programmers are
familiar with, namely dumping a query into a table.  It took me a while to
figure out how to do that with DOM programming and with jQuery.  I also
mixed dumping straight JS and using the eval function to run some jQuery to
show the flexibility.


Rey Bango-2 wrote:
> 
> Daemach,
> 
> I'd be interested in seeing a sample of AjaxCFC for jQuery using 
> taconite. Its something that I'm sure Rob Gonda would love to include in 
> his sample apps for AjaxCFC.
> 
> Can you email me a sample?
> 
> Rey
> 
> Daemach wrote:
>> By the way, Mike Alsup just released a new plugin for jQuery called
>> taconite
>> that blends some of the best of CF and jQuery. Traditional ajax
>> programming,
>> for more complex operations such as building tables, interacting with DOM
>> elements, etc. requires quite a bit of work and occasionally multiple
>> operations to do what you need.  Taconite is a nice bridge - I'll let him
>> explain further:  http://www.malsup.com/jquery/taconite/
>> 
>> BTW, with this method you can get by with using $.ajax() as he describes,
>> pulling the taconite objects straight from a .cfm page.  I still use
>> ajaxCFC
>> to handle the ajax side because I like the flexibility of going with
>> whichever method is best suited for the job and because I like keeping
>> specific functions wrapped in component methods. 
>>   
>> 
>> Rick Faircloth wrote:
>>> A question for you CF & jQuery coders.
>>>
>>> What's the best (easiest) way to work with AJAX?
>>>
>>> ColdFusion or jQuery?
>>>
>>> Why?
>>>
>>> I would appreciate your insights.I haven't used AJAX, yet,
>>> but I'm really interested in trying to figure it out.  It would
>>> be especially useful in some of the web-based apps that I'm
>>> building that would be used in place of traditional software.
>>> Being able to avoid page changes and page refreshes would
>>> go a long way in helping me sell people on the apps.
>>>
>>> Rick
>>>
>>> ___
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>
>>>
>> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-do-AJAX...-CF-or-jQuery--tf3276462.html#a9122760
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Daemach

It looks ok to me, though I don't see that syntax very much to init jQuery. 
I usually use:


$(document).ready( function() {

$("#User_ID").change( function() {
var User_ID = $(this).val();
$("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
});

});


You don't need cfdump - whatever you generate on the cfm page will show up
within that div.  Just dump a table.

I would also highly recommend using firefox with the firebug addon for
debugging - it will change your life.  http://www.getfirebug.com  Click on
the checkmark in the lower right corner to open firebug, click on console
then change the selection in the select box - when you see the post/get show
up expand it then you can see what was sent to the server and what it
returned.


Rick Faircloth wrote:
> 
> Yes, it's true... up to this point, 4.5 has always been able to do
> everything I've needed.  However, now I'm finding myself so far
> behind functionally that I can't discuss programming solutions
> with other programmers.
> 
> Yes, Daemach has been helping me, and so has Michael Carluen.
> 
> He sent detailed code, but I haven't been able to get it to work, yet.
> I've modified it some to fit the data in an existing database.
> 
> I also don't have the use (being still in 4.5) of cfdump which is part
> of his code.  I don't know if that's critical to the function of the
> entire
> code
> or not.
> 
> Here's what I've got so far...
> 
> mycfpage.cfm
> 
> -
> 
> 
> 
>  Select User_First_Name, User_Last_Name
>  from resm_users
> where User_ID = '#URL.User_ID#'
> 
> 
> 
>   
> 
> 
> Form_Page.cfm
> 
> --
> 
> 
> 
> 
> 
>   Form_Page
>   
> 
> 
> 
> 
> $(function(){
> $("#User_ID").change( function() {
> var User_ID = $(this).val();
> $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
> });
> });
>   
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Ricky
> Jacqui
> Julie
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 
> Does this look right?  What changes are needed?
> 
> Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
> Is there a work around for the lack of that function?
> 
> Thanks for your help!
> 
> Rick
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Friday, February 23, 2007 10:43 AM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
> on my shelf collecting dust. Let me know if you want it and I'll send it 
> to you. :)
> 
> Also, it sounds like Daemach helped you. If you need another example, 
> sans CFCs, let me know and I'll whip something up.
> 
> Rey
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Best-way-to-do-AJAX...-CF-or-jQuery--tf3276462.html#a9122693
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Running a function when something changes...

2007-02-23 Thread Nicolas Hoizey
In a page that gets modified by ajax calls, I would like to run my  
own function after each change.

My function does ajax calls, so if I use the ajaxSuccess binding, it  
goes recursively and crash...

Any idea?


-Nicolas

-- 
Nicolas "Brush" HOIZEY
Clever Age   : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/[EMAIL PROTECTED]/M1c002
phpHeaven: http://www.phpheaven.net/




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rick Faircloth
Yes, it's true... up to this point, 4.5 has always been able to do
everything I've needed.  However, now I'm finding myself so far
behind functionally that I can't discuss programming solutions
with other programmers.

Yes, Daemach has been helping me, and so has Michael Carluen.

He sent detailed code, but I haven't been able to get it to work, yet.
I've modified it some to fit the data in an existing database.

I also don't have the use (being still in 4.5) of cfdump which is part
of his code.  I don't know if that's critical to the function of the entire
code
or not.

Here's what I've got so far...

mycfpage.cfm

-



 Select User_First_Name, User_Last_Name
   from resm_users
  where User_ID = '#URL.User_ID#'
  


  


Form_Page.cfm

--





Form_Page





$(function(){
$("#User_ID").change( function() {
var User_ID = $(this).val();
$("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);
});
});











Ricky
Jacqui
Julie









--

Does this look right?  What changes are needed?

Remember, I can't use the cfdump at the end of the mycfpage.cfm page.
Is there a work around for the lack of that function?

Thanks for your help!

Rick






-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 10:43 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
on my shelf collecting dust. Let me know if you want it and I'll send it 
to you. :)

Also, it sounds like Daemach helped you. If you need another example, 
sans CFCs, let me know and I'll whip something up.

Rey





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-02-23 Thread Rick Faircloth
I wouldn't have to worry about the apps I'm working on so far.
They're for in-house use and the users would all be told to enable
js.
 
Thanks for your help on the "Hello World".it was nice to see that
pop up on the screen! :o)
 
Rick
 
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Benjamin Sterling
Sent: Friday, February 23, 2007 11:04 AM
To: jQuery Discussion.
Subject: Re: [jQuery] jqModal r7 release!
 
Keep in mind that the app i am building is basically a copy of a actual
application that was built in C and this app will not work if javascript is
turned off.  So, when your building you ajax app, think about what would
happen if the end user had js off.  

Good to hear you got the hello world to work.  Sometimes it takes a little
bit to understand how something work, but once you do there is not limit
to what you can do.

-- 
Benjamin Sterling 
http://www.KenzoMedia.com
http://www.KenzoHosting.com 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] bassistance.de Jorn's form validation requirements

2007-02-23 Thread Web Specialist

Thanx Jorn.

I'm playing with validation plugin now; ;-)

Great piece of code!

Cheers

2007/2/23, Jörn Zaefferer <[EMAIL PROTECTED]>:


Web Specialist schrieb:
> Hi,
>
> do you know the requirements to use Jorn's form validation
> plugin(http://bassistance.de/jquery-plugins/jquery-plugin-validation/)?
> Looks like several files needed to run. Exists a lite version?
The plugin has only one required dependency, jQuery itself.

In case you want to provide validation rules via metadata-markup
(instead of plugin settings), you need the metadata plugin (available
from svn and bundled in the download). And of course you need the form
plugin to make AJAX submits.

I've updated the Dependencies section on the plugin page and added links
to make this clearer.

Regards

--
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-02-23 Thread Jörn Zaefferer
Brice Burgess schrieb:
> Ladies and Gentleman of the jQuery,
>
>   ...errr, more so the Gentleman...
>
> I am happy to bring you jqModal r7, codenamed "listen". R7 is a major 
> feature enhancer, and brings about some API changes and parameter 
> reduction. I recommend upgrading & porting your existing code to the new 
> version... well worth the added flexibility // maintaining support.
>   
Great job! For more eyecandy: Try to apply some of the window styles to 
your plugin page ;-)

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-02-23 Thread Jörn Zaefferer
Mikael Noone schrieb:
> Well, you certainly convinced me. Im switching from the interface 
> element plugin to this for
> window drag and drop + close. Now i just need a supersmall tooltip 
> plugin to :-)
How small is "supersmall"? Is this too big? 
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] bassistance.de Jorn's form validation requirements

2007-02-23 Thread Jörn Zaefferer
Web Specialist schrieb:
> Hi,
>
> do you know the requirements to use Jorn's form validation 
> plugin(http://bassistance.de/jquery-plugins/jquery-plugin-validation/)? 
> Looks like several files needed to run. Exists a lite version?
The plugin has only one required dependency, jQuery itself.

In case you want to provide validation rules via metadata-markup 
(instead of plugin settings), you need the metadata plugin (available 
from svn and bundled in the download). And of course you need the form 
plugin to make AJAX submits.

I've updated the Dependencies section on the plugin page and added links 
to make this clearer.

Regards

-- 
Jörn Zaefferer

http://bassistance.de


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] thickbox bug

2007-02-23 Thread Alexandre Plennevaux
i think i've found a bug in thickbox:
 
you cannot disable the default behavior of an anchor link if you give it the 
thickbox class.
 
so this does not work:
 
http://www.google.com?KeepThis=true&TB_iframe=true&height=98%&width=600"http://www.google.com?KeepThis=true&TB_iframe=true&height=98%&width=600";>google
 
 
 
i guess this is bypassable if you jquery the onclick event...
 

Alexandre Plennevaux - LAb[au] asbl.vzw / MediaRuimte
Lakensestraat/Rue de Laeken 104
B-1000 Brussel-Bruxelles-Brussels
Belgie-Belgique-Belgium

Tel:+32(0)2.219.65.55
Fax:+32(0)2.426.69.86
Mobile:+32(0)476.23.21.42
HYPERLINK "blocked::http://www.lab-au.com/"http://www.lab-au.com
HYPERLINK "blocked::http://www.mediaruimte.be/"http://www.mediaruimte.be

HYPERLINK 
"blocked::http://www.mediaruimte.be/"__

The information in this e-mail is intended only for the addressee named above.  
If you are not that addressee, please note that any disclosure, distribution or 
copying of this e-mail is prohibited.
Because e-mail can be electronically altered, the integrity of this 
communication cannot be guaranteed.

__

 

-- 
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.446 / Base de données virus: 268.18.3/698 - Date: 23/02/2007 4:39
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] BlockUI like plugin for divs

2007-02-23 Thread Sam Collett
On 23/02/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > Just an issue/small question though, in Safari, the select-tags gets
> > dimmed for just an instant, and then "shine through" the block, is
> > this a little bug?
>
> Thanks for the feedback, Andreas.  I'm using a z-index of 500 for the
> iframe, perhaps that's not high enough in Safari?  Anyone know?  The
> full page blocking uses an iframe with z-index of 1000.  Does that
> example work in Safari?
>
> Mike

Perhaps there should be the ability to change the z-index for the full
page blocking as well?
I notice you use 1000, 2000 and 3000 - wouldn't 1000, 1001, 1002 be
just as good?

I do find it odd when such high z-indexes are used - especially since
it is extremely unlikely you will have that many layers (I can't
imagine using more than 10). I wonder what is the highest z-index each
browser can take?

I suppose it's because CSS can often be copied and pasted from other
sites, and not too much thought put into this aspect (i.e. it works,
so why change it). Pity there isn't a way (that I know of) to find out
which element has the highest z-index.

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Andy Matthews
It's all good. Credit where credit is due my friend.



Andy Matthews
Senior Coldfusion Developer
Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Friday, February 23, 2007 9:26 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

For some reason I thought it was you. My apologies to the original author.

Rey

Andy Matthews wrote:
> Oh no...that wasn't me Rey, just to be fair. I can't recall who did 
> it, but it wasn't me.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> On Behalf Of Rey Bango
> Sent: Thursday, February 22, 2007 10:38 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> Rick,
> 
> Andy Matthews came up with a nice intro which you can find here:
> 
> http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm
> 
> Take a peak at that to see if it helps.
> 
> Rey...
> 
> Rick Faircloth wrote:
>> Thanks, Mike.
>>
>> Now, for someone like me, who has absolutely no experience with AJAX, 
>> what would be the most simple thing I could do with AJAX... just to 
>> get my feet wet.
>>
>> I'm still using CF 4.5, so it'll have to be compatible with that.
>>
>> Perhaps you know of a basic AJAX example/tutorial that utilizes CF 
>> and AJAX that I could work?  Especially something that takes the time 
>> to explain all the code involved so I can get the underlying 
>> principles down.
>>
>> Rick
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> On Behalf Of Mike Chabot
>> Sent: Thursday, February 22, 2007 8:52 PM
>> To: jQuery Discussion.
>> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
>>
>> You would use ColdFusion on the server and jQuery on the client. They 
>> work together. jQuery requests content from the server, ColdFusion 
>> sends the content back, jQuery displays the retrieved content.
>>
>> -Mike Chabot
>>
>>
>>
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How can I create a (style) .class dynamically?

2007-02-23 Thread Daemach

Thanks!


Sam Collett wrote:
> 
> On 23/02/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
>> well, you can append to the head, example:
>> http://ov-staging.informationexperts.com/e.htm
>>
>> 
>> $(document).ready(function(){
>> $('head').append('');
>> });
>> 
>>
>> This does not work in the IEs tho (6, 7), but I am sure something like
>> that
>> is possible with some tweak.  It does work in opera 9 and ff2
>>
>>
>> --
>> Benjamin Sterling
>> http://www.KenzoMedia.com
>> http://www.KenzoHosting.com
> 
> I have a function that does that (although it has not been tested in Opera
> 9):
> http://webdevel.blogspot.com/2006/06/create-css-class-javascript.html
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-create-a-%28style%29-.class-dynamically--tf3276875.html#a9121620
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How can I create a (style) .class dynamically?

2007-02-23 Thread Daemach

Thanks Karl - 



Karl Rudd wrote:
> 
> Under IE you can use createStyleSheet() and cssText:
> 
>   var s = document.createStyleSheet().cssText = '.something { color: red
> }';
> 
> More info can be found here:
> 
>   http://www.quirksmode.org/dom/changess.html
> 
> Karl
> 
> On 2/23/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
>> well, you can append to the head, example:
>> http://ov-staging.informationexperts.com/e.htm
>>
>> 
>> $(document).ready(function(){
>> $('head').append('');
>> });
>> 
>>
>> This does not work in the IEs tho (6, 7), but I am sure something like
>> that
>> is possible with some tweak.  It does work in opera 9 and ff2
>>
>>
>> --
>> Benjamin Sterling
>> http://www.KenzoMedia.com
>> http://www.KenzoHosting.com
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-create-a-%28style%29-.class-dynamically--tf3276875.html#a9121628
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] How can I create a (style) .class dynamically?

2007-02-23 Thread Daemach

This worked forff2 - I was using #head when I tried this earlier ;)



bmsterling wrote:
> 
> well, you can append to the head, example:
> http://ov-staging.informationexperts.com/e.htm
> 
> 
> $(document).ready(function(){
> $('head').append('');
> });
> 
> 
> This does not work in the IEs tho (6, 7), but I am sure something like
> that
> is possible with some tweak.  It does work in opera 9 and ff2
> 
> 
> -- 
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-create-a-%28style%29-.class-dynamically--tf3276875.html#a9121616
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal r7 release!

2007-02-23 Thread Benjamin Sterling

Keep in mind that the app i am building is basically a copy of a actual
application that was built in C and this app will not work if javascript is
turned off.  So, when your building you ajax app, think about what would
happen if the end user had js off.

Good to hear you got the hello world to work.  Sometimes it takes a little
bit to understand how something work, but once you do there is not limit
to what you can do.

--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] bassistance.de Jorn's form validation requirements

2007-02-23 Thread Web Specialist

Hi,

do you know the requirements to use Jorn's form validation plugin(
http://bassistance.de/jquery-plugins/jquery-plugin-validation/)? Looks like
several files needed to run. Exists a lite version?

Cheers
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Rey Bango
No way! CF 4.5??? Dude, I have a copy of CF 5.0 Enterprise just sitting 
on my shelf collecting dust. Let me know if you want it and I'll send it 
to you. :)

Also, it sounds like Daemach helped you. If you need another example, 
sans CFCs, let me know and I'll whip something up.

Rey

Rick Faircloth wrote:
> Rey... I'm afraid the "quickstart" tutorial you pointed me to
> won't be of any help right now...I'm still using CF 4.5, so
> CFC's are not part of my arsenal...
> 
> Rick
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Andy Matthews
> Sent: Friday, February 23, 2007 9:13 AM
> To: 'jQuery Discussion.'
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> Oh no...that wasn't me Rey, just to be fair. I can't recall who did it, but
> it wasn't me.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Rey Bango
> Sent: Thursday, February 22, 2007 10:38 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> Rick,
> 
> Andy Matthews came up with a nice intro which you can find here:
> 
> http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm
> 
> Take a peak at that to see if it helps.
> 
> Rey...
> 
> Rick Faircloth wrote:
>> Thanks, Mike.
>>
>> Now, for someone like me, who has absolutely no experience with AJAX, 
>> what would be the most simple thing I could do with AJAX... just to 
>> get my feet wet.
>>
>> I'm still using CF 4.5, so it'll have to be compatible with that.
>>
>> Perhaps you know of a basic AJAX example/tutorial that utilizes CF and 
>> AJAX that I could work?  Especially something that takes the time to 
>> explain all the code involved so I can get the underlying principles 
>> down.
>>
>> Rick
>>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>> On Behalf Of Mike Chabot
>> Sent: Thursday, February 22, 2007 8:52 PM
>> To: jQuery Discussion.
>> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
>>
>> You would use ColdFusion on the server and jQuery on the client. They 
>> work together. jQuery requests content from the server, ColdFusion 
>> sends the content back, jQuery displays the retrieved content.
>>
>> -Mike Chabot
>>
>>
>>
>>
>>
>> ___
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Best way to do AJAX... CF or jQuery?

2007-02-23 Thread Andy Matthews
Yep, then pointing to a CFM page is your best bet. Just link to a CFM page,
cfoutput all of the required data and go from there. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Friday, February 23, 2007 9:10 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Rey... I'm afraid the "quickstart" tutorial you pointed me to won't be of
any help right now...I'm still using CF 4.5, so CFC's are not part of my
arsenal...

Rick


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, February 23, 2007 9:13 AM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Oh no...that wasn't me Rey, just to be fair. I can't recall who did it, but
it wasn't me.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Thursday, February 22, 2007 10:38 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?

Rick,

Andy Matthews came up with a nice intro which you can find here:

http://www.365labs.net/cf_jquery/jquery_coldfusion_quickstart.htm

Take a peak at that to see if it helps.

Rey...

Rick Faircloth wrote:
> Thanks, Mike.
> 
> Now, for someone like me, who has absolutely no experience with AJAX, 
> what would be the most simple thing I could do with AJAX... just to 
> get my feet wet.
> 
> I'm still using CF 4.5, so it'll have to be compatible with that.
> 
> Perhaps you know of a basic AJAX example/tutorial that utilizes CF and 
> AJAX that I could work?  Especially something that takes the time to 
> explain all the code involved so I can get the underlying principles 
> down.
> 
> Rick
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of Mike Chabot
> Sent: Thursday, February 22, 2007 8:52 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] Best way to do AJAX... CF or jQuery?
> 
> You would use ColdFusion on the server and jQuery on the client. They 
> work together. jQuery requests content from the server, ColdFusion 
> sends the content back, jQuery displays the retrieved content.
> 
> -Mike Chabot
> 
> 
> 
> 
> 
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


  1   2   >