REST API and the location bar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • 2ni

    REST API and the location bar

    Hi,

    I'm creating an AJAX application using a REST API. I would like to
    avoid to reload the entire app when the user types a new URL in the
    location bar and instead translate it into a XMLHttpRequest.

    I think this would be possible if there were any ways to use an
    onbeforeunload event handler silently (without the confirm popup) but I
    don't think its possible.

    Any ideas about this?

    Thanks,
    Denis Laprise

  • Lee

    #2
    Re: REST API and the location bar

    2ni said:[color=blue]
    >
    >Hi,
    >
    >I'm creating an AJAX application using a REST API. I would like to
    >avoid to reload the entire app when the user types a new URL in the
    >location bar and instead translate it into a XMLHttpRequest.
    >
    >I think this would be possible if there were any ways to use an
    >onbeforeunlo ad event handler silently (without the confirm popup) but I
    >don't think its possible.
    >
    >Any ideas about this?[/color]

    I'll uninstall any browser found to allow that.
    When I type an URL in the location bar, I don't want there
    to be any chance of a malicious web site intercepting it and
    taking me to a site that simply *looks* like my bank.

    Comment

    Working...