EzDevInfo.com

ripple

A rich Ruby modeling layer for Riak, Basho's distributed database File: README — Documentation by YARD 0.7.2

TextBoxes won't take focus

I have this very strange problem that occurs in the Ripple Emulator where a textbox won't take focus...or at least it appears to not take focus (there is no cursor blinking in it once I click into it). However, if I start typing, then click out of the textbox, the content of the textbox suddenly updates to reflect what I've typed.

This seems to have something to do with css, AngularJS and Ionic Framework combined.

I have the below HTML (this isn't reproducible in plunkr)

<ion-view>
    <ion-nav-buttons side="left">
        <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
    </ion-nav-buttons>
    <ion-content class="has-header">
        <div style="margin-top: 20px;">
            <label class="item item-input">
                <span class="input-label">Date</span>
                <input type="date" ng-change="search()" ng-model="filter.date">
            </label>

            <label class="item item-input">
                <span class="input-label">Only Unscheduled</span>
                <ion-checkbox ng-change="search()" style="border: none"
                              ng-model="filter.onlyUnscheduled"></ion-checkbox>
            </label>

            <label class="item item-input">
                <button class="button button-positive" ng-click="clearMatches()">Clear Matches</button>
            </label>
            <label class="item item-input">
                <button class="button button-positive" ng-click="makeTestUsersPlay()">Make Test Users Play</button>
            </label>
            <label class="item item-input">
                <button class="button button-positive" ng-click="makeTestDate()">Make Test Date</button>
            </label>

        </div>

        <ion-list>
            <ion-item ng-repeat="item in dates track by $index" style="padding: 0; padding-top: 10px;">
                <form novalidate="novalidate" on-valid-submit="save(item)">
                    <div>
                        <div class="item item-divider" style="text-align: center; margin-bottom: 20px">
                            {{item.description}}{{item.isCancelled ? ' (Cancelled)' : ''}}
                        </div>
                        <label class="item item-input">
                            <span class="input-label">Location</span>
                            <input type="text" ng-model="item.location" name="location">
                        </label>
                        <label class="item item-input">
                            <span class="input-label">Time</span>
                            <input type="time" ng-model="item.time" name="time">
                        </label>

                        <div class="padding">
                            <button type="submit" class="button button-energized">
                                Save
                            </button>
                            <div style="width: 75px; padding: 0" ng-click="charge(item, item.userId1)"
                                 ng-disabled="item.user1ChargeId"
                                 class="button button-energized">
                                Charge 1
                            </div>
                            <a style="width: 75px; padding: 0" ng-click="charge(item, item.userId2)"
                               ng-disabled="item.user2ChargeId"
                               class="button button-energized">
                                Charge 2
                            </a>
                        </div>
                    </div>
                </form>
            </ion-item>
        </ion-list>

    </ion-content>
</ion-view>

If I remove the button and button-positive classes from all the buttons it suddenly works as expected.

UPDATE:

Here is the source of ionic.css where all the styles can be found

http://code.ionicframework.com/nightly/css/ionic.css

If I change the button class to:

.button{
    min-height: inherit;
    min-width: inherit;
    padding: inherit;
    line-height: inherit;
}

The problem disappears. This suggests to me a browser rendering bug having to do with the button trying to spill out of bounds or something.


Source: (StackOverflow)

PhoneGap application not working on Google Ripple

I'm developing a phoneGap application. When I test my application in the browser there is no problem. Everythings works well. But when I am try it in ripple, my javascript does not work. In detail: The user can login the system and if it successfully redirects to another page (used jquery mobile) it works well in chrome, internet explorer, and firefox. But does not work in ripple. My code is shown below:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title></title>
    <link rel="stylesheet" rel='nofollow' href="css/jquery.mobile-1.3.2.css">

    <script src="js/jquery-1.10.2.js"></script>
    <script src="js/jquery.mobile-1.3.2.js"></script>
    <script src="js/jquery.base64.js"></script>
    <script src="js/cordova.js"></script>
    <script type="text/javascript">
        $(function() {
            var credentials = 'admin:adminabc';
            var authType = "Basic " + credentials;
            $('#loginForm').submit(function() {
                $.ajax({
                    type : "GET",
                    url :  'http://localhost:30673/api/user/Get',
                    data : 'json',
                    beforeSend : function(xhr) {
                         xhr.setRequestHeader("Authorization", authType);
                    },
                    success : function(data, textStatus) {
                        $.mobile.changePage("#menu", {
                            transition : "slideup"
                        });
                    }
                });
            });

            $("#aboutUs").click(function() {
                $.ajax({
                    type : "GET",
                    url :  'http://localhost:30673/api/AboutMeWA/',
                    data : 'json',
                    beforeSend : function(xhr) {
                         xhr.setRequestHeader("Authorization", authType);
                    },
                    success : function(data, textStatus) {
                        $('#aboutMeTitle').val(data);
                    }
                });
            });
        });

        function onBodyLoad() {
            document.addEventListener("deviceready", onDeviceReady, false);

            function onDeviceReady() {
                document.addEventListener("pause", onPause, false);
                document.addEventListener("resume", onResume,  false);
            }

            function onPause() {
                alert("paused");
            }

            function onResume() {
                alert("resume");
            }

        }
    </script>
</head>
<body onload="onBodyLoad()">
    <div data-role="page" id="mainPage">
        <div data-role="header" data-theme="a" >
            <h4> Ziro </h4>
        </div>
        <div data-role="content">
            <form id="loginForm">
                <div data-role="fieldcontain">
                    <label for="textinput1"> Kullanıcı Adı:     </label>
                    <input name="" id="userName"  placeholder="username" value="" type="text">
                </div>
                <div data-role="fieldcontain">
                    <label for="textinput2"> Password</label>
                    <input name="" id="password"  placeholder="password" value="" type="password">
                </div>
                <input type="submit" data-theme="a" data- icon="arrow-r" data-iconpos="left"
                value="Login">
            </form>
            <a rel='nofollow' href="#menu" class="ui-link" data- transition="flip">Menü</a>
        </div>
        <div data-role="footer" data-theme="a"  data-position="fixed">
            <h3> FF Yazılım </h3>
        </div>

    </div>
    <div data-role="page" id="menu" data-add-back-btn="true" data-back-btn-text="Geri">
        <div data-role="header" data-theme="a" >
            <h4> Ziro Mobilya </h4>
        </div>
        <div data-role="content">
            <ul data-role="listview" data-divider-theme="a" data- inset="true">
                <li data-role="list-divider" role="heading">
                    Panel
                </li>
                <li data-theme="c">
                    <a rel='nofollow' href="#about" data-transition="flip"  id="aboutUs"> Hakkımızda </a>
                </li>
                <li data-theme="c">
                    <a rel='nofollow' href="#page1" data-transition="slide">  Referans Resimleri </a>
                </li>
                <li data-theme="c">
                    <a rel='nofollow' href="#page1" data-transition="slide"> Servis Resimleri </a>
                </li>
                <li data-theme="c">
                    <a rel='nofollow' href="#page1" data-transition="slide"> Slogan </a>
                </li>
                <li data-theme="c">
                    <a rel='nofollow' href="#page1" data-transition="slide"> İstatistikler </a>
                </li>
                <li data-theme="c">
                    <a rel='nofollow' href="#page1" data-transition="slide">  Button </a>
                </li>
            </ul>
        </div>
        <div data-role="footer" data-theme="a"  data-position="fixed">
            <h3> FF Yazılım </h3>
        </div>
    </div>

    <div data-role="page" id="about" data-add-back-btn="true" data-back-btn-text="Geri">
        <div data-theme="a" data-role="header">
            <h3> Hakkımızda </h3>
        </div>
        <div data-role="content">
            <div style="">
                <img style="width: 288px; height: 100px"  src="http://aknera.com/temp/default/images/background3.jpg">
            </div>
            <a data-role="button" data-theme="a" rel='nofollow' href="#page1" data-icon="arrow-l"
            data-iconpos="left"> Galeriden Resim Seç </a>
            <div data-role="fieldcontain">
                <label for="textinput2"> Başlık: </label>
                <input name="" id="aboutMeTitle" placeholder=""  value="" type="text" data-mini="true">
            </div>
            <div data-role="fieldcontain">
                <label for="textarea2"> Açıklama </label>
                <textarea name="" id="textarea2" placeholder=""  data-mini="true"></textarea>                                                           




            </div>
            <a data-role="button" data-theme="a" rel='nofollow' href="#page1" data-icon="alert" data-iconpos="left"> Kaydet </a>
        </div>
        <div data-role="footer" data-theme="a"  data-position="fixed">
            <h3> FF Yazılım </h3>
        </div>
    </div>
</body>
 </html>

My application structure is shown below:

enter image description here

Error code is:xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=http%3A//localhost%3A30673/ap‌​i/user/Get%3Fjson rippleapi.herokuapp.com Status Code:500 Internal Server Error I'am getting data from my localhost post adress:localhost:30673/api/user/Get'; It is working well in browser . And getting data from localhost:30673/api/user/Get. But in ripple it tries to get data from There: xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=http%3A//localhost%3A30673/api/u‌​ser/Get%3Fjson rippleapi.herokuapp.com

Need advice guys.


Source: (StackOverflow)

Advertisements

Unable to get Ripple session info

I created an Ionic (Apache Cordova) app using Visual Studio 2015 RC. I created it in its own solution file, and I can run it using Ripple.

Now I want to move the files into the same folder as my server application, so I copied the project folder and added the project to the other solution. If I now try to run the project using Ripple I get this error:

Unable to get Ripple session info. Exception: Unable to connect to the remote server. Please close all instances of Chrome and try again.

How can I get Ripple running again?


Source: (StackOverflow)

Ripple emulator - node.js

I can't start ripple emulate. Here is the error:

ripple emulate could not find cordova as a local module. expecting to find it installed globally

Cordova is installed with the following command: npm install cordova

I'm working on windows 8.1 64bit


Source: (StackOverflow)

Ripple (0.9.19) and BB10 WebWorks SDK 2.0.0.54 on Mac

I cannot get Ripple to build using the SDK installed at the default location. I get the error message "Oh Snap! Build request failed with message: ./Applications/BlackBerry/BB10 WebWorks SDK 2.0.0.54 is not a valid path" (EDIT:THIS PROBLEM HAS BEEN FIXED BY REMOVING THE '.' - PLEASE SEE ERROR BELOW) - but that is where the SDK is installed.

I am following this tutorial here: http://www.patrickcatanzariti.com/2013/01/my-guide-to-developing-a-blackberry-html5-webworks-mobile-app/

but I am unsuccessful. I have also tried copying the BlackBerry10Simulator-BB10_2_0X-1791 folder from ./Documents/Virtual Machines into that folder and I still get the same error when trying to build, as well as another error when editing the settings: "No simulators found"

Has anyone built using this version of Ripple and BB10?

EDIT

I have changed the platform to BlackBerry 10 Webworks. Now the error appears on the command line:

Checking output path /Users/username/Development/BlackBerry/BB_Output/
Path already exists
Running zip in /Users/username/Development/BlackBerry/Blackberry/BlackBerry
exec - "zip" -r "/Users/username/Development/BlackBerry/BB_Output/Output.zip" *
out: adding: BlackBerry.zip
out: (stored 0%)
     adding: config.xml (deflated 63%)
     adding: css/ (stored 0%)
     adding: css/app.css (deflated 82%)
     adding: images/ (stored 0%)
     adding: images/image1.png
out: (deflated 0%)
     adding: images/Image3.png
out: (stored 0%)
     adding: images/smallImage.png
out: (stored 0%)
     adding: images/Thumbs.db
out: (deflated 28%)
     adding: js/
out: (stored 0%)
     adding: js/jquery-1.10.2.min.js
out: (deflated 65%)
     adding: js/jquery.soap.js
out: (deflated 69%)
     adding: js/msisdn.js
out: (deflated 66%)
     adding: js/panic.js
out: (deflated 76%)
     adding: screen1.html
out: (deflated 61%)
     adding: screen2.html
out: (deflated 74%)
     adding: phoneNumber.html (deflated 66%)
     adding: settings.html (deflated 57%)
     adding: start.html (deflated 56%)

error: Error: Cordova does not know
/Users/username/Development/BlackBerry/BB_Output/Output.zip; try help for a list of all the available commands.
     at new CLI (/Applications/BlackBerry/BB10 WebWorks SDK 2.0.0.54/webworks-cli/node_modules/cordova/src/cli.js:114:15)
     at new CLI (/Applications/BlackBerry/BB10 WebWorks SDK 2.0.0.54/webworks-cli/lib/cli.js:91:31)
     at Object. (/Applications/BlackBerry/BB10 WebWorks SDK 2.0.0.54/webworks-cli/bin/webworks:4:16)
     at Module._compile (module.js:456:26)
     at Object.Module._extensions..js (module.js:474:10)
     at Module.load (module.js:356:32)
     at Function.Module._load (module.js:312:12)
     at Function.Module.runMain (module.js:497:10)
     at startup (node.js:119:16)
     at node.js:901:3


Source: (StackOverflow)

PhoneGap/Cordova, Ripple Emulator, CORS & JSONP

Attempting to use the Ripple Emulator to test a PhoneGap application. We're making requests to the server and receiving:

ERROR:

cordova :: XMLHttpRequest :: setRequestHeader does not work with JSONP.

  • a) CORS is enabled on the server and the client
  • b) The requests work in the browser
  • c) The requests work on the mobile device
  • d) I enabled the "Allow access to file URLs" in the settings for the Ripple Chrome Extension.
  • e) I launched chrome with the flags:

--disable-web-security --allow-file-access-from-files

Does Ripple Emulator support CORS httprequest or only jsonp?

If it supports a call from more than just JSONP then I could use some assistance on implementation.

Thank you!


Source: (StackOverflow)

Cannot Make AJAX Call in Google Ripple PhoneGap Emulation (500 Error)

I'd add a comment here:

PhoneGap application not working on Google Ripple

but given my low reputation on StackOverflow (as elsewhere), I can't. That thread raises similar issues but does not answer my question. I am trying to test the functionality of an HTML5 page that will eventually be made into a mobile app with PhoneGap. The page makes an AJAX call to a JSON service via jQuery:

$(document).ready(function() {
        $.ajax({
            url: 'latest.json',
            type: 'get',
            datatype: 'json',
            processData: false,
            success: function(data) {
            //…make it so
    });
});

and runs flawlessly as HTML5 in Chrome. However, when using the Ripple PhoneGap emulation available for Chrome, the JSON fails with a 500 error:

GET https://rippleapi.herokuapp.com/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=latest.json 500 (Internal Server Error) rippleapi.herokuapp.com/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=latest.json:1

The suggested answer to the question linked above reads:

I had the same issue. It was happening when I was trying to connect to my WebAPI service hosted on IISExpress.

After I changed hosting to my local IIS server, the error dissapeared (sic) and I was able to connect to my WebAPI service using Ripple.

But I'm not running IIS or indeed anything locally -- it's all running off a remote server hosted by an ISP. Since, as I say, this page runs fine in non-emulation mode, the fault would appear to be in Ripple. Any help making this emulation operate correctly will be greatly appreciated.


Source: (StackOverflow)

How to use Ripple Emulator for Windows to test PhoneGap application?

Can Ripple emulator be used to test PhoneGap application under Windows?

Either I'm doing something really bad or Ripple is not working at all in such environment.

I have installed Ripple Emulator extension for Chrome from Chrome Store. I navigated Chrome to my mobile app (served locally via XAMPP). I clicked Ripple icon next to Chrome omnibar and clicked Enable in opened window. I've selected proper platform (Cordova 2.0).

My application was reloaded in mobile-like look, simulating mobile device. Ripple was unable to read my configuration from config.xml file, but that is a well known bug (reported here and here). I hope, this is not an issue that prevents me from using Ripple at all?

I've selected my device (Samsung Nexus) and begin to test my mobile device. Even first call to PhoneGap API has failed. I tried compass, but all I got was Cannot call method 'watchHeading' of undefined.

How can basic PhoneGap object be undefined? What am I missing? Can I test PhoneGap application under Windows in Chrome with Ripple Emulator or amy I missing the entire idea for what Ripple is?

I tried to help myself with Ripple documentation, but chapter "Enable the Ripple emulator" is a complete garbage. I don't have even a sign of Start Ripple Services option in Ripple icon (only Enable and Disable) and when I click Enable there is no sign of the license agreement, that I could review and accept. I'm getting the feeling that this doc talks about something completely different than I use.

How to use Ripple in Chrome to test PhoneGap application? What am I missing?


Source: (StackOverflow)

PhoneGap Ripple Emulator always reports malformed config.xml

Does anyone have any idea, what can cause Ripple Emulator (newesest version) onboard newest version of Chrome to always report malformed or missing config file ("config.xml file could not be found in application's root or is malformed XML")?

I have my config.xml present exactly at application root (i.e. in the same folder, where index.html file, used to fire my mobile application). I don't think it's malformed since PhoneGap Bulid builds perfectly working applications (though tested only on Android) and does not reports any problems neither with configuration file nor with compilation process.

I'm getting this error not only on my own configuration files, but also on any PhoneGap application, that I've been working with -- including: PhoneGap Hello World example application, alluny's PhoneGap Start Application, Sencha Touch Kitchen Sink demo and others. Actually I haven't found any application in my local resources, that would not cause Ripple Emulator to report problems with config.xml file.

Of course, I set proper Chrome's settings, as instructed on Ripple Emulator page and I'm opening my Chrome with proper flag to allow it access local files via file:/// protocol.


Source: (StackOverflow)

Cordova 3 + Ripple

Someone knows if Ripple works with latest cordova version? Cause I'm trying and I can't even start control panel. And when I try without it, pops some "alerts":

gap:["PluginManager","startup","PluginManager590841628"]

gap:["App","show","App590841629"]

Versions: Cordova 3 Ripple 0.9.16 Chrome 28.0.1500.95 m


Source: (StackOverflow)

Lollipop RippleDrawable vs Selector for Pre-Lollipop

I have buttons with different draw9patch png as background. Currently the buttons are controlled by selector which look something like this:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
  <item android:drawable="@drawable/pressed" android:state_pressed="true"/>
  <item android:drawable="@drawable/disabled" android:state_enabled="false"/>
  <item android:drawable="@drawable/focused" android:state_focused="true"/>
  <item android:drawable="@drawable/default"/>
</selector>

For the Android Lollipop they have a RippleDrawable for the touch effect, which goes something like this:

<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="?android:colorControlHighlight">
    <item>
    ...
    </item>
</ripple>

Regarding the new touch ripple effect:

1: Can I set draw9patch as background for RippleDrawable?

2: How do I accomodate the above two different xml's I want to follow Material design? Do I have to fork out a new folder/layout xml for the new RippleDrawable?


Source: (StackOverflow)

Ripple Emulator alternatives [closed]

Are there any alternatives for Ripple Emulator (plugin for Chrome browser)? I'm interested also in plugins for other browsers.


Source: (StackOverflow)

Ripple effect over a RecyclerView item containing ImageView

I have a RecyclerView that expands the following grid item :

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="@dimen/children_tile_border"
    android:layout_marginTop="@dimen/children_tile_border"
    android:clickable="true"
    android:focusable="true"
    android:background="?selectableItemBackground"
    tools:ignore="RtlHardcoded">

        <com.example.app.ui.widget.SquareImageView
            android:id="@+id/child_picture"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:visibility="visible"
            android:layout_alignParentBottom="true"/>

        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="68dp"
            android:background="@color/tile_text_background"
            android:gravity="center_vertical"
            android:layout_alignParentBottom="true">

            ..............
        </LinearLayout>
</RelativeLayout>

But the ripple effect doesn't appear unless I set the SquareImageView's visibility to invisible. It seems the ripple effect is drawn below the SquareImageView. How can I can I make it drawn over the SquareImageView?


Source: (StackOverflow)

Android Ripple Effect Overridden by Selected State

After having been looking for a while I've not been able to find an answer to this...

I have a recycler view with items which when selected have a red background and white text (beforehand the background is white and text is black). To do this I am using a selector.

I have recently tried to add a ripple effect to this, but unless I long click on the item the background of the item goes straight to red without the ripple. I am assuming this is because the selector state state_selected overrides the ripple on sate_pressed?

Does anyone know if there is a way around this? Here is the selector code I use:

<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
    android:color="@android:color/holo_red_dark" >

    <item>
        <selector xmlns:android="http://schemas.android.com/apk/res/android" >
            <item
                android:drawable="@drawable/ripple"
                android:state_pressed="true"/>
            <item
                android:drawable="@android:color/holo_red_dark"
                android:state_selected="true"/>
            <item android:drawable="@android:color/white"/>
        </selector>
    </item>

</ripple>

Thanks in advance!


Source: (StackOverflow)

Ripple Emulator + android project with PhoneGap

I'm creating an android project with PhoneGap in the Eclipse IDE.

Now I want to use the Ripple Emulator instead of the Android Virtual Device Manager (AVD) because the AVD is very slow.

I installed the extension in my Google Chrome and enabled the 'Allow access to file URLs' option.

When I open my index.html page I get a javascript pop-up like this: enter image description here

If I click "OK" or "Cancel" the page just freezes so I can't enable the ripple emulator ... .

This is my "index.html" file:

<!DOCTYPE HTML>
<html>
 <head>
  <title>PhoneGap Testing</title>
  <meta http-equiv="Content-type" content="text/html;charset=utf-8">
  <meta name="viewport" id="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
  <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
  <script type="text/javascript" charset="utf-8">
    function onBodyLoad(){
        document.addEventListener("deviceready", onDeviceReady, false);
    }
    function onDeviceReady(){
        navigator.notification.alert("PhoneGap is ready!");
    }
  </script>
 </head>
 <body onload="onBodyLoad()">
    <h1>Hello PhoneGap</h1>
    <p>This is a sample app</p>
 </body>
</html>

Does anyone knows why I get this pop-up?


Source: (StackOverflow)