[jQuery] Re: how to detect if user input is a chinese character?

2009-07-12 Thread Plant More Tree


i am jus asking if there's anyway we can check if user input is chinese
character.


刘永杰 wrote:
> 
> this is not jquery function.
> 
> 2009/7/12 Plant More Tree 
> 
>>
>>
>> Hi guys,
>>
>>I got a textarea and I need to detect instantly if user input is a
>> chinese character or not. IS there anyway jquery can help this?
>>
>> Thanks & Regards,
>> Mark
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-detect-if-user-input-is-a-chinese-character--tp24445883s27240p24445883.html
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-detect-if-user-input-is-a-chinese-character--tp24445883s27240p24450289.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] how to detect if user input is a chinese character?

2009-07-11 Thread Plant More Tree


Hi guys,

I got a textarea and I need to detect instantly if user input is a
chinese character or not. IS there anyway jquery can help this?

Thanks & Regards,
Mark
-- 
View this message in context: 
http://www.nabble.com/how-to-detect-if-user-input-is-a-chinese-character--tp24445883s27240p24445883.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] couldn't get pagination to work

2009-04-07 Thread Plant More Tree


Hi guys,

   I just couldn't get the tablesorter pagination to work. I'm using
jquery-1.3.2.min.js. Below are my scripts:


 

$("#contact_list_table").tablesorter({ 
// pass the headers argument and assing a object 
headers: { 
// assign the secound column (we start counting 
zero) 
0: { 
// disable it by setting the property 
sorter to false 
sorter: false 
}
}
}).tablesorterPager({container: $("#pager")});



 
 
Mobile 
Email 
Name 
Abbreviation 
   
 

 




F
P

N
L

10
20
30
40


  

Please help. Thanks !

regards,
Mark
-- 
View this message in context: 
http://www.nabble.com/couldn%27t-get-pagination-to-work-tp22926018s27240p22926018.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Jquery 1.3.2 bug in getting checkbox ..... maybe

2009-03-10 Thread Plant More Tree


Hi guys,

I upgraded to 1.3.2 from 1.2.6 and the following stop working:

$("inp...@type=checkbox]").each(function(i, item) {

});

where I have almost spent an hour to diagnose it. Hence, I change to the
following then it works :


$("#form1 :checkbox").each(function(i, item) {

});

hope this may help someone out there

regards,
Mark Thien
Menggaris | The Technology Buddy
markt |@| menggaris.com
-- 
View this message in context: 
http://www.nabble.com/Jquery-1.3.2-bug-in-getting-checkbox-.-maybe-tp22447984s27240p22447984.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] how to wait for image finished loading then display the page?

2009-02-06 Thread Plant More Tree


Hi guys,

   My website is www.menggaris.com and if you go there 1st time, you will
find that it takes sometimes to load as the first page consist of several
images of a total of about 260kb in size. My index.html is like follow:
--




 about.php Get me out of here ! 
  


--
and the javascript for this page is like follows:

--
jQuery.preloadImages = function()
{
for(var i = 0; ihttp://www.nabble.com/how-to-wait-for-image-finished-loading-then-display-the-page--tp21866970s27240p21866970.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: How to remove an object from an Array ?

2008-06-29 Thread Plant More Tree


this one only work in mozila browser !


Ariel Flesler wrote:
> 
> 
> array.splice( index_of_element, 1 );
> 
> --
> Ariel Flesler
> http://flesler.blogspot.com/
> 
> On 29 jun, 06:28, Plant More Tree <[EMAIL PROTECTED]> wrote:
>> Hi Guys,
>>
>>    I got an javascript object like this :
>>
>> var usercontacts = { id:null, contactEmail:null, contactName:null,
>> source:null };
>>
>> and I save it into an Array with multiple of it.
>>
>> How can I remove one of this object from an array ?
>>
>> Thanks & Regards,
>> Mark
>> --
>> View this message in
>> context:http://www.nabble.com/How-to-remove-an-object-from-an-Array---tp18178...
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-remove-an-object-from-an-Array---tp18178764s27240p18182414.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] How to remove an object from an Array ?

2008-06-29 Thread Plant More Tree


Hi Guys,

   I got an javascript object like this :

var usercontacts = { id:null, contactEmail:null, contactName:null,
source:null };

and I save it into an Array with multiple of it.

How can I remove one of this object from an array ?

Thanks & Regards,
Mark
-- 
View this message in context: 
http://www.nabble.com/How-to-remove-an-object-from-an-Array---tp18178764s27240p18178764.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re[jQuery] move duplicate record in an Array

2008-04-13 Thread Plant More Tree


Hi guys,

  if got the following code which may insert duplicate record in an Array:

  var 
userContactArray = new Array();
  var count 
= 0; 

  
$.each(item,function(j,item) {
var 
usercontacts = { id:null, contactEmail:null,
contactName:null, source:null };

usercontacts.id = item.id;

usercontacts.contactEmail = item.contactEmail;

usercontacts.contactName = item.contactName;

usercontacts.source = item.source;

userContactArray[count] = usercontacts;
count++;
  });
  }

is there anyway we can remove the duplicate record inside the Array
(userContactArray) ?

Thanks & Regards,
Mark
-- 
View this message in context: 
http://www.nabble.com/Remove-duplicate-record-in-an-Array-tp16661989s27240p16661989.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] How to append parameter to a href ?

2008-04-01 Thread Plant More Tree


Hi guys,

   I am using greybox. However, I need to append some parameter to the link
before opening the frame by greybox. For instance, I got a link like this :

sendPage.html Send Email 


/* http://localhost:8080/todo/scripts/greybox/";;
$(document).ready(function() {
$("[EMAIL PROTECTED]'gb_page[600,600]']").click(function() {
// how to append the parameter the link here?
});
});

/* ]]> */
 

Thanks & Regards,
Mark
-- 
View this message in context: 
http://www.nabble.com/How-to-append-parameter-to-a-href---tp16418706s27240p16418706.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: jquery json and zend_json

2008-03-10 Thread Plant More Tree


Hi,

  I have tried the samething too by adding [] to the string but nothing is
alerted too. Anyone please kindly advice here. thanks !

regards,
Mark



jforth-2 wrote:
> 
> 
> Hey thanks for the help...
> 
> I add the [] to the string. I don't get the invalid label error but
> nothing is alerted ? No errors in fire bug.
> 
> 
> On Dec 17, 4:10 pm, "Benjamin Sterling"
> <[EMAIL PROTECTED]> wrote:
>> wrap it in [] like:
>> [{"job_Description":"My Job","job_Notes":"My jobs notes are here."}]
>>
>> On 12/17/07, jforth <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>>
>> > I'm running php 5.2.5
>>
>> > in firebug I get :
>>
>> > invalid label
>>
>> > {"job_Description":"My Job","job_Notes":"My jobs notes are here."}
>>
>> > On Dec 12, 1:38 pm, "Benjamin Sterling"
>> > <[EMAIL PROTECTED]> wrote:
>> > > Two quick questions:
>> > > what version of php are you running?  I believe that zend only
>> supports
>> > > php5, but I could be wrong on that.
>>
>> > > In firebug, what is being returned in the "response" tab?
>>
>> > > On 12/12/07, jforth <[EMAIL PROTECTED]> wrote:
>>
>> > > > I'm trying to test something here and having issues getting it to
>> > > > work.
>>
>> > > > here's my jquery script : // I should get an alert object if it
>> works?
>> > > > but in firebug all I get is invalid label.
>>
>> > > > var url = "http://127.0.0.1/projects/micro-printing.com/projects/
>> > > > micro-server/index.php/client_api/test?callback=?";
>> > > > $.getJSON(url,
>> > > > function(data){
>> > > > alert(data);
>> > > > });
>>
>> > > > heres the json that I'm  getting using zend_json:
>>
>> > > > {"job_Description":"My Job","job_Notes":"My jobs notes are here."}
>>
>> > > > and here's the php in case it helps
>>
>> > > > $json = new Zend_Json();
>> > > > $job_data = array(
>> > > > 'job_Description' => 'My Job' ,
>> > > > 'job_Notes' => 'My jobs notes are here.');
>>
>> > > > echo $json->encode($job_data);
>>
>> > > --
>> > > Benjamin
>> >
>> Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjam...
>>
>> --
>> Benjamin
>> Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.comhttp://www.benjaminsterling.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jquery-json-and-zend_json-tp14300277s27240p15950633.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] Re: $.getJSON doesn't work on Vista PC while calling remote server

