Re: [jQuery] Beta Testers needed for Form Plugin file upload support

2007-03-31 Thread Ⓙⓐⓚⓔ
Mike,
I compared the old code to the new... it sure looks 100% compatible.
Assuming I am testing the image upload code with my pages, do you feel
it's a equal or better to the prior versions?


On 3/31/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > So when is it going alpha can't wait :)
>
> I've released it into the wild:
>
> http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?format=txt
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


[jQuery] plugin to set val & select part of it... doesn't work. help!!

2007-03-30 Thread Ⓙⓐⓚⓔ
I'm unclear about the different methods of selecting a portion of a
text input .. I'm testing with firefox 2 first. Any ideas?


jQuery.fn.valSel = function(val,start, end){
var field = this
field.val(val)
var m = ""
if (field.createTextRange) {
var selRange = field.createTextRange()
selRange.collapse(true)
selRange.moveStart("character", start)
selRange.moveEnd("character", - end + start)
selRange.select();
m = "ie"
} else if (field.setSelectionRange) {
field.setSelectionRange(start, end)
m = "1"
} else if (field.selectionStart || field.selectionStart == '0'){
field.selectionStart = start
field.selectionEnd = end
m = "2"
}
jQuery.log(m + ":" + val + "," + start+ "," + end)
return field.focus();
}

it sets the val, and passes the start and end in... but none of the
different 'if's are fired... Any ideas? I'm using it on a simple field




I borrowed most of it from iautocompleter from interface plugin
selection : function(field, start, end)
{
if (field.createTextRange) {
var selRange = field.createTextRange();
selRange.collapse(true);
selRange.moveStart("character", start);
selRange.moveEnd("character", - end + start);
selRange.select();
} else if (field.setSelectionRange) {
field.setSelectionRange(start, end);
} else {
if (field.selectionStart) {
    field.selectionStart = start;
field.selectionEnd = end;
}
}
field.focus();
},


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


Re: [jQuery] Problems with script replacement in Safari

2007-03-28 Thread Ⓙⓐⓚⓔ

Safari is very weird with  tags! any script tag is assumed to be
javascript, and loaded in the beginning and that's it.
Try making a new script tag, and inserting it.
Safari broke many of my cute tricks!

I'd never considered using an id on a script tag, but they are in the dom,
so it should work.

On 3/28/07, Yansky <[EMAIL PROTECTED]> wrote:
</pre><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">


Hi guys, I'm trying to get the following to work in Safari, but it just
wont
add the script source & I can't figure out why.

This is my code:
<head>
<title></title>
<script type="text/javascript" src="jquery-latest.js">

$(document).ready(function() {
  if($.browser.msie) {
$('#scriptReplace').attr("src","test2-ie.js");
  }
  else {
$('#scriptReplace').attr("src","test2-mozilla-EtAl.js");
  }
});





It works fine in IE, Opera & Firefox, yet it wont work in Safari (2.0.4).
Does it take longer for Safari's DOM to be ready? Is using an ID to locate
the correct script tag the right way to go?

Cheers.
--
View this message in context:
http://www.nabble.com/Problems-with-script-replacement-in-Safari-tf3481746.html#a9718408
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] utf-8 and jquery

2007-03-27 Thread Ⓙⓐⓚⓔ

the headers look good, it must be the data!


PHP is clobbering the UTF... htmlentities sounds cute but they aren't
available in XML.

more like hex entities or decimal entities or just proper utf!


 a hex entity
* *; a decimal entity
  an html entity they don't normally work in xml

On 3/27/07, amircx <[EMAIL PROTECTED]> wrote:



when i do submit , ive pasted the action headers from firebug

Response Headers
DateTue, 27 Mar 2007 18:02:01 GMT
Server  Apache/2.0.52 (CentOS)
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Encodinggzip
VaryAccept-Encoding
Content-Length  129
Connection  close
Content-Typetext/html; charset=utf-8
Request Headers
Hostforms.linuxlab
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3
)
Gecko/20070309 Firefox/2.0.0.3
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  300
Connection  close
Content-Typeapplication/x-www-form-urlencoded
X-Requested-WithXMLHttpRequest
Referer http://forms.linuxlab/test5.php
Content-Length  237
Cookie  PHPSESSID=0ci5og0f6u6s2al7gup0te9bt2
Pragma  no-cache
Cache-Control   no-cache




and this is the page where is the form located (test.php)

Response Headers
DateTue, 27 Mar 2007 18:01:56 GMT
Server  Apache/2.0.52 (CentOS)
Expires Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control   no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma  no-cache
Content-Encodinggzip
VaryAccept-Encoding
Content-Length  2234
Connection  close
Content-Typetext/html; charset=UTF-8
Request Headers
Hostforms.linuxlab
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3
)
Gecko/20070309 Firefox/2.0.0.3
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9
,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  300
Connection  keep-alive
Cookie  PHPSESSID=0ci5og0f6u6s2al7gup0te9bt2
Cache-Control   max-age=0

is that helps?







amircx wrote:
>
> hey. when im trying to send data to mysql or anything else in forgin
> language such hebrew its retruns me gibbrish... its a known bug?
> how can i fix it? i need to use php htmlentitles() ?
> im returning the data in json
>

--
View this message in context:
http://www.nabble.com/utf-8-and-jquery-tf3466629.html#a9690931
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] Disable enter button submitting form

2007-03-26 Thread Ⓙⓐⓚⓔ

dealing with autocomplete fields is a royal pain! Since you never know what
the user has in the autocomplete list, it's even more painful!

I'd hope there are more fields at the end of the form that would trip up
during the submit validation, thus still allowing enter... but the kluges to
capture the enter key would be needed for the final field. keypress does
have it's limited uses!

On 3/26/07, Shelane Enos <[EMAIL PROTECTED]> wrote:


The reason being that when I have an autocomplete field the user will
start
type something in the field and can arrow down and hit enter when on the
selected item.  However, if they have "outtyped" the field and there is no
option select (none returned in the autocomplete) they are hitting enter
by
habit from that field and inadvertently submitting the form.

So really, I only need it disabled so long as they're in the autocomplete
field.


On 3/26/07 5:07 PM, "Mike Alsup" <[EMAIL PROTECTED]> wrote:

>>  Except that they'll need to submit the form when the click the submit
>> button.  I just don't want them submitted the form when they hit enter
on
>> the keyboard.
>
> But that is the default and *expected* behavior.   Is there a good
> reason to intentionally alter standard behavior?
>
> ___
> 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] Disable enter button submitting form

2007-03-26 Thread Ⓙⓐⓚⓔ

the submit handler is where you should do the validation, if the user filled
in the form properly, they should be permitted to submit using their
preferred method. Click or Enter. Disabling enter makes the user remove
his/her hands from the keyboard for very little benefit.

On 3/26/07, Mike Alsup <[EMAIL PROTECTED]> wrote:


>  Except that they'll need to submit the form when the click the submit
> button.  I just don't want them submitted the form when they hit enter
on
> the keyboard.

But that is the default and *expected* behavior.   Is there a good
reason to intentionally alter standard behavior?

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





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


Re: [jQuery] Same-site Restrictions on Ajax: Does $.getScript help?

2007-03-26 Thread Ⓙⓐⓚⓔ

I laugh at security, and the Same-site rules! With a simple perl program on
my server, I can load anything via ajax!

#!/usr/bin/perl
use LWP::UserAgent;
use CGI;
$ua = LWP::UserAgent->new;
$ua->agent("NuBrowser/10.7 ");
$res = $ua->request(HTTP::Request->new(GET =>  $ENV{QUERY_STRING}));
$q = CGI->new;
print $q->header($res->headers->{'Content-Type'}),$res->content;


I've used it several times!

On 3/26/07, Chinmay Kulkarni <[EMAIL PROTECTED]> wrote:


Hi.

I want to make a remote request to a different server than the current
page is hosted on, in order to get JSON data (padded with a callback).

This is typically handled by inserting 

Re: [jQuery] google takes over my error div!!!

2007-03-26 Thread Ⓙⓐⓚⓔ

I've adopted  for my errors. I add all sorts of css to
make them "just right"!

On 3/26/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:


Jörn,

>amircx schrieb:
>> umm... there is no other tag for replacement? im using it for somthing
>> *
>>
>Good point, thanks. I guess I have to find a combination of elements
>that is easy to style, does not interfere with Google Toolbar and makes
>some semantic sense. That can hardly be achieved without a certain loss
>of flexibility, but it should be a good thing to set certain standards
>as long as they work well.

No matter what tag you pick, some buddy will not like it. :) I'd suggest
using a default (i.e. , , etc) but allow that to be
overridden--that the user can change it.

Between the element and it's unique error class, you should be able to
style
it anyway you want w/out causing issues with other like elements on the
page.

-Dan


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





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


Re: [jQuery] utf-8 and jquery

2007-03-26 Thread Ⓙⓐⓚⓔ

Jake on duty!
Amirca, let's get debugging! I need to see how the data is served and how
the page is written and served!

On 3/26/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:


Calling Jake! Calling Ⓙⓐⓚⓔ! Come in, ʝǡǩȩ.
ᎫᎪᏦᎬ, someone needs your help.

:-)


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Mar 26, 2007, at 8:34 AM, amircx wrote:


my db and the page saved as utf-8...

its returns me in textfield values of : ×××

and wierd chars
instad of hebrew letters

Michael Fuerst wrote:



hey. when im trying to send data to mysql or anything else in forgin
language
such hebrew its retruns me gibbrish... its a known bug?
how can i fix it? i need to use php htmlentitles() ?



I would say this debends what you mean with "its retruns me gibbrish":

The data you get back from your ajax-call is probably utf-8 encoded. But
is the data in your database also utf-8 encoded? If not, your're inserting
non utf-8 code into an utf-8 encoded document... a php utf8_encode when
inserting the data from database into your ajax-result would do the trick
in that case...

michael


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



--
View this message in context:
http://www.nabble.com/utf-8-and-jquery-tf3466629.html#a9672408
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/





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


Re: [jQuery] JS loading problem with FF

2007-03-25 Thread Ⓙⓐⓚⓔ
high-ascii packing is tricky! I try ti avoid it because I run strict
utf-8. You've got to force the script each time it's used to be
interpreted as ascii or iso8859-1


I don't use it but... it should help!

On 3/25/07, Kristinn Sigmundsson <[EMAIL PROTECTED]> wrote:
>
> I'm still having problems with this one, here is a image displaying the
> errors I'm getting:
> http://www.sigmundsson.se/errors.gif http://www.sigmundsson.se/errors.gif
>
> Any ideas would be greatly appreciated. Oh and I've tried to have the
> scripts unpacked, didn't make things better.
>
> //Kristinn
>
>
> Kristinn Sigmundsson wrote:
> >
> > Hi I got a little problem on a site I'm working on, the problem is
> > that in FF, it mostly takes for 15sec for some files to load, and I
> > get this error after load:
> >
> > illegal character
> > http://www.haddock.ffs.gu.se/js/default.packed.js
> > Line 1
> > A [EMAIL PROTECTED]"ß5•˜%(c)ñqvŒ°vqF']ÆuA\n
> >
> > The problem does not appear in IE7. I got two .js files one for
> > admin-only functions and one general, and the problem only occurs with
> > one file per page load. Occasionally it loads perfectly.
> >
> > Anyone had similar problems with FF? Oh and you could test the site at
> > http://www.haddock.ffs.gu.se
> >
> > thanks in advance
> > Kristinn
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/JS-loading-problem-with-FF-tf3458937.html#a9659506
> 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] Upload image, make thumbnail all on the fly.. possible?

2007-03-23 Thread Ⓙⓐⓚⓔ
that's the ol' little form upload trick! not the making a thumbnail trick!!

I've never done it , but I'm sure others have!

On 3/23/07, Mark <[EMAIL PROTECTED]> wrote:
> >
> > I would think that you could do this using php and gd...
> > http://us3.php.net/manual/en/ref.image.php
> >
> > here's one way to do it...
> http://icant.co.uk/articles/phpthumbnails/
> >
> > a quick search for "php create thumbnails" should help you find
> > other/better resources for creating images on the fly with php.
>
> Thanx alot :D but that`s not what i need.
>
> > that would require intimate knowledge of png format internals... I've
> > never seen that kind of code in Javascript! php or perl would be a
> > much saner direction!
>
> you missed something i think.
>
> take another close look at this image:
> http://img393.imageshack.us/my.php?image=magedbimageuploadcopylc6.png
> in the image i describe that the  image is first selected. than when THAT
> field doesn`t change (and is filled in ofcause) for a few seconds the upload
> will automatically start!! than those ajax get or posts things.. depends on
> how the form works:
> GET:
> http://docs.jquery.com/API/1.1/AJAX#.24.get.28_url.2C_params.2C_callback_.29
> POST:
> http://docs.jquery.com/API/1.1/AJAX#.24.post.28_url.2C_params.2C_callback_.29
>
> so when running that GET or POST the thumbnail is generated through PHP (not
> javascript!! javascript is just gonna send the command to create it) that
> GET or POST than returns the url to the thumbnail and that should than
> appear like in the screenshot.
>
> the thumbnailing part itself is probably the least of my worries. the main
> thing i can`t get working right now is the automatic uploading.
> if you still don`t get how this works open up gmail and attatch a file to a
> post. you will see that it`s auto uploading after a few seconds. that`s what
> i want.
>
> anything more that needs to be cleared up?
> thanx for the replys so far.
>
> Mark.
>
>
>
>
> 2007/3/23, Ⓙⓐⓚⓔ <[EMAIL PROTECTED] >:
> > that would require intimate knowledge of png format internals... I've
> > never seen that kind of code in Javascript! php or perl would be a
> > much saner direction!
> >
> > On 3/23/07, Mark <[EMAIL PROTECTED]> wrote:
> > > yea that`s the idea.. nut how to make it in ajax?
> > >
> > > 2007/3/22, Benjamin Sterling
> > > <[EMAIL PROTECTED]>:
> > > >
> > > > I would assume you would put a set timeout function on it somewhere
> and
> > > then have the the form submit and process thru ajax, and when the
> response
> > > from the server is complete, you will append the new thumbnail image to
> the
> > > page.
> > > >
> > > >
> > > > --
> > > > 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/
> > >
> > >
> >
> >
> > --
> > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> > ___
> > 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] Upload image, make thumbnail all on the fly.. possible?

2007-03-23 Thread Ⓙⓐⓚⓔ
that would require intimate knowledge of png format internals... I've
never seen that kind of code in Javascript! php or perl would be a
much saner direction!

On 3/23/07, Mark <[EMAIL PROTECTED]> wrote:
> yea that`s the idea.. nut how to make it in ajax?
>
> 2007/3/22, Benjamin Sterling
> <[EMAIL PROTECTED]>:
> >
> > I would assume you would put a set timeout function on it somewhere and
> then have the the form submit and process thru ajax, and when the response
> from the server is complete, you will append the new thumbnail image to the
> page.
> >
> >
> > --
> > 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/
>
>


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


Re: [jQuery] Gurus - best Javascript references?

2007-03-23 Thread Ⓙⓐⓚⓔ
I picked up John's book over at http://ejohn.org/. He gets a few extra
pennies when you order thru his page!

On 3/23/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Daemach schrieb:
> > I have no formal programming training, so I often brute-force things
> > that could be a lot more elegant.  One thing I'm struggling with in
> > particular now is the benefits of creating object prototypes over just
> > storing data in a global tree.  A few people on this list have taken a
> > shot at explaining some of this to me, and thank you very much for that,
> > but it's just not sinking in which is unusual and frustrating.
> >
> > Can you all tell us what books are good for advanced Javascript
> > reference?  Closures, objects, advanced functions, etc.  I've been doing
> > DOM programming long enough that I can find a way around pretty much
> > every problem but I want to take my game to the next level.
> >
> > Your help is much appreciated!!
>
> I haven't got it myself yet, but from what I read, John himself has
> written a book, which is said to be a very good advanced JavaScript
> reference!
>
> Im going to get it now :-)
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Playing a beep with jQuery

2007-03-22 Thread Ⓙⓐⓚⓔ
I never made a beep, but I did throw together a cute program that
speaks letters and words!

http://jpassoc.com/junior/story.html

On 3/22/07, Robert James <[EMAIL PROTECTED]> wrote:
> Anyway to use jQuery to make a tone? I'd even be willing to use it to
> marshall something from an applet (even signed) if there's a standard way to
> do this.
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Ajax, encoding and german umlauts

2007-03-22 Thread Ⓙⓐⓚⓔ
that's great! but it's a patch! You elected to avoid UTF, and you
should never have to see it.

I prefer UTF . Perhaps you should learn to love UTF!

