[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Conrad Cheng
install firebug in your ff and you can see your js errors

On Tue, Oct 20, 2009 at 11:05 AM, ReynierPM rper...@uci.cu wrote:


 Bi Jing wrote:

 Weird, Its working on my IE/FF


 I'm working with FF 3.5.3 also

 This is my JS code:

 script type=text/javascript
 $().ready(function() {
 $('.corner').corner();

 $('#paypal_form').validate({
rules: {
cc_number: {
  required: true,
  creditcard2: function() { return $('#cc_number').val(); }
}
  }
});

$('#cc_type').change(function(){
  $(#paypal_form).validate().element('#cc_number');
});
 });

 function doCopy(){
$(#billing_first_name1).val($(#shiping_first_name).val())
$(#billing_last_name1).val($(#shiping_last_name).val())
 }
 /script

 And the HTML code asociated to elements is this one:

 label for=same class=firstMy shipping address is also my billing
 address input type=checkbox name=same id=same onclick=doCopy()
 //label

 label for=shiping_first_name class=firstFirst Name:
 input type=text name=shiping_first_name id=shiping_first_name /
 /label
 label for=billing_first_name class=firstFirst Name:
 input type=text name=shiping_first_name id=billing_first_name /
 /label

  Do you get any js errors during viewing page.


 Where I look for errors?
 --
 Saludos
 ReynierPM



[jQuery] Get help with wildCard selector

2009-09-13 Thread Conrad Cheng
Dear all,
I have certain div with below format
div id=abc-01
/div
div id=abc-02
/div
div id=abc-03
/div

I want to get the no of div who contain abc-* and i have used the wildcard ,
but i seems not work for me...

I have tired
$('#div[id^=abc-]').size()

Can anyone give some hints to me with many thanks!


[jQuery] Re: Get help with wildCard selector

2009-09-13 Thread Conrad Cheng
That's great, Thanks Steven.

On Mon, Sep 14, 2009 at 11:33 AM, Steven Yang kenshin...@gmail.com wrote:

 i think what you want is
 $('div[id^=abc-]').size()

 $('#div[...') means id=div and something else but you dont have anything
 with id = div

 On Mon, Sep 14, 2009 at 11:30 AM, Conrad Cheng yfch...@gmail.com wrote:

 Dear all,
 I have certain div with below format
 div id=abc-01
 /div
 div id=abc-02
 /div
 div id=abc-03
 /div

 I want to get the no of div who contain abc-* and i have used the wildcard
 , but i seems not work for me...

 I have tired
 $('#div[id^=abc-]').size()

 Can anyone give some hints to me with many thanks!





[jQuery] Re: jQuery lightbox

2009-08-25 Thread Conrad Cheng
Did you declare the path correctly for jquery.js and lightbox.js?

On Tue, Aug 25, 2009 at 1:32 PM, Ram... c.ramanjaney...@gmail.com wrote:


 Hi,

 Lightbox is not showing on prod site, but its working  on local box
 and internet.

 Any idea what may be the problem?

 Thank you,
 Ramanjaneyulu


[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread Conrad Cheng
The most important part in my string is..it contains chinese characters...
For an example

I come from 香港---so totally 5 words instead of length = 15

Thx all of you.




On Tue, Jul 28, 2009 at 7:23 AM, RobG robg...@gmail.com wrote:




 On Jul 28, 5:09 am, Liam Byrne l...@onsight.ie wrote:
  A letter count is FAR easier - just get the string's length.

 The length of the string will give you a *character* count. I would
 not inlcude punctuation, white space, etc. in a *letter* count.  For
 number of letters, try:

  s.replace(/[^a-zA-Z]/g,'').length;


 --
 Rob


[jQuery] Re: How to deterine number of words in a string?

2009-07-26 Thread Conrad Cheng
Thank all, i will try once get back to offce tomorrow.

On Sat, Jul 25, 2009 at 8:40 PM, CarComplaints.com w...@autobeef.comwrote:


 With regular expressions, it's simpler than all this .. you can count
 letter groups that are split up by anything that's not a letter or a
 digit.

 var string = $(span.string).text();
 var mresult = string.match(/\w+/g);
 alert(mresult.length);





 On Jul 24, 8:41 pm, Lukas Lt 1luk...@gmail.com wrote:
  Well you can replace '!, into spaces and then count
 
  Also I'd do a loop and remove empty elements (if multiple paces was in
  text) before counting.
 
  On 24 Lie, 13:25, Raju raju3...@gmail.com wrote:
 
   Hi
 
   i want a jquery plugin to view word files,
 
   can somebody help me out in this regards
 
   Warm Regards,
 
   Mari Raj K,
   Bangalore
   +91 9916140688
 
   On Fri, Jul 24, 2009 at 3:49 PM, Liam Potter radioactiv...@gmail.com
 wrote:
 
you don't need a plugin, this will do it
 
var string = $(span.string).text();
var count = string.split( );
alert(count.length);
 
Conrad Cheng wrote:
 
Hi all,
Any jquery plugin can check number of word in a string instead using
 of
.length?...
 
Many thanks.
 
Conrad



[jQuery] How to deterine number of words in a string?

2009-07-24 Thread Conrad Cheng
Hi all,
Any jquery plugin can check number of word in a string instead using of
.length?...

Many thanks.

Conrad


[jQuery] Re: Can I get code example ?

2009-06-26 Thread Conrad Cheng
http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/

On Fri, Jun 26, 2009 at 3:37 PM, Jörn Zaefferer 
joern.zaeffe...@googlemail.com wrote:


 This could help: http://jquery.bassistance.de/autocomplete/demo/json.html

 Jörn

 On Fri, Jun 26, 2009 at 2:11 AM, Jaikitjktsa...@gmail.com wrote:
 
  Hello Doc,
 
  Can I get example which uses jquery autocomplete which fetches json
  data using webservice.
 
  I am not able to figure it out myself.
 
  Thank YOu
 



[jQuery] Re: Rond Corners Question....

2009-06-25 Thread Conrad Cheng
Seems IE is not

On Thu, Jun 25, 2009 at 7:21 AM, Cesar Sanz the.email.tr...@gmail.comwrote:


 Corners Plugin?

 AFIK it works with the most used browsers

 - Original Message - From: Erik R. Peterson eriks...@mac.com
 To: jquery-en@googlegroups.com
 Sent: Tuesday, June 23, 2009 12:15 PM
 Subject: [jQuery] Rond Corners Question




 Hi Guys!

 Is the Round Corners script with Jquery worth using?  Does it really  work
 with all browsers?  Does is need tweeking from the original  install?

 Any opinions out there?

 Erik