2008-03-09 Thread Plant More Tree


Hi Joe,

   Thanks a lot for your suggestion. It works. However, I got error while
calling remotely with the following exception from javascript:

invalid label
[Break on this error] {"user":{"items":[{"name":"Vinod
Abraham","email":"[EMAIL PROTECTED]"},{"name":...

when using
$.getJSON("http://www.stufftolet.com/test/usercontacts.js?callback=?";,
function(json){}

if I changed it to local like

$.getJSON("usercontacts.js?callback=?", function(json){}

i got :

invalid label
extend("{"user":{"items":[{"name":"Vinod
Abraham","email":"[EMAIL PROTECTED]"},{"name":"Gurussidan
Kumar","...")jquery-1.2.3-min (line 20)
handleError(XMLHttpRequest channel=[xpconnect wrapped nsIChannel],
"script")jquery-1.2.3-min (line 29)
ready(319)jquery-1.2.3-min (line 28)
[Break on this error] {"user":{"items":[{"name":"Vinod
Abraham","email":"[EMAIL PROTECTED]"},{"name":...


Appreciate if you could further advice me on this.

regards,
Mark


Joe Maller-2 wrote:
> 
> 
> I've had issues where jQuery's JSON requests were treated as XHRs if
> there was no JSONp callback. That obviously doesn't work going cross-
> domain.
> 
> If you change your url to /http://stufftolet.com/test/usercontacts.js?
> callback=?" it should work, though you're going to need to hook up the
> result.
> 
> joe
> 
> On Mar 7, 9:55 am, Plant More Tree <[EMAIL PROTECTED]> wrote:
>> Hi guys,
>>
>> if tried the following where usercontacts.j is in my localhost pc
>> windows vista (tomcat6) and alert showed like [object object] mean
>> there's
>> some object in json argument:
>>
>> $.getJSON("usercontacts.js", function(json){
>>   alert(json);
>> });
>>
>> so when I changed to remote location :
>>
>> $.getJSON("http://stufftolet.com/test/usercontacts.js";,
>> function(json){
>>   alert(json);
>> });
>>
>> the alert doesn't work alert anymore. However, both behavior (local and
>> remote) works on windows xp in my office. Is it some kind of security
>> issue
>> where stupid vista try to block outgoing connection? Appreciate any
>> advice
>> and help, Thanks !
>>
>> regards,
>> Mark
>>
>> --
>> View this message in
>> context:http://www.nabble.com/%24.getJSON-doesn%27t-work-on-Vista-PC-while-ca...
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%24.getJSON-doesn%27t-work-on-Vista-PC-while-calling-remote-server-tp15893358s27240p15933853.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



[jQuery] $.getJSON doesn't work on Vista PC while calling remote server

2008-03-07 Thread Plant More Tree


Hi guys,

if tried the following where usercontacts.j is in my localhost pc
windows vista (tomcat6) and alert showed like [object object] mean there's
some object in json argument:

$.getJSON("usercontacts.js", function(json){
  alert(json);
});

so when I changed to remote location :

$.getJSON("http://stufftolet.com/test/usercontacts.js";, function(json){
  alert(json);
});

the alert doesn't work alert anymore. However, both behavior (local and
remote) works on windows xp in my office. Is it some kind of security issue
where stupid vista try to block outgoing connection? Appreciate any advice
and help, Thanks !

regards,
Mark

-- 
View this message in context: 
http://www.nabble.com/%24.getJSON-doesn%27t-work-on-Vista-PC-while-calling-remote-server-tp15893358s27240p15893358.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.