[jQuery] FCKEditor Plugin and Validation Plugin

2010-01-30 Thread David .Wu
http://www.fyneworks.com/jquery/FCKEditor/ The FCKEditor home page mentioned it support the Validation Plugin, but when I use both of it, but even I type many words on the textarea which replaced by the FCKEditor via FCKEditor Plugin, it's always shows the error message that the field is empty,

[jQuery] Wrap question

2009-12-20 Thread David .Wu
I want to make a div div id=myDiv become table border=1trtd1/tdtd2/tdtd3/td/trtrtd4/ tdtddiv id=myDiv/tdtd6/td/trtrtd7/tdtd8/ tdtd9/td/tr/table This is my solution, but I want to ask for better one. /** * Wrap Table */ (function() { $.fn.dramaWrapTable = function($obj) {

[jQuery] customize uplodify

2009-12-16 Thread David .Wu
http://www.uploadify.com/ This is the best jQuery upload plugin I ever used, I want to add one function when upload jQuery(queue).append('div id=' + jQuery(this).attr('id') + ID + ' class=uploadifyQueueItem\ input type=text / div class=cancel\ .

[jQuery] Ajax response back question

2009-12-01 Thread David .Wu
ul li id=1/li li id=2/li li id=3/li /ul $(function() { $('li').each(function() { var $id = $(this).attr('id'); $.post('getImg.php', {id: $id}, function($data) { // How to do it? }); }); }); I want to let each

[jQuery] Can't get the image width

2009-11-19 Thread David .Wu
1. img src=xxx style=display: none; id=img1 alert($('#img1').width()); 2. div style=display: none; img src=xxx style=display: none id=img2 /div alert($('#img2').width()); case 1 can get the width of the image, but case 2 will fail, how to solve this problem?

[jQuery] Can't get image's dimension under a hidden object

2009-11-19 Thread David .Wu
1. img src=xxx id=img1 style=display: none; / $(window).load(function() { alert($('#img1').width()); }); 2. div style=display: none; img src=xxx id=img2 style=display: none; / /div $(window).load(function() { alert($('#img2').width()); }); case 1 can get the dimension,

[jQuery] slider question

2009-11-18 Thread David .Wu
http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div If use jQuery slider directly, the handle box will not fit the slider track but in that website, it's totally fit the slider, and I didn't see anything particular in his code how to do that?

[jQuery] How to check is the object with the css property?

2009-10-17 Thread David .Wu
div/div div style=position: absolute/div $('div').each(function() { // How to know the div have position property or not? });

[jQuery] How to print tag name

2009-09-29 Thread David .Wu
The code below show [ td ], can I got the tagName like td? table trtd1/td/tr /table console.log($('table:first tr').find(':first-child'));

[jQuery] Re: How to combine event?

2009-09-27 Thread David .Wu
= (event.type == 'mousedown') ? 'url(grab.cur),   default' : 'url(hand.cur), default';          $(this).css({cursor: myCursor});         }); Hope that helps. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Sep 25, 2009, at 1:48 AM, David .Wu wrote: event

[jQuery] Re: How to combine event?

2009-09-27 Thread David .Wu
Swedbergwww.englishrules.comwww.learningjquery.com On Sep 25, 2009, at 1:48 AM, David .Wu wrote: event mousedown and mouseup and mouseout actually do the same thing, how to combine it? $('a#cursor')        .css({cursor: 'url(hand.cur), default'})        .click(function() {            return false

[jQuery] How to combine event?

2009-09-24 Thread David .Wu
event mousedown and mouseup and mouseout actually do the same thing, how to combine it? $('a#cursor') .css({cursor: 'url(hand.cur), default'}) .click(function() { return false; }) .mousedown(function() { $(this).css({cursor: 'url(grab.cur),

[jQuery] Re: ajax xml question

2009-09-19 Thread David .Wu
Yup, it will be correct, so weird, why does Google's character wrong. On 9月18日, 下午7時44分, lanxiazhi lanxia...@gmail.com wrote: you may request the a.php directly in the browser ,and see if the charactors display correctly. 2009/9/18 David .Wu chan1...@gmail.com it's not work actually

[jQuery] Re: ajax xml question

2009-09-18 Thread David .Wu
terrific!!! thanks a lot On 9月17日, 下午5時57分, lanxiazhi lanxia...@gmail.com wrote: specify content type to xml: header(Content-type: text/xml); if ($_GET['weather']) { ...

[jQuery] Re: ajax xml question

2009-09-18 Thread David .Wu
But I got one more question http://www.google.com/ig/api?hl=zh-twweather=Changhua This is the weather condition that response by my language, and the value become garbage characters exclude English, any solution? On 9月18日, 下午2時06分, David .Wu chan1...@gmail.com wrote: terrific!!! thanks a lot

[jQuery] Re: ajax xml question

2009-09-18 Thread David .Wu
I am using utf-8 too. On 9月18日, 下午2時27分, Steven Yang kenshin...@gmail.com wrote: I think you might have to check the encoding that google is usingI think google should be using UTF-8. check the encoding on your side. On Fri, Sep 18, 2009 at 2:11 PM, David .Wu chan1...@gmail.com wrote

[jQuery] Re: ajax xml question

2009-09-18 Thread David .Wu
As the matter of fact, I execute the weather.php like weather.php? weather=1 and the character was right, so the problem is happend when ajax delivery. On 9月18日, 下午2時39分, David .Wu chan1...@gmail.com wrote: I am using utf-8 too. On 9月18日, 下午2時27分, Steven Yang kenshin...@gmail.com wrote: I

[jQuery] Re: ajax xml question

2009-09-18 Thread David .Wu
it's not work actually. On 9月18日, 下午6時19分, lanxiazhi lanxia...@gmail.com wrote: Now you will need to change the header: header('Content-Type: text/xml; charset=UTF-8');

[jQuery] ajax xml question

2009-09-17 Thread David .Wu
This is the source code that I want to get the weather from Google API, Firefox, Safari, Opera will work, but IE can't get the value, so I did some test, and I found the reason xml structure in php page $.get({a.php}, '', function() {}, html); // all browser work besides IE $.get({a.php}, '',

[jQuery] Re: Ajax get contents question

2009-09-03 Thread David .Wu
it's funny that I can use find to get res2's html, why? filter res get res2 failed find res failed res2 get On 9月3日, 下午12時11分, David .Wu chan1...@gmail.com wrote: This is my testing php code, I found if I use filter, I can only get the content from first level of object, for example div id

[jQuery] Ajax get contents question

2009-09-02 Thread David .Wu
This is my testing php code, I found if I use filter, I can only get the content from first level of object, for example div id=res1div id=res22/div/div I can get res's contents by filter, but I can't get res2's contents, is that possible that get any thing I want through ajax? ?php if

[jQuery] save to pdf

2009-08-31 Thread David .Wu
Is there any plugin can let me save the part of pag as pdf?

[jQuery] Re: How to hide pop is blur

2009-08-13 Thread David .Wu
How to declare other thing? On 8月13日, 下午7時28分, Jon Banner banali...@googlemail.com wrote: $('#show').click(function(){    $('#popup').fadeIn(slow, function(){       $(other things).click(function(){          $('#popup, #show').hide();       });   }); }); 2009/8/13 David .Wu chan1

[jQuery] How to hide pop is blur

2009-08-12 Thread David .Wu
There is a button control a div show or not, I want when you click other things then the div will disappear too exclude div itself and also the show button, how to do that? [html] html . input type=button id=show value=show div id=popup style=display: none; .. /div /html

[jQuery] How to get variable from iframe?

2009-08-11 Thread David .Wu
a.php iframe src=b.php/iframe .. script var a = 123; /script Can I catch variable a in b.php?

[jQuery] Re: Does IE support live?

2009-08-03 Thread David .Wu
at 12:28 PM, David .Wu chan1...@gmail.com wrote: If I load b.html in firefox, alert(1) will work, but ont work in IE. page a.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml

[jQuery] a select question

2009-08-03 Thread David .Wu
if I have 3 div, how to filter the div without class abc? div/div div class=abc/div div/div

[jQuery] Re: a select question

2009-08-03 Thread David .Wu
or not, and whether one believes in rebirth or not, there isn't anyone who doesn't appreciate kindness and compassion..' Inactive hide details for David .Wu ---08/03/2009 09:37:41 AM---if I have 3 div, how to filter the div without class abc?David .Wu ---08/03/2009 09:37:41 AM---if I have 3 div

[jQuery] Re: a select question

2009-08-03 Thread David .Wu
or not, and whether one believes in rebirth or not, there isn't anyone who doesn't appreciate kindness and compassion..' Inactive hide details for David .Wu ---08/03/2009 09:37:41 AM---if I have 3 div, how to filter the div without class abc?David .Wu ---08/03/2009 09:37:41 AM---if I have 3 div

[jQuery] Does IE support live?

2009-07-31 Thread David .Wu
If I load b.html in firefox, alert(1) will work, but ont work in IE. page a.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html;

[jQuery] Re: fn question

2009-07-30 Thread David .Wu
for your 1st case but works for the 2nd one. On Jul 30, 3:14 pm, David .Wu chan1...@gmail.com wrote: I found these both work, so what is return for? script $.fn.btnClick = function() {         this.click(function() {                 alert('test');         }); } $('input#btn

[jQuery] fn question

2009-07-29 Thread David .Wu
I found these both work, so what is return for? script $.fn.btnClick = function() { this.click(function() { alert('test'); }); } $('input#btn').btnClick(); /script script $.fn.btnClick = function() { return this.click(function() {

[jQuery] Can I catch the property of CSS filter?

2009-07-08 Thread David .Wu
the image is like img style=filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src='aa.png') ... $('img').css('filter') will get progid:DXImageTransform.Microsoft.AlphaImageLoader(src='aa.png') Can I get the aa.png directly?

[jQuery] image resize issue

2009-06-29 Thread David .Wu
我今天有兩個放大縮小按鈕,想讓user按放大時用js把一個100x72的圖片 以寬為主每次加4px等比放大,反之亦然,但不知道小數位數該如何取才能正確控制高度 等比放大的公式為 I have two button to let user enlarge or reduce a 100px x 72px image immediately on the page, 4px enlarge or reduce one time by width, but I don't know how to control the height to make resize

[jQuery] Re: remove question

2009-06-13 Thread David .Wu
Nice trick. On 6月13日, 上午9時36分, brian bally.z...@gmail.com wrote: On Fri, Jun 12, 2009 at 2:37 PM, amuhlouamysch...@gmail.com wrote: putting it all together, you'd get something like: $('#div1').replaceWith($('#div2')).remove(); first you find div1, then replace it with div2, then

[jQuery] Re: jQuery, ajax, json, php

2009-06-12 Thread David .Wu
** On Jun 11, 4:40 pm, David .Wu chan1...@gmail.com wrote: If I send a json format to php, how to get the value from php? for example front page script var jsonStr = '{name: David, age, 23}'; $.ajax({ url: 'json.php', type: 'POST', cache: false, data

[jQuery] json question.

2009-06-12 Thread David .Wu
This the html file I want to catch the object property inside obj and make them a json string like '{div: [{name: div1, w: 100, h: 100}, {name: div2, w: 200, h: 200 }], img: [{name:, img1, w: 50, h: 50}]}'; any suggestion to accomplish it? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

[jQuery] Re: How to flip the image?

2009-06-11 Thread David .Wu
Thanks for your kindly response, but I only want to make a image horizontal flip by click a button, no need animation. On 6月11日, 下午5時01分, Michael Smith smi...@gmail.com wrote: If you're trying to do what I think you're trying to do then I think you can do it with the jquery cycle plugin by

[jQuery] jQuery, ajax, json, php

2009-06-11 Thread David .Wu
If I send a json format to php, how to get the value from php? for example front page script var jsonStr = '{name: David, age, 23}'; $.ajax({ url: 'json.php', type: 'POST', cache: false, data: {json: jsonStr}, success: function(data) {

[jQuery] remove question

2009-06-11 Thread David .Wu
Can I remove div1 but div2 keep there? div id=1 div id=2/div /div

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread David .Wu
it's work, cool. On 6月11日, 下午11時58分, Tomáš Kavalek tomas.kava...@gmail.com wrote: Maybe you should use json_decode($json, true); in case of you have a problem with json_decode($json); On 11 čvn, 14:17, Chris Chen cdcc...@gmail.com wrote: $json = $_POST['json']; $user =

[jQuery] How to flip the image?

2009-06-10 Thread David .Wu
Can I make image vertical or horizontal flip by jQuery?

[jQuery] How to get option's position

2009-06-08 Thread David .Wu
if I have a menu, how to get the position of the option after I select one of it? for example, if I choose b, and the position should b 2. select optiona/option optionb/option optionc/option /select

[jQuery] How to get file name

2009-04-28 Thread David .Wu
img src=images/xxx.gif $('img').attr('src') - This will get images/xxx.gif How to get xxx.gif by jQuery?

[jQuery] Re: How to get file name

2009-04-28 Thread David .Wu
If I use split, how to get the last array? On 4月28日, 下午6時39分, Remon Oldenbeuving r.s.oldenbeuv...@gmail.com wrote: I dont think there's a real jQuery way, you could use regular expressions, or maybe split the string with .split('/') On 28 apr 2009, at 10:36, David .Wu chan1...@gmail.com

[jQuery] Re: How to get file name

2009-04-28 Thread David .Wu
I got it, thanks everyone. $('img').attr('src').split('/').pop(); On 4月28日, 下午6時39分, Remon Oldenbeuving r.s.oldenbeuv...@gmail.com wrote: I dont think there's a real jQuery way, you could use regular expressions, or maybe split the string with .split('/') On 28 apr 2009, at 10:36, David

[jQuery] How to catch mouse position inside an area?

2009-04-22 Thread David .Wu
If I got a 400px width div, can I get the offset left distance from mouse to the div in where I click?

[jQuery] How to customize scroll bar

2009-04-21 Thread David .Wu
I use jQuery slider ui, and I want to customize the scroll bar http://penta.twnoc.com/product_detail.php?type=1sub=1 almost done, but only one thing, when you scroll handle box to right, the box will over the scroll bar, and I don't know how to fix it.

[jQuery] A filter question

2009-04-20 Thread David .Wu
If I have 5 div, have the same name but different rel, div name=myDiv rel=1 style=display:block;/div div name=myDiv rel=1 style=display:none;/div div name=myDiv rel=2 style=display:block;/div div name=myDiv rel=2 style=display:none;/div div name=myDiv rel=2 style=display:none;/div how to find

[jQuery] Re: How to find a div's which have background-img?

2009-02-25 Thread David .Wu
'); } else { console.log('no'); } }); }); On 2月25日, 下午12時53分, David .Wu chan1...@gmail.com wrote: I have hundred or css class need that, I am afraid that it's better to search which has

[jQuery] How to find a div's which have background-img?

2009-02-24 Thread David .Wu
for example .box { background-image: url(images/png_back.png); } div class=box/div Can I filter the div which have backround-image?

[jQuery] Re: How to find a div's which have background-img?

2009-02-24 Thread David .Wu
I have hundred or css class need that, I am afraid that it's better to search which has the property. On 2月25日, 下午12時18分, Steven Yang kenshin...@gmail.com wrote: according to your case use$(.box) or $(div .box) since all elements with class box will have background image

[jQuery] Disaster with Png fix

2009-02-21 Thread David .Wu
IE6 doesn't support transparent png file, so people usually use javascript to fix it. This is what I choose http://www.twinhelix.com/css/iepngfix/ but when I use it with ui such as $.dialog() in IE6, the effect become pretty slow for example http://www.yuri.com.tw/member_register.php This is

[jQuery] ajax question

2009-02-20 Thread David .Wu
if we want to transfer some variable to another page by ajax, we use data: {a: 1, b: 2} and it will send like xxx.php?a=1b=2 but if a is not a constant variable, such as var $a = x data: {$a: 1} I want it become xxx.php?x=1 var $a = y data: {$a: 1} I want it become xxx.php?y=1 how to do that?

[jQuery] blockUI issue

2009-02-20 Thread David .Wu
I found it's not work in IE7 with flash, is it?

[jQuery] Re: blockUI issue

2009-02-20 Thread David .Wu
this is demo page. http://www.yuri.com.tw/debug/blockui.php On 2月21日, 上午1時56分, David .Wu chan1...@gmail.com wrote: I found it's not work in IE7 with flash, is it?

[jQuery] clone form information

2009-02-16 Thread David .Wu
sometimes we have two form that almost the same fields, so we will give client a clone button if the information is complete the same, this is how I do now, is there any easy way to accomplish that? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[jQuery] Re: How to find the biggest value?

2009-02-13 Thread David .Wu
thanks a lot. On 2月12日, 下午4時23分, Stephan Veigl stephan.ve...@gmail.com wrote: Hi David, var max = null; $(#box div).each(function() { if ( !max || max.height() $(this).height() ) max = $(this); }); // flash max div max.fadeOut().fadeIn(); by(e) Stephan 2009/2/12 David .Wu

[jQuery] How to find the biggest value?

2009-02-11 Thread David .Wu
for example, how to find biggest div height under box. div id=box div./div div./div div./div /div

[jQuery] Re: please help me for the performance

2009-02-08 Thread David .Wu
On Sat, Feb 7, 2009 at 2:58 AM, David .Wu chan1...@gmail.com wrote: url:http://chan.idv.tw:90/test/marquee/marquee.html rar:http://chan.idv.tw:90/test/marquee/marquee.rar Hi, this is a image marquee to display the product, I feel a little bit lag when mouse over the image from left to right

[jQuery] How to make hyperlink failed

2009-02-08 Thread David .Wu
If I got a hyperlink a href=http://xxx.com; id=xx/a $(function() { $('#xxx').click(function() { . ..//do something }); }) I want to make the link doing something if browser opened javascript, and if not, it go to the page it referred.

[jQuery] Re: How to make hyperlink failed

2009-02-08 Thread David .Wu
, David .Wu chan1...@gmail.com wrote: If I got a hyperlink a href=http://xxx.com; id=xx/a $(function() { $('#xxx').click(function() { . ..//do something }); }) I want to make the link doing something if browser opened javascript

[jQuery] please help me for the performance

2009-02-06 Thread David .Wu
url: http://chan.idv.tw:90/test/marquee/marquee.html rar: http://chan.idv.tw:90/test/marquee/marquee.rar Hi, this is a image marquee to display the product, I feel a little bit lag when mouse over the image from left to right at the same time, please help me to improve the performance.

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
without a better idea of what the element you want to grow looks like. On Feb 3, 9:34 am, David .Wu chan1...@gmail.com wrote: animate function can change object's size by control css, such as width and height, if if we want to increase the width, the width increased to right - how to do

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
yup, I tried, but still not know to to do it proportionally. sigh.. On 2月4日, 上午12時43分, Eric Garside gars...@gmail.com wrote: Try the jQuery UI Scaling effect. http://docs.jquery.com/UI/Effects/Scale On Feb 3, 11:21 am, David .Wu chan1...@gmail.com wrote: Sorry for my bad explanation, I

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
thanks, this plugin is really cool. On 2月4日, 上午1時50分, Mike Alsup mal...@gmail.com wrote: yup, I tried, but still not know to to do it proportionally. sigh.. Look at the technique used in this plugin: http://www.malsup.com/jquery/hoverpulse/

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
but is that mean I have to write lots code to do what I want? actually I know the trick, just want to know can it complete through jQuery effect by only set the options. On 2月4日, 上午1時55分, David .Wu chan1...@gmail.com wrote: thanks, this plugin is really cool. On 2月4日, 上午1時50分, Mike Alsup mal

[jQuery] How to enlarge size proportionally

2009-02-03 Thread David .Wu
animate function can change object's size by control css, such as width and height, if if we want to increase the width, the width increased to right - how to do it like below - -

[jQuery] Re: How to enlarge size proportionally

2009-02-03 Thread David .Wu
I got it, thanks. On 2月4日, 上午9時07分, Mike Alsup mal...@gmail.com wrote: but is that mean I have to write lots code to do what I want? actually I know the trick, just want to know can it complete through jQuery effect by only set the options. No, I only wanted you to see that to achieve

[jQuery] how to do '++' in jQuery

2009-01-21 Thread David .Wu
some times we want to do some animation we use xxx.width++ in jQuery we give value like this $('xx').width(value) how to do ++ thing in this way?

[jQuery] Re: how to do '++' in jQuery

2009-01-21 Thread David .Wu
elegant. $('xx').width($('xx').width()++) ; On Jan 21, 2:05 am, David .Wu chan1...@gmail.com wrote: some times we want to do some animation we use xxx.width++ in jQuery we give value like this $('xx').width(value) how to do ++ thing in this way?

[jQuery] Images resize problem with Aajx

2009-01-17 Thread David .Wu
My process is 1. load images from other php file 2. put the response thing into a div 3. check all image sizes 4. resize image if the size over the restriction the problem is sometimes images resize failed, how to make sure the resize process work. html code !DOCTYPE html PUBLIC -//W3C//DTD

[jQuery] Re: Images resize problem with Aajx

2009-01-17 Thread David .Wu
what is the size of that images. Tip: You could bind a .load() event to your images and change the size of that particular image on its load. Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Jan 17, 2009 at 5:34 PM, David .Wu chan1...@gmail.com wrote: My process

[jQuery] Re: Images resize problem with Aajx

2009-01-17 Thread David .Wu
- http://jquery-howto.blogspot.com On Sat, Jan 17, 2009 at 5:34 PM, David .Wu chan1...@gmail.com wrote: My process is 1. load images from other php file 2. put the response thing into a div 3. check all image sizes 4. resize image if the size over the restriction the problem

[jQuery] Re: Images resize problem with Aajx

2009-01-17 Thread David .Wu
($h); }); }); $tbl1.clone().prependTo($td2); On 1月18日, 上午12時43分, David .Wu chan1...@gmail.com wrote: aha, I understand, it's work, thanks :) $img1.load(function() { $(this).each(function() { if($(this).height() $h

[jQuery] Re: Images resize problem with Aajx

2009-01-17 Thread David .Wu
($h); }); }); $tbl1.clone().prependTo($td2); On 1月18日, 上午12時43分, David .Wu chan1...@gmail.com wrote: aha, I understand, it's work, thanks :) $img1.load(function() { $(this).each(function() { if($(this).height() $h

[jQuery] Re: Images resize problem with Aajx

2009-01-17 Thread David .Wu
at 9:53 PM, David .Wu chan1...@gmail.com wrote: I got one more question, actually I need to clone the result of $td1 into another $td2, how to do it after the load function finish. $img1.load(function() { $(this).each(function

[jQuery] How to get sum of children element's width

2009-01-17 Thread David .Wu
This is the way I got the size now, is there any function can do the same thing? Html code div img src=.. img src=.. img src=.. /div script $(function() { $sum = 0; $('div img').each(function()

[jQuery] Re: How to get sum of children element's width

2009-01-17 Thread David .Wu
On Jan 17, 3:27 pm, David .Wu chan1...@gmail.com wrote: This is the way I got the size now, is there any function can do the same thing? Html code div img src=.. img src=.. img src=.. /div script $(function

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-13 Thread David .Wu
it's work, thanks On 1月12日, 下午5時03分, Balazs Endresz balazs.endr...@gmail.com wrote: Use filter with $.ajax: $('#response').html($(res).filter('#a').text()); On Jan 12, 9:30 am, David .Wu chan1...@gmail.com wrote: And I found the load is not work either, because it still get

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-13 Thread David .Wu
the same meaning like above, it response text part from responseText On 1月12日, 下午5時03分, Balazs Endresz balazs.endr...@gmail.com wrote: Use filter with $.ajax: $('#response').html($(res).filter('#a').text()); On Jan 12, 9:30 am, David .Wu chan1...@gmail.com wrote: And I found the load

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-13 Thread David .Wu
never mind, it's really work now, filter is great, thanks. On 1月13日, 下午7時19分, David .Wu chan1...@gmail.com wrote: nope, it's doesn't work, I type the wrong character but something interesting happened $('#response').html($(res).filter('#a').text()); - it's not work $('#response').html

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-12 Thread David .Wu
an element of the current jQuery object. $('html/html') doesn't work either, I guess it's not possible to create an html element so easily. You can also try setting the dataType option to html (or maybe xml). On Jan 11, 11:13 am, David .Wu chan1...@gmail.com wrote: I tried all your suggestion

[jQuery] Re: Can I get the contents from respose by ajax

2009-01-11 Thread David .Wu
I tried all your suggestion, but got some weired result. ajax.html !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 /

[jQuery] offset question

2009-01-11 Thread David .Wu
Hi the offset function will find the first matched element and show the offset but in this case, the ul offset should be 0 to div#demo, but in firefox it's 8, and in IE is 10 why is that? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[jQuery] Re: question about each

2009-01-04 Thread David .Wu
() there but I think the performance penalty is likely irrelevant. cheers, - ricardo On Jan 3, 12:26 pm, David .Wu chan1...@gmail.com wrote: Part1 var navPath = 'images/nav/'; var navArr = new Array ('nav_about','nav_product','nav_skill','nav_service','nav_news','nav_member

[jQuery] Re: question about each

2009-01-04 Thread David .Wu
by the way, do you have more sample that css substitute for js? On 1月5日, 下午2時33分, David .Wu chan1...@gmail.com wrote: wow, thanks for your help, it's really useful to me. On 1月4日, 上午2時56分, Ricardo Tomasi ricardob...@gmail.com wrote: Everytime you change the src attribute of an image

[jQuery] question about each

2009-01-03 Thread David .Wu
Part1 var navPath = 'images/nav/'; var navArr = new Array ('nav_about','nav_product','nav_skill','nav_service','nav_news','nav_member','nav_recruit'); var navArrLen = navArr.length; for(i=0;inavArrLen;i++) {

[jQuery] Does jQuery do the encode thing

2008-12-13 Thread David .Wu
My default character set is utf8, should I use encodeURI when use ajax sending the data to server? for example $username = $('#username').val() $.ajax( { url:'xxx.php', data:{username:encodeURI($username)} .. ... ... });

[jQuery] Re: Hot to remove or replace onclick function

2008-12-08 Thread David .Wu
: docs.jquery.com/Events - ricardo On Dec 7, 8:22 pm, David .Wu [EMAIL PROTECTED] wrote: let me explain more clear if I want to cancel function in JavaScript, I can do something like this, but how to do the same thing in jQuery? input type=button name=btn id=btn value=btn / input type=button name

[jQuery] Re: Hot to remove or replace onclick function

2008-12-07 Thread David .Wu
() { btn.onclick = null; } } //-- /script On Dec 7, 9:50 am, David .Wu [EMAIL PROTECTED] wrote: HTML - div id=navBoxdiv/div/div ul liimg src=images/nav/nav_left.jpg //li

[jQuery] Hot to remove or replace onclick function

2008-12-06 Thread David .Wu
HTML - div id=navBoxdiv/div/div ul liimg src=images/nav/nav_left.jpg //li liimg src=images/nav/btn_nav1.jpg alt=�P於新�]和�I //li liimg src=images/nav/btn_nav2.jpg alt=�a品展示 //li liimg

[jQuery] Re: Can I make image change only by part of it?

2008-12-03 Thread David .Wu
Hi, my question is, there are maybe many area in one map, how to show different pictures when mouse over each of them. On 11月14日, 上午12時42分, livefree75 [EMAIL PROTECTED] wrote: I couldn't get your link to load, but it sounds like you may need to do something similar to the following. The image

[jQuery] Can I make image change only by part of it?

2008-11-12 Thread David .Wu
http://www.dominos.com.tw/located/located_map.asp like the map on this website, when your mouse over a part of it, it only change the same area.

[jQuery] How to do anything after animate finished

2008-11-11 Thread David .Wu
Hi everybody This my testing gallery slider, it will count image's amount, and prevent it not to outside the wrapper, but I got one problem, if user click button after the animation finished, it's done well, but if user click too fast, the js will not catch the left property in time correctly,

[jQuery] Re: document Ready function in the Ajax Response

2008-11-11 Thread David Wu
could you pose some of your code? On Tue, Nov 11, 2008 at 6:30 PM, ravithokala [EMAIL PROTECTED] wrote: Hi, I have an issue with document.ready. I have a page which will make an ajax call. The response on the ajax call contains script which contains document.ready. The content in

[jQuery] Re: How to do anything after animate finished

2008-11-11 Thread David Wu
ooops, I got another problem, in FF3, CSS property white-space will make image have 3px padding, but in IE, it's not, any good suggestion? On Tue, Nov 11, 2008 at 7:54 PM, Alexandre Plennevaux [EMAIL PROTECTED]wrote: my pleasure :) On Tue, Nov 11, 2008 at 12:53 PM, David Wu [EMAIL PROTECTED

[jQuery] Re: How to do anything after animate finished

2008-11-11 Thread David Wu
) + 'px' isClickable) { isClickable = false; ul.animate({left:'-=50px'},function(){ isClickable = true; }); } }); On Tue, Nov 11, 2008 at 11:06 AM, David .Wu [EMAIL PROTECTED] wrote: Hi everybody