On 3/22/07, Marc Jansen <[EMAIL PROTECTED]> wrote:
> Jake,
>
> I think I#ve fixed it (using PHPs utf8_decode()-function just before
> sending the request).
>
> Thanks alot
>
>
> Marc
>
> Marc Jansen schrieb:
> > Hey Jake,
> >
> >
> > Ⓙⓐⓚⓔ schrieb:
> >
> >> it's really hard to tell from pasted files!
> >>
> >>
> >>
> >
> > Yes, you're right... I'll try to get up a minimal example at a public
> > place by tomorrow. Will you have a look then?
> >
> >> are they being served properly? I like to use perl get to get to the
> >> bottom of encoding problems.
> >>
> >>
> >>
> >
> > Sorry no perl available, and no experince with perl either
> >
> >
> >> is the file really 8859? or actually utf8 with a header that says 8859?
> >>
> >>
> >>
> >
> > I cannot reach the files just now, I#ll chheck tomorrow
> >
> >
> >> did you look at the response text in firebug? does it look gut?
> >>
> >>
> >>
> >
> > At first sight, and with no real-life experience in AJAX: yes.
> >
> > Thank's a lot, Jake, I'll see if I can get a viewable example online by
> > tomorrow.
> >
> > -- Marc
> >
> >
> >> On 3/21/07, Marc Jansen <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>> Hey Jake,
> >>>
> >>> thanks for your quick response.
> >>>
> >>> Ⓙⓐⓚⓔ schrieb:
> >>>
> >>>
> >>>> when I see the accented A character it tells me that someone is
> >>>> sending unicode but expecting 8859-1! As I converted everything to
> >>>> unicode, I've never had this problem.
> >>>>
> >>>>
> >>> I've tried different comnbinations:
> >>>  - html as utf-8 and xml response as utf-8, AND-
> >>>  - html as ISO 8859-1 and xml response as ISO 8859-1
> >>>
> >>> Both resulted in the described 'ö%'.
> >>>
> >>>
> >>>> Is the html page being served as utf-8?
> >>>>
> >>>>
> >>> Yes, as stated, I've tried different configurations.
> >>>
> >>>
> >>>
> >>>> Do you have a publically accessible version of the page? I'd look at
> >>>> the headers and the jQuery code.
> >>>>
> >>>>
> >>> As this is not publically accessible, here are the headers, derived from
> >>> firebug:
> >>>
> >>> Response Headers:
> >>> DateWed, 21 Mar 2007 18:56:17 GMT
> >>> ServerApache/2.0.54 (Ubuntu) PHP/5.0.5-2ubuntu1.6 mod_perl/2.0.1
> >>> Perl/v5.8.7
> >>> X-Powered-ByPHP/5.0.5-2ubuntu1.6
> >>> ExpiresThu, 19 Nov 1981 08:52:00 GMT
> >>> Cache-Controlno-store, no-cache, must-revalidate, post-check=0,
> >>> pre-check=0
> >>> Pragmano-cache
> >>> Content-Length7379
> >>> Connectionclose
> >>> Content-Typetext/xml
> >>>
> >>> Request Headers
> >>> Host
> >>> User-AgentMozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.1.3)
> >>> Gecko/20070309 Firefox/2.0.0.3
> >>> Accept
> >>> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> >>> Accept-Languagede-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> >>> Accept-Encodinggzip,deflate
> >>> Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
> >>> Keep-Alive300
> >>> Connectionclose
> >>> Content-Typeapplication/x-www-form-urlencoded
> >>> X-Requested-WithXMLHttpRequest
> >>> Referer
> >>> Content-Length75
> >>> CookiePHPSESSID=
> >>> Pragmano-cache
> >>> Cache-Controlno-cache
> >>>
> >>> HTML:
> >>>
> >>> 
> >>>
> >>>
> >>> XML:
> >>>
> >>>
> >>> 
> >>>
> >>> 
> >>>
> >>> Schüchenschulzeweg
> >>>
> >>> Schaffnerstr.
> >>>
> >>>   

Re: [jQuery] Ajax, encoding and german umlauts

2007-03-21 Thread Ⓙⓐⓚⓔ
it's really hard to tell from pasted files!

are they being served properly? I like to use perl get to get to the
bottom of encoding problems.

is the file really 8859? or actually utf8 with a header that says 8859?

did you look at the response text in firebug? does it look gut?

On 3/21/07, Marc Jansen <[EMAIL PROTECTED]> wrote:
> Hey Jake,
>
> thanks for your quick response.
>
> Ⓙⓐⓚⓔ schrieb:
> > when I see the accented A character it tells me that someone is
> > sending unicode but expecting 8859-1! As I converted everything to
> > unicode, I've never had this problem.
>
> I've tried different comnbinations:
>  - html as utf-8 and xml response as utf-8, AND-
>  - html as ISO 8859-1 and xml response as ISO 8859-1
>
> Both resulted in the described 'ö%'.
> >
> > Is the html page being served as utf-8?
>
> Yes, as stated, I've tried different configurations.
>
> > Do you have a publically accessible version of the page? I'd look at
> > the headers and the jQuery code.
>
> As this is not publically accessible, here are the headers, derived from
> firebug:
>
> Response Headers:
> DateWed, 21 Mar 2007 18:56:17 GMT
> ServerApache/2.0.54 (Ubuntu) PHP/5.0.5-2ubuntu1.6 mod_perl/2.0.1
> Perl/v5.8.7
> X-Powered-ByPHP/5.0.5-2ubuntu1.6
> ExpiresThu, 19 Nov 1981 08:52:00 GMT
> Cache-Controlno-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> Pragmano-cache
> Content-Length7379
> Connectionclose
> Content-Typetext/xml
>
> Request Headers
> Host
> User-AgentMozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.8.1.3)
> Gecko/20070309 Firefox/2.0.0.3
> Accept
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Languagede-de,de;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encodinggzip,deflate
> Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive300
> Connectionclose
> Content-Typeapplication/x-www-form-urlencoded
> X-Requested-WithXMLHttpRequest
> Referer
> Content-Length75
> CookiePHPSESSID=
> Pragmano-cache
> Cache-Controlno-cache
>
> HTML:
>
> 
>
>
> XML:
>
>
> 
>
> 
>
> Schüchenschulzeweg
>
> Schaffnerstr.
>
> Schäckallee.
>
> 
>
>
>
> It would be very kind if you could  look at this information.
>
> -- Marc
>
> >
> > Having to clean it up yourself is a major pain! Just when you think
> > you've got it somebody type ø! or Ø!
> >
> > On 3/21/07, Marc Jansen <[EMAIL PROTECTED]> wrote:
> >
> >> Hi list,
> >>
> >> I searched the mailinglist-archives and the wiki but could not find a
> >> solution to my problem:
> >>
> >> I send AJAX requests to an oracle server, which in turn should send
> >> appropriate XML. E. g. I'm querying for streets starting with the string
> >> 'sch'. The server answers with an ISO-8859-1 encoded XML, and the
> >> umlauts in the response (e. g.'schönweg, schloßalle' etc) are correctly
> >> represented within my UI.
> >>
> >> But when typing in an umlaut, not the umlaut gets sended to my
> >> PHP-script, which talks with Oracle, but a representation of the umlaut
> >> (perhaps because of: "application/x-www-form-urlencoded" ?) gets sended.
> >> 'ö' gets transformed to 'ö%', etc. With this string representation a
> >> query like this:
> >>
> >> SELECT streetname FROM street WHERE streetname LIKE 'schö%'
> >>
> >> does return no rows... yet there are rows starting with 'schö'...
> >>
> >> I could possibly transform the given value again, after transmission to
> >> my script, but I do not know how.
> >>
> >> I tried to turn off the  "processData" attribute using $.ajaxSetup(),
> >> but then everything crashed.
> >>
> >> Maybe someone can point me the right direction, any help is highly
> >> appreciated.
> >>
> >> Thanks in advance,
> >>
> >> -- Marc
> >>
> >> ___
> >> 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] Ajax, encoding and german umlauts

2007-03-21 Thread Ⓙⓐⓚⓔ
when I see the accented A character it tells me that someone is
sending unicode but expecting 8859-1! As I converted everything to
unicode, I've never had this problem.

Is the html page being served as utf-8?
Do you have a publically accessible version of the page? I'd look at
the headers and the jQuery code.

Having to clean it up yourself is a major pain! Just when you think
you've got it somebody type ø! or Ø!

On 3/21/07, Marc Jansen <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> I searched the mailinglist-archives and the wiki but could not find a
> solution to my problem:
>
> I send AJAX requests to an oracle server, which in turn should send
> appropriate XML. E. g. I'm querying for streets starting with the string
> 'sch'. The server answers with an ISO-8859-1 encoded XML, and the
> umlauts in the response (e. g.'schönweg, schloßalle' etc) are correctly
> represented within my UI.
>
> But when typing in an umlaut, not the umlaut gets sended to my
> PHP-script, which talks with Oracle, but a representation of the umlaut
> (perhaps because of: "application/x-www-form-urlencoded" ?) gets sended.
> 'ö' gets transformed to 'ö%', etc. With this string representation a
> query like this:
>
> SELECT streetname FROM street WHERE streetname LIKE 'schö%'
>
> does return no rows... yet there are rows starting with 'schö'...
>
> I could possibly transform the given value again, after transmission to
> my script, but I do not know how.
>
> I tried to turn off the  "processData" attribute using $.ajaxSetup(),
> but then everything crashed.
>
> Maybe someone can point me the right direction, any help is highly
> appreciated.
>
> Thanks in advance,
>
> -- Marc
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] loading js files at the bottom of the page

2007-03-20 Thread Ⓙⓐⓚⓔ
I always assumed the css was pre-fetched and cached because of the
http headers (that are derived from the )

Link: ; /="/"; rel="stylesheet"; type="text/css"

is generated by apache when a link is in the head. But I've never
served a page with a fake header to prove it.

On 3/20/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Aaron Heimlich schrieb:
> >
> > On 3/20/07, *Matt Stith* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > The browser will cache scripts and css included in the header, but
> > not anywhere else.
> >
> >
> > Really!? Where did you get that from?
>
> I'd like to know that as well. How would a browser distinguish where
> from the DOM an external file is loaded? Why should images be cached
> then, when they're included in the body only?
>
> That may be true for external style sheets, but only because you can
> only include external style sheets in the head.
>
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Move caret position Input type="file" after browse

2007-03-16 Thread Ⓙⓐⓚⓔ
Almost anything you do with file inputs will croak on a different
browser. Safari doesn't even show an input-able field!

On 3/16/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> Use case:
>
> 1. 
> 2. User clicks browse.
> 3. User chooses file.
> 4. Input value is changed to say path name.
>
> At this point, I want to move the carat to the end of the string, not the
> beginning.
>
> Any way in jQuery to do it?
>
> Glen
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Local XML

2007-03-15 Thread Ⓙⓐⓚⓔ
my key is localhost... I understand you now!

On 3/15/07, Dmitrii 'Mamut' Dimandt <[EMAIL PROTECTED]> wrote:
>
>  The key is 'local' :)
>
>  I need a local HTML file loading local XML files :)
>
>
>  Ⓙⓐⓚⓔ wrote:
>  what kind of header are you getting?
>
> The $.ajax complete call back gives back the entire request, including
> the headers,
>
> (Function) complete - A function to be called when the request
> finishes. The function gets passed two arguments: The XMLHttpRequest
> object and a string describing the type of success of the request.
>
> Whereas the success call back gives you whatever it got!
>
> On 3/14/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
>
>
>
>  However, if XML is loaded through .get, it is passed to the
> processing function as text, not as a document.
>
>  That is not true. If the server returns an XML document, that's what
> is passed to your success handler. You need to make sure your server
> is setting the response content type to XML.
>
> ___
> 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] xsl sped up my xml over ajax

2007-03-14 Thread Ⓙⓐⓚⓔ
I'm the kind of guy who can fast-read tech manuals... these books may
not be for everyone.

On 3/14/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Yeah, I got the XSLT cookbook, and well nothing got cooked.  I will take
> a look at your suggestion.
> --
>
> 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] xsl sped up my xml over ajax

2007-03-14 Thread Ⓙⓐⓚⓔ
thanks!  I was wondering about ie 5.5 and Konquerer and any others.

I learned xsl by the book.

XSLT by Michael Kay, author of saxon (and one of the fathers of  xsl 2.0)
and then all over again by reading

XSLT 2,0 by Michael Kay!

It's a really cool language, designed to be interpreted. everything is a rule.


On 3/14/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Looks good in FF2 mac and IE6 pc as well as netscape.
>
> I have been trying to learn xsl, can you recommend some resources.  I tried
> to reverse engineer the api, Jorn's api and backbase.com but no luck.
>
> thanks.
>
> --
> 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] the pitfalls of jquery

2007-03-14 Thread Ⓙⓐⓚⓔ
Benjamin, Here' my 2 cents... write it in jquery first, then translate
to standard javascript (lifting some of the cool routines from jquery)

On 3/14/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Sorry for all the misspells, my brain is fried...
>
> --
> 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/


[jQuery] xsl sped up my xml over ajax

2007-03-14 Thread Ⓙⓐⓚⓔ
while writing an AJAX application, I was concerned about the little
bit of extra time it took to load the xml. I reversed the application
to start with the xml, apply an xsl transform, that loads in the
jquery scripts, and it's all much faster, with only a few lines of
code being changed.

http://jpassoc.com/survey/survey.html

vs

http://jpassoc.com/survey/survey.xml

jquery made the change extremely easy!

how many of the jquery supported browsers don't do xsl? (or don't do it right)

I tested in FF 2, Safari, Opera, and IE 7.

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


Re: [jQuery] Local XML

2007-03-14 Thread Ⓙⓐⓚⓔ
what kind of header are you getting?

The $.ajax complete call back gives back the entire request, including
the headers,

(Function) complete - A function to be called when the request
finishes. The function gets passed two arguments: The XMLHttpRequest
object and a string describing the type of success of the request.

Whereas the success call back gives you whatever it got!

On 3/14/07, Mike Alsup <[EMAIL PROTECTED]> wrote:
> > However, if XML is loaded through .get, it is passed to the
> > processing function as text, not as a document.
>
> That is not true.  If the server returns an XML document, that's what
> is passed to your success handler.  You need to make sure your server
> is setting the response content type to XML.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Ajax with jQuery POST

2007-03-13 Thread Ⓙⓐⓚⓔ
here's my perl proxy cgi
#!/usr/bin/perl
use LWP::UserAgent;
use CGI;
$ua = LWP::UserAgent->new;
$ua->agent("NuBrowser/10.7 ");
$res = $ua->request(HTTP::Request->new(GET =>  $ENV{QUERY_STRING} ||
"http://www.woot.com/DefaultMicrosummary.ashx";));
$q = CGI->new;
print $q->header($res->headers->{'Content-Type'}),$res->content;
print "\n";


that's it! the comments at the end helped me debug!

On 3/13/07, abba bryant <[EMAIL PROTECTED]> wrote:
>
> You need to proxy your request. I am not going to explain how to do this (
> it's complex ) but here is a link.
> http://www.fleegix.org/articles/2005/11/07/cross-domain-ajax-requests
> I reccomend this link particularly highly if you are using PEAR libraries
> already as it uses PEAR's HTTP_Request classes.
>
>
>
> JQuery - SimDigital wrote:
> >
> > o my!
> > I can't use "http://www.otherdomain.com/search.php"; to Post data??
> >
> > The app that i was building need this everytime :-S
> >
> > Have another way to submit data (Get / Post) to another server process
> > and bring me back after with an ajax request?
> >
> >
> > Jake McGraw escreveu:
> >> Couple of things you need to do here:
> >>
> >> 1. You can not use AJAX to POST to URLs outside your current domain,
> >> not even subdomains, so, just to be sure your requesting pages on your
> >> current domain, change the target url from:
> >>
> >> "http://localhost/Ismart/modules/business/search.php";
> >>
> >> to
> >>
> >> "search.php"
> >>
> >> 2. If you're using PHP, the POST variables should automatically be
> >> loaded into both the $_POST array and the $_REQUEST array, to see
> >> whether you were successful, given:
> >>
> >> {name:"Test",city:"test"}
> >>
> >> then the following variables should be set:
> >>
> >> $_POST['name'], $_POST['city'] and $_REQUEST['name'], $_REQUEST['city']
> >>
> >> Hope that helps,
> >> - jake
> >>
> >> On 3/13/07, JQuery - SimDigital <[EMAIL PROTECTED]> wrote:
> >>
> >>> I'm trying to submit some data from form fields without reload the page.
> >>> I try a bit of codes and it doesn't work.
> >>>
> >>> Take a look what i'm doing and teach me please.
> >>>
> >>> 
> >>>
> >>> $("#button").click(function(){
> >>>
> >>> $.post("<a  rel="nofollow" href="http://localhost/Ismart/modules/business/search.php"">http://localhost/Ismart/modules/business/search.php"</a>;, { name:
> >>> "Test", city: "test" } );
> >>> }, function(ret){
> >>> $("#content").html(ret);
> >>> });
> >>> 
> >>>
> >>> 
> >>> 
> >>> 
> >>>
> >>> Ps.: I put fields value fixed as could be seen before (name: "Test",
> >>> city: "test" ) because i don't know how to solve this too.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> ___
> >>> 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/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Ajax-POST-removing-spaces-from-inputs-tf3396281.html#a9462487
> 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] writing to new window

2007-03-12 Thread Ⓙⓐⓚⓔ
did that work. it's a pretty cool idea, perhaps better than hiding
everything else before printing!

On 3/12/07, Jack Killpatrick <[EMAIL PROTECTED]> wrote:
> Duh, got ithad quotes around this: mywin.document.body
>
> You may now return to the regular scheduled programming
>
> - Jack
>
> Jack Killpatrick wrote:
> > Hi,
> >
> > I've got a button I'm adding a click handler to that should open a new
> > window (js popup) and then copy the contents of a div on the opener into
> > the popup, for a "print friendly view". Seems like this should work, but
> > I don't get anything in the new window:
> >
> > $(document).ready( function() {
> > $("#btnPrint").click( function() {
> > var mywin = window.open("", "printpop",
> > "location=0,status=0,scrollbars=0,width=450,height=500");
> >  $('#tbl').clone().appendTo( $('mywin.document.body') );
> > });
> > });
> >
> > In the opener I have:
> >
> > 
> > 
> > hi here
> > 
> > 
> >
> > 
> >
> > When I viewsource on the popup (in Firefox 2.0) that window.open
> > creates, it shows me the basic:
> >
> >  > Transitional//EN">
> >
> > Advice?
> >
> > Thanks,
> > Jack
> >
> >
> >
> > ___
> > 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 fix this error?

