• May 03, 2024, 05:29:40 am

Author Topic: how to find the server path in symbian web application  (Read 2672 times)

0 Members and 1 Guest are viewing this topic.

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
how to find the server path in symbian web application
« 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.

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: how to find the server path in symbian web application
« Reply #1 on: May 31, 2013, 02:43:50 pm »
Normally the usual html tags would work
<a href="welcome.html"> link text [/url]

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
Re: how to find the server path in symbian web application
« Reply #2 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.
   

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: how to find the server path in symbian web application
« Reply #3 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

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
Re: how to find the server path in symbian web application
« Reply #4 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]
« Last Edit: May 31, 2013, 04:32:11 pm by lakshmidci »

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
Re: how to find the server path in symbian web application
« Reply #5 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.

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: how to find the server path in symbian web application
« Reply #6 on: May 31, 2013, 06:28:12 pm »
I'll take a look at it for you

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
Re: how to find the server path in symbian web application
« Reply #7 on: May 31, 2013, 06:35:34 pm »
Thank you for your reply i am waiting for your answer.. Thanks a lot

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: how to find the server path in symbian web application
« Reply #8 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 ::) )..

Offline lakshmidci

  • New Member
  • **
  • Posts: 10
  • Reputation: 0
  • Symbian Power User
Re: how to find the server path in symbian web application
« Reply #9 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

Offline Allstar12345

  • Allstar Software Founder
  • Administrator
  • Forum Genius
  • ******
  • Posts: 5,235
  • Reputation: 812
    • Allstar Software
  • Current Phone: : OnePlus 8 Pro, Xperia 10, Nexus 6p, Jolla Phone, Nokia N8, Nokia 808 PureView, BlackBerry Z30
Re: how to find the server path in symbian web application
« Reply #10 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>