×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    47

    how to write a code in java script to vibrate the mobile ?

    Hi all,
    I want to know how to write a code in javascript to make the mobile vibrates.Is it possible to vibrate mobile with java script code?

    please help me in this ,it's very important for my application.

    Thanks
    Mehraj

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: how to write a code in java script to vibrate the mobile ?

    Wiki WRT widget section would be nice place to start searching, did that this time for you and here's one link: http://wiki.forum.nokia.com/index.ph...bration_in_WRT

  3. #3
    Registered User
    Join Date
    Sep 2008
    Location
    Manaus, Brazil
    Posts
    109

    Re: how to write a code in java script to vibrate the mobile ?

    Hi mehraj123,


    It's hard . You just put this code in the html:

    Code:
     <embed type="application/x-systeminfo-widget" hidden="true" style="position: absolute; top: -100px;">
    And the code javascript is:

    Code:
    if (document && document.embeds && document.embeds[0]) {
                try {
                    var sysinfo = document.embeds[0];
                    sysinfo.startvibra(100, 100);
                } 
                catch (e) {
                    //alert("error: " + e);
                }
            }

  4. #4
    Registered User
    Join Date
    Jan 2012
    Location
    Lucknow
    Posts
    4

    Re: how to write a code in java script to vibrate the mobile ?

    Quote Originally Posted by symbianyucca View Post
    Wiki WRT widget section would be nice place to start searching, did that this time for you and here's one link: http://wiki.forum.nokia.com/index.ph...bration_in_WRT
    I also want to make vibration from javascript in my web application.
    I have uploaded the example code on my server. But it is not making any vibration.
    URL to access this page is:
    https://bobdn.com/WRT/wrtstub.html
    or
    http://bobdn.com/WRT/wrtstub.html

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: how to write a code in java script to vibrate the mobile ?

    Quote Originally Posted by inheaven View Post
    I also want to make vibration from javascript in my web application.
    I have uploaded the example code on my server. But it is not making any vibration.
    URL to access this page is:
    https://bobdn.com/WRT/wrtstub.html
    or
    http://bobdn.com/WRT/wrtstub.html
    Hi,

    Just to make sure we are on same page, are you creating a web page or a WRT widget?
    Because Platform Services are only available in WRT widgets, not in web pages.

    Br,
    Ilkka

Similar Threads

  1. New to Java mobile programming
    By robbierolfo in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2007-09-06, 16:14
  2. write code for pc and mobile connection
    By sulabh120881 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2006-11-22, 05:29
  3. Mobile Podcasting - will it happen?
    By mobile monte in forum News and Announcements
    Replies: 0
    Last Post: 2006-09-22, 23:45
  4. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46

Posting Permissions

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