phonegap,jsrenderRelated issues-Collection of common programming errors


  • Gajotres
    jquery phonegap jquery-mobile
    I am using $.mobile.changePage to transit on a new page upon clicking on listview element.This is how I am using it,$(‘ul’).children(‘li’).on(‘click’, function () {created_date = $.trim($(this).text());$.mobile.changePage( “Image.html”, {transition: ‘slide’,reverse: ‘true’}); });This is the html page<div data-role=”page” id=”SavedImage” ><div data-role=”header”><h1></h1><a href=”#”></a></div><div data-role=”content”><img src=

  • landei
    osx phonegap path cordova
    I have a problem while creating a new android project for phonegap 2.5.0. I use a Mac and set the path variables correctly. But after the command./create /pathtoProject/PhoneGap FirstPackage CatchMyPainPGthe terminal works for about a second and then i get the following error:An unexpected error occurred: “$ANDROID_BIN” create project –target $TARGET –path “$PROJECT_PATH” –package $PACKAGE –activity $ACTIVITY >&/dev/null exited with 1 Deleting project…What does this mean? I think i’

  • Joey
    android osx phonegap
    I installed the all the recommended programs from PhoneGap’s Getting Started Guide and followed the various steps. I created the .bash_profile file and it looks like this:export PATH=${PATH}:/Development/android-sdk-mac/sdk/platform-tools:/Development/android-sdk-mac/sdk/toolsThe Development folder is located on my desktop. Upon navigating in terminal to my bin directory and creating a new PhoneGap project, i did like so:./create /Users/joey/PhoneGapExample nl.symvoli.phonegapExample PhoneGapDem

  • user1530249
    android phonegap cordova
    Where can I find the cordova.2.0.3.jar ? I am trying to get running with PhoneGap on android.localhost:bin shuttle$ ./create ~/Documents/cordova-android/HelloWorld com.Name.HelloWorld HelloWorld cp: /Users/shuttle/Documents/cordova-android/framework/cordova-2.3.0.jar: No such file or directory An unexpected error occurred: cp “$BUILD_PATH”/framework/cordova-$VERSION.jar “$PROJECT_PATH”/libs/cordova-$VERSION.jar exited with 1 Deleting project…

  • Invincible
    jquery ajax phonegap jquery-mobile
    I am developing an Mobile application based on the jQuery Mobile and Phonegap Framework. I am using jQuery Mobile’s Ajax Based Navigation in my application. I mean all the pages in single page template using data-role=”page”. However I am stuck with one problem.I am using the jQuery mobile’s $.mobile.changePage(‘#xyz’); method to navigate between pages.but the problem is when I tap on the button the page go to other page and again comes back on the page from where I had tapped on the button or l

  • chris
    android phonegap android-2.2-froyo
    I downloaded Eclipse Classic, Android SDK, and created a NexusOne AVD. When I run my Hello World PhoneGap app, I find the application and when it loads, it has the following error:An unexpected error occurred. Please try again later. Force close.This is my first app, so what’s the issue?

  • Ram kiran
    android phonegap cordova
    I’ve the following error trying to create the project in PhoneGap 2.5.0 for Android:An unexpected error occurred: “$ANDROID_BIN” create project –target $TARGET –path “$PROJECT_PATH” –package $PACKAGE –activity $ACTIVITY >&/dev/null exited with 1I’ve no idea of how to fix it. This PhoneGap tutorialThank you!

  • TZHX
    android phonegap android-4.0 cordova
    Hello i am developing an Android app based on phonegap, i am using cordova 2.0, when i try to load the index file from sd card it shows A Netwrok Error Occurred and does not load the file, but this only happens with ICS but it’s working on 3.0 and lower when i load the file from assets it works fine but the problem is when i load it from sd card here is my code `public class ApplicationView extends DroidGap {WebView appWebView;@Override public void onCreate(Bundle savedInstanceState) {// TODO Au

  • Sjaak Rusma
    android phonegap
    I am trying to deploy phonegap for android and iOS. iOS works fine but while creating the android project like this in terminal:./create ~/Documents/testapp_android org.apache.cordova.HelloWorld HelloWorldI am getting these errors:cp: /Users/Pim/Documents/cordova-2.3.0/cordova-android/framework/cordova-2.3.0.jar: No such file or directory An unexpected error occurred: cp “$BUILD_PATH”/framework/cordova-$VERSION.jar “$PROJECT_PATH”/libs/cordova-$VERSION.jar exited with 1 Deleting project…I got

  • picstand
    android phonegap ubuntu cordova
    On Ubuntu 12.10, I am trying to set up cordova 2.3.0(PhoneGap) based on the instructions present here http://docs.phonegap.com/en/2.3.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android.but when I run the script I get the following error:An unexpected error occurred: [ ! -e “$BUILD_PATH”/framework/libs/commons-codec-1.7.jar ] exited with 1 Deleting project…I looked up the commons-codec-1.7.jar and it is present where it should be:-rw-r–r– 1 user user 259600 Jan

  • Ina
    javascript jsrender
    I would like to use a variable from my jsrender template in order to produce a snippet of javascript, but I can’t figure out how to place a <script type=”text/javascript”> within my <script id=”data-item-tpl” type=”text/x-jsrender”>Hopefully the below is fairly clear. The below code produces an Uncaught SyntaxError. If I remove the tags from the embedded script, then it is simply printed onto the page as text.In the code below, I am trying to generate a div with the id ‘chartId’, an

  • Mediator
    javascript jsrender
    I have {{if name && secondName}} {{=name}}/{{=secondName}} {{/if}}but this not worked. I catch error Uncaught SyntaxError: Unexpected token &&That I do wrong?

  • A.M.K
    jquery templates jsrender
    I am trying to put together a template with jsRender instead of my own version that I was on, but, I keep getting this: “Uncaught JsRender Error: Syntax error Unmatched or missing tag: “{{/for}}” in template:” followed by my entire template.Here is a truncated version of my code, any ideas as to what is going on? Or is it just the nested for loops?<div class=”page” id=”{{:info.id+info.name}}”>{{for sources}}<header class=”feed-title”><div class=”feed-title-content”><span cla

  • The Flower Guy
    javascript jquery jsrender
    I have a couple of jsRender templates that are used on all pages. Instead of using the script tag method, I would prefer to precompile them and put resulting functions in an external js file.I saw a previous question that asked this but the method described doesn’t seem to work anymore or I am doing something wrong.I called $.templates(“#myTemplate”) from the console which msanjay suggested and copied/renamed the anonymous function and get something like this (which looks a bit odd to my untrain

  • mekkoo
    jsrender jsviews
    Sample JSON: https://gist.github.com/mekkoo/6604902I want using $.observable().insert method to object inner array “items”. but, I looked error “Uncaught TypeError: Object # has no method ‘insert'” when method callingpages = //Sample JSON $.ajax calling $.observable(pages).insert(pages.length, {//I want this data to insert to “items” array”item”: {“id”: 3,”item_name”: “Item Name 3″,”item_desc”: “Item Desc 3″,”item_img”: “http://example.com/sample.png”},”values”: [{“id”: 0,”key_id”: 0,”value”: “

  • Arun P Johny
    javascript jquery jsrender
    I have template this a part:<td>{{=name}}</td>]I need check name of null/empty and not display it.How do this?example:{{#if ($name!= “” && $secondName!= “”) }}I get error Uncaught SyntaxError: Unexpected token &&

  • mattmattmatt
    javascript jquery google-chrome jsrender
    Im getting an Uncaught RangeError: Maximum call stack size exceeded when ever I get to the 4th time calling my paging function getCollection(), I’m not exactly sure why the problem is happening.. if I commet out the following line:jQuery(‘#card ul’).append(template.render(data));And uncomment the alert below it (for sanity), it seems to run fine past page 4.I’m using jQuery 1.7.1 and Boris Moore’s jsrender library and have never had trouble before rendering even larger data sets asynchronously.v

  • pixeline
    javascript jquery jsrender
    I need to keep a “colcounter” variable inside the loop that will be used to fill a jsrender template.Here is my template code<script id=”datascapeTemplate” type=”text/x-jsrender”><div id=”dsViewport”><div class=”ds-column” style=”width:{{:(name.length*100)}}px;”><h1 id=”datascapeName”>{{:name}}</h1><div><span id=”dsToggle”>toggle</span></div></div> {{=colcounter}}{{for sections}}<div class=”ds-section”><h3>{{:label}}</h3&

  • user1213831
    jsrender
    I am using jsRender and want to bind events like click, mouse over on elements that get render inside the template. while binding the event , I want to pass the data as a argument. Example :<li id=”liv_{{:nid}}” onmouseover=[call some function and pass #data]> <div class=”qwqw”><a href=”#”></a></div> <div class=””><p class=”we”>{{:spd}} <span>mph (todo)</span></p> </div><div class=”clear”></div>I tried the code as me

  • martonx
    phonegap jsrender
    I would like to use JsRender in a PhoneGap Jquery Mobile project. When I run my application in a simple browser (for example Firefox), everything works fine. When I run the application in Android emulator I get the following error in console:D/CordovaLog(603): file:///android_asset/www/js/program.js: Line 45 : TypeError: Result of expression ‘$(“#vehicletemplate”).render’ [undefined] is not a function.Please advice. Is there anybody who try JsRender in Phonegap with Jquery Mobile on Android 2.1?

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money