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,
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) {
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\
.
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
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?
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,
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?
div/div
div style=position: absolute/div
$('div').each(function() {
// How to know the div have position property or not?
});
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'));
= (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
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
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),
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
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']) {
...
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
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
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
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');
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}, '',
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
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
Is there any plugin can let me save the part of pag as pdf?
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
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
a.php
iframe src=b.php/iframe
..
script
var a = 123;
/script
Can I catch variable a in b.php?
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
if I have 3 div, how to filter the div without class abc?
div/div
div class=abc/div
div/div
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
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
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;
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
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() {
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?
我今天有兩個放大縮小按鈕,想讓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
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
**
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
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
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
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) {
Can I remove div1 but div2 keep there?
div id=1
div id=2/div
/div
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 =
Can I make image vertical or horizontal flip by jQuery?
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
img src=images/xxx.gif
$('img').attr('src') - This will get images/xxx.gif
How to get xxx.gif by jQuery?
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
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
If I got a 400px width div, can I get the offset left distance from
mouse to the div in where I click?
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.
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
');
} 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
for example
.box {
background-image: url(images/png_back.png);
}
div class=box/div
Can I filter the div which have backround-image?
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
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
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?
I found it's not work in IE7 with flash, is it?
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?
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://
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
for example, how to find biggest div height under box.
div id=box
div./div
div./div
div./div
/div
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
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.
, 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
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.
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
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
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/
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
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
- -
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
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?
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?
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
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
- 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
($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
($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
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
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()
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
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
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
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
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
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 /
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://
() 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
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
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++)
{
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)}
..
...
...
});
: 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
()
{
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
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
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
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.
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,
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
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
) + '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
98 matches
Mail list logo