Hi,
My relative path is like ---> "photos/pic1.jpg"... The relative links turns to absolute... I referred to posts and found your following JS function...
function OnClientPasteHtml(sender, args)
{
var commandName = args.get_commandName();
var value = args.get_value();
if (commandName == "Paste")
{
var domainName = "http://" + window.location.host; //returns the hostname and port number of the current URL
... ... ... ... ...
But the problem is... When it turns to absolute, the URLs become as shown below depending on server.
I have URLs like --> http://www.xyz.com/sms_server1/photos/pic1.jpg and http://www.xyz.com/sms_live/photos/pic1.jpg
Your following code --> var domainName = "http://" + window.location.host; ///// Returns the hostname and port number of the current URL
But it does not return ----> sms_server1 OR sms_live etc...
How can I replace it...
Thanks,
Piyush
My relative path is like ---> "photos/pic1.jpg"... The relative links turns to absolute... I referred to posts and found your following JS function...
function OnClientPasteHtml(sender, args)
{
var commandName = args.get_commandName();
var value = args.get_value();
if (commandName == "Paste")
{
var domainName = "http://" + window.location.host; //returns the hostname and port number of the current URL
... ... ... ... ...
But the problem is... When it turns to absolute, the URLs become as shown below depending on server.
I have URLs like --> http://www.xyz.com/sms_server1/photos/pic1.jpg and http://www.xyz.com/sms_live/photos/pic1.jpg
Your following code --> var domainName = "http://" + window.location.host; ///// Returns the hostname and port number of the current URL
But it does not return ----> sms_server1 OR sms_live etc...
How can I replace it...
Thanks,
Piyush