2007-03-11 Thread Ⓙⓐⓚⓔ
number: true}
> > },
> >
> > messages: {
> >
> > Principal: {required:
> "Please enter the Principal.",
> > number:
> "Please enter a number.  Format: 255000 (No $ or , )"},
> > Interest: {required:
> "Please enter the Interest Rate.",
> >number:
> "Please enter a number."},
> > Years: {required: "Please
> enter the Years.",
> > number: "Please
> enter a number."}
> > },
> >
> > submitHandler:function(){
> > varParams={};
> > $("input:text").each(function(){
> >
> Params[$(this).attr("name")]=$(this).val();
> > })
> >
> $.post("Mortgage_Calculation.cfm",Params,function(data){
> > $("#Result").empty().append(data);
> > })
> > }
> >
> > }) // closes the ) before the .validate bracket?
> > }); // closes the .validate bracket
> >
> >
> > 
> >
> >
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
>
> --
>
> Aaron Heimlich
> Web Developer
> [EMAIL PROTECTED]
> http://aheimlich.freepgs.com
> ___
> 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 fix this error?

2007-03-11 Thread Ⓙⓐⓚⓔ
:) while I could handle to ajax stuff, the validation plug in is a
different bird! Perhaps Jörn will read this thread when he's back.

On 3/11/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Ok... got rid of the "onClick" part of the INPUT...
>
> Jake, used your submitHandler...
>
> Made the changes to the rest of the code you suggested, Aaron.
>
> Now, I don't get any errors, and the field validation is working,
> but when I click the Calculate button, I don't get a result returned... in 
> this
> case that would be the payment.
>
> The MortgageCalculator code in the new version is repeated in the beginning
> of the script, then within the submitHandler... is this correct?
>
> What adjustments should I make from here?
>
> Thanks for the help!
>
> Rick
>
> Here's the new version of the code:
>
> 
>
> // Define CalculateMortgage in the global scope so that it is always 
> accessible
> function CalculateMortgage(){
> var Params = {};
>
> // select all inputs of type text
> $("input:text").each(function(){
> Params[$(this).attr("name")] = $(this).val();
> }); // closes input:text function
>
> // "post" the form.  The Param object mimics form fields
> $.post("Mortgage_Calculation.cfm", Params, function(data){
> // this is the processing function.
> // append what you get back to the element with ID = Result after 
> clearing its contents
> $("#Result").empty().append(data);
> } // closes post function
> ); // closes ( after .post
> } // closes { after CalculateMortgage = function() {
>
> $.validator.defaults.debug = true;
> $().ready(function() {
> // validate Mortgage_Calculation_Form form fields on keyup
> $("#MC_Form").validate({
>
> errorPlacement: function(error, element) {
>
> if(element.attr('id') == "Principal") {
> error.appendTo("#principal_error");
> }
>
> else
>
> if(element.attr('id') == "Interest") {
> error.appendTo("#interest_error");
> }
>
> else
>
> if(element.attr('id') == "Years") {
> error.appendTo("#years_error");
> }
>
> },//closes errorPlacement function
>
> focusInvalid: "false",
>
> event: "keyup",
>
> rules: {
>
> Principal: {required: true,
> number: true},
> Interest: {required: true,
>number: true},
> Years: {required: true,
> number: true}
> },
>
> messages: {
>
> Principal: {required: "Please enter the 
> Principal.",
> number: "Please enter a number.  
> Format: 255000 (No $ or , )"},
> Interest: {required: "Please enter the 
> Interest Rate.",
>number: "Please enter a number."},
> Years: {required: "Please enter the Years.",
> number: "Please enter a number."}
> },
>
> submitHandler:function(){
> varParams={};
> $("input:text").each(function(){
> Params[$(this).attr("name")]=$(this).val();
> })
> $.post("Mortgage_Calculation.cfm",Params,function(data){
> $("#Result").empty().append(data);
> })
> }
>
> }) // closes the ) before the .validate bracket?
> }); // closes the .validate bracket
>
>
> 
>
>
>
>
>
> ___
> 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 fix this error?

2007-03-11 Thread Ⓙⓐⓚⓔ
gt; > $("input:text").each(function(){
> >
> > Params[$(this).attr("name")]= $(this).val();
> >
> }); // closes
> > input:text function
> >
> > // "post"
> the form.  The
> > Param object mimics form fields
> >
> > $.post("Mortgage_Calculation.cfm", Params,
> function(data){
> > // this
> is the processing
> > function.
> >
> >     // append
> what you get back
> > to the element with ID = Result after clearing its contents
> >
> > $("#Result").empty().append(data);
> >
> > } //
> closes post function
> > ); //
> closes ( after .post
> > } // closes {
> after
> > CalculateMortgage = function() {
> >
> > } // closes the submitHandler function
> >
> > }) // closes the ) before the .validate bracket?
> > }); // closes the .validate bracket
> >
> > 
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
>
> --
> Aaron Heimlich
> Web Developer
> [EMAIL PROTECTED]
> http://aheimlich.freepgs.com
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Need someone to help me understand my syntax error in validation plug-in...

2007-03-11 Thread Ⓙⓐⓚⓔ
   number: "Please enter a number."},
> > Years: {required: "Please enter the Years.",
> > number: "Please enter a number."}
> >   },
> >
> >
> > submitHandler: function(){
> >
> > function CalculateMortgage(){
> >
> > var Params = {};
> >
> > // select all inputs of type text
> > $("input:text").each(function(){
> > Params[$(this).attr("name")] =
> > $(this).val();
> > }); // closes input:text function
> >
> > // "post" the form.  The Param object mimics
> > form fields
> > $.post("Mortgage_Calculation.cfm", Params,
> > function(data){
> > // this is the processing function.
> >
> > // append what you get back to the element
> > with ID = Result after clearing its contents
> > $("#Result").empty().append(data);
> >
> > } // closes post function
> > ); // closes ( after .post
> > } // closes input:text function
> >
> > } // closes the submitHandler function
> >
> > }) // closes the ) before the .validate bracket?
> > }); // closes the .validate bracket
> >
> > 
> >
> >
> >
> > ___
> > 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] Need someone to help me understand my syntax error in validation plug-in...

2007-03-11 Thread Ⓙⓐⓚⓔ
you're missing the { before the function body!

   $().ready(function()

   // validate Mortgage_Calculation_Form form fields on keyup
   $("#MC_Form").validate({

should be

   $().ready(function()
{ //- right here
   // validate Mortgage_Calculation_Form form fields on keyup
   $("#MC_Form").validate({


On 3/11/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Hi, all... (and perhaps you're around, Jorn?)
>
> One of the things that confuses me most about JS
> is the bracketing that has to occur.
>
> Jorn, I've tried to place the submitHandler in my code
> and I don't know if I've done that correctly, but I do know
> that I'm getting an error in Firebug:
>
> "missing { before function body"
> $("#MC_Form").validate({\n
>
> Before I moved my code that was handling the mortgage calculation
> inside the validation code, I wasn't getting this error.
>
> I'm sure it's because I'm missing a bracket somewhere (as it says),
> but I'm not sure how to correct my code.
>
> Can someone review the code below for proper bracketing (or anything
> else you may notice) and tell me how to correct it?
>
> Thanks for the help!
>
> Rick
>
> 
>
> $.validator.defaults.debug = true;
> $().ready(function()
>
> // validate Mortgage_Calculation_Form form fields on keyup
> $("#MC_Form").validate({
>
> errorPlacement: function(error, element) {
>
> if(element.attr('id') == "Principal") {
> error.appendTo("#principal_error");
> }
>
> else
>
> if(element.attr('id') == "Interest") {
> error.appendTo("#interest_error");
> }
>
> else
>
> if(element.attr('id') == "Years") {
> error.appendTo("#years_error");
> }
>
> }, //closes errorPlacement function
>
> focusInvalid: "false",
>
> event: "keyup",
>
> rules: {
> Principal: {required: true,
> number: true},
> Interest: {required: true,
>   number: true},
> Years: {required: true,
> number: true}
> },
>
> messages: {
> Principal: {required: "Please enter the
> Principal.",
> number: "Please enter a number.
> Format: 255000 (No $ or , )"},
> Interest: {required: "Please enter the
> Interest Rate.",
>   number: "Please enter a number."},
> Years: {required: "Please enter the Years.",
> number: "Please enter a number."}
>   },
>
>
> submitHandler: function(){
>
> function CalculateMortgage(){
>
> var Params = {};
>
> // select all inputs of type text
> $("input:text").each(function(){
> Params[$(this).attr("name")] =
> $(this).val();
> }); // closes input:text function
>
> // "post" the form.  The Param object mimics
> form fields
> $.post("Mortgage_Calculation.cfm", Params,
> function(data){
> // this is the processing function.
>
> // append what you get back to the element
> with ID = Result after clearing its contents
> $("#Result").empty().append(data);
>
> } // closes post function
> ); // closes ( after .post
> } // closes input:text function
>
> } // closes the submitHandler function
>
> }) // closes the ) before the .validate bracket?
> }); // closes the .validate bracket
>
> 
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Interface iFX animate error in IE 6/7

2007-03-10 Thread Ⓙⓐⓚⓔ
my favorite answer for "works in ff, but not ie" is the trailing comma
problem that works in ff but not ie.

{a:1,b:2,} works in ff only. drop the trailing commas!

On 3/10/07, aedmonds <[EMAIL PROTECTED]> wrote:
>
> Hi guys (and Stefan),
>
> I'm getting an error when trying to use the animate function in Internet
> Explorer 6 and 7. The error is "Invalid argument." on line 455, char 8.
>
> I know it's vague but I can't really debug it in Firebug because it works
> fine in FireFox. Any pointers?
>
> I've tried Interface 1.2 and the latest SVN version of the ifx.js file but
> nothing seems to work (except for commenting out the jQuery.fn.extend({
> animate: function... stuff.
>
> Thanks.
>
> -Aaron
> --
> View this message in context: 
> http://www.nabble.com/Interface-iFX-animate-error-in-IE-6-7-tf3383227.html#a9417041
> 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] need some idea

2007-03-09 Thread Ⓙⓐⓚⓔ
that's pretty much what I would have done... but I'd leave the
database name out of the item, and add a little more structure


   tblUserProfile
/^((\[0-9]{3}\))?\s*[0-9]{3,7}$/
   whatever is needed to define the survey
 


   fldPhone1
   
   pretty much what you had for item.
 
 


Do you think this could be globally useful? should we do a schema and
the whole 9 yards?

I designed a schema for recipes a few years ago it really helped
write cookie recipes (the real cookies, not  web cookies!)


On 3/9/07, Jake McGraw <[EMAIL PROTECTED]> wrote:
> Jake,
>
> That's actually a brilliant idea! Something allow the lines of:
>
> 
> Phone Number
> tblUserProfile.fldPhone1
>  type="regex">/^((\[0-9]{3}\))?\s*[0-9]{3,7}$/
> 
>
> This is exactly what I've been looking for, as I've been charged with making
> a couple of forms and I wanted the thing to be reusable.
>
> Thanks, just goes to show, this list is really top notch.
>
> - jake
>
>
> On 3/8/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED] > wrote:
> > Are you in the survey business? I dealt with computer surveys at an Ad
> > agency, some time ago.
> >
> > rather than coding any survey in html, I'd do it in XML!
> >
> > the simple list of questions with prerequisite answers, that would
> > have to be true before you ask a question.
> >
> > by asking the questions 1 at a time, you get more accurate answers
> > from the respondents, and don't show them the results until you've
> > processed the whole survey, as they might be tempted to sway the
> > survey!
> >
> > Allowing  them to fix there answers, gets tricky so you should keep
> > both answers, and take a look, often it was a mistake, other times
> > they want to cheat! It's also important to know who entered the
> > survey, and if they have done it twice, either login or drop them a
> > cookie... but log their IP address too!
> >
> > The more hidden information you can gather from their browser the
> > better, even if you don't plan on using it!
> >
> > although this might have gone a little off the jquery topic, I would
> > use ajax to fetch the xml survey and do all the dynamic questioning
> > with jquery.
> >
> > it's also a good idea to randomize the choices... lots of people pick
> > option A (or the first ). so capture the selected choice along with
> > the way the question was presented. In the old days we used different
> > scripts for the survey giver to use to ask the questions.
> >
> > I guess my old life at the ad agency still colors my opinions about
> > the validity of data.
> >
> >
> > On 3/8/07, Agrawal, Ritesh <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > >
> > > I need some idea on how to do this.
> > >
> > > I have a big user survey form. It has around 25 fields. However,
> depending
> > > on the type of user such as administrator, member, etc...many fields are
> not
> > > required. In my survey form, a user will select "user type" from a
> select
> > > box.
> > >
> > > My problem: I don't want to scare off users from filling the survey
> form.
> > > Thus, I want to display only the relevant fields depending on the user
> type
> > > they have selected. What I would like to do is to add some script to
> change
> > > method of select box and hide/show fields dependening on the selection.
> > > However, I am not sure what's the best way to handle list of box to show
> and
> > > hide...I am trying to avoid a long list of if else ..
> > >
> > > any idea is welcome
> > >
> > > Regards,
> > > Ritesh
> > > --
> > > View this message in context:
> http://www.nabble.com/need-some-idea-tf3371424.html#a9381497
> > > 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/
> >
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Querying javascript datasources - what factors improve speed/efficiency?

2007-03-08 Thread Ⓙⓐⓚⓔ
I'd give them an extra link to download the same ajax'ed file. if it
bypassed the user's cache it would be a browser problem at least I
don't have to regenerate it!

I usually just code the  in the html  and have
jquery do the dirty work of displaying it inline.

On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> I like the idea of repurposing content, but if you ajax the data then the
> data isn't in the cache as a filename the browser would recognize - how
> would you right click to save it as an excel file without re-downloading?
>
> neat trick either way.
>
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> > it's a technique I used to show the same file several ways... one is
> > directly into excel, the other was as a html table and now as
> > javascript data.
> >
> > Fun stuff... I like re-using content, imagine if the data was large,
> > and already in the cache, a quick right click to save the file already
> > has the data in the cache!
> >
> > the code was slapped together, it was just the technique that I felt
> > is often overlooked for the lightest weight solution for large data
> > sets.
> >
> > I know you can use the technique (and not the little plugin) to
> > lighten the load!
> >
> > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >>
> >> I understand now and thanks for the script.  That would reduce the size
> >> of
> >> the download somewhat.
> >>
> >> As a reference, the json ser/deser component we use in cold fusion
> >> defines a
> >> recordset object as a set of arrays.  This is to keep with the wddx
> >> standard, though it differs slightly by sticking all of the columns under
> >> a
> >> data node rather than in the root.
> >>
> >> query.columnlist // [col1,col2]
> >> query.recordcount // 2
> >> query.data // contains arrays of columns
> >> query.data.col1 = [col1row1,col1row2]
> >> query.data.col2 = [col2row1,col2row2]
> >>
> >> so if my columns were name and email, to get the 5th email record it
> >> would
> >> be query.data.email[4].  to loop over a column (to search it perhaps)
> >> would
> >> be:
> >>
> >>  for (i in query.data.col1){
> >>if (i.indexOf("whatever") != -1) do something;
> >> }
> >>
> >>
> >>
> >>
> >> Ⓙⓐⓚⓔ wrote:
> >> >
> >> > it's similar to Json, but no field names that get repeated for each
> >> > record.
> >> >
> >> > you do an ajax request , get the response and split it with "\n", now
> >> > you have an array of records, then you split each record with "\t" and
> >> > you've got  a 2 dimensional array.. all the data in perhaps half the
> >> > size.
> >> >
> >> > if you really want it as an array of objects you need a header record,
> >> > which gets split with "/t" then loop thru it assigning the array
> >> > elements to an object field.
> >> >
> >> > Does this sound like what you would need for extra light weight
> >> > transport? I could draft a plugin, it's not rocket surgery!
> >> >
> >> >
> >> > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Jake, you are famous for this ;)
> >> >>
> >> >> Sounds great in theory but an example of how to accomplish this and
> >> the
> >> >> reasoning behind that claim would be very helpful!
> >> >>
> >> >> I meant lightweight in terms of querying more than page size, by the
> >> way.
> >> >> I
> >> >> should have been more clear.
> >> >>
> >> >>
> >> >>
> >> >> Ⓙⓐⓚⓔ wrote:
> >> >> >
> >> >> > if you're pushing the limit for 'light weight', consider simple tab
> >> >> > delimited data! a simple header and you can convert it to Javascript
> >> >> > in a few lines of code! Not as easy as an eval, but the speed will
> >> be
> >> >> > worth it!
> >> >> >
> >> >> > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >> >> >>
> >> >> >> While discussing json support in Cold Fusion with Rey Bango, I had
> >> a
> >> >> >> small
> >> >> >> flash of insigh

Re: [jQuery] Querying javascript datasources - what factors improve speed/efficiency?

2007-03-08 Thread Ⓙⓐⓚⓔ
it's a technique I used to show the same file several ways... one is
directly into excel, the other was as a html table and now as
javascript data.

Fun stuff... I like re-using content, imagine if the data was large,
and already in the cache, a quick right click to save the file already
has the data in the cache!

the code was slapped together, it was just the technique that I felt
is often overlooked for the lightest weight solution for large data
sets.

I know you can use the technique (and not the little plugin) to
lighten the load!

On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> I understand now and thanks for the script.  That would reduce the size of
> the download somewhat.
>
> As a reference, the json ser/deser component we use in cold fusion defines a
> recordset object as a set of arrays.  This is to keep with the wddx
> standard, though it differs slightly by sticking all of the columns under a
> data node rather than in the root.
>
> query.columnlist // [col1,col2]
> query.recordcount // 2
> query.data // contains arrays of columns
> query.data.col1 = [col1row1,col1row2]
> query.data.col2 = [col2row1,col2row2]
>
> so if my columns were name and email, to get the 5th email record it would
> be query.data.email[4].  to loop over a column (to search it perhaps) would
> be:
>
>  for (i in query.data.col1){
>if (i.indexOf("whatever") != -1) do something;
> }
>
>
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> > it's similar to Json, but no field names that get repeated for each
> > record.
> >
> > you do an ajax request , get the response and split it with "\n", now
> > you have an array of records, then you split each record with "\t" and
> > you've got  a 2 dimensional array.. all the data in perhaps half the
> > size.
> >
> > if you really want it as an array of objects you need a header record,
> > which gets split with "/t" then loop thru it assigning the array
> > elements to an object field.
> >
> > Does this sound like what you would need for extra light weight
> > transport? I could draft a plugin, it's not rocket surgery!
> >
> >
> > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >>
> >> Jake, you are famous for this ;)
> >>
> >> Sounds great in theory but an example of how to accomplish this and the
> >> reasoning behind that claim would be very helpful!
> >>
> >> I meant lightweight in terms of querying more than page size, by the way.
> >> I
> >> should have been more clear.
> >>
> >>
> >>
> >> Ⓙⓐⓚⓔ wrote:
> >> >
> >> > if you're pushing the limit for 'light weight', consider simple tab
> >> > delimited data! a simple header and you can convert it to Javascript
> >> > in a few lines of code! Not as easy as an eval, but the speed will be
> >> > worth it!
> >> >
> >> > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> While discussing json support in Cold Fusion with Rey Bango, I had a
> >> >> small
> >> >> flash of insight.  It's a pretty easy matter to take a recordset or
> >> any
> >> >> other structure, serialize it to JSON format and output that string
> >> >> inside
> >> >> of an eval() directly in the HTML itself.  With jQuery and the ready()
> >> >> function when the page loads you could have a client-side dataset
> >> ready
> >> >> to
> >> >> go.  Why make ajax calls when you can query a client-side datasource
> >> for
> >> >> things like an auto-complete list?
> >> >>
> >> >> So the questions are:
> >> >>
> >> >> -- What are the limits the browser can handle in terms of record count
> >> >> and
> >> >> still retain a lightweight feel?  (depends on RAM, processor speed - I
> >> >> know,
> >> >> but generally...)
> >> >> -- What would the optimal structure look like for searching given a
> >> >> function
> >> >> like an auto-complete form field?
> >> >> -- Is a "for in" loop the best way to query or is there something more
> >> >> efficient?
> >> >> -- What benefits, if any, would this have for filtering/sorting a
> >> table?
> >> >>
> >> >> Or is this a bad idea to start with?  Obviously ajax still has its
>

Re: [jQuery] Querying javascript datasources - what factors improve speed/efficiency?

2007-03-08 Thread Ⓙⓐⓚⓔ
this is how I would do it!

jQuery.ajat=function(url){
var results = []
jQuery.ajax({
async:false,
url:url,
dataType: "text",
complete:function(res) {
var data = res.responseText;
var a = data.split(/\n/)
var headings = a[0].split(/\t/)
for (var i = 1; i < a.length; 
i++){
var line = 
a[i].split(/\t/)
var obj = {}
for (var j = 0; j < 
line.length; j++){

obj[headings[j]] = line[j]
}
results.push(obj)
}
}
})
return results
}
$(function(){
var x = $.ajat('data.txt')
$.log(x)
});


http://cigar.dynalias.org/demo/ajat/ajat.html



On 3/8/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> it's similar to Json, but no field names that get repeated for each record.
>
> you do an ajax request , get the response and split it with "\n", now
> you have an array of records, then you split each record with "\t" and
> you've got  a 2 dimensional array.. all the data in perhaps half the
> size.
>
> if you really want it as an array of objects you need a header record,
> which gets split with "/t" then loop thru it assigning the array
> elements to an object field.
>
> Does this sound like what you would need for extra light weight
> transport? I could draft a plugin, it's not rocket surgery!
>
>
> On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >
> > Jake, you are famous for this ;)
> >
> > Sounds great in theory but an example of how to accomplish this and the
> > reasoning behind that claim would be very helpful!
> >
> > I meant lightweight in terms of querying more than page size, by the way.  I
> > should have been more clear.
> >
> >
> >
> > Ⓙⓐⓚⓔ wrote:
> > >
> > > if you're pushing the limit for 'light weight', consider simple tab
> > > delimited data! a simple header and you can convert it to Javascript
> > > in a few lines of code! Not as easy as an eval, but the speed will be
> > > worth it!
> > >
> > > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> > >>
> > >> While discussing json support in Cold Fusion with Rey Bango, I had a
> > >> small
> > >> flash of insight.  It's a pretty easy matter to take a recordset or any
> > >> other structure, serialize it to JSON format and output that string
> > >> inside
> > >> of an eval() directly in the HTML itself.  With jQuery and the ready()
> > >> function when the page loads you could have a client-side dataset ready
> > >> to
> > >> go.  Why make ajax calls when you can query a client-side datasource for
> > >> things like an auto-complete list?
> > >>
> > >> So the questions are:
> > >>
> > >> -- What are the limits the browser can handle in terms of record count
> > >> and
> > >> still retain a lightweight feel?  (depends on RAM, processor speed - I
> > >> know,
> > >> but generally...)
> > >> -- What would the optimal structure look like for searching given a
> > >> function
> > >> like an auto-complete form field?
> > >> -- Is a "for in" loop the best way to query or is there something more
> > >> efficient?
> > >> -- What benefits, if any, would this have for filtering/sorting a table?
> > >>
> > >> Or is this a bad idea to start with?  Obviously ajax still has its place,
> > >> but it seems like this concept might work for some things...
> > >> --
> > >> View this message in context:
> > >> http://www.nabble.com/Querying-jav

Re: [jQuery] Querying javascript datasources - what factors improve speed/efficiency?

2007-03-08 Thread Ⓙⓐⓚⓔ
it's similar to Json, but no field names that get repeated for each record.

you do an ajax request , get the response and split it with "\n", now
you have an array of records, then you split each record with "\t" and
you've got  a 2 dimensional array.. all the data in perhaps half the
size.

if you really want it as an array of objects you need a header record,
which gets split with "/t" then loop thru it assigning the array
elements to an object field.

Does this sound like what you would need for extra light weight
transport? I could draft a plugin, it's not rocket surgery!


On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> Jake, you are famous for this ;)
>
> Sounds great in theory but an example of how to accomplish this and the
> reasoning behind that claim would be very helpful!
>
> I meant lightweight in terms of querying more than page size, by the way.  I
> should have been more clear.
>
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> > if you're pushing the limit for 'light weight', consider simple tab
> > delimited data! a simple header and you can convert it to Javascript
> > in a few lines of code! Not as easy as an eval, but the speed will be
> > worth it!
> >
> > On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
> >>
> >> While discussing json support in Cold Fusion with Rey Bango, I had a
> >> small
> >> flash of insight.  It's a pretty easy matter to take a recordset or any
> >> other structure, serialize it to JSON format and output that string
> >> inside
> >> of an eval() directly in the HTML itself.  With jQuery and the ready()
> >> function when the page loads you could have a client-side dataset ready
> >> to
> >> go.  Why make ajax calls when you can query a client-side datasource for
> >> things like an auto-complete list?
> >>
> >> So the questions are:
> >>
> >> -- What are the limits the browser can handle in terms of record count
> >> and
> >> still retain a lightweight feel?  (depends on RAM, processor speed - I
> >> know,
> >> but generally...)
> >> -- What would the optimal structure look like for searching given a
> >> function
> >> like an auto-complete form field?
> >> -- Is a "for in" loop the best way to query or is there something more
> >> efficient?
> >> -- What benefits, if any, would this have for filtering/sorting a table?
> >>
> >> Or is this a bad idea to start with?  Obviously ajax still has its place,
> >> but it seems like this concept might work for some things...
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Querying-javascript-datasources---what-factors-improve-speed-efficiency--tf3373312.html#a9387190
> >> 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/Querying-javascript-datasources---what-factors-improve-speed-efficiency--tf3373312.html#a9387322
> 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] Querying javascript datasources - what factors improve speed/efficiency?

2007-03-08 Thread Ⓙⓐⓚⓔ
if you're pushing the limit for 'light weight', consider simple tab
delimited data! a simple header and you can convert it to Javascript
in a few lines of code! Not as easy as an eval, but the speed will be
worth it!

On 3/8/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> While discussing json support in Cold Fusion with Rey Bango, I had a small
> flash of insight.  It's a pretty easy matter to take a recordset or any
> other structure, serialize it to JSON format and output that string inside
> of an eval() directly in the HTML itself.  With jQuery and the ready()
> function when the page loads you could have a client-side dataset ready to
> go.  Why make ajax calls when you can query a client-side datasource for
> things like an auto-complete list?
>
> So the questions are:
>
> -- What are the limits the browser can handle in terms of record count and
> still retain a lightweight feel?  (depends on RAM, processor speed - I know,
> but generally...)
> -- What would the optimal structure look like for searching given a function
> like an auto-complete form field?
> -- Is a "for in" loop the best way to query or is there something more
> efficient?
> -- What benefits, if any, would this have for filtering/sorting a table?
>
> Or is this a bad idea to start with?  Obviously ajax still has its place,
> but it seems like this concept might work for some things...
> --
> View this message in context: 
> http://www.nabble.com/Querying-javascript-datasources---what-factors-improve-speed-efficiency--tf3373312.html#a9387190
> 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] need some idea

2007-03-08 Thread Ⓙⓐⓚⓔ
Are you in the survey business? I dealt with computer surveys at an Ad
agency, some time ago.

rather than coding any survey in html, I'd do it in XML!

the simple list of questions with prerequisite answers, that would
have to be true before you ask a question.

by asking the questions 1 at a time, you get more accurate answers
from the respondents, and don't show them the results until you've
processed the whole survey, as they might be tempted to sway the
survey!

Allowing  them to fix there answers, gets tricky so you should keep
both answers, and take a look, often it was a mistake, other times
they want to cheat! It's also important to know who entered the
survey, and if they have done it twice, either login or drop them a
cookie... but log their IP address too!

The more hidden information you can gather from their browser the
better, even if you don't plan on using it!

although this might have gone a little off the jquery topic, I would
use ajax to fetch the xml survey and do all the dynamic questioning
with jquery.

it's also a good idea to randomize the choices... lots of people pick
option A (or the first ). so capture the selected choice along with
the way the question was presented. In the old days we used different
scripts for the survey giver to use to ask the questions.

I guess my old life at the ad agency still colors my opinions about
the validity of data.


On 3/8/07, Agrawal, Ritesh <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need some idea on how to do this.
>
> I have a big user survey form. It has around 25 fields. However, depending
> on the type of user such as administrator, member, etc...many fields are not
> required. In my survey form, a user will select "user type" from a select
> box.
>
> My problem: I don't want to scare off users from filling the survey form.
> Thus, I want to display only the relevant fields depending on the user type
> they have selected. What I would like to do is to add some script to change
> method of select box and hide/show fields dependening on the selection.
> However, I am not sure what's the best way to handle list of box to show and
> hide...I am trying to avoid a long list of if else ..
>
> any idea is welcome
>
> Regards,
> Ritesh
> --
> View this message in context: 
> http://www.nabble.com/need-some-idea-tf3371424.html#a9381497
> 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/


[jQuery] yahoo answers!

2007-03-07 Thread Ⓙⓐⓚⓔ
Just today I was discussing images &  content management &  php that
started with this guy in Zimbabwe's  question on yahoo answers ... I
told  how I would do it.. I sent him my dog's page
(http://jpassoc.com/junior) and he said, "Wow! that's great... I'm
learning to do stuff like that with jquery!"

one more noobie for us to tutor, from a fresh bunch of youngsters on
yahoo answers!


http://answers.yahoo.com/my/profile;_ylt=Amuuo45tqj88k.g2Nk9Niszsy6IX?show=acb1ca883a1a62de308aaba65e828999aa&preview=true

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


Re: [jQuery] regular expressions

2007-03-07 Thread Ⓙⓐⓚⓔ
oops, drop that +

oldString.replace(/[bad or dashable chars]/g,

so you get 1 char at a time,

On 3/7/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> and while we're at it,
>
> you can use a function as the second parameter!
>
> oldString.replace(/[bad or dashable chars]+/g,
>function (str) {
>   return (str.match(/^[dashable chars]$/) ? "-" : "")
>}
> )
>
> 1 command 1 replace!
>
> On 3/7/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> > Quick tut:
> >
> > Just typing something out, eg, /abcd/ would replace anything that contained
> > the exact string "abcd", case sensative. If you do /[abcd]/, notice the
> > brackets, it will select the letter "a", the letter "b", etc. For ranges you
> > can do something like /[a-d]/, which would do the same as /[abcd]/. Remember
> > that regex is case sensative, unless you add an "i" flag to the expression,
> > like /[a-d]/i  , which would find "a-d", and "A-D". Also, it will only
> > replace the first instance, unless you add a "g" flag, so:
> >
> > "once upon a time".replace(/o/,'O');
> >  would make "Once upon a time", but:
> > "once upon a time".replace(/o/g,"O");
> > would make "Once upOn a time"
> >
> >
> >
> > On 3/7/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > > 1 command , 2 replaces
> > >
> > > var newString = oldString.replace(/X/,"-").replace(/Y/,"")
> > >
> > >
> > >
> > > On 3/7/07, Alexandre Plennevaux <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > > hello!
> > > >
> > > > I'm experimenting with regular expressions, and i would like to replace
> > in a
> > > > string some special characters by a "-" minus sign, and others by just
> > > > removing it.
> > > > Do i need ot make two regex.replace(), or is it possible to have both in
> > one
> > > > command?
> > > >
> > > > thank you very much for your time!
> > > >
> > > > Alexandre
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >  Ce message Envoi est certifié sans virus connu.
> > > >  Analyse effectuée par AVG.
> > > >  Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date:
> > 6/03/2007
> > > > 15:42
> > > >
> > > > ___
> > > > 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] regular expressions

2007-03-07 Thread Ⓙⓐⓚⓔ
and while we're at it,

you can use a function as the second parameter!

oldString.replace(/[bad or dashable chars]+/g,
   function (str) {
  return (str.match(/^[dashable chars]$/) ? "-" : "")
   }
)

1 command 1 replace!

On 3/7/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> Quick tut:
>
> Just typing something out, eg, /abcd/ would replace anything that contained
> the exact string "abcd", case sensative. If you do /[abcd]/, notice the
> brackets, it will select the letter "a", the letter "b", etc. For ranges you
> can do something like /[a-d]/, which would do the same as /[abcd]/. Remember
> that regex is case sensative, unless you add an "i" flag to the expression,
> like /[a-d]/i  , which would find "a-d", and "A-D". Also, it will only
> replace the first instance, unless you add a "g" flag, so:
>
> "once upon a time".replace(/o/,'O');
>  would make "Once upon a time", but:
> "once upon a time".replace(/o/g,"O");
> would make "Once upOn a time"
>
>
>
> On 3/7/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > 1 command , 2 replaces
> >
> > var newString = oldString.replace(/X/,"-").replace(/Y/,"")
> >
> >
> >
> > On 3/7/07, Alexandre Plennevaux <[EMAIL PROTECTED] > wrote:
> > >
> > >
> > > hello!
> > >
> > > I'm experimenting with regular expressions, and i would like to replace
> in a
> > > string some special characters by a "-" minus sign, and others by just
> > > removing it.
> > > Do i need ot make two regex.replace(), or is it possible to have both in
> one
> > > command?
> > >
> > > thank you very much for your time!
> > >
> > > Alexandre
> > >
> > >
> > >
> > >
> > >
> > > --
> > >  Ce message Envoi est certifié sans virus connu.
> > >  Analyse effectuée par AVG.
> > >  Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date:
> 6/03/2007
> > > 15:42
> > >
> > > ___
> > > 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] regular expressions

2007-03-07 Thread Ⓙⓐⓚⓔ
1 command , 2 replaces

var newString = oldString.replace(/X/,"-").replace(/Y/,"")



On 3/7/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
>
>
> hello!
>
> I'm experimenting with regular expressions, and i would like to replace in a
> string some special characters by a "-" minus sign, and others by just
> removing it.
> Do i need ot make two regex.replace(), or is it possible to have both in one
> command?
>
> thank you very much for your time!
>
> Alexandre
>
>
>
>
>
> --
>  Ce message Envoi est certifié sans virus connu.
>  Analyse effectuée par AVG.
>  Version: 7.5.447 / Base de données virus: 268.18.7/712 - Date: 6/03/2007
> 15:42
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-03 Thread Ⓙⓐⓚⓔ
have you ever made a dtd that the validator likes? I gave up on that a
while back!

good luck!

On 3/3/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> Actually I think I may just modify the validator code to read out of a custom
> expando.  It would be nice to be able to pass the attribute name to the
> validator engine directly though...
>
> Jorn?  <==(sorry - I don't know how to do the fancy "o" ;)
>
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> > after reading this thread I feel comfortable using my own
> > 'expando'/'extendo' attributes again, and using classes too!
> >
> > but classes are the only way to pass the validators! If you are
> > horribly concerned with possible interaction with css classes, you
> > could remove the javascript class with jquery, add an expando, and
> > deal with it then! the validators don't care what you do with the dom,
> > just the html!
> >
> >
> > On 3/3/07, Daemach <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm assuming you mean that you're comfortable adding an extra attribute
> >> to an
> >> element - is that correct?
> >>
> >>
> >> Glen Lipka wrote:
> >> >
> >> > I'm quoting Mike Alsup from the jQuery 1.1.2 thread, which I thought
> >> did a
> >> > good job relating to this question:
> >> > Based on this info, I feel totally safe using it.  I can't even think
> >> of a
> >> > reason to use objects in this way, but I am not that complex. :)
> >> >
> >> >  *That's correct.  It's safe to store primitives in an expando because
> >> > the aren't reference counted for garbage collection.  But objects are
> >> > trouble.  An IE memory leak pattern is as simple as this:
> >> >
> >> > var o = document.getElementById('A');
> >> > document.getElementById('A').myprop = o;
> >> >
> >> > Jack Slocum has a good blog entry on avoiding memory leaks:
> >> >
> >> > **
> >> >
> >> http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/
> >> >
> >> *<http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/>
> >> >
> >> >
> >> > *Mike*
> >> >
> >> > ___
> >> > jQuery mailing list
> >> > discuss@jquery.com
> >> > http://jquery.com/discuss/
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Of-extendos%2C-metadata-and-valid-XHMTL---Is-it-ok-to-add-attributes-to-elements--tf3337204.html#a9292741
> >> 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/Of-extendos%2C-metadata-and-valid-XHMTL---Is-it-ok-to-add-attributes-to-elements--tf3337204.html#a9292864
> 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] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-03 Thread Ⓙⓐⓚⓔ
after reading this thread I feel comfortable using my own
'expando'/'extendo' attributes again, and using classes too!

but classes are the only way to pass the validators! If you are
horribly concerned with possible interaction with css classes, you
could remove the javascript class with jquery, add an expando, and
deal with it then! the validators don't care what you do with the dom,
just the html!


On 3/3/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> I'm assuming you mean that you're comfortable adding an extra attribute to an
> element - is that correct?
>
>
> Glen Lipka wrote:
> >
> > I'm quoting Mike Alsup from the jQuery 1.1.2 thread, which I thought did a
> > good job relating to this question:
> > Based on this info, I feel totally safe using it.  I can't even think of a
> > reason to use objects in this way, but I am not that complex. :)
> >
> >  *That's correct.  It's safe to store primitives in an expando because
> > the aren't reference counted for garbage collection.  But objects are
> > trouble.  An IE memory leak pattern is as simple as this:
> >
> > var o = document.getElementById('A');
> > document.getElementById('A').myprop = o;
> >
> > Jack Slocum has a good blog entry on avoiding memory leaks:
> >
> > **
> > http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/
> > *<http://www.jackslocum.com/blog/2006/10/02/3-easy-steps-to-avoid-javascript-memory-leaks/>
> >
> >
> > *Mike*
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Of-extendos%2C-metadata-and-valid-XHMTL---Is-it-ok-to-add-attributes-to-elements--tf3337204.html#a9292741
> 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] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-03 Thread Ⓙⓐⓚⓔ
I think there is no risk! classes are ours to use (or abuse)... no
sane (not even IE) browser would co-opt classes from the masses!

On 3/3/07, Daemach <[EMAIL PROTECTED]> wrote:
>
> Well of course we all know that every browser follows the w3 recommendations
> rigidly and without compromise, so let me put this another way:
>
> Knowing that some browsers suck more than others (*cough* IE *cough*), is
> there less risk in the browser misinterpreting non-style information in an
> attribute it normally uses for styles or data in extra attributes that it
> doesn't know or care about?
>
>
>
> Klaus Hartl wrote:
> >
> > Daemach schrieb:
> >> --  If I add metadata to a "class" attribute, I risk messing with CSS -
> >> classes are for styles.
> >
> > That is a common misunderstanding. Consider the HTML spec:
> >
> > "The class attribute has several roles in HTML:
> >
> >  * As a style sheet selector (when an author wishes to assign style
> > information to a set of elements).
> >  * For general purpose processing by user agents."
> >
> > http://www.w3.org/TR/html401/struct/global.html#h-7.5.2
> >
> >
> >
> > -- Klaus
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Of-extendos%2C-metadata-and-valid-XHMTL---Is-it-ok-to-add-attributes-to-elements--tf3337204.html#a9291397
> 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] Event for return key?

2007-03-03 Thread Ⓙⓐⓚⓔ
to semi-paraphrase a a famous warrior, "bind them all and let
javascript sort them out".
it's a single event to bind the keystrokes, then in the bound function
check for the return key! otherwise just bubble up the characters!


Only normal html says you can't have a form inside a form! jquery can
take the embedded form out of the main form and put it at the end of
the body! then using css you can make it appear as if it was inline to
the old location or keep the whole embedded form hidden and submit it
when you want (the return key)

:)

