Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: AJAX URLs?

  1. #1
    Regular Coder
    Join Date
    Mar 2008
    Posts
    301
    Thanks
    2
    Thanked 30 Times in 30 Posts

    AJAX URLs?

    If you 'AJAX' a lot, and import css and new scripts, one can create the equivalent of a hundred pages without changing the URL - without leaving the original page.

    If one wanted to page back or forward through the changes - it would require different URLs. But since making sense of some arbitrary URL 'search' code for each step along the way and for session/user would require a backend database, has anyone written scripts that 'secretly' record in the db for particular users/sessions certain changes to the page and then intercept the forward and back buttons and query the server scripts to send out what had been previous, and following?

    Or is it that nobody is so to the point of placing so much under the same URL - and for just that reason?

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,401
    Thanks
    11
    Thanked 595 Times in 575 Posts
    changing the location.search would refresh the page.

    you can use cookies to leave a breadcrumb to the page's contents.
    this would all be client-side, and you only need read access to the server.

    you could also use a DB, but that requires 2way communication.
    there is no way to hide the http transactions.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • #3
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts
    maybe use ajax to get pages and put them in a container, and juts for each page update the container.

  • #4
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Google: Really Simple History

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • Users who have thanked A1ien51 for this post:

    fside (05-30-2009)

  • #5
    Regular Coder
    Join Date
    Mar 2008
    Posts
    301
    Thanks
    2
    Thanked 30 Times in 30 Posts
    Quote Originally Posted by A1ien51 View Post
    Google: Really Simple History

    Eric
    Google project - page state as a bookmark.

    Yep, that's exactly what I was talking about. And they've got this whole app, and web board, and everything devoted to it.

    Thank you, very much.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •