is angular not working with onsen???..
when you stated up there that…(just to be sure he is not using angular).
#curious.
is angular not working with onsen???..
when you stated up there that…(just to be sure he is not using angular).
#curious.
waiting so much for this to come out…so, i can get my fingers soiled…in the field of development
thanks for that…and please, what if in a situation, i am only permitted to send my request into a URL…without having access to the server…how will i go about it pls
nice development you have there…but i know you can surely come up with a cool background too…like…making it glow with color…
am i going to add this to the header of my html pages???
cos, my previous thought is this…using the whitelist plugin in my cordova, i should be able to egt pass this Content Security Policy
@Munsterlander suggested that cordova plugin could have been my problem…but, i am definitely lost in this
NOTE: i do not have access to the database, i was only given a url with different op…to post my request.
This is the appearance of my config file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="com.example.helloworld" version="1.0.0">
<name>TheSlider</name>
<description/>
<author/>
<content src="index.html"/>
<allow-navigation href="*"/>
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
<preference name="loglevel" value="DEBUG"/>
<preference name="AndroidLaunchMode" value="singleTop"/>
<preference name="ErrorUrl" value=""/>
<preference name="SplashScreen" value="screen"/>
<preference name="AllowInlineMediaPlayback" value="false"/>
<preference name="AutoHideSplashScreen" value="true"/>
<preference name="BackupWebStorage" value="cloud"/>
<preference name="EnableViewportScale" value="false"/>
<preference name="FadeSplashScreen" value="true"/>
<preference name="FadeSplashScreenDuration" value=".25"/>
<preference name="KeyboardDisplayRequiresUserAction" value="true"/>
<preference name="MediaPlaybackRequiresUserAction" value="false"/>
<preference name="ShowSplashScreenSpinner" value="false"/>
<preference name="SuppressesIncrementalRendering" value="false"/>
<preference name="TopActivityIndicator" value="gray"/>
<preference name="GapBetweenPages" value="0"/>
<preference name="PageLength" value="0"/>
<preference name="PaginationBreakingMode" value="page"/>
<preference name="PaginationMode" value="unpaginated"/>
<feature name="LocalStorage">
<param name="ios-package" value="CDVLocalStorage"/>
</feature>
<preference name="UIWebViewDecelerationSpeed" value="normal"/>
<preference name="monaca:targetFamilyiPhone" value="1"/>
<preference name="monaca:targetFamilyiPad" value="1"/>
<preference name="monaca:WebViewEngine" value="default"/>
<access origin="*"/>
<preference name="KeepRunning" value="true"/>
<preference name="monaca:AndroidIsPackageNameSeparate" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="Orientation" value="default"/>
<preference name="SplashScreenDelay" value="1000"/>
<preference name="Fullscreen" value="false"/>
</widget>
i do not know how to send a private message here…i tried searching for your name/id on gitter…but, couldn’t find you there…and, i do not know, if i can send you the whole project folder…won’t mind doing that
@Andi
please, is there any suggestion for any plugin that forces url…because, i am also encountering this problem on my android application, monaca localtoolkit and also the cloud IDE…
but, if i should test run the html file on its own with my browser, it works fine…
I have an application which ought to be connected to a remote server, but the problem i am encountering is this. If i should test my html file on my browser, it will work fine, and i will be able to send and receive back my data. but, testing with monaca Localtoolkit or building its APK, it won’t connect to the net. I am using angularjs for this connection…
.navigation-bar {
background-color: #f00;
height: 50px;
}
ons-toolbar ~ .page__content {
top: 50px;
}
if you want to give your tool bar a background color, and if you also want to edit the height of your toolbar
if you want it to appear on your toolbar…this should probably work out for you
<ons-toolbar>
<div class="left">
<ons-toolbar-button ng-click="app.slidingMenu.toggleMenu()"><ons-icon icon="bars" style="color:#fff;" ></ons-icon></ons-toolbar-button>
</div>
<div class="center" style="font-size:25px; color:#fff;"> Name</div>
<div class="right">
<ons-toolbar-button>Logout</ons-toolbar-button>
</div>
</ons-toolbar>
Fortunately for me, it’s the CORS plugin i installed to my chrome. Whenever it is on, i won’t be able to see all my projects, both online…and at the instance of synchronizing it with my mobile.
So, it has to be off, before my project can be loaded.
Why am i not seeing my MONACA projects on my dashboard (cloud) and also on my Monaca Debugger (device)…
I have been able to solve it :grinning: :smile: :relaxed: …the problem is this, i was supposed to transform my data from object to URLPARAMS and not to JSON string…
so, instead of the $http.post i used up there…
i did something like this
$http({
method: 'POST',
url: "url",
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
transformRequest: function(obj) {
var str = [];
for(var p in obj)
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
return str.join("&");
},
data: {username: $scope.fname, pswd: $scope.lname}
})
.success(function(data, status, headers, config) {...
})
and it worked well…
this is my script
<script>
var app = angular.module('myapp', [])
app.controller('empcontroller', function($scope, $http){
$scope.insertdata=function(){
//the fname and the lname are the ones i want to send together with the url
$http.post("url", {'fname':$scope.fname, 'lname':$scope.lname})
.success(function(data, status, headers, config) {
console.log(data);
if ( data.trim() === 'correct') {
window.location.href = 'homes.html';
} else {
$scope.errorMsg = "Login not correct";
}
})
.error(function(data, status, headers, config) {
$scope.errorMsg = 'Unable to submit form';
})
}});</script>
//i already tried the url with the data i want to send…and i am getting my result…
let me say, i want to post into this url (tutorial.com/Project/mob_req.php?op=uservalidate)
if i should type that url alone, i am going to get user not registered…but, if i should now do it in this way (tutorial.com/Project/mob_req.php?op=uservalidate&fname=user&lname=pass)…if i should type that into the url…i will get a 1…that’s if the user has been registered already…
so, what i want to do in this respect is to send something like that…to that URL…i was able to accomplish this task…using my java…so, i want to rebuild the application using onsen…and i am kind of stocked up
i already tried $http.post, and $http.jsonp…they are both giving me same reply which is…invalid user
i am trying to use the code below, to connect to my remote server…and i am expecting it to send the fname and the lname with the url altogether…since they are my textfield.
after submitting my form, it’s only the url that is always been sent…(since i am always seeing it in my log…)how can i solve this
$http.post(“url”, {‘fname’:$scope.fname, ‘lname’:$scope.lname})
.success(function(data, status, headers, config) {…}