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.
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");
$.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
--
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!
this :
var elem = $('#section_news', data);
is not the right syntax.
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.
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');
>
I think what you want is this:
$(this).parent().parent().*find*(":checkbox.list")
Now you will need to change the header:
header('Content-Type: text/xml; charset=UTF-8');
Try jquery-ui,it contains a dialog widget.
or extend clueTip..
if no better solution out there,implement one yourself, it seems not so
complicated.
you code defined when to enable,disable a button/field,so add the code
there.
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.
specify content type to xml:
header("Content-type: text/xml");
if ($_GET['weather']) {
...
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
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
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
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
maybe you should change it:
$.ajax({
dataType: "xml",
data:{xmldata:d},
success: postSave,
url: saveURL,
type: "PUT",
beforeSend: diagnoser.credManager.getAuthSetterCurrent()
});
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.
>
>
function loginCallback() {//add a callback function to this animation,where
the focus take place.
$("#login_form").show("slide", null, 1000); }
Hello,Try this:
$('#dialog').dialog('option',{width:500})
Hope this helps,good luck
lanxiazhi
I think what you want is this:$('#FieldA').blur(
$('#FieldB').val($('#FieldA').val());
$('#FieldB').valid();
);
windows xp
firefox 3.0.6
jquery:1.3.2(latest release)
script:
$(document).ready(
function()
{
$("a").click(
function(event)
{
alert("Click");
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
26 matches
Mail list logo