[jQuery] How to prevent third-party CSS code override our CSS

2009-03-11 Thread Nguyễn Quốc Vinh
I'm using sortable of jQuery UI!
My elements  such as UL tag, LI tag(sortable, dragable,..element) may put
into many template!
And each template have thier own CSS, so, that CSS override CSS of my LI tag

Have anyway to clear all CSS apply on our element, then apply new CSS? Or i
must use !important for all property to prevent overriding!

Take a look on two URL:
http://trademerchants.com/delnow/kurei/dnd//themes/hr/html/index.myTemplate.php

http://trademerchants.com/delnow/kurei/dnd//themes/template1/html/index.myTemplate.php

As you can see, li item appeas in other style because each template have
own CSS

Does anyone know how to prevent this?


[jQuery] Re: Superfish

2009-01-31 Thread Nguyễn Quốc Vinh

I think the issue is more simple than you though!
This
http://www.stcyril.net/site/templates/rhuk_milkyway/images/normal_bg.png
is missing! And you are missing other images! Example:
mw_menu_normal_bg.png,...

Please go to line 42 in green.css and put a correct path, i tried to
put a correct path with Firebug and it works!
Try to put a absolute URL first...



2009/1/31 bklyn2cali s...@mediajelly.com:

 Hi,

 I'm setting up my first Joomla site and had a request to add drop down
 menus. I located Superfish and installed it. Simple, clean, no
 problems. But wait...

 It all works well, except for the fact that there is no background
 image or color on the dropdown items.  I cannot seem to address the
 background of the list items. All are ignored in the superfish.css
 file. The odd thing is that the drop shadow shows up if I opt it. And
 the direction arrows work fine too. I don't know why the bg does not.

 Here's the code that I'm changing that has no effect:

  .sf-menu li {
background: #BDD2FF;  /* this is the superfish default 
 that does not
 appear
background: url('../images/normal_bg.png') 0 0 repeat-x;  /*ths is
 the bg image that does not appear
 }
 .sf-menu li li {
background: #AABDE6;
background: url('../images/normal_bg.png') 0 0 repeat-x;
 }
 .sf-menu li li li {
background: #9AAEDB;
background: url('../images/normal_bg.png') 0 0 repeat-x;
 }
 .sf-menu li:hover, .sf-menu li.sfHover,
 .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
background: #CFDEFF;
background: url('../images/normal_bg.png') 0 0 repeat-x;
outline:0;
 }


 I've been lost many hours on this one and cannot solve it. Can someone
 take a look and see what I'm doing incorrectly? The site is
 http://www.stcyril.net/site/

 Thanks in advance.




-- 
ku...@urbanjar.info
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng
hỡi ôi, chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: How PHP script can return two variables ?

2009-01-30 Thread Nguyễn Quốc Vinh

Very simple!
Please use JSON to return JSON string!
With JSON, we can return value easier than XML!
With XML, you must echo correct tag=))


2009/1/31 GreatBigBore robfbis...@mac.com:

 Have your PHP script return an XML document:

 PHP:

/*
FunctionResult
FunctionStatus success=1 message=Request processed /
/FunctionResult
*/
$document = DOMImplementation::createDocument();
$document-formatOutput = true;
$document-preserveWhitespace = true;

$functionResult = $document-createElement('FunctionResult');
$document-appendChild($functionResult);

$functionStatus = $document-createElement('FunctionStatus');
$functionResult-appendChild($functionStatus);

$success = true;
$message = 'Request successful';

 ...process the request and change $success and $message as
 necessary...

$functionStatus-setAttribute('success', $success);
$functionStatus-setAttribute('message', addslashes($message));

// Now respond to the requestor
Header(Content-type: text/xml, 1);
echo $document-saveXML();
error_log($document-saveXML());

 Javascript:

$.post('http://' + serverName + '/ajax.php',
{   'function' : 'getEfforts',
'parameter1' : something
},

function(xml) {
/*
FunctionResult
FunctionStatus success=1 message=Request 
 processed /
/FunctionResult
*/
var statusNode = $('FunctionStatus', xml).get(0);
var success = 
 intToBool(statusNode.getAttribute('success'));
if(success === true) {
} else {
}
}
);




-- 
ku...@urbanjar.info
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng
hỡi ôi, chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: When to use LiveQuery plugin

2009-01-19 Thread Nguyễn Quốc Vinh
I always avoid to use LQ!
I think that JavaScript has private behaviour!
JS is not like CSS!
Please ask yourself  to find out a way which you don't must use LQ!

2009/1/19 Brandon Aaron brandon.aa...@gmail.com

 It really depends on how you are using LiveQuery. If you are using it only
 to bind events to new elements then you should switch over to live. That is
 unless one of the events you are binding is one of the event types that does
 not bubble. Check the documentation for the events that are currently not
 supported by live. http://docs.jquery.com/Events/live#typefn

 If you are using the function based livequeries then you should stick with
 LiveQuery and upgrade to the git version.
 http://github.com/brandonaaron/livequery/tree/master

 --
 Brandon Aaron


 On Mon, Jan 19, 2009 at 10:23 AM, Terry tarik.alka...@gmail.com wrote:


 Is it known when one might wish to continue to use the LiveQuery
 plugin itself with version 1.3+ of the jQuery library? That is, if I
 upgrade, is there any reason to keep the LQ plugin around?

 On Jan 14, 3:16 pm, MorningZ morni...@gmail.com wrote:
  first off all...  the purpose (and advantage of)LiveQueryis that
  when new matching items are added, they will automatically be wired
  up...
 
  secondly, one thing to look at is the just-released-today version of
  jQuery (1.3), it now has a .live handler that will effectively do
  what the plugin does
 
  http://docs.jquery.com/Events/live#typefn
 
  On Jan 14, 3:07 pm, ocptime mail.samgeo...@gmail.com wrote:
 
   Hi all,
 
   I had seen a new plugin called LiveQuery and i have some questions
   that are not yet completely answered when i read its documentation.
 
   I am using jquery.form.plugin, My questions is when to uselivequery
   and what is it's advantages.
   is it possible to uselivequeryin conjention with the form plugin.
 
   can u pls cite me a small sample code or some pointers on the web
   where both are used.
 
   Thanks in advance
   ocptime





-- 
ku...@urbanjar.info
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Sorry for off topic! Why does it has some css work fine in FF and negative on IE?

2009-01-19 Thread Nguyễn Quốc Vinh
I'm sorry for off-topic! I know this is jQury mailing list!
But does anyon help me solve this?
I'm working on this:
http://www.myspace-layouts-free.com/NEW
My CSS work fine in FF!
But it negative work on IE!
I can not figure why!
It's weird!

-- 
ku...@urbanjar.info
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: Dialog - Can't Copy or Select Text

2009-01-12 Thread Nguyễn Quốc Vinh
I had ever had same problem!
The issue because of having a layer mask on top of our Dialog layer! So, we
can not select text of under layer!
Try debug with firebug and you will realize!


2009/1/12 sirmoreno sirmor...@gmail.com


 Hi,
 I Set up a JQuery Dialog in my site.
 But in FF the user can't select or copy text from the Dialog.
 And in IE Ctrl + C doesn't work after selecting a text.
 Another Question: how to disable the resizing of the Dialog.
 Thanks
 Rafael.




-- 
ku...@urbanjar.info
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] CSS problem on IE6?

2008-12-23 Thread Nguyễn Quốc Vinh
Yes, i know this is jQuery group!
But i'm on working and i really need help from someone:(!
This is an Joomla site which display in IE7,FF! But it is wrong in IE6!
I don't understand why! It's so trange!
This is test site
http://www.bluesilverdesign.com/brown-stone/
View it with Ie6 and you will see problem right now!
Does anyone have any suggestions?
Thanks so much!


-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] jquery.noConflict, $j is not a function in some case(Not always) on the same page

2008-12-12 Thread Nguyễn Quốc Vinh
This is my site Mychico.com!

I intergate an Ajax IM into site, this IM use prototype! So, i must use
jquery.noConflict

I don't know why sometimes, FF notice that $j is not a function!

it is not always happen! just in some cases!
Referesh about 10 times then 2 times hapen $j is not a function! And since
it report $j is not a function! We only need clear cache then refresh page
then this is not happen! But refresh more times, it report $j is not a
function again!
It's so strange?
Does anyone have problem like me?


-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] JQmodal:Close button doesn't appear in IE6,7

2008-12-09 Thread Nguyễn Quốc Vinh
 I use JqModal for my own site! http://swoop.homelinux.org/mychico/
At the bottom of page, have a link
Advertise ads_request.php | About Us about_us.php | Contact
Uscontact_us.php| Privacy
Policy privacy_policy.php | Promote Our Site aff_banner_code.php | Terms
Of Service terms_sevices_footer.php

