×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    161

    Testing wgt's locally

    I am currently developing a web app for Series 40 using the Nokia Web Tools application. When I click the Local Preview to run my web app, everything works exactly as it should. However, when I try to test my app using the Cloud Preview, while the first page of my web app opens, clicking the button to submit my form does nothing.

    I am new to developing on this platform, I assume it's perfectly ok post a form with an action which points to another html file in the same wgt app (see below code)?

    Code:
    <form id="form" method="get" action="calculate.html">
    Assuming that my code is ok, can anyone else propose a solution to my problem?

    Regards,
    grift.

  2. #2
    Registered User
    Join Date
    Mar 2013
    Location
    United Kingdom
    Posts
    161

    Re: Testing wgt's locally

    Ok, to answer my question, would I be right in saying that splitting your web app across different html files isn't the supported? Looking through all the examples, it seems like it's encouraged to use mwl.toggle to switch between pages.

  3. #3
    Wiki Moderators
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,779

    Re: Testing wgt's locally

    Quote Originally Posted by grift View Post
    Ok, to answer my question, would I be right in saying that splitting your web app across different html files isn't the supported? Looking through all the examples, it seems like it's encouraged to use mwl.toggle to switch between pages.
    Multi-page web apps are not supported.

    From the official best practices guide,
    If your web app is to contain multiple scenes, views, or pages you shouldn’t create separate HTML pages and loading them using mwl.loadURL(). If you do so, you may encounter rendering issues with any pages other than index.html.
    The correct approach is to place the HTML content for each view in its own container (such as a div) in the index.html file. Then, to display a specific view the currently displaying view should be hidden and the required view shown using JavaScript code.
    Pankaj Nathani
    www.croozeus.com

Similar Threads

  1. play file locally while an active call
    By cool_ranjeet in forum Symbian
    Replies: 3
    Last Post: 2009-11-13, 13:01
  2. Web server *locally* on the phone?
    By zumbo_oxinia in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2009-08-06, 18:52
  3. run python script via browser locally
    By alireza.sahami in forum Mobile Web Server
    Replies: 11
    Last Post: 2008-12-20, 11:25
  4. loading SDP file locally
    By gpalvia in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2008-05-12, 19:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •