×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    22

    Platform Services 2.0 and Aptana ?

    Hi all,

    Does Platform Services 2.0 work on Aptana Plug in 2.2 ?

    I tried a simple :
    Code:
    var so = nokia.device.load("messaging");
    Crashes on Aptana but works on my N97 ???

    Any idea ?

    Thanks

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

    Re: Platform Services 2.0 and Aptana ?

    It doesn't work on N97 yet...
    Javier Zambrano Ferreira

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Platform Services 2.0 and Aptana ?

    Hi Tintolo,

    can you reproduce the crash and post a sample widget/project that shows it? It could be useful for debugging purposes.

    Pit

  4. #4
    Registered User
    Join Date
    Aug 2009
    Posts
    22

    Re: Platform Services 2.0 and Aptana ?

    Hi jz, Hi Pit,

    my .js file :

    Code:
    function init()
    {
    	var so = nokia.device.load("messaging");
    		
    	Nokia.showSplash('<span>Chargement...</span>');
    			
    	Nokia.use('textlabel','scroll', 'customizablelist', affichageBoiteReception);
    
    }
    
    function affichageBoiteReception(){
    
    	if (window.widget) {
    		widget.setNavigationEnabled(false);
    	}
    	
    	textHeader = "<div align=center><h1><b>Header</b></h1></div>";
    	textFooter = "<div align=center><h1><b>Footer</b></h1></div>";
    	
    	window.textlabel = new Nokia.TextLabel({
    			element: '#header',
    			content: textHeader,
    			style: {
    				fontSize: '15px',
    				padding: '10px',
    				lineHeight: '25px'
    			}
    		});
    	
    	window.textlabel = new Nokia.TextLabel({
    			element: '#footer',
    			content: textFooter,
    			style: {
    				fontSize: '15px',
    				padding: '10px',
    				lineHeight: '25px'
    			}
    		});
    	
    	for (var i = 0; i < 20; i++) {
    		var listeitem = listeitem + "<div id=\"item" + i + "\" class=\"ui-helper-clearfix\" onclick=\"clicitem(" + i + ");\"><h1><b>Test item" + i + "</b></h1> avec peut etre si jy arive un retour a la ligne pour voir si ca fonctionne<br style=\"clear:both;\" /></div>";
    	}
    	
    	window.textlabel = new Nokia.TextLabel({
    			element: '#contenu',
    			content: listeitem,
    			style: {
    				fontSize: '15px',
    				padding: '10px',
    				lineHeight: '25px'
    			}
    		});
    	
    	divContenu = document.getElementById("contenu");
    	divContenu.style.height = "300px";
    	
    	Nokia.hideSplash();
    	
    }
    
    function clicitem(numitem) {
    	alert("Clic sur Item "+numitem);
    }
    with the html :

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    	<head>
    		<title>ChatSMS 2</title>
    		
    		<link rel="stylesheet" href="basic.css" type="text/css">
    		<link rel='stylesheet' href='themes/themeroller/default-theme/Themeroller.css' type='text/css' media='screen'> 
    		<link rel='stylesheet' href='themes/nokia/ext-theme/default/360x640/custom.css' type='text/css' media='screen'> 
    		
    		<script src='lib/jquery/JQUERY.js' type='text/javascript' charset='utf-8'></script> 
    		<script src='lib/Guarana.js' type='text/javascript' charset='utf-8'></script> 
    		<script src='lib/platformservices.js' type='text/javascript' charset='utf-8'></script> 
    		<script language="javascript" type="text/javascript" src="basic.js"></script>
    		
    		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    		
    	</head>
    	<body onload="init();">
    	
    	<div id="header"></div>
    	<div id="contenu"></div>
    	<div id="footer"></div>
    	
    	</body>
    	
    </html>
    On Aptana, widget crashes before the Splash Screen ( white screen and that's all ), on my N97 i have my splash Screen and my textboxes ...

    @jzferreira, i haven't tried yet if my messaging 'so' works, code goes through this line, i thought it was ok ... doesn't work on N97 ?


    Another small question : I have tried in first time a Guarana CustomizableList in my content, on Aptana view this list doesn't match with my 300px content, it was going down over ....

    Scuse me again for my poor english

  5. #5
    Registered User
    Join Date
    Aug 2009
    Posts
    22

    Re: Platform Services 2.0 and Aptana ?

    Again me

    works with this connection :

    Code:
    so = com.nokia.device.load("", "com.nokia.device.messaging", "");
    works on Aptana and N97 ...

    GetList works like a charm, setNotifier a little bit more hard

    Makes me crazy :-/

Similar Threads

  1. WRT Debugging using Aptana 1.5.1
    By tasneemsayeed in forum Symbian
    Replies: 2
    Last Post: 2009-09-01, 20:58
  2. Replies: 1
    Last Post: 2009-08-26, 11:55
  3. My Aptana: "Connection refused"
    By davidmaxwaterman in forum Symbian
    Replies: 0
    Last Post: 2009-08-01, 15:52
  4. Replies: 14
    Last Post: 2009-02-16, 14:40

Posting Permissions

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