Hmm looks like this.href is the full url.
Is there a defined way to strip the host etc so it just leaves the path.
Ideally id just want to put a number in and handel the rest in the
function, ie for paging numbers in a datagrid list.
Dan Rossi wrote:
Hi here is the updated code
$(docu
Hi here is the updated code
$(document).ready(function(){
$("a.nav").click(function(event) {
$("#content").load(this.href);
event.preventDefault();
});
$('a.view').livequery('click',function(event) {
alert('clicked');
return false;
Apologies, looks like i got it working now
$('a.view').livequery('click',function(event) {
$("#content").load("/index/view/episode/" + this.href);
return false;
});
Good stuff !
\Karl Swedberg wrote:
>
>
> On Aug 22, 2007, at 5:41 AM, electroteque wrote:
>
>>
>> Hi there,
On Aug 22, 2007, at 5:41 AM, electroteque wrote:
Hi there, im having issues binding a click to links displayed after an
ajax call into a layer.
Here is what I have so far
$("#content a.view").click(function(event) {
alert(this.href);
return false;
Can you post your ajax call? Ultimately, the code you provided should be
put in the call back to the ajax call.
On 8/22/07, electroteque <[EMAIL PROTECTED]> wrote:
>
>
> Hi there, im having issues binding a click to links displayed after an
> ajax call into a layer.
>
> Here is what I have so far
5 matches
Mail list logo