On 3/3/07, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'd like to bind a form submit to the return key, but do not know how I
> could bind a special key instead of the "any-key" event. Is it possible
> to capture the return key within an input field?
>
> I can _not_ use a simple form around it to do so, because I have to work
> around a CMS that wraps the whole site into a form, which would interfer
> with user created html forms.
>
> Cheers,
>
> Arne
> http://www.arnekolja.com
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] :checked and [EMAIL PROTECTED]

2007-03-03 Thread Ⓙⓐⓚⓔ
@checked means that it was coded with a checked attribute... not very useful
:checked means it's currently checked... very useful!

On 3/3/07, Fil <[EMAIL PROTECTED]> wrote:
>
> hello people
>
>
> $("[EMAIL PROTECTED]") is obsolete and replaced by  E:checked isn't  it?
>
> I ask because http://docs.jquery.com/DOM/Traversing/Selectors still mentions
> [EMAIL PROTECTED] in an example
>
> -- Fil
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Of extendos, metadata and valid XHMTL - Is it ok to add attributes to elements?

2007-03-03 Thread Ⓙⓐⓚⓔ
call me weird, but I like mixing the 2 types of classes , and often
use them together, with a single class.

On 3/3/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Daemach schrieb:
> > --  If I add metadata to a "class" attribute, I risk messing with CSS -
> > classes are for styles.
>
> That is a common misunderstanding. Consider the HTML spec:
>
> "The class attribute has several roles in HTML:
>
>  * As a style sheet selector (when an author wishes to assign style
> information to a set of elements).
>  * For general purpose processing by user agents."
>
> http://www.w3.org/TR/html401/struct/global.html#h-7.5.2
>
>
>
> -- Klaus
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] jQuery 1.1.2

2007-02-28 Thread Ⓙⓐⓚⓔ
so any non standard attribute accessed simple as object.hello is an
expando? no matter if you call getAttribute or not??



On 2/28/07, Karl Rudd <[EMAIL PROTECTED]> wrote:
> Err no, actually "expandos" refers to "non-standard" attributes that
> get added to DOM elements. They "expand" the attributes that are
> available on an element.
>
> For instance adding an "expando" attribute called "hello":
>
> 
>
> Because they're "non-standard" they can cause memory leak problems
> under Internet Explorer if they refer to other DOM elements.
>
> More info here:
>
> 
> http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/expando.asp
>
> Karl Rudd
>
> On 3/1/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > Fil, did you ever get a definition of "DOM 0 expandos"...
> >
> > they're the shortcuts that were provided with dom level 0, that are
> > short cuts for certain html(only) attributes, and collections of dom
> > nodes.
> >
> > like
> >
> > a.href is an 'expando'  whereas a. a.getAttribute('href') is not.
> >
> > and
> >
> > document.forms is an expando whereas a.getElementsbyTagname('form') is not.
> >
> >
> > I'm pretty sure thats what it means!
> >
> > bonne chance!
> >
> > On 2/28/07, Fil <[EMAIL PROTECTED]> wrote:
> > > > * Changed: Events are now internally stored in elem.$events rather
> > > > than elem.events (due to a nasty bug relating to DOM 0 expandos).
> > >
> > > I'm translating this blog into French, but I can't figure how to translate
> > > this sentence. "DOM 0 expandos" ?
> > >
> > > Anyway this is available at http://www.jquery.info/spip.php?article42
> > >
> > > -- Fil
> > >
> > >
> > > ___
> > > 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] jQuery 1.1.2

2007-02-28 Thread Ⓙⓐⓚⓔ
Fil, did you ever get a definition of "DOM 0 expandos"...

they're the shortcuts that were provided with dom level 0, that are
short cuts for certain html(only) attributes, and collections of dom
nodes.

like

a.href is an 'expando'  whereas a. a.getAttribute('href') is not.

and

document.forms is an expando whereas a.getElementsbyTagname('form') is not.


I'm pretty sure thats what it means!

bonne chance!

On 2/28/07, Fil <[EMAIL PROTECTED]> wrote:
> > * Changed: Events are now internally stored in elem.$events rather
> > than elem.events (due to a nasty bug relating to DOM 0 expandos).
>
> I'm translating this blog into French, but I can't figure how to translate
> this sentence. "DOM 0 expandos" ?
>
> Anyway this is available at http://www.jquery.info/spip.php?article42
>
> -- Fil
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] ajaxStart/Stop with ajaxCFC

2007-02-28 Thread Ⓙⓐⓚⓔ
Josh I hit your page, it's in a tight loop with an error alert

if (DWREngine._debug) {

log.error('Type: string, Message: The 
argument FIRSTLETTER passed
to function _getWholesalers()

 is not of type string., File:
/var/www/vhosts/igigi.com/httpdocs/cfcs/orderitems.cfc:43');

} else {

alert('An error has occurred:\nMessage: 
The argument FIRSTLETTER
passed to function _getWholesalers

() is not of type string.\nFile:
/var/www/vhosts/igigi.com/httpdocs/cfcs/orderitems.cfc:43');

}

DWREngine._handleResponse('7060_1172725394089');


was the response.

firefox 2.0.0.2 with firebug.
On 2/27/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:
> Rey, here you go:
> http://www.igigi.com/ajxtest.cfm
>
> The lookup part is working fine, but for some reason my ajaxStart/ajaxStop
> isn't showing/hiding the div as it should.  Let me know if you see anything
> out of whack.
>
> -- Josh
>
>
> - Original Message -
> From: "Rey Bango" <[EMAIL PROTECTED]>
> To: "jQuery Discussion." 
> Sent: Tuesday, February 27, 2007 3:25 PM
> Subject: Re: [jQuery] ajaxStart/Stop with ajaxCFC
>
>
> > Josh,
> >
> > Put up a link and I'll help you out with it. AjaxCFC should work just
> > fine with that.
> >
> > Rey
> >
> > Josh Nathanson wrote:
> >> Hey all,
> >>
> >> Does anyone know if there is a conflict using .ajaxStart and .ajaxStop in
> >> combination with Rob Gonda's ajaxCFC?
> >>
> >> I'm trying to do something simple, but it doesn't seem to work - the ajax
> >> call works fine, but my div doesn't get displayed on ajaxStart.  Maybe
> >> I'm
> >> missing something obvious.
> >>
> >> Script:
> >> $(document).ready(function(){
> >>
> >>  $(".loadmessage").ajaxStart(function(){
> >> $(this).show();
> >>   });
> >>
> >>  $(".loadmessage").ajaxStop(function(){
> >> $(this).hide();
> >>   });
> >>
> >> });
> >>
> >> HTML:
> >> SEARCHING...
> >>
> >> -- Josh
> >>
> >>
> >> ___
> >> jQuery mailing list
> >> discuss@jquery.com
> >> http://jquery.com/discuss/
> >>
> >
> > --
> > BrightLight Development, LLC.
> > 954-775- (o)
> > 954-600-2726 (c)
> > [EMAIL PROTECTED]
> > http://www.iambright.com
> >
> > ___
> > 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] Help needed

2007-02-26 Thread Ⓙⓐⓚⓔ
Rock on Klaus!
http://webkit.org/blog/?p=61
tells me all about Drosera!

On 2/26/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Ⓙⓐⓚⓔ schrieb:
> > also you're better off debugging in firefox. safari is cute but
> > firefox+firebug is the king of javascript debugging!
>
>
> Well, if you have to debug in Safari - because the bug only occurs there
> ;-) - you can download a Webkit nightly. It has a good JavaScript
> debugger ("Drosera") and also a quite good DOM inspector. Actually I'm
> sure some of the features that FireBug has were inspired by that one...
>
>
> -- Klaus
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Help needed

2007-02-25 Thread Ⓙⓐⓚⓔ
you'll get briefer code replacing

 $("[EMAIL PROTECTED]")
with
 $("li.queryItem")

unless you really do have classes that just have queryitem inside the
name like xxxqueryitemxxx


also you're better off debugging in firefox. safari is cute but
firefox+firebug is the king of javascript debugging!

On 2/25/07, Blagovest Dachev <[EMAIL PROTECTED]> wrote:
> The problem were repeated IDs.
>
> Blago
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] KICK-BUTT javascript based Zoom feature

2007-02-24 Thread Ⓙⓐⓚⓔ
aha! I was clicking on the boots!  that's simple ajax.

the mouseover is a cool effect,
it's tracking the mouse location and showing the grid and cropping the
resultant picture. it is pretty neat! While any single part would be a
small project... I think throwing it all together would be a big
job...

sounds like a fun job!

On 2/24/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Being able to move the mouse over a smaller image and have
> a much larger image show a close-up of where the mouse is pointing...
>
> Rick
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
> Sent: Saturday, February 24, 2007 11:25 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] KICK-BUTT javascript based Zoom feature
>
> Rick which part did you like?  it looks like a simple ajax app.
>
> I bet the taconite plug in would do it with ease.
>
> or just plain ajax.
>
>
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] KICK-BUTT javascript based Zoom feature

2007-02-24 Thread Ⓙⓐⓚⓔ
Rick which part did you like?  it looks like a simple ajax app.

I bet the taconite plug in would do it with ease.

or just plain ajax.

On 2/24/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Ok... back to the original question, then.
>
> Does *anyone* know how to do this in jQuery?
>
> Rick
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Brice Burgess
> Sent: Saturday, February 24, 2007 9:09 PM
> To: jQuery Discussion.
> Subject: Re: [jQuery] KICK-BUTT javascript based Zoom feature
>
> Michael Geary wrote:
> > This is untested code, but it's one way you could do it with jQuery:
> >
> > $(function() {
> > location = $('[EMAIL PROTECTED]')attr('href').replace( /_spam$/, '' );
> > });
> >
> Hah! :)
> $(a).click(function(){window.location.href=this.href.replace(/_spam$/,'');})
> ;
>
> WARNING: this is not a secret zoom function.
>
> ___
> 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] dynamic input attribute

2007-02-24 Thread Ⓙⓐⓚⓔ
try
$("[EMAIL PROTECTED]" + myvariable + "]").attr( {checked: true });


On 2/24/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:
> Hey All,
>
> Jquery noob here...
>
> I would like to select an input checkbox field with a specific name, and
> check the box, but that name would have to be dynamic.  It seems like I need
> to do something like:
> $("[EMAIL PROTECTED]").attr( {checked: true });
>
> ...but I don't want the string "myvariable", I want the value of myvariable.
> Is there a way to do that?
>
> TIA,
> Josh
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] KICK-BUTT javascript based Zoom feature

2007-02-24 Thread Ⓙⓐⓚⓔ
Hey... it's the weekend!

On 2/24/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
> ...and if I seem too much like a smart aleck today, my apologies! No offense
> intended. I was just having some fun with the juxtaposition of "that URL is
> busted" and "anyone know how to accomplish this in jQuery"... :-)
>
>
>  
>  From: Michael Geary
>
> The actual code for the close-up effect would be different from that, but
> the code I posted may help point toward the solution.
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] KICK-BUTT javascript based Zoom feature

2007-02-24 Thread Ⓙⓐⓚⓔ
I think what Mike is telling you is to remove the _spam from the URL.

When you post an url to the list, it gets logged , and gets hit by
every tom,dick, and mary!

so it's not busted... it's obfuscated!

On 2/24/07, Christopher Jordan <[EMAIL PROTECTED]> wrote:
>
>  that url is busted.
>
>  Rick Faircloth wrote:
>
>
>
> Well… anyone know how to accomplish this in jQuery?
>
>
>
> http://tinyurl.com/yubt54_spam
>
>
>
> Rick
>
>
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Matt Stith
>  Sent: Monday, February 05, 2007 9:53 AM
>  To: jQuery Discussion.
>  Subject: Re: [jQuery] KICK-BUTT javascript based Zoom feature
>
>
>
> Really all that is is a image of a grid that stays aligned with the mouse,
> and a higher resolution image that scrolls depending on the mouse position.
> It doesnt even use jQuery.
>
>  Im going to call this one as a lame attempt at spamming this mailing list.
>
>
> On 2/5/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>
>
> http://tinyurl.com/yubt54_spam
>
>
>
>
> 
>
>
>
>
> Andy Matthews
>  Senior Coldfusion Developer
>
>  Office:  877.707.5467 x747
>  Direct:  615.627.9747
>  Fax:  615.467.6249
>
>
> [EMAIL PROTECTED]
>  www.dealerskins.com
>
>
>
>
>
>  ___
>  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/
>
>
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
___
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] Reference to newly inserted item?

2007-02-22 Thread Ⓙⓐⓚⓔ
 similarly  I use parent(':last') after a wrap() to continue with the


OOPS actually I used parent()...

it seems parent(':last') gives me the parent of the last object or the
last parent... I will have to check that out further!

