
March 11th, 2013, 03:13 PM
|
|
Moderator
|
|
Join Date: Jun 2002
Location: Raleigh, NC
|
|
|
The same rules apply to JavaScript code: use absolute or relative URLs, and avoid hardcoding the full URL with protocol. If the full URL is required, dynamically build the URL based on the current protocol.
Unfortunately there's no magic solution for this, and it applies to every web application ever written that needs to dynamically switch between protocols.
|