p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Other Programming > BOOK: Professional BlackBerry
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional BlackBerry
This is the forum to discuss the Wrox book Professional BlackBerry by Craig J. Johnston, Richard Evers; ISBN: 9780764589539

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional BlackBerry section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 16th, 2007, 10:05 PM
Registered User
 
Join Date: Jul 2007
Location: Basking Ridge, nj, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript not working on Blackberry

This logic is working perfectly on my IE browser, but not on my Blackberry:

function Update_Scores()
{
    var current_number = document.getElementById("Current_Number").innerHTM L;
    var front_9 = parseFloat(current_number.substring(5));
    var back_9 = parseFloat(front_9) + 1;

    try
    {
       var score_1 = document.getElementById("Score_1").value;
       if (score_1 != null)
       {
         if (front_9 < 10)
         {
           front_9 += '';
           var player1 = "SC_Player_1_" + front_9 + "_3";
           document.getElementById(player1).innerHTML = score_1;
         }
         else
         {
           back_9 += '';
           document.getElementById("SC_Player_1_" + back_9 + "_3").innerHTML = score_1;
         }
       }
    }
    catch (err)
    {score_1 = null}

    try
    {
       var score_2 = document.getElementById("Score_2").value;
       if (score_2 != null)
       {
         if (front_9 < 10)
         {
           front_9 += '';
           var player2 = "SC_Player_2_" + front_9 + "_4";
           document.getElementById(player2).innerHTML = score_2;
         }
         else
         {
           back_9 += '';
           document.getElementById("SC_Player_2_" + back_9 + "_4").innerHTML = score_2;
         }
       }
    }
    catch (err)
    {score_2 = null}

    try
    {
       var score_3 = document.getElementById("Score_3").value;
       if (score_3 != null)
       {
         if (front_9 < 10)
         {
           front_9 += '';
           var player3 = "SC_Player_3_" + front_9 + "_5";
           document.getElementById(player3).innerHTML = score_3;
         }
         else
         {
           back_9 += '';
           document.getElementById("SC_Player_3_" + back_9 + "_5").innerHTML = score_3;
         }
       }
    }
    catch (err)
    {score_3 = null}

    try
    {
       var score_4 = document.getElementById("Score_4").value;
       if (score_4 != null)
       {
         if (front_9 < 10)
         {
           front_9 += '';
           var player4 = "SC_Player_4_" + front_9 + "_6";
           document.getElementById(player4).innerHTML = score_4;
         }
         else
         {
           back_9 += '';
           document.getElementById("SC_Player_4_" + back_9_string + "_6").innerHTML = score_4;
         }
       }
    }
    catch (err)
    {score_4 = null}
}

Mark Gialo
__________________
Mark Gialo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 27th, 2008, 03:17 PM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The Blackberry browser, unique among browsers, does not support the non-W3C standard innerHTML attribute.

Good luck...

Matt

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Working JavaScript Regex vinaura Javascript How-To 0 August 16th, 2007 02:06 PM
Javascript Not working sohrabus ASP.NET 2.0 Professional 4 May 5th, 2007 01:42 PM
working with DLL event, method in JavaScript hendyhanusin Javascript How-To 0 March 23rd, 2007 06:12 AM
Working with Forms and Date in Javascript danieljava Pro JSP 1 January 16th, 2006 05:56 AM
Blackberry browser and javascript arun.pp BOOK: Professional BlackBerry 1 January 6th, 2006 10:18 PM



All times are GMT -4. The time now is 07:16 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc