[jQuery] Re: catching when a div is updated through js

2009-09-18 Thread lanxiazhi
if use a ajax call,it's like this: $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(data){ $("table").append(data); $("table").trigger("update");... } }); hope helps.

[jQuery] Re: catching when a div is updated through js

2009-09-18 Thread lanxiazhi
As far as I know,there is not such method. but when the data come back through rjs,then you append it to the div,just do one more thing: $("table").trigger("update");

[jQuery] Re: Convert AJAX XML response to HTML

2009-09-18 Thread lanxiazhi
$.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); http://docs.jquery.com/Ajax/jQuery.ajax#options

[jQuery] Re: ID naming conventions and $.scrollTo()

2009-09-18 Thread lanxiazhi
-- What would be another way of clearly identifying an object without the id? you can specify almost any attribute to identify a object. like this: !...@#$%^&+_)(* and use $("[identif...@#$%^&+_)(*]") to fetch the element!

[jQuery] Re: How do I extract a part of received data

2009-09-18 Thread lanxiazhi
this : var elem = $('#section_news', data); is not the right syntax.

[jQuery] Re: Paste an image into a tag...

2009-09-18 Thread lanxiazhi
I think this is not possible,because the browser won't let you access the clipboard for security concerns. but ,you may provide a facility,that can read image from an url given by the user,and display it.also allow user to upload images.that would be enough.

[jQuery] Re: ajax xml question

2009-09-18 Thread lanxiazhi
you may request the a.php directly in the browser ,and see if the charactors display correctly. 2009/9/18 David .Wu > > it's not work actually. > > On 9月18日, 下午6時19分, lanxiazhi wrote: > > Now you will need to change the header: > > header('Content-Type: text/xml; charset=UTF-8'); >

[jQuery] Re: Multi Combined Selectors

2009-09-18 Thread lanxiazhi
I think what you want is this: $(this).parent().parent().*find*(":checkbox.list")

[jQuery] Re: ajax xml question

2009-09-18 Thread lanxiazhi
Now you will need to change the header: header('Content-Type: text/xml; charset=UTF-8');

[jQuery] Re: Show div as overlay with jdialog

2009-09-18 Thread lanxiazhi
Try jquery-ui,it contains a dialog widget.

[jQuery] Re: is there a JQuery solution for multiple sticky tooltips?

2009-09-17 Thread lanxiazhi
or extend clueTip..

[jQuery] Re: is there a JQuery solution for multiple sticky tooltips?

2009-09-17 Thread lanxiazhi
if no better solution out there,implement one yourself, it seems not so complicated.

[jQuery] Re: Is there an onChange method?

2009-09-17 Thread lanxiazhi
you code defined when to enable,disable a button/field,so add the code there.

[jQuery] Re: Reconciling Tablesorter behavior in IE and FF

2009-09-17 Thread lanxiazhi
I think that,you won't need to sort by a image,neither the user will.It makes no sense.just add class="{sorter: false}" to the th in thead.

[jQuery] Re: ajax xml question

2009-09-17 Thread lanxiazhi
specify content type to xml: header("Content-type: text/xml"); if ($_GET['weather']) { ...

[jQuery] Re: (autocomplete) how to have autocomplete use dynamic data (for implementing a search engine's entry field)

2009-09-16 Thread lanxiazhi
your server routine is just a web page,wait for the browser to request.you set up the autocomplete like this: $(..).autocomplete(web_page_url,{options..}).every time when the user press a key,autocomplete will make a request to your web page,you fetch the parameter q,and you will know what the use

[jQuery] Re: (validate) temporary deactivate validate listener of fields

2009-09-16 Thread lanxiazhi
Refer to documentation. 2009/9/17 Sandler > > Hi, im loading data via json dynamical from the server. Now i try to > optimate the speed of my application and so i want to disable the > validate of the fields during the data loading from the server. > Is there a simple solution to this? like vali

[jQuery] Re: selecting elements that match a regular expression

2009-09-16 Thread lanxiazhi
Yes,you can do this. $("[id*=wrap_]").click( function() { var id=$(this).attr("id"); var targetId="elem_"+getNum(id); $("#"+targetId).toggle(); } ); 2009/9/17 macsig > > Hello guys, > is there a way to select elements that match a regular expression? > > I have a set of divs with

[jQuery] Re: Troubles with appending page title and url to social link

2009-09-16 Thread lanxiazhi
You may add these tow lines before set the attr: var url=document.URL; var title=document.title; besides,URL and title is not properties of the window object,you cannot refer to them directly. 2009/9/17 amuhlou > > where are the title and url variables coming from? > > > On Sep 16, 9:05 pm, Jac

[jQuery] Re: Problem using PUT HTTP method with $.ajax

2009-08-27 Thread lanxiazhi
maybe you should change it: $.ajax({ dataType: "xml", data:{xmldata:d}, success: postSave, url: saveURL, type: "PUT", beforeSend: diagnoser.credManager.getAuthSetterCurrent() });

[jQuery] Re: how to access the value of multiple textbox of same name.

2009-08-27 Thread lanxiazhi
var values=$('input[name="location[]"]').map(function() { return $(this).val() } ).get(); this will return an array of values. 2009/8/27 Rupak > > Hi all. > > I have n number of text box (n may be any number) with same name. And > I want to access the value of all the text box of that name. > >

[jQuery] Re: focus() killed by return false;

2009-08-27 Thread lanxiazhi
function loginCallback() {//add a callback function to this animation,where the focus take place. $("#login_form").show("slide", null, 1000); }

[jQuery] Re: SimpleModal autoresize on demand?

2009-08-27 Thread lanxiazhi
Hello,Try this: $('#dialog').dialog('option',{width:500}) Hope this helps,good luck lanxiazhi

[jQuery] Re: previous value ands remote validation

2009-08-27 Thread lanxiazhi
I think what you want is this:$('#FieldA').blur( $('#FieldB').val($('#FieldA').val()); $('#FieldB').valid(); );

[jQuery] jquery not work when firebug in on

2009-08-02 Thread lanxiazhi
windows xp firefox 3.0.6 jquery:1.3.2(latest release) script: $(document).ready( function() { $("a").click( function(event) { alert("Click");

[jQuery] Re: How can I select an element's parent?

2009-08-02 Thread lanxiazhi
hello,I hope this helps: $("#product_links li a").click( function() { alert($(this).parent().attr("class")); } ); > On Aug 1, 11:39 am, macsig wrote: > > Hello guys, > > I'm tr