Re: [jQuery] NOTICE: Moving to Google Groups

2007-03-21 Thread Jason Huck

I'm pretty fond of the Nabble interface, personally. I guess their listener
address will get imported along with the rest, though some config might need
to be updated somewhere to make sure messages from the new list get archived
in the same place as the old ones. Well worth doing, IMO, no reason the two
can't peacefully coexist...

- jason






John Resig wrote:
 
 Don't think so - you should be able to just enter your email address
 and have it just work (as far as I can tell). Regardless, I'll be
 importing everyone's email addresses, so, at the very least, you won't
 have to worry about trying to sign up again.
 
 --John
 
 On 3/21/07, Michael Fuerst [EMAIL PROTECTED] wrote:
 John Resig schrieb:
  Brad -
 
  He's referring to the fact that the group is currently closed and
  invite only. I will be adding everyone from the mailing list tonight
  when I make the final switch over.

 Do I have to create an account in google to use the new list?

 Michael

 ___
 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/NOTICE%3A-Moving-to-Google-Groups-tf3440797.html#a9603462
Sent from the JQuery mailing list archive at Nabble.com.


___
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.htmlhttp://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] jqUploader: flash-based file upload

2007-02-22 Thread Jason Huck

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.htmlhttp://www.pixeline.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/


[jQuery] jquery logo art

2007-02-17 Thread Jason Huck

where can i get a copy of the jquery logo, other than swiping it out of the
site template?

it would be useful for the presentation i'm putting together.

thanks!

- jason



-- 
View this message in context: 
http://www.nabble.com/jquery-logo-art-tf3245929.html#a9023355
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Capturing modifier key events

2007-01-23 Thread Jason Huck

I would love to see a jQuery plugin that handles the browser-specific
retrieval of the key events, translates them into the keycodes, and does the
test for a specific combination for you behind the scenes. I'm imagining
usage something like this:

$().keycommand({'control','s'}, function() {
// what you want control-s to do.
});

Maybe you should be able to specify the event:

$().keycommand({'control','s'}, 'keydown', function() {
// what you want control-s to do.
});

Or, be able to do all your key bindings in a single hash, like:

$().keycommands({
{'control','s'}: function(){ // custom save },
{'control','z'}: function(){ // custom undo }
});

Possible? Anyone done something like this?

Cheers,
Jason





Blair McKenzie-2 wrote:
 
 I've found that I've had to add keydown to both document and body in order
 to detect ctrl and shift in both ie and ff.\
 $(document).add(body).keydown( function(e) {
   var ctrl = e.keyCode == 16 || e.ctrlKey;
   var alt = e.keyCode == 18 || e.altKey;
 });
 
 Blair
 
 
 On 10/5/06, Klaus Hartl [EMAIL PROTECTED] wrote:

 Sam Collett schrieb:
  In IE:
  e.keyCode returns the same as e.charCode in Firefox
  The keys keyCode detects in Firefox are not detected at all in IE (so
  you cannot prevent copy/paste in text boxes for example)


 Sam, if you need that, maybe you can use oncopy/onbeforecopy in IE for
 that...


 -- Klaus

 ___
 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/Capturing-modifier-key-events-tf2385678.html#a8552471
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] help with recursive function

2007-01-23 Thread Jason Huck

Thanks, it did indeed need to go into the callback function in order to work,
I just didn't have the syntax quite right the first time I tried it.

- jason




malsup wrote:
 
 This works fine for the first step (the form that is initially loaded),
 but
 fails to bind to the newly loaded form after submit. I tried moving the
 recursive call into the after/success callback of .ajaxSubmit, but it
 didn't
 make any difference. Not sure what else to try. Any suggestions?
 
 Jason,
 
 The binding definitely needs to execute in the callback of the
 ajaxSubmit method.
 
 $('form').ajaxSubmit({
 target: '#pgContentInner',
 url: '/path/to/page',
 method: 'post',
 complete: function(xhr, status) {
 if (status == error)
 // do error stuff
 else
 bindForm();
 }
 );
 
 What happens when you run bindForm from the callback?  Have you tried
 using Firebug and setting a breakpoint on that line?
 
 Mike
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/help-with-recursive-function-tf3039726.html#a8552500
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] help with recursive function

2007-01-19 Thread Jason Huck

I am trying to create a multi-step form using a recursive function to find
the form, bind a submit event, and replace the form with either an error
message or a new form for the following step. This is what I have so far:

$(function(){
bindForm = function(){

$('#pgContentInner').find('form').submit(function(){
$('#pgContentInner').hide('slow', 
function(){
$('form').ajaxSubmit({
target: 
'#pgContentInner',
url: '/path/to/page',
method: 'post'
});
}).show('slow');

bindForm();
return false;
});
}

bindForm();
});

This works fine for the first step (the form that is initially loaded), but
fails to bind to the newly loaded form after submit. I tried moving the
recursive call into the after/success callback of .ajaxSubmit, but it didn't
make any difference. Not sure what else to try. Any suggestions?

Thanks!
Jason



-- 
View this message in context: 
http://www.nabble.com/help-with-recursive-function-tf3039726.html#a8448540
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Not sure how to do this...

2006-10-11 Thread Jason Huck

I was able to do it with a slight tweak of the code posted here:
http://www.nabble.com/How-to-change-value-of-select-dropdown--tf2308098.html#a6420831


script type=text/javascript
jQuery.fn.option = function(value){
return this.each(function(){
var select = $(this)[0];
for(var i = 0; i  select.length; i++) 
if(select[i].innerHTML == value) 
select.selectedIndex = i;
});
};

$(function(){
$('#kwd').keyup(function(){ 
$('#list').option(this.value);
}); 
});
/script

form
input type=text id=kwd name=kwd /
select id=list name=list
option value=0/option
option value=1bar/option
option value=2foo/option
option value=3far/option
/select
/form







Brian Litzinger wrote:
 
 how do I take the value of an text field, and check it against the text in
 a select list? For example, if I type foo in a text field, and I have a
 select list that looks like the one below it'll automatically make the
 second option selected.
 
 select
 option value=1bar/option
 option value=2foo/option
 option value=3bar/option
 /select
 
 Basically as I type I want to check the value on every key up to see if it
 exists in the select list(not as the value, but the text) then take a
 certain action.
 



-- 
View this message in context: 
http://www.nabble.com/Not-sure-how-to-do-this...-tf2426822.html#a6768963
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Autocomplete Plugin: iframe visible in IE6.

2006-10-05 Thread Jason Huck

FWIW, I killed the parts of the CSS that were hacks for IE5 support (we
haven't supported IE5 in a while), and it seems to be fine now.

- jason





Dylan Verheul wrote:
 
 I've had the same experience writing it.
 You can set the width of the iframe to the width of the autocomplete
 results, that prevents horizontal scrollbars.
 
 Other than that, I haven't had any problems.
 
 Maybe the recent bgiframe extension might be of help?
 
 Dylan
 
 On 10/4/06, Jason Huck [EMAIL PROTECTED] wrote:

 When using the Autocomplete plugin found here:

 http://www.dyve.net/jquery?autocomplete

 I've got one version of IE (6.0.3790.1830) that shows the entire 3000px
 by
 3000px iframe on the screen, obscuring everything behind it and causing
 huge
 scrollbars to appear on the page. It even happens on the demo page
 itself.

 Other browsers (even other versions of IE 6) have a few mild quirks here
 and
 there, but nothing like this.

 Anyone else seeing this? Any ideas for a workaround? I am guessing,
 looking
 at the CSS, that it has something to do with z-index and/or
 filter:mask()...

 Thanks,
 Jason



 --
 View this message in context:
 http://www.nabble.com/Autocomplete-Plugin%3A-iframe-visible-in-IE6.-tf2382681.html#a6640691
 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/Autocomplete-Plugin%3A-iframe-visible-in-IE6.-tf2385392.html#a6667727
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] Autocomplete Plugin: iframe visible in IE6.

2006-10-04 Thread Jason Huck

When using the Autocomplete plugin found here:

http://www.dyve.net/jquery?autocomplete

I've got one version of IE (6.0.3790.1830) that shows the entire 3000px by
3000px iframe on the screen, obscuring everything behind it and causing huge
scrollbars to appear on the page. It even happens on the demo page itself.

Other browsers (even other versions of IE 6) have a few mild quirks here and
there, but nothing like this.

Anyone else seeing this? Any ideas for a workaround? I am guessing, looking
at the CSS, that it has something to do with z-index and/or filter:mask()...

Thanks,
Jason



-- 
View this message in context: 
http://www.nabble.com/Autocomplete-Plugin%3A-iframe-visible-in-IE6.-tf2382681.html#a6640691
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Bug?

2006-10-04 Thread Jason Huck

Also of note: using $.get() in combination with .empty() and .append()
instead of .load() has the added benefit of fixing reflow issues I've seen
in Opera when replacing table contents. With .load(), the new content flows
in inline in a big jumble, but with $.get(), it retains the correct visual
structure. Probably another quirk with innerHTML.

Perhaps .load() should be updated to use .empty() and .append() as well??

Thanks,
Jason



-- 
View this message in context: http://www.nabble.com/Bug--tf2099071.html#a6639834
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Bug?

2006-10-04 Thread Jason Huck

Thanks, Rey. Trimming the output allows it to display correctly. 

Of note: The callback for my new $.get() contains another (different)
$.get(). The inner $.get() doesn't use a callback, but when I first switched
the outer call over from .load(), IE reported this:

Line: 1615
Error: 'constructor' is null or not an object

Line 1615 in jquery.js is this:

if ( data.constructor == Function ) {

...which is inside something called 'extend', so I expect there may be some
sort of inheritance issue at play. To get rid of the error, I added an empty
callback to the inner $.get(), i.e. this:

$.get('/path/to/ajax/stuff/');

...became this:

$.get('/path/to/ajax/stuff/',function(){void(null);});


- jason







Rey Bango-2 wrote:
 
 Jason,
 
 I had a similar problem which ended up being a problem with the way that 
 my server-side programming language, ColdFusion, was returning the rows. 
 There was a ton of leading and trailing spaces in the response packet so 
 once I trimmed that, it was able to insert my rows successfully. My code 
 looks very similar to yours.
 
 I tried using Firebug to show me the response but the best results I got 
 were with IE and ServiceCapture. That showed me how the response packet 
 was malformed. Try out the latter to see if you're experiencing the same 
 issue.
 
 Rey...
 
 Jason Huck wrote:
 I ran into this problem today, trying to replace the contents of a
 tbody,
 but so far John's suggested workaround isn't quite doing the trick.
 .load()
 works everywhere except in IE.
 
 Using alternate code as suggested:
 
 $.get('/path/to/ajax/page/', function(thehtml){
  $(tbody#foo).empty().append(thehtml); 
 });
 
 ...the empty() fires, but the append() somehow doesn't insert thehtml
 correctly. thehtml is pretty basic, looks something like this:
 
 tr
  tdblah/tdtdblah/tdtdblah/td
  tdblah/tdtdblah/tdtdblah/td
  tdblah/tdtdblah/tdtdblah/td
 /tr
 tr
  tdblah/tdtdblah/tdtdblah/td
  tdblah/tdtdblah/tdtdblah/td
  tdblah/tdtdblah/tdtdblah/td
 /tr
 
 What's really strange is, I _can_ get it to show up by doing this:
 
 $.get('/path/to/ajax/page/', function(thehtml){
  $(tbody#foo).empty().append('trtd' + thehtml + '/td/tr'); 
 });
 
 ...which I initially did just to verify that I was getting a result back.
 This, though, screws up later code that operates on the newly added
 nodes,
 as well as just plain being wrong as far as I can tell.
 
 Any ideas?
 
 Thanks,
 Jason
 
 
 
 
 
 
 
 John Resig wrote:
 

IE really hates dealing with Tables and innerHTML (which is what
.load() uses). An alternative may look something like this (untested):

$.get('ajaxClassObjects.act?type=5id=9',function(html){
$(#objects).empty().append( html );
});

It's worth a shot - let me know if that helps.

--John


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

-- 
View this message in context: http://www.nabble.com/Bug--tf2099071.html#a6639578
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Bug?

2006-10-03 Thread Jason Huck

I ran into this problem today, trying to replace the contents of a tbody,
but so far John's suggested workaround isn't quite doing the trick. .load()
works everywhere except in IE.

Using alternate code as suggested:

$.get('/path/to/ajax/page/', function(thehtml){
$(tbody#foo).empty().append(thehtml); 
});

...the empty() fires, but the append() somehow doesn't insert thehtml
correctly. thehtml is pretty basic, looks something like this:

tr
tdblah/tdtdblah/tdtdblah/td
tdblah/tdtdblah/tdtdblah/td
tdblah/tdtdblah/tdtdblah/td
/tr
tr
tdblah/tdtdblah/tdtdblah/td
tdblah/tdtdblah/tdtdblah/td
tdblah/tdtdblah/tdtdblah/td
/tr

What's really strange is, I _can_ get it to show up by doing this:

$.get('/path/to/ajax/page/', function(thehtml){
$(tbody#foo).empty().append('trtd' + thehtml + '/td/tr'); 
});

...which I initially did just to verify that I was getting a result back.
This, though, screws up later code that operates on the newly added nodes,
as well as just plain being wrong as far as I can tell.

Any ideas?

Thanks,
Jason







John Resig wrote:
 
 
 IE really hates dealing with Tables and innerHTML (which is what
 .load() uses). An alternative may look something like this (untested):
 
 $.get('ajaxClassObjects.act?type=5id=9',function(html){
 $(#objects).empty().append( html );
 });
 
 It's worth a shot - let me know if that helps.
 
 --John
 
 

-- 
View this message in context: http://www.nabble.com/Bug--tf2099071.html#a6628422
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] Mailing List Explosion

2006-09-29 Thread Jason Huck

Just a reminder that this mailing list is archived at Nabble, which provides
a lot of the same features as a forum:

http://www.nabble.com/JQuery-f15494.html

- jason




-- 
View this message in context: 
http://www.nabble.com/Mailing-List-Explosion-tf2356417.html#a6564621
Sent from the JQuery mailing list archive at Nabble.com.


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


[jQuery] redraw problems when replacing table rows

2006-08-30 Thread Jason Huck

See this test page:

http://dev.corefive.net/jquery/tablerows.lasso

Each 'delete' link should hide the current table row. The 'do it' link
refreshes all rows with random data.

I see various redraw/spacing issues in all browsers when clicking different
combinations of the available links.

I can avoid most of them by replacing the .hide('slow') with
.css({display:'none'}), but it certainly isn't as cool. :/

The worst issue, however, seems to only happen in Opera. When the rows are
replaced, they all run together inline instead of remaining in a grid.

Any thoughts on how to work around these issues?

Thanks!
Jason



-- 
View this message in context: 
http://www.nabble.com/redraw-problems-when-replacing-table-rows-tf2193179.html#a6069404
Sent from the JQuery forum at Nabble.com.


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


[jQuery] ping?

2006-08-29 Thread Jason Huck
Testing, please ignore.

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


[jQuery] Rounded Corners Plugin Broken with jQuery 1.0

2006-08-29 Thread Jason Huck
Dave Methvin's rounded corners plugin breaks under jquery 1.0. I just
tried a local copy of his demo using 1.0 with no other changes, and it
doesn't do anything. No errors are reported either (at least in
Firefox or Firebug).

- jason


p.s. - Sorry if this double-posts, I'm not sure the original message
got through.

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


[jQuery] Rounded Corners plugin broken with jQuery 1.0?

2006-08-29 Thread Jason Huck

Dropped jQuery 1.0 (uncompressed) into a work in progress and all my rounded
corners disappeared. Anyone else using the rounded corners plugin that can
verify or potentially offer a fix?

Thanks,
Jason



-- 
View this message in context: 
http://www.nabble.com/Rounded-Corners-plugin-broken-with-jQuery-1.0--tf2179141.html#a6025935
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Oddness with jq-corner plugin. [solved]

2006-08-21 Thread Jason Huck


Jason Huck wrote:
 
 If I open the test page directly (as in file://...), it works fine.
 However, if I *serve* the exact same page via my local copy of Apache
 (1.3.x on OS X), the corners don't work.
 

It turned out to be file permissions on the jq-corner.js script. Apache runs
under a different user account which did not have permission to use that
file for some reason.



-- 
View this message in context: 
http://www.nabble.com/Oddness-with-jq-corner-plugin.-tf2138354.html#a5904599
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Setting AJAX headers, and selecting namespaced nodes

2006-08-21 Thread Jason Huck


malsup wrote:
 
 That would be a nice addition. Has there been any discussion of having
 jQuery automatically use:

 X-Requested-With: XMLHttpRequest
 
 
 It already does.
 


Excellent! One more reason to keep using it. 


-- 
View this message in context: 
http://www.nabble.com/Setting-AJAX-headers%2C-and-selecting-namespaced-nodes-tf2124789.html#a5905881
Sent from the JQuery forum at Nabble.com.


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


[jQuery] Oddness with jq-corner plugin.

2006-08-20 Thread Jason Huck

I am having trouble getting Dave Methvin's jq-corner plugin to work on a
page, and have discovered something very strange. I copied his test page,
the corner lib, and the latest jquery to a folder on my local machine and
adjusted the paths accordingly. Everything is in the same folder.

Now, here's what's weird: 

If I open the test page directly (as in file://...), it works fine. However,
if I *serve* the exact same page via my local copy of Apache (1.3.x on OS
X), the corners don't work.

So, file://path/to/test.html, with simple relative paths like
src=jq-corner.js, works fine.

Same page, but served as http://path/to/test.html, seemingly fails to load
the corner plugin.

I can do other jquery stuff either way, just not corners. It appears it's
not loading the corner script when served by Apache, as Firefox's console
sometimes claims corner is not a function. I tried adjusting the paths to
be rooted, so it would only work when served, thinking that should fix any
errant path issues, but it didn't matter.

Any thoughts on this one?

Thanks,
Jason


-- 
View this message in context: 
http://www.nabble.com/Oddness-with-jq-corner-plugin.-tf2138354.html#a5901235
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Setting AJAX headers, and selecting namespaced nodes

2006-08-20 Thread Jason Huck


Mitchell Lane wrote:
 
 This would allow the programmer to set and override their own HTTP
 headers.
 

That would be a nice addition. Has there been any discussion of having
jQuery automatically use:

X-Requested-With: XMLHttpRequest

...in the headers of its AJAX calls? There's a few different libraries out
there using it, and it seems to be good etiquette to do so. It would provide
a simple and consistent means of differentiating between AJAX and non-AJAX
calls on the server side.

Thanks,
Jason



-- 
View this message in context: 
http://www.nabble.com/Setting-AJAX-headers%2C-and-selecting-namespaced-nodes-tf2124789.html#a5901298
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] Improvements in Ajax facilities - error handling?

2006-08-17 Thread Jason Huck



Andy Matthews wrote:
 
 Speaking of errors...
 
 That's one thing I've really wanted. When using jQuery, I've noticed that
 assuming all of the syntax is valid, if you run code that doesn't work,
 nothing happens. No error message, nothing.
 
 That makes debugging quite difficult because you have no idea where to
 start.
 
 Is there any way that jQuery could generate SOME sort of error, a default
 alert box maybe) with error information?
 
 


That would be stellar. Maybe I'm just too knew to jquery to understand how
to go about debugging, but I keep running into this problem (since my newbie
code is usually wrong, even if syntactically correct).

The only error I ever see in the console is f has no properties, jquery.js
line 14, which obviously isn't my code. :P

Cheers,
Jason



-- 
View this message in context: 
http://www.nabble.com/Improvements-in-Ajax-facilities-tf2119204.html#a5858298
Sent from the JQuery forum at Nabble.com.


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


[jQuery] replaced content losing it's 'binding'

2006-08-15 Thread Jason Huck

Taking my first real stab at jquery, and can't get around what I expect is a
common problem:

I have a table to which the user can add/remove rows. The data in the table
is also periodically refreshed. All my functions work on their own, but
after the first add/refresh, my deletes stop working.

From what I've read, it appears that the dynamically updated elements lose
their binding to my jquery function, but even though i've liberally
sprinkled $(document).ready() throughout my code in hopes of re-attaching
them, I've had no luck so far.

Here's the js I have so far:

script type=text/javascript 
$(document).bind(load, function(){
$(#addsymbolform).bind(submit,function(){
var newSymbols = 
document.getElementById('newsymbol').value;
document.getElementById('newsymbol').value = '';

if(newSymbols.length  0) {
$(tbody#stocks).load('/myurlwithparams');
$(document).ready();
}

return false;
});


var stocktimer = setInterval(function(){
$(tbody#stocks).load('/myurlwithparams');
$(document).ready();
}, 3);


$(a.remsymbtn).click(function(){
var symid = a# + this.id + id;
var symname = $(symid).html();
$((tr# + this.id + row)).hide(slow);
$.get('/myurlwithparams' + symname);
$(document).ready();
return false;
});

$(document).ready();
});
/script


...And here's an example of the rendered HTML that I'm swapping about (just
the stuff inside the table body):


table width=100% border=0 cellspacing=0 cellpadding=0
tbody id=stocks
tr id=sym1row
td
 # 
 delete.gif 
 
/td
td /somewhere/?s=AAPL AAPL /td
td65.75/td
td+1.81/td
/tr
tr id=sym2row
td
 # 
 delete.gif 
 
/td
td /somewhere/?s=CSCO CSCO /td
td20.56/td
td+0.47/td
/tr
/tbody
/table

I even tried stuffing a $(document).ready(); into the returned content, but
it didn't help.

Any suggestions greatly appreciated!


Thanks,
Jason


p.s., as an aside, I did have some transitions around the functions, i.e.,
hide/show and slideUp/slideDown on the add/refresh functions, but they
really messed with the display, in every browser I tried.


-- 
View this message in context: 
http://www.nabble.com/replaced-content-losing-it%27s-%27binding%27-tf2109860.html#a5816505
Sent from the JQuery forum at Nabble.com.


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


Re: [jQuery] replaced content losing it's 'binding'

2006-08-15 Thread Jason Huck

 First off, $(document).ready() only fires once.  When the document is first
 ready.

Ok, makes sense, but, how do you reattach updated content to your events?


 Second, if you have events on a dom object, and create an identical dom
 object, you need to reattach the events to this new dom object when it's
 created (or really, whenever) for the events to fire.

Yes, exactly. How?


 I don't even really know what you're trying to accomplish with
 $(document).bind(load,etc...);

I think I got it from the rounded corners plugin sample code, which is the
first thing I used with jquery. Sorry, what can I say, I'm just getting
started with this stuff.


 Just use
 
 $(document).ready(function(){
 code you want to happen on page load
 });

Ok, I'll make that change. 


Thanks,
Jason


-- 
View this message in context: 
http://www.nabble.com/replaced-content-losing-it%27s-%27binding%27-tf2109860.html#a5823036
Sent from the JQuery forum at Nabble.com.


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