javascript,sencha-touch,sencha,javascript-frameworkRelated issues-Collection of common programming errors
Elisabeth
javascript iphone ipad orientation
I’m having the same problem that a couple of others have had with getting the correct behavior in a web app on an orientation change, and there doesn’t seem to be an obvious solution – I’ve seen this question asked a couple of times on Stack Overflow and no one’s yet been able to answer it.When I start the app in portrait mode, it works fine. Then I rotate into landscape and it’s scaled up. To get it to scale correctly for the landscape mode I have to double tap on something twice, first to zoo
Ulker Ibrahimova
javascript jquery file-get-contents
This question already has an answer here:Ways to circumvent the same-origin policy11 answersIs there any way to get full page source of snother different site? Example my site is example.com but i want to get facebook’s page source on example.com. I tired this one: http://phpjs.org/functions/file_get_contents/ And it gives me null. So anyone knows it?function file_get_contents (url, flags, context, offset, maxLen) {// Read the entire file into a string//// version: 906.111// discuss at: http://
Inator
php javascript apache nosql couchdb
I’ve recently successfully installed CouchDB version 1.2.1 and as a test I can access it using the following Apache rewrite in CentOS 6:RewriteRule couchdb/(.*)$ http://127.0.0.1:5984/$1 [QSA,P]I have a PHP authentication class that I use across a home grown API to support my mobile apps. My API accepts and authenticates each request using an HMAC signature that is included in the URL like so:https://api.domain.com/endpoint/?timestamp=[timestamp]&signature=[signature]&id=[id]…etcEach
shoriwa-shaun-benjamin
java javascript android cordova webview
I am trying to get my cordova webview to work with cordova 3.2 an use the phonegap Camera API to access the camera.Reference: Android WebViewsHere are some successful implementations of what I want to do, but these use Phonegap 1.9, i want to use Phonegap 3.2 (the latest one)Cordova WebView using AndroidAlso here’s a VideoWith the code below I am able to make the cordova webview display my index.html page without any issues but when I to access the camera by clicking on “Capture Photo” in my HTM
novicePrgrmr
java javascript ajax json jsp
I am sorry to ask this but i’ve been working on this for hours and I can’t figure it out on my own. I have to use json for part of a project and I was able to get it to work but now it’s not returning it back to the right jsp but instead just displaying the json jsp. I am pretty sure it is how I am receiving the json.here are screen shots of what is happening:this is the jsp that I need to use ajax on, I am wanting to populate the second dropdown using ajax:this is what is happening instead, (it
Andrew Whitaker
javascript regex
I am trying to build a regexp from static text plus a variable in javascript. Obviously I am missing something very basic, see comments in code below. Help is very much appreciated:var test_string = “goodweather”;// One regexp we just set: var regexp1 = /goodweather/;// The other regexp we built from a variable + static text: var regexp_part = “good”; var regexp2 = “\/” + regexp_part + “weather\/”;// These alerts now show the 2 regexp are completely identical: alert (regexp1); alert (regexp2);/
DOTang
javascript regex
I am searching for text inside of website resources (html and javascript), and need to identify 3 regular expressions that will locate this text under certain circumstances:some string of text when it is contained inside of a javascript single-quoted string some string of text when it is contained inside of a javascript double-quoted string some string of text when it is not contained inside of a javascript stringHere are some scenarios that are likely to occur (searching for the string “somestr
Andy E
javascript html
I’m building up a row to insert in a table using jQuery by creating a html string, i.e.var row = “”; row += “<tr>”; row += “<td>Name</td>”; row += “<td><input value='”+data.name+”‘/></td>”; row += “</tr>”;data.name is a string returned from an ajax call which could contain any characters. If it contains a single quote, ‘, it will break the HTML by defining the end of the attribute value. How can I ensure that the string is rendered correctly in the brow
sameer
javascript angularjs maven yeoman
I have recently integrated maven yeoman plugin with my app. I followed https://github.com/trecloux/yeoman-maven-plugin/blob/master/TUTORIAL.md My angular version is v1.2.3 . When I run the mvn clean install command, I get the following error . [email protected] node_modules\grunt-contrib-imagemin Gö£GöÇGöÇ [email protected] Gö£GöÇGöÇ [email protected] ([email protected], [email protected]) Gö£GöÇGöÇ [email protected] ([email protected]) Gö£GöÇGöÇ [email protected] ([email protected]) Gö£GöÇGöÇ p
Ronald Yeung
javascript jquery ajax json cors
What I am trying to do is to have a page on the HTTP protocol sending an AJAX call to the same Web server but using HTTPS. Both the requesting page and the AJAX handler are on the same server, having the same domain and port. (I.e., only difference is the protocol.) To illustrate,Fromhttp://www.example.com/index.phpTriggers a jQuery AJAX call tohttps://www.example.com/authenticate.php?user=123&password=456(I am hoping to pass the password through HTTPS to make it encrypted over the Internet.
Lorenz Meyer
extjs sencha-touch sencha-touch-2 sencha-cmd
My computer crashed while I was building my sencha touch project with sencha cmd and now I can’t build it anymore without error. I was hoping someone might have some insight – I re-installed sencha cmd thinking it might have been a corrupt file there but no luck. Here is the output from the build with the debug flag turned on:sencha -d app build native > dbg.txtSencha Cmd v4.0.0.203 [DBG] Loading configuration from E:\SkyDrive\Projects\PersonalTraining\Development\offlinemobile [DBG] Scanning fo
GibboK
extjs sencha-touch sencha-touch-2
I am using sencha touch 2.0.1 I need to build the app using Sencha Command, when using running the comanssencha app build productionI receive this error.It seems to me connected to the magnification project.Could you tell me what I am doing wrong here. thanks[INFO] Deploying your application to /Applications/MAMP/htdocs/vladimir-XXX/build/production[INFO] Copied sdk/sencha-touch-all.js[INFO] Copied app.js[INFO] Copied resources/images[INFO] Copied resources/icons[INFO] Copied resources/startup[I
CQM
jquery android webview sencha-touch
Is there a better webview for android? Google’s own documents mention not to rely on the webview object.But for using webkit it seems strange that it is so limited, compared to other webkit browsers used on mobile devices with comparable hardware.This is evident in jquery mobile implementations, or similarly sencha touch implementations for web apps. The Android version suffers slowdowns, rendering issues, and a poor user experience, where other mobile devices – like an iphone – will run it fine
BLSully
c# javascript .net ajax sencha-touch
This is kind of a 2 part question:1) What is the better approach, letting .NET convert native objects into JSON, or using wrappers and encoding them myself (e.g. public string DataTableToJSON(DataTable))2) If the answer to the first question is the former approach, how best to pass error conditions to the client (JavaScript AJAX requests, generally with jQuery or in this specific case, Sencha Touch (Ext))? My current method (explained further down in this question) seems to work fairly well, but
facusana
sencha-touch sencha-touch-2 sencha-touch-2.1 sencha-command
I downloaded Sencha SDK 2.1.0 and Sencha CMD 3.0.0.250. The sencha command is working fine, but when I run sencha generate app GS ../GS command throws the following exception:[ERR] javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExProcess: Failed creating background process (<Unknown source>#15) in <Unknown source> at line number 15environment versions:Mac OS 10.6.8 (Core DUO) JRE: 1.6.0_37 Ruby (required for Com
Boomerangertanger
extjs azure windows-phone-8 sencha-touch azure-mobile-services
I’m trying to get Push notifications working in my Sencha Touch app which will be targeted to Windows Phone, iOS and Android. At the moment, I’m focussing on getting device registration to work inside the Windows Phone app.Please note: We have an existing ASP.NET backend inside a Windows Azure Cloud Service.I have installed the Sencha Touch Extensions for Windows Azure and I have installed the PhoneGap PushPlugin into my Sencha appI’ve followed all the instructions at the Windows Azure website
Dibish
extjs sencha-touch sencha-touch-2
Am trying to build sencha touch app using my mac. Earlier it was working fine. But now i can build the app but when i try to install it in to itunes am getting an error “Itunes Sync installation failed”. Then i googled some and find out my ios development certificate is expired so i create a new certificate and profile. Now when i try to build it with sencha app build native command am getting following error [ERR] failed running native packager [ERR] Copy operation failed src=/Users/abyv/Docume
Yasmine
sencha-touch
I am trying to build a sencha touch 2 application for android using the sencha cmd “sencha app build native” and I am getting an error that I can’t solve. I am working on mac, using sencha touch 2.3 and sencha cmd v4 and I downloaded the Android SDK for mac.packager.json content”applicationName”:”Test App”, “applicationId”:”com.test.myAppID”, “bundleSeedId”:”KPXFEPZ6EF”, “versionString”:”1.0″, “versionCode”:”1″, “inputPath”:”./”, “outputPath”:”../build/”, “configuration”:”Debug”, “platform”:”And
ChrisIsBack
javascript extjs cordova sencha-touch
I am developing a PhoneGap + SenchaTouch application. The Sencha Touch components need information from the native database. Because of this I need to delay the launch of the Sencha Touch application until the needed information is fetched from the database.I tried to dynamically load the microloader.js afterwards, but than the application does not start. In addition, I tried to do my initialisation in the Ext.application launch method, but at this point the application loading already fails due
Jack
extjs sencha-touch sencha-touch-2 ios-simulator
I installed sencha touch and sencha touch command and was able to view the examples in localhost. But How do I run these examples in iOS simulator?I tried below commands from with in the examples directory on iMac from directory: touch-2.3.1/examples/kitchensink sencha app package run packager.jsonUser-iMac:list-horizontal yuyutsu$ sencha app package run packager.json Sencha Cmd v4.0.4.84 [ERR] [DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 “The applicat
xbonez
android ios windows-phone-7 phonegap sencha
I need to develop applications for a company on some major mobile OSes, specifically, iOS, Android and WP7.I was initially planning to code three separate applications for the three different OSes – each using the native SDK.However, is there any advantage to doing so? There are a number of cross-platform tools available – Sencha, Phonegap, Rhodes etc. How ‘native’ do the apps created by them feel across devices? What kind of hardware integration do they have (camera, GPS, local storage etc.) ?I
Meindert
video phonegap youtube sencha
I want to play a Youtube video in/from my Sencha/Phonegap built app in Android and iOS. But it fails on both Android and iOS. I’m using an Ext.XTemplate to dynamically load the youtube video code in the following code sample:'<iframe class=”youtube-player” type=”text/html” src=”http://www.youtube.com/embed/{youtube_url}” frameborder=”0″ allowfullscreen></iframe>’,This fails for me: On Android, my video thumbnail displays with a play button, but when I click it it will not play. On
Thiem Nguyen
android sencha sencha-touch-2
Following is my configuration file (packager.json){ “applicationName”:”Sencha”, “applicationId”:”Sencha”, “iconName”:”icon.png”, “versionString”:”1.0″, “outputPath”:”D:/wamp/www/sencha/mvc/”, “inputPath”:”C:/wamp/www/sencha”, “webAppPath”:”C:/wamp/www/sencha”, “androidAPILevel”:”15″, “configuration”:”Debug”, “platform”:”AndroidEmulator”, “deviceType”:”Universal”, “certificatePath”:”debug.keystore”, “certificateAlias”:”androiddebugkey”, “sdkPath”:”C:\Program Files\Android\android-sdk”, “orientati
user2136
android android-emulator sencha sencha-touch-2
I am trying to run my sample sencha app 2 on android emulator, but it gives me the below error.C:\path\to\www\mysenchaapp>sencha app build native [INFO] Deploying your application to C:\path\to\www\mysenchaapp\build\package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies… [INFO] Found 139 dependencies. Concaten
TDeBailleul
phonegap sencha sencha-touch-2
I have added this code in launch function. This code is used to globally handled internet connectivity issueExt.device.Connection.on({// scope: this,onlinechange: this.onlineChange});onlineChange: function (online, type) {alert(online + type);},This works fine on the device when we build using sencha native packager, But fails when the same app is packaged using phonegap. The alert is not getting triggered using phonegap native packaging it will work only if i do sencha native packaging. I don’t
Christoph
build sencha-touch sencha sencha-touch-2
I’m allways running into this exception when I try to build my app with the sencha commandline tools. However, other apps seem to work fine. What am I missing?UPDATEI figured out it has something to do with the fact that I want my buildPath to be outside of the app directory. My section in the app.json looks like this:”buildPaths”: {“production”: “../deploy/frontenddemo/production”,”testing”: “../deploy/frontenddemo/testing”,”package”: “../deploy/frontenddemo/package”,”native”: “../deploy/fronte
user198725878
iphone ios sencha sencha-2
Mac-mini-2:sink eit$ sencha app build native[INFO] Deploying your application to /path/to/www/sink/build/package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies… [INFO] Found 139 dependencies. Concatenating all into app.js… [INFO] Processed sdk/sencha-touch.js [INFO] Minifying sdk/sencha-touch.js [INFO] Processe
99tm
ios sencha sencha-touch-2
I am building a WebApp with Sencha Touch 2. Running it on the iOSSimulator with:sencha app build nativeworks fine. But when I change to iOS device and iPhone in the packager.json file I get the following error:[INFO] The application was successfully packaged The applicationwas successfully signed Only iOS simulator is supported to runpackaged apps Failed to run packaged applicationDoes anyone know how to handle this?
user1324579
android sencha-touch sencha sencha-touch-2 packaging
I’m trying to package my Sencha app into a .apk file. Here’s how the config file looks :{“applicationName”:”NotesApp”,”applicationId”:”NotesApp”,”iconName”:”icon.png”,”versionString”:”1.0″,”outputPath”:”~/wamp/www/NotesAppPackage”,”webAppPath”:”~/wamp/www/NotesApp”,”configuration”:”Debug”,”platform”:”Android”,”deviceType”:”Universal”,”certificatePath”:”~/Users/Vishrut/Desktop/my-release-key.keystore”,”certificateAlias”:”alias_name”,”sdkPath”:”~/Program Files (x86)/Android/android-sdk-windows”,”o
user1203861
javascript extjs sencha-touch sencha mobile-website
I want to create an instance of my viewport form the app.js file using this line of code : Ext.create(‘myapp.view.Viewport’) but i keep getting this error in my console logUncaught SyntaxError: Unexpected string I appreciate your help
hades
javascript javascript-events javascript-library javascript-framework unobtrusive-javascript
I’m a web developer. Formerly I was a PHP programmer for several years and now for about a two years I’m a Java developer. But regardless of programming language used on server side I’m still using JS. But unfortunately, I can’t say that I’m good at writing JS code. Logic seems to be fragile and scattered all over the code, on different pages. I mean, I’m using part of logic on page A, then other part on page B and so on and so on. And JS code becomes a mess 🙁 I’m trying to move common logic to
Brian
javascript jquery jquery-plugins javascript-framework coda-slider
Not really sure what’s going on here, been staring at this for hours :/ … basically, I’m implementing CodaSlider using the same CSS, same div id’s, and same code as another project but it’s not initializing the script and the “coda-slider-no-js” tag is not being removed. The only thing that would be different would be that paths for the respective JS files (which I have checked and verified that they are in fact loading). Any ideas for debugging (there is no coda-slider.css file because I ha
Jarrod Nettles
ember.js url-routing client-side javascript-framework
I’m working on a new client-side only app with the latest version of Ember.js. There is a single PHP page which builds the scripts, css, template files, etc. and delivers it all into index.php. I’m using an htaccess directive so that all requests are rewritten to /index.php. The PHP is only there to conveniently package the Javascript, as far as I’m concerned.Currently, routes in the browser look like this and work just fine./#/about /#/favorites /#/etc /#/posts/5/editHowever, I would like them
user884624
exception node.js javascript-framework socket.io
I working on a socket.io + node project. Just like in this page, http://davidwalsh.name/websocket I am getting “info – unhandled socket.io url” error in socket.io v7. But I dont get this error with v6.17? Do you have any idea with this error?Thanks
arcain
javascript gwt twitter javascript-framework twitter-anywhere
How do you implement Twitter Hovercards in GWT PagingScrollTable?The Hovercard links work fine when, say, I add new Label(“@ded”) to a HorizontalPanel. However the Twitter JavaScript function doesn’t seem to apply when I put “@ded” into a PagingScrollTable row.I’m a JavaScript newbie.In response to Igor’s request, here’s some more details. According to the Twitter docs I put a couple of scripts into the <head> of my HTML file:<script src=”http://platform.twitter.com/anywhere.js?id=myI
thekucays
javascript html5 javascript-library javascript-framework kineticjs
how could i create a drawing canvas that can create an ellipse based on the mouse coordinates? here’s my code on jsfiddle (i’m still new to this one) :http://jsfiddle.net/thekucays/DRfph/here’s my code to draw the ellipse (line 59):var x, y, width, height;//var rect;//Math.min untuk mencari nilai terkecil dari 2 parameternyax = Math.min(event.clientX, lastX);y = Math.min(event.clientY, lastY);//Math.abs buat bikin nilai negatif jadi positifwidth = event.clientX – lastX;height = event.clientY – l
Chris Dutrow
javascript backbone.js javascript-library javascript-framework backbone.marionette
Trying to create a backbone “plugin” that “inherits” from Backbone.Model but overrides the sync method.This is what I have so far:Backbone.New_Plugin = {}; Backbone.New_Plugin.Model = Object.create(Backbone.Model); Backbone.New_Plugin.Model.sync = function(method, model, options){alert(‘Body of sync method’); }The method: Object.create() was taken directly from the book Javascript: The Good Parts:Object.create = function(o){var F = function(){};F.prototype = o;return new F(); };I’m getting an er
JSWorld
angularjs javascript-framework
I have the following code which repeats and displays name of the user and his score:<div ng-controller=”AngularCtrl” ng-app><div ng-repeat=”user in users | orderBy:predicate:reverse | limitTo:10″><div ng-init=”user.score=user.id+1″>{{user.name}} and {{user.score}}</div></div> </div>And the corresponding angular controller.function AngularCtrl($scope) { $scope.predicate = ‘score’; $scope.reverse = true;$scope.users = [{id: 1, name: ‘John’}, {id: 2, name: ‘Ken’}
Michael Merchant
javascript dojo javascript-framework nodelist
This function is giving me trouble running something similar to the example provided at: http://dojotoolkit.org/api/1.5/dojo/NodeList#appendMy attempt:<div class = “foo”><p>Hello Mars</p></div> <div class = “foo”><p>Hello World</p></div><script type=”text/javascript”>dojo.addOnLoad(function(){console.debug(dojo.query(“div.foo”));dojo.query(“div.foo”).append(“<span>append</span>”);}); </script>Error I get from Google Web Tool
sir_campy
ember.js handlebars.js javascript-framework ember-data
i’ve this in my html:<script type=”text/x-handlebars” template-name=”index”><h1>Login Page</h1>{{#linkTo “index”}}<img class=”logo”>{{/linkTo}}<button {{action doLogin}}>Login</button> </script>and i’ve this in my router.js:myTalk.Router.map(function() {this.route(‘index’, {path:”index”}); });but i’ve this error:Uncaught Error: No route matched the URL ‘…./index.html’ thanks in advance and sorry for bad my english
Web site is in building
I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money