On 2/22/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> after the append, you can keep the chain going at the freshly appended
> by finding the last child.
>
> by following
>
> $(this).parents("div.sidebarToDo").find("td.sidebarText").empty().append(' type="text" value="" size="10" class="editableItem">')
>
> with
> .children(':last')
>
> since append creates a new last child.
>
> then continue with other jquery calls
>
> similarly  I use parent(':last') after a wrap() to continue with the
> new wrapping.
>
>
> On 2/22/07, Blair Mitchelmore <[EMAIL PROTECTED]> wrote:
> > $(this).parents("div.sidebarToDo").find("input.editableTDItem");  is 
> > probably finding every thing you're added. Are you sure there's only one 
> > element in the resultant jQuery object? Either way, if the last input field 
> > is the only one your care about at the moment you can modify your search to 
> > be $(this).parents("div.sidebarToDo").find("input.editableTDItem:last");
> >
> > -blair
> >
> > [EMAIL PROTECTED] wrote:
> > > Hi,
> > >
> > > If I have
> > >
> > > $(this).parents("div.sidebarToDo").find("td.sidebarText").empty().append(' > >  type="text" value="" size="10" class="editableItem">');
> > >
> > > What is the best way to get a reference to the newly created text field?  
> > > Note that it does not have an ID and I would prefer a more generic way of 
> > > finding it other than "input.editableItem" because on PC IE 6, if I 
> > > insert multiple text fields, like the above, this call  ...
> > >
> > > $(this).parents("div.sidebarToDo").find("input.editableTDItem");
> > >
> > > only returns a correct reference for the first time a textfield is added. 
> > >  I cant get the most recent addition with the above call if there had 
> > > been text fields added in the past.
> > >
> > > Thanks, please let me know what info I can provide to make this question 
> > > more clear, - Dave
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>


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


Re: [jQuery] Reference to newly inserted item?

2007-02-22 Thread Ⓙⓐⓚⓔ
after the append, you can keep the chain going at the freshly appended
by finding the last child.

by following

$(this).parents("div.sidebarToDo").find("td.sidebarText").empty().append('')

with
.children(':last')

since append creates a new last child.

then continue with other jquery calls

similarly  I use parent(':last') after a wrap() to continue with the
new wrapping.


On 2/22/07, Blair Mitchelmore <[EMAIL PROTECTED]> wrote:
> $(this).parents("div.sidebarToDo").find("input.editableTDItem");  is probably 
> finding every thing you're added. Are you sure there's only one element in 
> the resultant jQuery object? Either way, if the last input field is the only 
> one your care about at the moment you can modify your search to be 
> $(this).parents("div.sidebarToDo").find("input.editableTDItem:last");
>
> -blair
>
> [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > If I have
> >
> > $(this).parents("div.sidebarToDo").find("td.sidebarText").empty().append(' >  type="text" value="" size="10" class="editableItem">');
> >
> > What is the best way to get a reference to the newly created text field?  
> > Note that it does not have an ID and I would prefer a more generic way of 
> > finding it other than "input.editableItem" because on PC IE 6, if I insert 
> > multiple text fields, like the above, this call  ...
> >
> > $(this).parents("div.sidebarToDo").find("input.editableTDItem");
> >
> > only returns a correct reference for the first time a textfield is added.  
> > I cant get the most recent addition with the above call if there had been 
> > text fields added in the past.
> >
> > Thanks, please let me know what info I can provide to make this question 
> > more clear, - Dave
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] RTFM

2007-02-21 Thread Ⓙⓐⓚⓔ
if it wasn't  for jquery, pure xml,  my puppy and the good people
here, I would have gone crazy long ago!

sleep tight!

On 2/21/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
> Ive been trying all day to figure out this out:
>
> jQuery code:
> $(".readOnly").hide();
> $(".editable").fadeIn("slow");
>
> YUI-ext code:
> ---still trying to figure it out
>
>  I read the documentation. (very technical, no examples)
> I searched the forums. (Couldn't find it)
> I searched google. (no dice)
> I posted to the forums. (14 views so far, no replies)
> I posted to the YUI mailing list. (Nothing yet)
> I found this Manual and FAQ, for the first time:
> http://www.yui-ext.com/manual/faq
>
> Read the part where it says, "How do I figure out what error X is and why
> it's happening?"
> RTFM.  RTFS.  My mouth dropped when I read that.
>
> I appreciate the partnership between YUI-ext and jQuery.
> But for me, it's YUI-ext that is getting the best part of the deal.  Access
> to this community.
>  I seriously believe that this community and jQuery is something totally
> different and special.
>
> I go to sleep each night praying that I can write jQuery code again soon.
>
>  Glen
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] $.cookie expires problem...Help!

2007-02-21 Thread Ⓙⓐⓚⓔ
well it's not my birthday... but I understand that it works... without
going thru how the cookie was made (the plugin) I know that arbitrary
older dates always work. It may be a time zone thing or something else
that is weird! did you ever try -100 days to see if that kills the
cookie?


On 2/21/07, Clodelio C. Delfino <[EMAIL PROTECTED]> wrote:
> Thanks Jake for the reply, but below codes works for me now...in both
> ie,ff and opera.
>
> $("#div_logout").click(function() {
> var cuser = $.cookie('my_cookie');
> var lgout_msg = "Logout user " + cuser + " from the system?";
>
> if (confirm(lgout_msg))
> {
> alert(cuser + " was succesfully logged out.");
>
> if ($.browser.msie)
> {
> $.cookie('my_cookie','',{expires: -1});
> }
> else
> {
> document.cookie = "my_cookie=''; expires=Sun, 01
> Jan 1970 00:00:01 UTC; path=/"
>     }
>
>
> $(".jqmClose").click();
>
> location.reload();
> }
>
> return false;
> });
>
> On 2/22/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > Cookies get sticky when you alternate www.somewhere.org and
> > somewhere.org, and you haven't specified the domain for the cookies.
> >
> > let's say you set one on somewhere.com then try to clobber it from
> > www.somewhere.com you can get into trouble,
> >
> > this is just general cookie advice. not sure if your cookie has domain 
> > problems.
> >
> > On 2/21/07, Clodelio C. Delfino <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > $.cookie('my_cookie','',{expires: -1}) doesn't seem to work in FF2.0
> > > and Opera 9 but working well in IE 6/7 browser.
> > >
> > > May I ask how to ensure that "my_cookie" is assured
> > > deleted/removed...thanks in advance.
> > >
> > > Btw, below is a snippet of code.
> > > $(function() {
> > > $("#div_logout").click(function() {
> > > var cuser = $.cookie('my_cookie');
> > > var lgout_msg = "Logout user " + cuser + " from the system?";
> > >
> > > if (confirm(lgout_msg))
> > > {
> > > alert(cuser + " was succesfully logged out.");
> > >
> > > $.cookie('sjo_cookie','',{expires: -1});
> > >
> > > $(".jqmClose").click();
> > >
> > > location.reload();
> > > }
> > >
> > > return false;
> > > });
> > > });
> > >
> > > Cheers,
> > > cdelfino
> > >
> > > ___
> > > 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] $.cookie expires problem...Help!

2007-02-21 Thread Ⓙⓐⓚⓔ
Cookies get sticky when you alternate www.somewhere.org and
somewhere.org, and you haven't specified the domain for the cookies.

let's say you set one on somewhere.com then try to clobber it from
www.somewhere.com you can get into trouble,

this is just general cookie advice. not sure if your cookie has domain problems.

On 2/21/07, Clodelio C. Delfino <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> $.cookie('my_cookie','',{expires: -1}) doesn't seem to work in FF2.0
> and Opera 9 but working well in IE 6/7 browser.
>
> May I ask how to ensure that "my_cookie" is assured
> deleted/removed...thanks in advance.
>
> Btw, below is a snippet of code.
> $(function() {
> $("#div_logout").click(function() {
> var cuser = $.cookie('my_cookie');
> var lgout_msg = "Logout user " + cuser + " from the system?";
>
> if (confirm(lgout_msg))
> {
> alert(cuser + " was succesfully logged out.");
>
> $.cookie('sjo_cookie','',{expires: -1});
>
> $(".jqmClose").click();
>
> location.reload();
> }
>
> return false;
> });
> });
>
> Cheers,
> cdelfino
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Introduction and Masked Input Plugin

2007-02-21 Thread Ⓙⓐⓚⓔ
and it does it well!   Perhaps someone else wants to add more options!

On 2/21/07, mrcarxpert <[EMAIL PROTECTED]> wrote:
>
> I'll repeat what I just posted above.  This is really beyond the scope of
> this plugin.  I'm not concerned with validating the input values, only the
> format of the input.  Validation of the values would be better handled by
> something like
> http://bassistance.de/jquery-plugins/jquery-plugin-validation/
> http://bassistance.de/jquery-plugins/jquery-plugin-validation/
>
> I'd rather have this plugin do one thing and do it well. :)
>
> Josh
>
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> > that's pretty sweet for alpha code!
> >
> > I could see the need for money validation $$.00 and other
> > non-fixed length zzz number fields and something like xxx for
> > non-fixed length alpha.
> >
> > I think and object for the format char => the regexp would cut the
> > size of the plugin that would grow with more format types.
> >
> > I've not seen such a sweet handling of validation before!
> >
> > thanks!
> >
> > On 2/13/07, mrcarxpert <[EMAIL PROTECTED]> wrote:
> >>
> >> Hello everyone.  I just wanted to take this opportunity to introduce
> >> myself
> >> and start giving back to the community.
> >>
> >> I've been using jQuery for about 6 months now, and in the process I've
> >> produced a few plugins.  As I clean up the code in these I will be
> >> releasing
> >> them.  The first of which is a masked input plugin for dates,SSNs,phone
> >> numbers, etc.
> >>
> >> I've made the source code and examples for this project available at
> >> http://digitalbush.com/projects/masked-input-plugin
> >> http://digitalbush.com/projects/masked-input-plugin .
> >>
> >> I've tested this in Firefox and IE7 with the latest jQuery library.  If
> >> you
> >> don't mind I'd like to get some feedback on the plugin and how I can make
> >> it
> >> better.  I'd also like to know if there are any problems on other
> >> platforms.
> >>
> >> Since this is my first plugin I'm sure I'm missing a few things, but I
> >> tried
> >> to follow the patterns from some other plugins on the jQuery site.  One
> >> thing I know I'm missing is, what's the best way to ensure that this
> >> masking
> >> is only applied to a text input?  Right now my code returns this.each(
> >> /*code*/), but I'm guessing I might want to
> >> this.find("[EMAIL PROTECTED]'text']").each(/*code*/).  What is the most
> >> elegant
> >> way to do this?
> >>
> >> Anyway, I look forward to some feedback.  I'll consider myself formally
> >> introduced. :)
> >>
> >> Josh
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Introduction-and-Masked-Input-Plugin-tf3224850.html#a8957581
> >> 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/Introduction-and-Masked-Input-Plugin-tf3224850.html#a9093348
> 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] Introduction and Masked Input Plugin

2007-02-21 Thread Ⓙⓐⓚⓔ
I also noticed that the code is currently ascii-centric. While great
for codes and numbers wouldn't work well for names like José or Jörn.

On 2/21/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> that's pretty sweet for alpha code!
>
> I could see the need for money validation $$.00 and other
> non-fixed length zzz number fields and something like xxx for
> non-fixed length alpha.
>
> I think and object for the format char => the regexp would cut the
> size of the plugin that would grow with more format types.
>
> I've not seen such a sweet handling of validation before!
>
> thanks!
>
> On 2/13/07, mrcarxpert <[EMAIL PROTECTED]> wrote:
> >
> > Hello everyone.  I just wanted to take this opportunity to introduce myself
> > and start giving back to the community.
> >
> > I've been using jQuery for about 6 months now, and in the process I've
> > produced a few plugins.  As I clean up the code in these I will be releasing
> > them.  The first of which is a masked input plugin for dates,SSNs,phone
> > numbers, etc.
> >
> > I've made the source code and examples for this project available at
> > http://digitalbush.com/projects/masked-input-plugin
> > http://digitalbush.com/projects/masked-input-plugin .
> >
> > I've tested this in Firefox and IE7 with the latest jQuery library.  If you
> > don't mind I'd like to get some feedback on the plugin and how I can make it
> > better.  I'd also like to know if there are any problems on other platforms.
> >
> > Since this is my first plugin I'm sure I'm missing a few things, but I tried
> > to follow the patterns from some other plugins on the jQuery site.  One
> > thing I know I'm missing is, what's the best way to ensure that this masking
> > is only applied to a text input?  Right now my code returns this.each(
> > /*code*/), but I'm guessing I might want to
> > this.find("[EMAIL PROTECTED]'text']").each(/*code*/).  What is the most 
> > elegant
> > way to do this?
> >
> > Anyway, I look forward to some feedback.  I'll consider myself formally
> > introduced. :)
> >
> > Josh
> > --
> > View this message in context: 
> > http://www.nabble.com/Introduction-and-Masked-Input-Plugin-tf3224850.html#a8957581
> > 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] Introduction and Masked Input Plugin

2007-02-21 Thread Ⓙⓐⓚⓔ
that's pretty sweet for alpha code!

I could see the need for money validation $$.00 and other
non-fixed length zzz number fields and something like xxx for
non-fixed length alpha.

I think and object for the format char => the regexp would cut the
size of the plugin that would grow with more format types.

I've not seen such a sweet handling of validation before!

thanks!

On 2/13/07, mrcarxpert <[EMAIL PROTECTED]> wrote:
>
> Hello everyone.  I just wanted to take this opportunity to introduce myself
> and start giving back to the community.
>
> I've been using jQuery for about 6 months now, and in the process I've
> produced a few plugins.  As I clean up the code in these I will be releasing
> them.  The first of which is a masked input plugin for dates,SSNs,phone
> numbers, etc.
>
> I've made the source code and examples for this project available at
> http://digitalbush.com/projects/masked-input-plugin
> http://digitalbush.com/projects/masked-input-plugin .
>
> I've tested this in Firefox and IE7 with the latest jQuery library.  If you
> don't mind I'd like to get some feedback on the plugin and how I can make it
> better.  I'd also like to know if there are any problems on other platforms.
>
> Since this is my first plugin I'm sure I'm missing a few things, but I tried
> to follow the patterns from some other plugins on the jQuery site.  One
> thing I know I'm missing is, what's the best way to ensure that this masking
> is only applied to a text input?  Right now my code returns this.each(
> /*code*/), but I'm guessing I might want to
> this.find("[EMAIL PROTECTED]'text']").each(/*code*/).  What is the most 
> elegant
> way to do this?
>
> Anyway, I look forward to some feedback.  I'll consider myself formally
> introduced. :)
>
> Josh
> --
> View this message in context: 
> http://www.nabble.com/Introduction-and-Masked-Input-Plugin-tf3224850.html#a8957581
> 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] jQuery and Rails

2007-02-21 Thread Ⓙⓐⓚⓔ
though I'm not using ruby or ror, i did some reading and it looks very
interesting... will you have an install guide for jqor? I have ruby on
my mac, and have run simple programs but little more.

On 2/20/07, Yehuda Katz <[EMAIL PROTECTED]> wrote:
> I'm in the process of building what will soon be the first release of jQuery
> on Rails together with Steven Bristol, who was a winner of Rails Hackfest
> (which won him a free ticket to RailsConf for his contributions to the Rails
> core).
>
> I had a few questions that I would love if you guys could answer:
>
> 1) Are you using Rails?
> 2) If you're not, would you if it was easier to use jQuery with Rails?
> 3) Would you prefer an approach that generated JS by writing Ruby helpers
> that generated jQuery code, or an approach that made is easier to link up
> existing jQuery code into Rails?
> 4) If you've used jQuery with Rails, what issues have you run into
> 5) If you've used jQuery with Rails before, what type of application (size,
> scope, etc.) was it?
>
> --
> Yehuda Katz
> Web Developer | Wycats Designs
> (ph)  718.877.1325
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] tables - is this possible ?

2007-02-20 Thread Ⓙⓐⓚⓔ
Matt,  that's exactly what I was thinking! It will work for even user
modifiable tables!

If the table is not modifiable you could just write the data for the
table to a file, and have the table built via ajax'ing the xls file
and doing a simple parse (much easier for a tabbed file or the new
excel xml format). This cuts back the bandwidth and most good browsers
should serve the download right from the cache.

On 2/19/07, Matt Kruse <[EMAIL PROTECTED]> wrote:
> > I have a table populated by a php/mysql script. I've created an excel export
> > option which changes the header to ms-excel and refreshes the current page
> > by making another call to the mysql db to fetch the data.
> > So I thought, the table data is already embedded in the current html page;
> > why make another call to the mysql db to fetch the same data again? is not
> > possible to use javascript to scan the current html page for  and
> >  and create an excel file on the fly therefore saving bandwith ?
>
> Yes, it's possible - I do it all the time. The benefit of this approach is 
> that
> if you allow client-side sorting, filtering, column hiding, etc, the user can
> download exactly what they see because the manipulated client-side table is
> exactly what they want.
>
> The problem is it can't be done _purely_ client-side, because there is no way
> for js to generate a document of a specific mime type. Because of this, you
> need to write a simple server-side component in your language of choice that
> accepts a form value containing content to echo back. It slaps the excel mime
> type on it and returns it as-is, and the user's browser (hopefully) opens 
> excel
> to handle the response.
>
> My solution is for an IE-only webapp, so the code isn't very cross-browser, 
> but
> I suppose you could generalize the approach. I do these steps:
>
> 1) Get the outerHTML of the table
> 2) Create a hidden iframe and write out the table as part of it
> 3) Get a reference to the new table and manipulate it using standard dom to
> clean it into something that excel will like. For example,
>   a) Convert text inputs into plain text
>   b) Convert checkboxes into an "X" if checked, else blank
>   c) Convert select lists into their selected option's visible text
>   d) Convert links to plain text
>   e) Replace images with their [alt] text
>   f) Make sure borders are on
>   g) Put nowrap on every cell
>   h) etc...
> 4) Get the outerHTML of the resulting table and set it into a textarea in the
> iframe
> 5) Submit the iframe form to the server, which echoes back the submitted
> content with the excel mime type
>
> It all happens very quickly and the resulting Excel output matches exactly to
> what the user sees on screen. Depending on your data, you may need to scrub
> your tables more to get dates in the right formats that excel will parse
> correctly or to remove other markup that will ugly up the excel.
>
> Once written, though, it becomes pretty reusable on almost any table with very
> good results.
>
> With the power of jQuery, I imagine that 'cleaning' the table would be
> extremely trivial and the resulting js file would be pretty small. I would add
> it to my general table library (which I'm going to release as a jQuery plugin
> soon) but since it requires a server-side component I think it needs to be
> separate.
>
> Hope that helps!
>
> Matt
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Execute effect half way through current effect

