urlWithSlash.Append(L"/");
}
+ if(urlWithSlash.Contains("http://") == true)
+ {
+ urlWithSlash.SubString(7,urlWithSlash.GetLength()-7,urlWithSlash);
+ }
+ else if(urlWithSlash.Contains("https://") == true)
+ {
+ urlWithSlash.SubString(8,urlWithSlash.GetLength()-8,urlWithSlash);
+ }
+
+ if(urlWithoutSlash.Contains("http://") == true)
+ {
+ urlWithoutSlash.SubString(7,urlWithoutSlash.GetLength()-7,urlWithoutSlash);
+ }
+ else if(urlWithoutSlash.Contains("https://") == true)
+ {
+ urlWithoutSlash.SubString(8,urlWithoutSlash.GetLength()-8,urlWithoutSlash);
+ }
+
+
+ if((tempUrl.Contains("http://") == true) )
+ {
+ tempUrl.SubString(7,tempUrl.GetLength()-7,tempUrl);
+ }
+ else if (tempUrl.Contains("https://") == true)
+ {
+ tempUrl.SubString(8,tempUrl.GetLength()-8,tempUrl);
+ }
if (bookMarkID.CompareTo(tempParentId) == 0 && (urlWithSlash.CompareTo(tempUrl) == 0 || urlWithoutSlash.CompareTo(tempUrl) == 0 )&& __pEditFieldTitle->GetText().CompareTo(tempTitle) == 0)
{
pSceneManager->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
{
String srcUrl = __pHitElementResult->GetAttributeValue(L"src");
AppLog("MainForm::OnTouchLongPressed srcUrl is %ls",srcUrl.GetPointer());
- LoadUrl(srcUrl);
+ Uri currentUri;
+ currentUri.SetUri(__pWebViewer->GetUrl());
+
+ String newUrl;
+ Uri newUri;
+ newUri.SetUri(srcUrl);
+ AppLog("newuri gethost %ls",newUri.GetHost().GetPointer());
+ if(newUri.GetHost().GetLength() == 0)
+ {
+ newUrl = currentUri.GetHost();
+ newUrl.Append(srcUrl);
+ srcUrl = newUrl;
+ }
+
+ LoadUrl(srcUrl);
}
}
break;
RelayoutControls(false);
AppLog("ABC: OnSceneActivatedN started exit");
if(__pWebViewer)
+ {
AppLog("WebControl's width height %d %d,",__pWebViewer->GetWidth(),__pWebViewer->GetHeight());
+ __pWebViewer->Resume();
+ }
}
delete pWebCanvas;
if(__pAddressbar)
__pAddressbar->SetShowState(false);
+ if(__pWebViewer)
+ {
+ __pWebViewer->Pause();
+ }
AppLog("Coming here");
}
ret = firstRegex.Match(url, false); // This returns true value
flag = secondRegex.Match(url, false); // Checks whether URL typed is of type abc.com (i.e without protocol in front of it)
+
+
if (ret == true && __pWebViewer != null)
{
SetUrl(url);
if (pControl)
{
r = pControl->Start(null, null, &extraData, this);
+ AppLog("AppControl Start %s",GetErrorMessage(r));
// delete pControl;
}