$.load(../+myModule+/+navTitle+/folders/index.php, function(e){
console.log(e);
$('#folders').replaceWith(e);
return false;
});
try that
robing wrote:
I don't know if this is possible or not but i would like to use
the .load method to return the
Hi Liam,
i got $.load is not a function, any other suggestions??
On Jul 29, 9:57 pm, Liam Potter radioactiv...@gmail.com wrote:
$.load(../+myModule+/+navTitle+/folders/index.php, function(e){
console.log(e);
$('#folders').replaceWith(e);
return
then I'd say use the ajax function.
http://docs.jquery.com/Ajax/jQuery.ajax#options
robing wrote:
Hi Liam,
i got $.load is not a function, any other suggestions??
On Jul 29, 9:57 pm, Liam Potter radioactiv...@gmail.com wrote:
$.load(../+myModule+/+navTitle+/folders/index.php,
Thanks Donny,
$.get(../+myModule+/+navTitle+/folders/index.php, function
(data){
$('#folders').replaceWith(data);
//return false;
},html);
works for me.
On Jul 29, 10:15 pm, Donny Kurnia donnykur...@gmail.com wrote:
robing wrote:
I don't know if this
robing wrote:
I don't know if this is possible or not but i would like to use
the .load method to return the contents of a file but not inject the
code in to the dom because i want to use .replaceWith
( returnedLoadData ).
here is what i have tried so far and i can return the data to e but
the
Surely $(#folders).replaceWith will actually do the - er - replacing ?
L
Liam Potter wrote:
$.load(../+myModule+/+navTitle+/folders/index.php,
function(e){
console.log(e);
$('#folders').replaceWith(e);
return false;
});
try that
robing
Try using $.get - it'll return the data
From http://docs.jquery.com/Ajax/load :
.load : Load HTML from a remote file and inject it into the DOM.
HOWEVER :
.get : Load a remote page using an HTTP GET request.
$.get(../+myModule+/+navTitle+/folders/index.php, { OPTIONAL PARAMETERS
HERE },
7 matches
Mail list logo