2007-02-20 Thread Ⓙⓐⓚⓔ
yes.

with animate you don't have to go all the way! break it into 2 parts
and call the second part along with the extra content fade.in the call
back of the first animate.

You could play with the easing parameter... but seems harder.

On 2/18/07, Yansky <[EMAIL PROTECTED]> wrote:
>
> Hi, I'm not sure if this is possible, but I would like to execute an effect
> once the current effect has completed a certain portion of it's task.
>
> This is what I want to do:
>
> $(document).ready(function() {
>
>   $('#full-article').hide();
>
>
>   $('#link-full-article').click(function() {
> $('#full-article').slideDown("slow");
>
> //when the .slidedown effect has shown 375px of the hidden div, do the
> following:
>
> $('.query-hide-content').animate({opacity: 'hide'}, 10);
>   return false;
>   });
>
> });
>
> Is it possible to do this?
>
> --
> View this message in context: 
> http://www.nabble.com/Execute-effect-half-way-through-current-effect-tf3251041.html#a9037474
> 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] ajax within opera does not work

2007-02-19 Thread Ⓙⓐⓚⓔ
tiger and 9.1! perhaps we can schedule an on line debugging session!
gtalk? aim? yahoo!? I'm jakecigar on all.

On 2/19/07, unco <[EMAIL PROTECTED]> wrote:
>
> thanks for the reply jake
> i'm using opera 9.1 on tiger and still getting blank page
>
>
> Ⓙⓐⓚⓔ wrote:
> >
> > when I tab to hotels typing a letter scrolls  the list.  So I have no
> > advice...
> >
>
> this part i dont understand either.. there should be a form ..no list? can i
> ask what you're running?
>
>
>  and yeah i was having a doofus afternoon with the repeated calls.. fixed
> that little (big) issue
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/ajax-within-opera-does-not-work-tf3135265.html#a9041343
> 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] tables - is this possible ?

2007-02-19 Thread Ⓙⓐⓚⓔ
Oh come on guys...

if you collect the data and simply separate the fields by a tab, then
ajax it back to a simplistic cgi, it could save the file for a short
period of time, and the user could download  the tab separated data
right into excel.

But the server side solutions might be more flexible... and my idea
would not save bandwidth.

You are better off storing the data in a data file in the first place
and using ajax to load it into the table and use the same file to
download right to excel... it would be in the cache, so it will save
bandwidth (and use less than all those table,tr,td,th tags)


On 2/19/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
> Basically, it's no, not possible.
>
> More info here: http://www.thescripts.com/forum/thread93938.html
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of ronaldo
> Sent: mardi 20 février 2007 1:11
> To: discuss@jquery.com
> Subject: Re: [jQuery] tables - is this possible ?
>
>
> Apologies for not being clearer. This is the situation:
> I have a table populated by a php/mysql script. I've created an excel export
> option which changes the header to ms-excel and refreshes the current page
> by making another call to the mysql db to fetch the data.
> So I thought, the table data is already embedded in the current html page;
> why make another call to the mysql db to fetch the same data again? is not
> possible to use javascript to scan the current html page for  and
>  and create an excel file on the fly therefore saving bandwith ?
>
> let me know your thoughts
>
> T
>
>
> DavidIcreate wrote:
> >
> > ronaldo schreef:
> >> Hi all,
> >>
> >> I have pretty basic js & jquery skills so need some input on whether
> >> this is
> >> feasible:
> >> With some code, would i be able to scan the html page for a
> >>  tag; and create an excel file based on the table data
> >> ?
> >>
> >> if so, whats the correct syntax to loop through ?
> >>
> >> The main advantage for this would be speed and bandwith, as it'll
> >> save me making a call to the database.
> >>
> >> Thanks
> >>
> >> R
> >>
> >>
> >>
> > The none jquery question would be: isn't it possible to fetch your
> > data to a variable or an object and output that as html and make an
> > excel file? this will not fatten your javascript code which needs to
> > be downloaded too.
> >
> > --
> > David Duymelinck
> > 
> > [EMAIL PROTECTED]
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/tables---is-this-possible---tf3252465.html#a9052307
> 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.441 / Base de données virus: 268.18.2/692 - Date: 18/02/2007
> 16:35
>
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] ajax error

2007-02-19 Thread Ⓙⓐⓚⓔ
I believe it's tighter than just domain... just to the same named server.

I noticed this when the ajax looked for http://www.site.name and the
page was loaded from http://site.name

On 2/19/07, ad4m <[EMAIL PROTECTED]> wrote:
> Hi Rey,
> No, it's not the case... I'm making a "normal" request in my domain
> area. And that's the point...
> I've just read about signing the script files on Mozilla, but I don't
> think this is what i'm looking for.
> Any other ideas?
>
> Adam
>
> Rey Bango wrote:
> > It looks like you're trying to make a cross-domain call which JS, by
> > default, will prevent. Is this the case?
> >
> > Rey
> >
> > ad4m wrote:
> >
> >> Hi!
> >> I'm getting an error:
> >> Error: [Exception... "'Permission denied to call method
> >> XMLHttpRequest.open' when calling method:
> >> [nsIOnReadyStateChangeHandler::handleEvent]"  nsresult: "0x8057001e
> >> (NS_ERROR_XPC_JS_THREW_STRING)"  location: ""  data: no]
> >>
> >> when using thickbox with jquery in FF. Anyone knows how to solve this
> >> problem?
> >>
> >> regards,
> >> Adam
> >>
> >> ___
> >> 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 would I change this?

2007-02-18 Thread Ⓙⓐⓚⓔ
Rick,
You posted no html or jquery code!

in general the clickable tag has to know which details it is supposed to show.

you can find it in several ways,
1) a similar, and derivable id control-one would show detail-one
2) proximity, where you can just show the next div or a class.
3) consistent class names ,class="one" would show the divs with class="one"
4) linking an 

What do you need?

On 2/18/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
>
>
>
> How would I change this code so that only the
>
> details immediately after the line that is clicked
>
> toggles, instead of the details after every line?
>
> i.e….
>
> Line one has:
>
> Event   DateTime
>
> Line two (which is hidden until the event is clicked) has:
>
> Details
>
> Once the Event is clicked the Details slide smoothly open.
>
> But right now, the details for every event are opening.
>
> Rick
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Odd safari failure

2007-02-16 Thread Ⓙⓐⓚⓔ
it is odd and difficult to describe! I looked around... none of the
simple safari problems were obvious

I assume you tried in ie , ff and opera too. only safari breaks.

try a simpler page with just the problem!

good luck!

On 2/16/07, Tim Baxter <[EMAIL PROTECTED]> wrote:
> This is odd, and may be difficult to describe
>
> On my forum, I have a file upload field for images, along with a
> helper/formatter for inserting images that are on the web.
> Both of these are in a box that drops down when you click the icon (that's
> where jquery comes in). Problem is, in safari the file upload no longer
> works if it's in my jquery dropdown box. If I remove the file upload field
> from my dropdown box and just put it loose in the form, everything is fine.
> But if it's in that box, safari flakes.
>
> Page validates. Only affects safari. You can see what I'm talking about
> here:
> http://gretschpages.com/forum/about-the-pages/this-is-strictly-a-test-topic/2144/page1/
>
> right above the post box, click the photo icon.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] accented chars

2007-02-16 Thread Ⓙⓐⓚⓔ
first you put it in your html. then you put it in your xml. then the
javascript, then all the cgi applications, then you have to worry
about the index pages from the server that have a non-standard
character in the name, then you are stuck with those text files, you
need for testing.. because there is no charset parameter for a text
file OR IS THERE???

You can bite the bullet and make all files on your server served with
a single default character set.

I chose unicode utf-8 long ago and I suggest you all make a
choice... and choose utf-8!!! But if you are eurocentric... iso-8859-1
wil work for a few years!

On 2/16/07, Web Specialist <[EMAIL PROTECTED]> wrote:
> Vaska
>
> I'm a brazilian(Portuguese haves accented chars too) and inserting charset
> parameter resolved:
>
>  src="../js/jquery- latest.js">
>
> Cheers
>
>
> 2007/2/16, Vaska <[EMAIL PROTECTED]>:
> > I'm trying to internationalize something I'm building and javascript
> > doesn't seem to like accented characters - when I pass them to the
> > server side (via ajax post) they are in a rough place.
> >
> > Is there something built-in for this (something I'm clearly not
> > finding)? A tutorial? Best practice?
> >
> > Or, should we stick with javascript' standard methods...
> >
> > Thanks...
> >
> > ___
> > 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] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
Mozilla agrees with Aaron..

http://developer.mozilla.org/en/docs/DOM:window.location


 Properties

All of the following properties are strings. You can read them to get
information about the current URL or set them to navigate to another
URL.

The "Example" column contains the values of the properties of the following URL:

* http://www.google.com:80/search?q=devmo#test

PropertyDescription Example
hashthe part of the URL that follows the # symbol.  #test
hostthe host name and port number.  www.google.com:80
hostnamethe host name (without the port number).www.google.com
hrefthe entire URL. http://www.google.com:80/search?q=devmo#test
pathnamethe path (relative to the host)./search
portthe port number of the URL. 80
protocolthe protocol of the URL.http:
search  the part of the URL that follows the ? symbol.  ?q=devmo


On 2/15/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
> On 2/15/07, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
> > On 2/15/07, Danny Wachsstock <[EMAIL PROTECTED]> wrote:
> >
> > > I'm looking at the HTML specs
> > >
> (http://www.w3.org/TR/1999/REC-html401-19991224/struct/links.html#edef-A
> )
> > > and hash doesn't look like a standard attribute.
> >
> > That's because it's not an attribute, it's a property of the HTML DOM
> object for  elements (
> http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-48250443
> ).
> >
>
> OK, scratch that
>
>
>
> --
> Aaron Heimlich
> Web Developer
> [EMAIL PROTECTED]
>  http://aheimlich.freepgs.com
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
 $(document).ready(function() {
 $("a.trigger").click(function(){
 $(this.hash).css({background: "red" })
// right here the chain can keep on chaining
and no local or (GLOBAL) variables!
 });
 });


On 2/15/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> Tim Baxter schrieb:
> > But that's not what I need. I need to match up the div to the link. I'm
> > going to be manipulating it in several ways, not always onclick, but the
> > relationship between the two is the important part. Actually, the whole
> > red thing is just for testing.
> >
> > So far, I haven't been able to get $(this.hash) to do anything for me.
>
> You just need to put the pieces together now, try:
>
> $(function() {
>  $("a.trigger").each(function() {
>  targetDiv = $(this.hash);
>  targetDiv.css({background: "red"});
>  });
> });
>
>
> -- Klaus
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
$(this.hash)  gives you a jquery object that you can use for anything you want!

before you use it alert(this.hash) to show you exactly what you have.

I've used it before.. I thought it was cute that the # in the name is
the same as the # in the id name!



On 2/15/07, Tim Baxter <[EMAIL PROTECTED]> wrote:
> But that's not what I need. I need to match up the div to the link. I'm
> going to be manipulating it in several ways, not always onclick, but the
> relationship between the two is the important part. Actually, the whole red
> thing is just for testing.
>
> So far, I haven't been able to get $(this.hash) to do anything for me.
>
>
>
> On 2/15/07, Angelo Sozzi <[EMAIL PROTECTED] > wrote:
> >
> > You are thinking too complicated this should do:
> >
> > $(document).ready(function() {
> > $("a.trigger").click(function(){
> > $(this.hash).css({background: "red" });
> > });
> > });
> >
> > Regards
> >
> >
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > I just know this is a dumb question with a simple answer, but here
> goes...
> > > I have  something like:
> > >  #div1 Link a
> > >  #div2 Link a
> > >
> > > and
> > > 
> > > 
> > >
> > > I need to match the link to it's div, but can't figure out the selector.
> > > Non
> > > working test js is:
> > > $(document).ready(function() {
> > > $("a.trigger").each(function(i) {
> > > targetDiv = $($(this).href);
> > > targetDiv.style.background = "red";
> > > });
> > > });
> > >
> > > So how do I match the link to it's div?
> > >
> > > ___
> > > jQuery mailing list
> > > discuss@jquery.com
> > > http://jquery.com/discuss/
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Finding-element-that-matches-anchor-link-tf3234867.html#a8991866
> > 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/
>
>


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


Re: [jQuery] Finding element that matches anchor link

2007-02-15 Thread Ⓙⓐⓚⓔ
almost too simple!
$(this.hash)

On 2/15/07, Tim Baxter <[EMAIL PROTECTED]> wrote:
> I just know this is a dumb question with a simple answer, but here goes...
> I have  something like:
> Link a
> Link a
>
> and
> 
> 
>
> I need to match the link to it's div, but can't figure out the selector. Non
> working test js is:
>  $(document).ready(function() {
> $("a.trigger").each(function(i) {
> targetDiv = $($(this).href);
> targetDiv.style.background = "red";
> });
> });
>
> So how do I match the link to it's div?
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] ajax within opera does not work

2007-02-15 Thread Ⓙⓐⓚⓔ
I looked in opera... Not sure if I really understand the problem. my
page doesn't go blank.
when I tab to hotels typing a letter scrolls  the list.  So I have no advice...

but when I loaded the site in firefox, the repeated ajax calls to an
aspx are not cached so it kept banging your server, in a pretty tight
loop.

good luck!

On 2/15/07, unco <[EMAIL PROTECTED]> wrote:
>
> thanks for the help jake..
>
> heres the page www.muchoviaje.com/default.aspx
>
> in particular its the forms on the right hand side...
> whats strange is that hitting the calendar works
> but hitting the tab doesnt to change to hoteles doesnt
> i know the problem isnt in the first js function called because i removed it
> and had the same result
>
> ??
>
> any thoughts welcome
>
>
> --
> View this message in context: 
> http://www.nabble.com/ajax-within-opera-does-not-work-tf3135265.html#a8985369
> 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] ajax within opera does not work

2007-02-15 Thread Ⓙⓐⓚⓔ
sounds strange but in the ajax realm, much does! Post the url and
let the hackers have a look at it!
I've got Opera 9 on my mac and would love to check it out as do many others!

On 2/14/07, unco <[EMAIL PROTECTED]> wrote:
>
> yes... Opera 9.1 page goes blank (no content) same url
>
> for a site im working on this is 0.27% of users but still 2000 people a
> month it will be effecting :(
> --
> View this message in context: 
> http://www.nabble.com/ajax-within-opera-does-not-work-tf3135265.html#a8962830
> 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] How do I get the XML of an ajax request?

2007-02-13 Thread Ⓙⓐⓚⓔ
yeah I see how that works... but it's not best to use async:false,
unless you really want it sync.

with the 'complete' callback you get a parm that has the whole req.
and can get the responseText from it.

also... your var is not xml it's text, and the dataType should not be
set to "xml" for non-xml requests... it doesn't kill you.. it's just
misleading.

ajah(or ajat) is what you're doing, it's akin to ajax but without any
xml involved.

I learned about the different callbacks from the docs... and now it's
committed to memory!

On 2/13/07, Stephen Woodbridge <[EMAIL PROTECTED]> wrote:
> Jake,
>
> Thanks for the help. I changed my code to look like this and got things
> to work.
>
>  $('#rgeo').bind('submit', function(){
>  var xml = $.ajax({
>  url: "/rgeo/",
>  dataType: "xml",
>  async: false,
>  data: {
>  x: document.rgeo.x.value,
>  y: document.rgeo.y.value
>  }
>  }).responseText;
>  $("#response")[0].value = xml;
>  return false;
>  });
>
> This should be better documented in the $.ajax() documentation.
>
> Thanks,
> -Steve
>
> Ⓙⓐⓚⓔ wrote:
> > you're close... you don't get simple text from an xml request.
> >
> > you get a big ol' request object.
> >
> > if you just want the text from the html
> >
> > you can see it in a 'complete' call back with data.responseText
> >
> > inside success, you get back the responseXML part of the request.
> > it's an xmlDocument  that needs to be navigated with $("answer",data)
> > or something like that!
> >
> > Hope that helps!
> >
> >
> > On 2/13/07, Stephen Woodbridge <[EMAIL PROTECTED]> wrote:
> >> Hi all,
> >>
> >> How do I get the XML response of an ajax request? I want to put the XML
> >> text into a textarea and can do find this documented.
> >>
> >>  $.get("/rgeo/",
> >>  { x: document.rgeo.x.value, y: document.rgeo.y.value },
> >>  function(data){
> >>  console.log(data);
> >>  $("textarea#response")[0].value = data;
> >>  }
> >>  );
> >>
> >>
> >>
> >> My textarea ends up with the string "[object XMLDocument]"
> >>
> >> I also tried:
> >>
> >>
> >>  $.ajax({
> >>  url: "/rgeo/",
> >>  dataType: "xml",
> >>  data: {
> >>  x: document.rgeo.x.value,
> >>  y: document.rgeo.y.value
> >>  },
> >>  success: function(data){
> >>  console.log(data);
> >>  $("textarea#response")[0].value = data;
> >>  }
> >>  });
> >>
> >> Thanks,
> >>-Steve
> >>
> >> ___
> >> 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 get the XML of an ajax request?

2007-02-13 Thread Ⓙⓐⓚⓔ
you're close... you don't get simple text from an xml request.

you get a big ol' request object.

if you just want the text from the html

you can see it in a 'complete' call back with data.responseText

