API Docs for: 7.2
Show:

MQA.LongURL Class

Module: MQA

Creates a LongURL object to handle sending a long url in parts to the server. Useful for getting around the url length limitations of IE when sending in long jsonp requests.

Constructor

MQA.LongURL

(
  • url
  • options
)

Parameters:

  • url String

    the long url to send

  • options Object

    to configure the LongURL instance

    • maxLength Number

      the max length to that each chunk of the url can be, defaults to 1900

    • server String

      the host:port for the long url service, defaults to www.mapquestapi.com

Methods

Methods

getNext

(
  • response
)
private

getNext

Parameters:

send

()

Sends the url in chunks to the long url server, and upon finish the long url server will proxy the actual request and response back to the client.