Symbian-Developers

The Official Developers Section => Symbian Software Development Discussions => The Developers Section => Symbian Web Runtime => Topic started by: lakshmidci on May 31, 2013, 12:42:07 pm

Title: how to find the server path in symbian web application
Post by: lakshmidci on May 31, 2013, 12:42:07 pm
Please anyone can help me out i could not able to find the server path for the .html file inside the application folder.
Title: Re: how to find the server path in symbian web application
Post by: Allstar12345 on May 31, 2013, 02:43:50 pm
Normally the usual html tags would work
<a href="welcome.html"> link text [/url]
Title: Re: how to find the server path in symbian web application
Post by: lakshmidci on May 31, 2013, 03:58:51 pm
      alert(window.location.pathname);
      var url = "file:///c:/private/10282822/com.WRT.widget/WRT/Welcome.html";
                widget.openURL(url);
In the above code, file could not be open Welcome.html. This Welcome.html file has also located in WRT folder,p lease help me out.
   
Title: Re: how to find the server path in symbian web application
Post by: Allstar12345 on May 31, 2013, 04:06:19 pm
Get rid of the "file:///c:/private/10282822/com.WRT.widget/WRT/"
it should work just pointing to Welcome.html
Title: Re: how to find the server path in symbian web application
Post by: lakshmidci on May 31, 2013, 04:27:02 pm
I already tried the step above you mentioned, herewith i have attached my code please go through because i am struggling with this problem for the 20 days.

[attachment deleted by admin]
Title: Re: how to find the server path in symbian web application
Post by: lakshmidci on May 31, 2013, 05:11:32 pm
As per your reply i have used
var url = "Welcome.html";
Widget.openurl(url);

but i am getting "browser unable to connect to the website" error while navigating.
Title: Re: how to find the server path in symbian web application
Post by: Allstar12345 on May 31, 2013, 06:28:12 pm
I'll take a look at it for you
Title: Re: how to find the server path in symbian web application
Post by: lakshmidci on May 31, 2013, 06:35:34 pm
Thank you for your reply i am waiting for your answer.. Thanks a lot
Title: Re: how to find the server path in symbian web application
Post by: Allstar12345 on May 31, 2013, 06:46:36 pm
I've looked, and was honestly puzzled, it is the right code for sure, I launched it from the default browser which seemed to load it better, with both input boxes, the button and the link ( I created a separate html file and linked it in, loaded fine, but the WRT launcher doesn't ::) )..
Title: Re: how to find the server path in symbian web application
Post by: lakshmidci on May 31, 2013, 06:57:25 pm
Do u have any idea for page navigation, because i am very new to symbian application. Please help me
Title: Re: how to find the server path in symbian web application
Post by: Allstar12345 on May 31, 2013, 08:16:38 pm
Something like this [a image link] should work, but doesn't want to work from the WRT viewer :-\

Code: [Select]
<a href="index.html"><img src="back.png" alt="back" width="70" height="70" align="center"></a>