Advertise is a jqModal link! With firefox, click on Advertise, dialog is
open and i can see close button!
But with IE7, the close button doesn't appear!
Could anyone help me to solved this?

-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: JQmodal:Close button doesn't appear in IE6,7

2008-12-09 Thread Nguyễn Quốc Vinh
This is link again! http://mychico.homelinux.org/
Thanks so much!
I will try!

2008/12/9 donb [EMAIL PROTECTED]


 Bad link - page not found.

 Carefully look over the CSS, the button may need a float, or may have
 one that should be removed.  I have seen this exact behavior and IE
 was positioning the button outside the boundaries of it's container so
 it was not visible.  In my case, once I adde a float to the button, it
 returned to the correct location in IE, looking just like it did in
 Firefox.

 On Dec 9, 8:12 pm, Nguyễn Quốc Vinh [EMAIL PROTECTED] wrote:
   I use JqModal for my own site!http://swoop.homelinux.org/mychico/
  At the bottom of page, have a link
  Advertise ads_request.php | About Us about_us.php | Contact
  Uscontact_us.php| Privacy
  Policy privacy_policy.php | Promote Our Site aff_banner_code.php |
 Terms
  Of Service terms_sevices_footer.php
 
  Advertise is a jqModal link! With firefox, click on Advertise, dialog is
  open and i can see close button!
  But with IE7, the close button doesn't appear!
  Could anyone help me to solved this?
 
  --
  /
  * Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi
 ôi,
  chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
  */




-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: Mootools and Jquery conflict

2008-10-13 Thread Nguyễn Quốc Vinh
@MorningZ
I have just had the same problem and it was solved as u help!
Thanks in advance!

2008/10/3 MorningZ [EMAIL PROTECTED]


 You've got $j being used in the last block, but no where do you
 define what $j is

 so, right after your line

 script type=text/javascript src=jquery.js/script

 tell the page what $j is supposed to mean:

 script type=text/javascriptvar $j = jQuery.noConflict();/script


 All this is clearly laid out right on this Wiki page

 http://docs.jquery.com/Using_jQuery_with_Other_Libraries




 On Oct 3, 5:55 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hey guys,
  sorry to bother you with this one, I read the pages about the
  nonconflict script etc,...but I 've spent the whole day trying to
  figure out how to solve this.
 
  Basicly I have a script made on a mootools library.
  I now want to add jQuery's Fancybox to the page. When I do this my
  mootools accoridon style menu won't work anymore.
  When I delete the jQuery.js file it works again.
  I understand its a problem with the '$' which is used in both scripts.
  But I really cant find the way to solve it by using the nonconflict
  way.
 
  I will post the code I have in my head.
  Only the last rules of the script are jQuery lines.
  All the rest is either the mootools script, and a dynamic content
  script I use (but this one doenst hav any conflict with either
  mootools as jQuery.
 
  I really hope someone can get me on my way since I am quite a beginner
  in javascript.
  Thanks
 
  !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=iso-8859-1
  script type=text/javascript src=htr_ex2_bestanden/mootools2.js/
  script
  script type=text/javascript src=htr_ex2_bestanden/ajax-dynamic-
  content.js/script
  script type=text/javascript src=htr_ex2_bestanden/ajax.js/
  script
  link rel=stylesheet type=text/css href=fancy.css
  media=screen /
 
  script type=text/javascript src=jquery.js/script
  script type=text/javascript src=jquery.metadata.js/script
  script type=text/javascript
 src=jquery.pngFix.pack.js/script
  script type=text/javascript src=jquery.fancybox.js/script
 
  script language=javascript
 
  !--
  function changeColor(obj,color){
  obj.style.backgroundColor = color;}
 
  function ClearForm() {
document.testform.email.value= ;
 
  }
 
  /script
  script type=text/javascript
  window.onload = function(){
  //select the first button
  var button1 = $('button1');
  //select the second button
  var button2 = $('button2');
  //select the first content element
  var content1 = $('contentElement1');
  //select the second content element
  var content2 = $('contentElement2');
 
  //The height transition we attach to 'contentElement1'
  var b1Toggle = new Fx.Style('contentElement1', 'height',{duration:
  500});
  //The height transition we attach to 'contentElement2'
  var b2Toggle = new Fx.Style('contentElement2', 'height',{duration:
  500});
 
  //add an onclick event listener to button1
  button1.addEvent('click', function(){
//toggle height transition (hide-show)
if(content2.getStyle('height').toInt()  0){
  //hide
  b2Toggle.start(0);
}if(content1.getStyle('height').toInt()  0){
  //hide
  b1Toggle.start(0);
 
}else{
  //show
  b1Toggle.start(c1Height);
 
}
 
return false;
 
  });
 
  //add an onclick event listener to button2
  button2.addEvent('click', function(){
//toggle height transition (hide-show)
if(content1.getStyle('height').toInt()  0){
  //hide
  b1Toggle.start(0);
}if(content2.getStyle('height').toInt()  0){
  //hide
  b2Toggle.start(0);
}else{
  //show
  b2Toggle.start(c2Height);
}
 
return false;
 
  });
 
  //set css display:block for the contentElements
  content1.setStyle('display','block');
  content2.setStyle('display','block');
 
  //get the scrollSize of the contentElements
  var c1Height = content1.getSize().scrollSize.y;
  var c2Height = content2.getSize().scrollSize.y;};
 
  /script
 
  script type=text/javascript
  $j(document).ready(function() { $j(p#test1 a).fancybox();
  $j(p#test2 a).fancybox({ 'hideOnContentClick': true }); $j(p#test3
  a).fancybox({ 'zoomSpeedIn': 0, 'zoomSpeedOut': 0, 'overlayShow':
  true }); });
 
  /script




-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: Select next element ...

2008-02-16 Thread Nguyễn Quốc Vinh
Hey, u can use
$(this).next().toggle();

You should read Traversing section of jquery document, it describe
clearly similar methods(next,prev,siblings...)

On 16/02/2008, Daniele [EMAIL PROTECTED] wrote:

 I have some troubles with my project. Here it is the problem:

 I have an HTML like this

 a href=click/a
 div  /div

 a href=click/a
 div  /div

 

 When I click on the link i want to change its class and toggle the
 div below without using any ID.
 I have no problem changing the link, but I can't find a way to select
 the FIRST next element.

   $(a).click(function () {
 $(this).attr({className: new-class});
 $(this +  + div).eq(0).toggle();
   }

 I though something like this would work, but it doesnt.
 How can i select the first next element after my click element?

 daniele








-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng
hỡi ôi, chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: Firefox 3 beta

2008-02-10 Thread Nguyễn Quốc Vinh
I think it don't have so many people use ff3!
So, ur work ( try to force working fine under ff3) is not useful!

On 08/02/2008, kenneth [EMAIL PROTECTED] wrote:

 ah great,

 that is quite good news,
 we will try the new release of jquery 1.2.3 wednesday, i ll keep you
 posted.
 Thx for the quick response.

 Kenneth

 On 7 feb, 18:23, John Resig [EMAIL PROTECTED] wrote:
  Are you .load()ing HTML with a JavaScript snippet in it? If so, then
  that's a bug in Firefox 3 and it will be resolved before release. Or
  you could use jQuery 1.2.2 and newer - which will work with Firefox 3
  just fine.
 
  --John
 
  On Feb 7, 2008 5:01 AM, kenneth [EMAIL PROTECTED] wrote:
 
 
 
   Hello everybody
 
   I recently installed the new beta version of firefox 3
   I thought it would accept everything we are now designing on a new
   website but unfortunatly it doesn't accept all jquery code.
 
   for example:
   .load of a specific php file in an other div doesn't seem to work
   anymore.
   This is quite a problem.
 
   Are there going to be fixes in Jquery for firefox 3? or is this a
   symptom that will dissapear when there is an official release of
   firefox?
 
   These changes are quite important for us, and i guess for thousand
   other users...
 
   thx in advance
   kind regards
   K



-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng
hỡi ôi, chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: autosave textarea to cookie

2008-01-01 Thread Nguyễn Quốc Vinh
Yes, autosave textarea is not possible! But u can autosave to a file on ur
host to server for ur work!
We can write a function to send request to a php file(php file will save ur
data to a file)!
And a setTimeout to that function!

Save to cookie, as pcdinh said, it's impossible!
Cai i give you a question?
Why do u want to autosave textarea?
Perhap, u do so in order to can fill that textarea's content in somewhere?
If so, simply, plz save it to a file!

On 31/12/2007, pcdinh [EMAIL PROTECTED] wrote:


 Modern browser allow 4KB per cookie only. So autosave textarea is not
 possible at any time.

 On Dec 31, 10:30 am, Fayland Lam [EMAIL PROTECTED] wrote:
  hmm, main idea here is autosave textarea. thanks any way. I already
  got one. :)
 
  On Dec 31, 10:17 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 
   Fayland Lam schrieb: is there any plugin for that? does anyone use
 one?
 
   There is a cookie plugin:
 http://www.stilbuero.de/2006/09/17/cookie-plugin-for-jquery/




-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] form element inside div element don't effect by style:display attribute of div

2007-12-31 Thread Nguyễn Quốc Vinh
I have a div element! And insite it have a form element as the following:
I set display attribute is none, but the form still appear!
If i insert some text into div (but outside form then that text don't
display!
But the text which is inside form then still display!
I think that form element was effect by display attribute of div!

I also do $(#AddCatWrap).hide(), but the form still displau

div id='AddCatWrap' style=display:none;
form name=addcat method=POST action=#
input type=text name=cat-name value= size=10 /
input type=button name=save-button value =Save
/
input type=button name=cancel-button value
=Cancel /
/form
/div
Anyone show me the solution!
Thank in advance!

-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: Select the parent of current element!

2007-12-27 Thread Nguyễn Quốc Vinh
Thank you very much, Karl(It's seems that you are in german)
It's work well and i known much about wonderful parent method!
Again, thank you!

On 17/12/2007, Wizzud [EMAIL PROTECTED] wrote:


 $(input.saveButton).click(function () {
   alert( $(this).parent().find('input:first').val() );
 });

 or

 $(input.saveButton).click(function () {
   alert( $(this).siblings('input').eq(0).val() );
 });


 On Dec 16, 9:33 am, Karl Delandsheere [EMAIL PROTECTED]
 wrote:
  Hi!
 
  Did you try this:
 
  $(document).ready(function () {
  $(input.saveButton).click(function () {
 
var parent = this.parentNode;
alert(parent);
 
  });
});
 
  And if you want to get the jQuery object, $(this.parentNode).
 
  Anyway, you have the parents() method.
 
  Hope that I helped :).
 
  On Dec 16, 6:20 am, Nguyễn Quốc Vinh [EMAIL PROTECTED] wrote:
 
   I have this followwing form:
   form name=editor action=index.php method=POST
   nput type=text name=id value=100 /
   nput type=text name=title value=cat title /
   input type=button class=saveButton name=Save value=Save /
 
   /form
   I want whenever user clicks on Save  Button, it will select the parent
   element of button(in my case, it is FORM element),
   then get the value of first input box in form!
   I tried this but it's not working:
 
 $(document).ready(function () {
 
   $(input.saveButton).click(function () {
 var i=$(../form/input:eq(0),this).val();
 alert(i);
 
   });
 
 });
 
   Coud anyone show me a solution?
   --
   /
   * Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng
 hỡi ôi,
   chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
   */




-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: jquery.com down?

2007-12-27 Thread Nguyễn Quốc Vinh
I have the same thing when accessing jquey.com!


On 27/12/2007, Pierre [EMAIL PROTECTED] wrote:


 Seems like database issue (got a database timeout error when trying to
 access the wiki). Worked the second time after a while tho

 On Dec 26, 11:23 am, traunic [EMAIL PROTECTED] wrote:
  getting timeouts when attempting to go tohttp://jquery.com/




-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Select the parent of current element!

2007-12-15 Thread Nguyễn Quốc Vinh
I have this followwing form:
form name=editor action=index.php method=POST
nput type=text name=id value=100 /
nput type=text name=title value=cat title /
input type=button class=saveButton name=Save value=Save /

/form
I want whenever user clicks on Save  Button, it will select the parent
element of button(in my case, it is FORM element),
then get the value of first input box in form!
I tried this but it's not working:


  $(document).ready(function () {

$(input.saveButton).click(function () {
  var i=$(../form/input:eq(0),this).val();
  alert(i);

});

  });

Coud anyone show me a solution?
-- 
/
* Người ta thưởng chỉ chú ý đến những kẻ lên như diều gặp gió! Nhưng hỡi ôi,
chỉ có cát, bụi và lông hồng mới là những thứ lên nhanh nhất
*/


[jQuery] Re: Escape HTML Entities

2007-12-11 Thread Nguyễn Quốc Vinh
Hi, i'm vietnamese! We use much à ấ ú ù ổ...,too! I set character to UTF-8!
I sent data in input field with POST method! And all is ok!
U try to set character is UTF-8 as me!

id12titleHôn nhân
DateTue, 01 Jan 2002 07:48:38 GMTServerApache/2.2.6 (Win32) PHP/5.2.4
X-Powered-ByPHP/5.2.4ExpiresThu, 19 Nov 1981 08:52:00 GMTCache-Controlno-store,
no-cache, must-revalidate, post-check=0, pre-check=0Pragmano-cache
Content-Length144Keep-Alivetimeout=5, max=100ConnectionKeep-Alive
Content-Typetext/xmlRequest Headers
HostlocalhostUser-AgentMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.8.1.9) Gecko/20071025 Firefox/2.0.0.9Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
0.8,image/png,*/*;q=0.5Accept-Languageen-us,en;q=0.5Accept-Encoding
gzip,deflateAccept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive300
Connectionkeep-aliveContent-Typeapplication/x-www-form-urlencoded
X-Requested-WithXMLHttpRequestReferer
http://localhost/lifecolor/man/index.php?act=mancatContent-Length32Cookiemaintab=register;
uid=1; upass=34d365d5c03ce54fc4ecab4e11206120;
mnm_key=Z29kOjIyNjlvT1NrdkJ6NVE6ZmU4M2QyNDg0ZWZhZDA2NGYxYzI2NDU2YWY5Y2UxMGY%3D;
mnm_user=god; style=null; PHPSESSID=f4a47c2e181438c1f85351cd3b5a3557Pragma
no-cacheCache-Controlno-cache

2007/12/12, jimmeah [EMAIL PROTECTED]:


 Hej everyone, i got some problems on html entities within my script.

 I am kinda building a CMS, but it is for a swedish website, so they
 use lots and lots of öäë.

 Now I gather my input fields from the document and post it to a php
 file like this:

 --

 $(.createpreview).click(function()
   {
 $(#previewform).children().each(function()
 {
 $.get(import/createpreview.php, { fieldname: $
 (this).attr(name), text: $(this).attr(value) });
 });
   }


 For instance i have an input field which says:

 * Välkommen

 but when sending the document created is

 * GET
 http://localhost/cms/import/createpreview.php?fieldname=titletext=V%C3%A4llkommen
 (281ms)

 My database displays:

 * vã¤llkommen

 And my fetched result back into the page displays:

 * v�llkommen

 How can i solve this problem? And where is my capital going to!? I
 know about html entities and html enities converters like
 http://www.w3clubs.com/htmlentities.php but when i apply such html
 entity converter my results turn into:

 * vamp;auml;llkommen

 which is near what i want it to be, but still no caps and i want it
 just to be

 * Vauml;llkommen


 could someone help me out with a quick solution?




-- 
-
Khi bàn luận nghiêm túc:
1) Lòng tự ái càng cao thì lòng tự trọng càng thấp.
2) Tôi chưa thấy bao giờ có nghĩa là kiến thức còn hạn hẹp.
3) Đâu/ai mà chẳng thế đồng nghĩa với sự đoán mò  vơ đũa cả nắm.
/

Nguyễn Quốc Vinh
59/29 Duy Tân - Huế
+84-975001226
+84-988433498


[jQuery] Re: jQuery API Reference in CHM

2007-12-07 Thread Nguyễn Quốc Vinh
Thank in advance! I'm in Vietnam! I don't have adsl at home! i must go to
internet cafe and spent much money!

2007/12/7, Cloudream [EMAIL PROTECTED]:


 thanks a lot. ^^ jquery.com is slow in China, this is pretty useable

 On 12月7日, 下午5时49分, char101 [EMAIL PROTECTED] wrote:
  Hi,
 
  This is (yet another, if there is any) API reference of jQuery in CHM
  format
 
  http://charupload.wordpress.com/2007/12/07/jquery-documentation-chm/
 
  The pages are taken directly fromhttp://docs.jquery.com/Main_Page
  because I unfortunately know that there is a documentation in xml
  after creating the CHM :P
 
  --
  Charles




-- 
-
Khi bàn luận nghiêm túc:
1) Lòng tự ái càng cao thì lòng tự trọng càng thấp.
2) Tôi chưa thấy bao giờ có nghĩa là kiến thức còn hạn hẹp.
3) Đâu/ai mà chẳng thế đồng nghĩa với sự đoán mò  vơ đũa cả nắm.
/

Nguyễn Quốc Vinh
59/29 Duy Tân - Huế
+84-975001226
+84-988433498