Hi Klaus

Thanks for all the great work you are doing on this forum especially,
besides ofcourse with the plugins (Tab plugin I am really impressed with)
and now that you have joined the jquery team I see more goodies coming.

I am also trying to do someting like this. I want to use your history plugin
in joomla CMS. I can load the pages by ajax but the back functionality was
lacking. After seeing your plugin I thought of redoing this Ajax loading of
my joomla website.

the links in joomla are like index.php?option=content.....
to load a page with ajax I need to replace index.php with index2.php and I
was doing in with onclick handler like this
$("a").click(function(){
        
        var url=this.href.split('/');
                
        var link=(url[url.length-1]);
        var linkid=(link.replace(/index/, "index2")); 
       
          $("#mainbody").fadeOut().hide().load(linkid).fadeIn();
          return false;
    });

which works however without back functionality.
Now I want to use your history plugin but I cant figure out how. I played
with it a bit but everytime I get it to load a page, it somehow keeps
reloading the page continuously.

Can you please guide me as to how I can do it correctly. basically I want to
dynamically convert every link on click from index.php/.... to
index2.php/.... and then load this page by AJAX along with the hash
appending with it so that I can use back function of your plugin.

thanks
vik

Klaus Hartl wrote:
> 
> Vaska schrieb:
>> No, it's not. I did the worst job trying to explain in that previous  
>> email - english really is my native language!
>> 
>> First of all, I get 'remote-4' in the address bar when I click a link  
>> - I believe this is what history/remote does. My link will look like  
>> this...
>> 
>>  #/project/fourteen/ Project 14 
>> 
>> I want #/project/fourteen/ to appear in the browser address space.
>> 
>> I need to pass this hash via ajax...hence the need to actually create  
>> some post variables. Unless i'm totally not implementing this right,  
>> I don't see how I can do this with remote().
>> 
>> Currently, because the correct information is not flowing, only the  
>> same page is being returned...once again, which is why I hope to be  
>> able to customize the $_POST portion of this.
> 
> 
> I understand. I think I can enhance my plugin so that you are able to 
> specify what the generated hash will look like and also that this 
> information is passed to the request. It's still a GET request though...
> 
> 
> -- Klaus
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/history-remote-question-tf3161501.html#a8778932
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to