Re: Making xajax bookmarkable - a little advice needed

ralf wrote:

I prepared a rsh plugin "tested" with the 0.5 code from the trunk.

It is useable, but there are still some issues:
1 - There is a timeout used when dynamically loading the javascript sources. This should be avoided.
     One could load the js static, but I like the dynamic way with the plugin-idea much more.
2 - At least with IE7 (not tested with IE6 yet) it breaks when hitting F5 with a hash value in the url.
3 - Maybe more...

You can load some demo code from here: http://www.goldenzazu.de/code/xajax_rsh.zip

Man, your plugin for 0.5 is putting something weird on the hashes =/
Eg. www.domain.com/#%3C
I tried to replace the dhtml js file with the original lastest version of RSH but it redirects my page to another that keeps loading forever.
In your example included in the zip the same thing happens, any solution?

Re: Making xajax bookmarkable - a little advice needed

Sorry, it was too late that night and I was overambitious to get something on the net.

The original dhtml.js file uses document.write which causes the redirection when loading the script by addIncludeScript() for some reason. I simply replaced the document.write with document.createElement().

I will continue working on the bookmarking and the timeout. Any suggestion are very welcome!

BTW: I added the test script to my server. So you can give it a quick test there http://www.goldenzazu.de/code

Re: Making xajax bookmarkable - a little advice needed

ralf wrote:

Sorry, it was too late that night and I was overambitious to get something on the net.

The original dhtml.js file uses document.write which causes the redirection when loading the script by addIncludeScript() for some reason. I simply replaced the document.write with document.createElement().

I will continue working on the bookmarking and the timeout. Any suggestion are very welcome!

BTW: I added the test script to my server. So you can give it a quick test there http://www.goldenzazu.de/code

I don't know where are my problem yet cos' even in your example it isn't working. Still getting a weird hash value.
The xajax is sending the right thing (tested with ->alert(~~)) but the javascript is getting the wrong =/

Re: Making xajax bookmarkable - a little advice needed

Hi ralf,

thanks for writing this plugin.
Your Demo works fine in ff but i've got a javascript error in my ie6

I've the also a problem in my application (xajax 0.5 latest trunk version).
In ff everythink works fine an in ie6 i've to make a reload by hand to go back.

Do you have any solution?

Thanks.

Sascha

55 (edited by ralf 2006-11-13 12:28:10 PM)

Re: Making xajax bookmarkable - a little advice needed

Your Demo works fine in ff but i've got a javascript error in my ie6.

I think there is a general IE6 problem in the xajax 0.5 *development* version I'm currently using.
The helloworld.php is not working too. http://www.goldenzazu.de/code/xajax/tru … oworld.php

56 (edited by wojewsky 2006-11-13 12:53:55 PM)

Re: Making xajax bookmarkable - a little advice needed

Uups!!!!

my fault. i've to copy the blank.html to the right position.

Sorry for this post.

------------------------------------------------------------------------------------------

Now i'm using 0.5 beta 1 again (to much problems with the developer version).

In FF everything works fine but in ie6 i've got http404 in the back-list.

Do you know a solution for this error?

Thanks

Sascha

Re: Making xajax bookmarkable - a little advice needed

@ralf,

This one is easy to explain.  You grabbed the development version between updates... we were testing the ability of the XHR object to return header information (such as the content type) of the response... FF is capable, IE is not.  If you update your *development* version from SVN, you will find this code in a try/catch block now.

Please, before posting about issues in the *development* version from SVN, get the latest code and try again; updates will be made often.

@wojewsky,

Because of the nature of the RSH product and the associated plugin(s), I'm not able to determine if the issue you are encountering is related to xajax or RSH or the plugin implementation, etc...  Do you have a link to your page that we could test with?

// Joe

xajax Developer
Connect to me on LinkedIn:
http://www.linkedin.com/in/calledtoconstruct

Re: Making xajax bookmarkable - a little advice needed

@ctc

Please, before posting about issues in the *development* version from SVN, get the latest code and try again; updates will be made often.

My intention for the post above was to explain to Sascha, why he got the javascript error when running the demo.
It was not my intention to open a new issue. I did the highlighting of development to show that I'm aware working with  intermediate code and I'm willing to wait patiently for later revisions. I'm pleased to have access to the latest code to see whats going on. Sorry if it sounded rude.

Thanks for the update.
Ralf

Re: Making xajax bookmarkable - a little advice needed

@ralf,

No, not rude at all and your comment(s) are very much appreciated.

Actually, I only added that sentence as a reminder to others to check for new versions as a lot is changing. smile

Thanks ralf!

// Joe

xajax Developer
Connect to me on LinkedIn:
http://www.linkedin.com/in/calledtoconstruct

Re: Making xajax bookmarkable - a little advice needed

and is this waypointhandling also possible when using several parameters?

e.g. xajax_top_menu('menu6'); -> xajax_top_menu('loadingLabel','menu6');
i ask this since i use in every function an pre-param, used if i wanted to show the user that xajax is loading....

thnx in advance!
Symbiot

[xajax 0.5 RC 2 Minimal]
Sometimes, the sound of goodby is louder than any drumbeat

61 (edited by ralf 2006-11-26 1:40:43 PM)

Re: Making xajax bookmarkable - a little advice needed

and is this waypointhandling also possible when using several parameters?

yes, when adding a waypoint you can pass a string or an array containing additional data:  "addWaypoint($sWaypointName, $aHistoryData)"
your waypoint handler - function waypoint_handler($waypointName, $waypointData) - can then use this data.

62 (edited by kitsibas 2006-12-19 11:55:29 AM)

Re: Making xajax bookmarkable - a little advice needed

hello
check this library: http://advajax.anakin.us/advhistory/advhistory.js

You can use it like this:

<script type="text/javascript" src="advhistory.js"></script>

<script type="text/javascript">
    
        function init() { advHistory.create(setPage); }
        function $(id) { return document.getElementById(id) }
        function $$(id) { return $(id + "h") }
        
        var oldPageName = null;
        function setPage(pageName) {
        
            if (oldPageName !== null && oldPageName != "")
                $$(oldPageName).className = "";
            if (pageName != "")
                $$(pageName).className = "hovered";
            oldPageName = pageName;    
            
            xajax_yourFunction(pageName);

        }
    
</script>
<body onload="init();">

<a href="#1" id="1h">1</a> | <a href="#2" id="2h">2</a> | <a href="#3" id="3h">3</a>

It is only what you need to use this library.

Re: Making xajax bookmarkable - a little advice needed

Hi,

Has some of you have succeeded having rsh working with 0.5 beta 2 ?

On the init, I got an error message on : /xajax_core/xajaxResponse.inc.php

        function &plugin($sName)
        {
                $objManager =& xajaxPluginManager::getInstance();
                $objPlugin =& $objManager->getResponsePlugin($sName);
                $objPlugin->setResponseObject($this);


Am I missing something obvious ? Any help more than welcome.

X+

Re: Making xajax bookmarkable - a little advice needed

@xavier
you may wan't to have a look at this thread http://community.xajaxproject.org/viewt … 8&p=2.
you can also contact me if you still need it and it's still not working.
ralf