inside success, you get back the responseXML part of the request.
it's an xmlDocument  that needs to be navigated with $("answer",data)
or something like that!

Hope that helps!


On 2/13/07, Stephen Woodbridge <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> How do I get the XML response of an ajax request? I want to put the XML
> text into a textarea and can do find this documented.
>
>  $.get("/rgeo/",
>  { x: document.rgeo.x.value, y: document.rgeo.y.value },
>  function(data){
>  console.log(data);
>  $("textarea#response")[0].value = data;
>  }
>  );
>
>
>
> My textarea ends up with the string "[object XMLDocument]"
>
> I also tried:
>
>
>  $.ajax({
>  url: "/rgeo/",
>  dataType: "xml",
>  data: {
>  x: document.rgeo.x.value,
>  y: document.rgeo.y.value
>  },
>  success: function(data){
>  console.log(data);
>  $("textarea#response")[0].value = data;
>  }
>  });
>
> Thanks,
>-Steve
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] .replace(href)

2007-02-13 Thread Ⓙⓐⓚⓔ
this.href to get or set.

var h = this.href
h.replace...
this.href = h

should do the dirty work. getting it in 1 line might work too!

You probably know that you are better off not specifying the site in
your hrefs but even if you don't this.href comes up with the
resolved url, instead of what you had in the html.


On 2/13/07, Will <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to covert some links from pico search on a site into local links.
>
>
> I tried
> $(".prevnextbutton").each(function () {
> $(this).attr("href").replace("
> http://www.picosearch.com/cgi-bin/ts.pl?","/local/path";)
> });
> I get this error: $(this).attr("href") has no properties
>
>
> and then I tried:
> $(".prevnextbutton").each(function () {
>link = $(this).attr("href");
>link =
> link.replace("http://www.picosearch.com/cgi-bin/ts.pl?
> ","/local/path");
> console.log(link);
>
> and I keep getting the error "link has no properties"
>
> I feel like this is fairly obvious but I can't for the life of me get it!
>
> Thanks for any help,
> Will
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] left to right animation

2007-02-13 Thread Ⓙⓐⓚⓔ
I used
.animate({opacity: 'hide',height: 'hide', left:window.innerWidth-90,
top:window.innerHeight-90},
slow,'',function(){$(this).attr('style','display:none')})


to

slide down and to the left!

on my puppy's pages http://jpassoc.com/junior all his slide shows use
that effect!



On 2/13/07, Geoffrey Knutzen <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am trying to make a left to right animation similar to slideDown and I am
> having no luck.
>
> Is it even possible? And if it is, how do you do it?
>
>
>
> Thanks
>
> -Geoff
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] Corner + hover + IE7 -- not working

2007-02-12 Thread Ⓙⓐⓚⓔ
I looked at the snippet.. I didn't see the problem... If you post a
live url, every hacker on the list will hit it up and some will have
good opinions as to what is going on.

My usual check for "not working in ie" is to see if there were
trailing commas in objects. Others look for other things.

So post a live url along with the snippets!

On 2/12/07, Agrawal, Ritesh <[EMAIL PROTECTED]> wrote:
>
> hmm..
> no response...
> experts..do you have any suggestion..
>
> Regards,
> Ritesh
>
> Agrawal, Ritesh wrote:
> >
> > Hi,
> >
> > I am trying to get corner and hover to work together. The code works
> > properly for FF but fails in IE7..below is my sample script that I have
> > been trying on..
> >
> > 
> > 
> > Test Page
> > 
> > 
> > 
> >   $(document).ready(function(){
> >   $("div.corner").hover(
> >   
> > function(){$(this).css("background-color","#CC"); },
> >   
> > function(){$(this).css("background-color","#CCFFCC"); }
> >   );
> >   $("div.corner").corner("round 4px").parent().css('padding',
> > '2px').corner("round 6px");
> >   });
> > 
> > 
> > 
> > 
> >   
> >   Name: FirstName LastName
> >   University: The New York State University
> >   
> > 
> > 
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Corner-%2B-hover-%2B-IE7not-working-tf3216015.html#a8939015
> 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] Issues with non FF browsers

2007-02-12 Thread Ⓙⓐⓚⓔ
trailing commas only work in firefox!
 user: user,

has a trailing comma!



On 2/11/07, Moiph <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm trying to get some simple things to work using jquery, and everything
> currently works the way I'd like it to in Firefox.  However, in Opera,
> Safari, and Internet Explorer, nothing works right -- and I haven't been
> able to figure out where the hang up is.
>
> My entire jquery code can be found here:
> http://www.moiph.com/javascript/index.js but a snippet is below:
>
> $(document).ready(function() {
>   $("a.lastfm").click(function() {
> var type = $(this).attr("id");
> var user = $("#user").val();
>
> $("div.lastfmContent").html("Loading...");
>
>   $.get("parser.php",
>   {
> type: type,
> user: user,
>   },
>
>   refreshLastFM
>   );
>});
> });
>
>
> function refreshLastFM(data) {
>   $("div.lastfmContent").html(data);
>   $("div.lastfmContent").slideDown("slow");
> }
>
> In IE and in Opera, "loading..." does not even display.
>
> I'm using the latest (1.1.1) compressed JQuery.
>
> Any help would be much appreciated!
>
> Thanks,
> Pat
> --
> View this message in context: 
> http://www.nabble.com/Issues-with-non-FF-browsers-tf3212115.html#a8920010
> 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] jQuery for President

2007-02-11 Thread Ⓙⓐⓚⓔ
:)
it's been fixed!

Has Blue State used jquery before?


On 2/11/07, John Resig <[EMAIL PROTECTED]> wrote:
> LOL - that's way overly dramatic. They just show a random group name
> as an example - so some lame people picked a racist name for their
> group - then Techcrunch (being the sensationalist blog that it is)
> capitalized on it.
>
> With that out of the way, the site is done by Blue State Digital -
> they do tons of great work for different political web sites. (Thick
> Progress, DNC, Al Franken, etc.)
>
> --John
>
> On 2/11/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > Barack got hacked! it doesn't look like jquery was involved!
> >
> > http://feeds.feedburner.com/~r/Techcrunch/~3/89525493/
> >
> > And who is the mystery programmer???
> >
> > http://feeds.feedburner.com/~r/Techcrunch/~3/89520865/
> >
> > On 2/11/07, Dan Atkinson <[EMAIL PROTECTED]> wrote:
> > >
> > > If his policies are like his web developers JavaScript, we'll be cheering 
> > > in
> > > the democrats come next election!
> > >
> > > Karl Swedberg-2 wrote:
> > > >
> > > > On Feb 10, 2007, at 7:42 PM, Glen Lipka wrote:
> > > >
> > > >> http://www.barackobama.com (jQuery!)
> > > >> Although they are using 1.04.  Hello?  I was all on board until I
> > > >> saw they haven't upgraded.  Wassup widdat?
> > > >> Is the developer for this site on the list?
> > > >
> > > > Hmmm. Maybe the developer is just getting started with jQuery...
> > > >
> > > > http://www.barackobama.com/js/cmxform.js:
> > > >> if( document.addEventListener ) document.addEventListener
> > > >> ( 'DOMContentLoaded', cmxform, false );
> > > >>
> > > >> function cmxform(){
> > > >>   // Hide forms
> > > >>   $( 'form.cmxform' ).hide().end();
> > > >>
> > > >>   // Processing
> > > >>   $( 'form.cmxform' ).find( 'li/label' ).not( '.nocmx' ).each
> > > >> ( function( i ){
> > > >> var labelContent = this.innerHTML;
> > > >> var labelWidth = document.defaultView.getComputedStyle( this,
> > > >> '' ).getPropertyValue( 'width' );
> > > >> var labelSpan = document.createElement( 'span' );
> > > >> labelSpan.style.display = 'block';
> > > >> labelSpan.style.width = labelWidth;
> > > >> labelSpan.innerHTML = labelContent;
> > > >> this.style.display = '-moz-inline-box';
> > > >> this.innerHTML = null;
> > > >> this.appendChild( labelSpan );
> > > >>   } ).end();
> > > >>
> > > >>   // Show forms
> > > >>   $( 'form.cmxform' ).show().end();
> > > >> }
> > > >
> > > > Could be done like this...
> > > >
> > > > $(document).ready(function() {
> > > >$('form.cmxform li/label').not('.nocmx').each(function(index) {
> > > >  var labelContent = $(this).html();
> > > >  var labelWidth = $(this).width();
> > > >  $(this).empty();
> > > >  $('').html(labelContent).css({display: 'block',
> > > > width: labelWidth}).appendTo(this);
> > > >});
> > > > });
> > > >
> > > > But why would someone need to append a  to the label instead of
> > > > just styling the label?
> > > > And why would someone want to use a  and then make it
> > > > display:block instead of just using a  ?
> > > >
> > > > Maybe I'm missing something?
> > > >
> > > >> in jQuery we trust.
> > > >
> > > > Yes, but some trust it more than others. :)
> > > >
> > > > --Karl
> > > > _
> > > > Karl Swedberg
> > > > www.englishrules.com
> > > > www.learningjquery.com
> > > >
> > > >
> > > >
> > > >
> > > > ___
> > > > jQuery mailing list
> > > > discuss@jquery.com
> > > > http://jquery.com/discuss/
> > > >
> > > >
> > >
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/jQuery-for-President-tf3207252.html#a8916014
> > > 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/
> >
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] jQuery for President

2007-02-11 Thread Ⓙⓐⓚⓔ
Barack got hacked! it doesn't look like jquery was involved!

http://feeds.feedburner.com/~r/Techcrunch/~3/89525493/

And who is the mystery programmer???

http://feeds.feedburner.com/~r/Techcrunch/~3/89520865/

On 2/11/07, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>
> If his policies are like his web developers JavaScript, we'll be cheering in
> the democrats come next election!
>
> Karl Swedberg-2 wrote:
> >
> > On Feb 10, 2007, at 7:42 PM, Glen Lipka wrote:
> >
> >> http://www.barackobama.com (jQuery!)
> >> Although they are using 1.04.  Hello?  I was all on board until I
> >> saw they haven't upgraded.  Wassup widdat?
> >> Is the developer for this site on the list?
> >
> > Hmmm. Maybe the developer is just getting started with jQuery...
> >
> > http://www.barackobama.com/js/cmxform.js:
> >> if( document.addEventListener ) document.addEventListener
> >> ( 'DOMContentLoaded', cmxform, false );
> >>
> >> function cmxform(){
> >>   // Hide forms
> >>   $( 'form.cmxform' ).hide().end();
> >>
> >>   // Processing
> >>   $( 'form.cmxform' ).find( 'li/label' ).not( '.nocmx' ).each
> >> ( function( i ){
> >> var labelContent = this.innerHTML;
> >> var labelWidth = document.defaultView.getComputedStyle( this,
> >> '' ).getPropertyValue( 'width' );
> >> var labelSpan = document.createElement( 'span' );
> >> labelSpan.style.display = 'block';
> >> labelSpan.style.width = labelWidth;
> >> labelSpan.innerHTML = labelContent;
> >> this.style.display = '-moz-inline-box';
> >> this.innerHTML = null;
> >> this.appendChild( labelSpan );
> >>   } ).end();
> >>
> >>   // Show forms
> >>   $( 'form.cmxform' ).show().end();
> >> }
> >
> > Could be done like this...
> >
> > $(document).ready(function() {
> >$('form.cmxform li/label').not('.nocmx').each(function(index) {
> >  var labelContent = $(this).html();
> >  var labelWidth = $(this).width();
> >  $(this).empty();
> >  $('').html(labelContent).css({display: 'block',
> > width: labelWidth}).appendTo(this);
> >});
> > });
> >
> > But why would someone need to append a  to the label instead of
> > just styling the label?
> > And why would someone want to use a  and then make it
> > display:block instead of just using a  ?
> >
> > Maybe I'm missing something?
> >
> >> in jQuery we trust.
> >
> > Yes, but some trust it more than others. :)
> >
> > --Karl
> > _
> > Karl Swedberg
> > www.englishrules.com
> > www.learningjquery.com
> >
> >
> >
> >
> > ___
> > jQuery mailing list
> > discuss@jquery.com
> > http://jquery.com/discuss/
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/jQuery-for-President-tf3207252.html#a8916014
> 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] jQuery for President

2007-02-10 Thread Ⓙⓐⓚⓔ
I like his platform!

On 2/10/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
> It is my privilege and honor to nominate Glen Lipka as our great state's
> representative in the Selectoral College.
>
>
>  
>  From: Glen Lipka
> Subject: [jQuery] jQuery for President
>
>
> Alot of new snazzy sites are being launched for candidates running for
> president.
> Only one candidate is clearly going after the jQuery community.
>
> http://www.barackobama.com (jQuery!)
> Although they are using 1.04.  Hello?  I was all on board until I saw they
> haven't upgraded.  Wassup widdat?
> Is the developer for this site on the list?
>
> Other candidates and their library of choice:
> http://www.hillaryclinton.com/ (Prototype)
> http://joebiden.com (none)
> http://johnedwards.com/ (none)
> http://mittromney.com/ (mooTools)
> http://www.brownback.com/ (none)
>
> I dont know about the rest of you, but if a canidate uses jQuery then I have
> to consider voting in that direction. ;)
>
> in jQuery we trust.
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>


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


Re: [jQuery] body background-image

2007-02-09 Thread Ⓙⓐⓚⓔ
I've found that css give you 2 background images in html!
one on the body and one on the html tag... I guess they could both be
manipulated with .css("backgroundImage",...)

http://jpassoc.com/junior (my puppy's page) uses both bg imgs in the css.


On 2/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> On Feb 9, 9:02 pm, Kenneth <[EMAIL PROTECTED]> wrote:
> > I am still green myself, but I believe the following should work:
> >
> > .css("backgroundImage", ...);
>
> That did it (plus getting rid of "document").
>
> Thanks!
>
> T.
>
>
> ___
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


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


Re: [jQuery] one of those things that will drive a man to drink

2007-02-09 Thread Ⓙⓐⓚⓔ
I think most sane and sober minds abandoned our little thread! I'm
sure glad I wasn't losing my head! John and the gang are great!

On 2/9/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> It almost seems to simple  can you tell that I have been coding alot
> this week?  I've coded myself stupid!
>
> Thanks.
>
> On 2/9/07, Ⓙⓐⓚⓔ < [EMAIL PROTECTED]> wrote:
> > make //bind code
> > a function call to a NAMED function
> > and also call that NAMED function after you finish the current ajax
> complete.
> >
> > Hey I read it here on this list!!!
> >
> > On 2/9/07, Benjamin Sterling <
> [EMAIL PROTECTED]> wrote:
> > > Jake,
> > > I had something like in the ajax complete funciton,
> > >
> > > $(document).ready(function(){
> > > //bind code
> > > })
> > >
> > > And that was not working, I just make a function and put it in the
> onclick
> > > in the link on those pages, and will have to revisit it after I show the
> > > site to the client.
> > >
> > > Can you give me some example of what I should have done?
> > >
> > > Thanks
> > > --
> > >
> > > 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/
> >
>
>
>
>
> --
> 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] $('.someclass').ready(function(){...} ???

2007-02-09 Thread Ⓙⓐⓚⓔ
I'm glad I asked... I was totally confused!

On 2/9/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> John, with that said, what would be your recommendation on if an element is
> being loaded via ajax or a person is creation dom on the fly?  Probably an
> easy question, but these are things I am still trying to wrap my head
> completely around.
>
>
> --
> 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/


[jQuery] $('.someclass').ready(function(){...} ???

2007-02-09 Thread Ⓙⓐⓚⓔ
is there any point to this type code?
$('.someclass').ready(function(){...}

I don't understand it.

I could image some uses for ready outside of the normal $(document)
kind... but it all seems to be microseconds of saving.

Did I miss something?


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


Re: [jQuery] one of those things that will drive a man to drink

2007-02-09 Thread Ⓙⓐⓚⓔ
make //bind code
a function call to a NAMED function
and also call that NAMED function after you finish the current ajax complete.

Hey I read it here on this list!!!

On 2/9/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Jake,
> I had something like in the ajax complete funciton,
>
> $(document).ready(function(){
> //bind code
> })
>
> And that was not working, I just make a function and put it in the onclick
> in the link on those pages, and will have to revisit it after I show the
> site to the client.
>
> Can you give me some example of what I should have done?
>
> Thanks
> --
>
> 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] one of those things that will drive a man to drink

2007-02-09 Thread Ⓙⓐⓚⓔ
rebinding!

when you load new tags from ajax they don't magically get bind'ed

many people take the binding out of the main ready code and call it
from the main ready code, and once again after the ajax.

On 2/9/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Well, i had to get this to work so what I did was moved everything out of
> the page being loaded via ajax (.load) created a function called showCalc
> and put onclick="showCalc(this); return false;" on the buttons and now it
> seems to work.
>
> new function:
> var currenOpen = '';
> showCalc = function(linked){
> var div = $(linked).attr('title');
> $('#'+currenOpen).hide();
> currenOpen = div
> $('#'+div).show();
> }
>
> Now, my question really is, why the heck would the other way not work?  Oh
> well... If anyone has an opinion, let me know.
>
> --
> 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] one of those things that will drive a man to drink

2007-02-09 Thread Ⓙⓐⓚⓔ
I was thinking about that all night! why bother binding read to an
element that has to be there to be bound?

I'll stay clear headed for a while! I am such an amateur drinker!

On 2/9/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> thanks for the reply guys, all those code snippets were just my attempt to
> get something to work.  when I do
> $().ready(function{alert('ran')})  I get the alert box, but
> the other functions are not attaching.
>
>  I am going to retry the script in a bit with a clean head and a new bottle.
>
>
>

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


  1   2   3   4   5   >