@jithesh wrote:
Hi all. I’m new to ionic.
I have an problem with iframe. I want display our site wthinn my app but ifram src loading other site but not loading my website. Please help.
Posts: 4
Participants: 2
@jithesh wrote:
Hi all. I’m new to ionic.
I have an problem with iframe. I want display our site wthinn my app but ifram src loading other site but not loading my website. Please help.
Posts: 4
Participants: 2
@Demilade wrote:
i am using ionic for a webapp and lazy loading some modules
everything works fine when i navigate to pages from other pages.
It also works well when i use the browser to visit pages like mydomain.com/notesbut when i go to pages with dynamic links like “mydomain.com/view-notes/:notes_id” i get this error
Resource interpreted as Stylesheet but transferred with MIME type text/html: "https://mydomain.com/view-notes/build/main.css". polyfills.js:1 Uncaught SyntaxError: Unexpected token < vendor.js:1 Uncaught SyntaxError: Unexpected token < main.js:1 Uncaught SyntaxError: Unexpected token <app is to be hosted on firebase
ionic -v 3.19.0
Posts: 1
Participants: 1
@pendora7 wrote:
Hi i am getting some data from JSON url.
Data consist of some Questions and Answers which are either Radio Questions or Checkbox Questions.I am displaying them like this,
Which gives result,Q1). What is your age?
Ans1). 29My problem is that it works really fine with Radio Type Questions but in checkbox where you can select multiple Answers it is giving this result,
Q2). What subject do you like?
Ans2). Mathematics.Q3). What subject do you like?
Ans3). English.Q4). What subject do you like?
Ans4). Science.I want to display them like,
Q2). What subject do you like?
Ans2). English
Mathematics
Science.Please help, Thank You…
Posts: 1
Participants: 1
@SEusmaniqbal wrote:
I cannot count ion-tab clicks if it’s already active. I want to move scroll on top of the page If home tab is clicked two times like in Facebook.
Posts: 1
Participants: 1
@abhishekkanitkar wrote:
Hi all,
How can we create a build of ionic project, so that we can access the compressed code from native browser like Chrome on device ?
Build for Progressive Web app ?
Posts: 1
Participants: 1
@Madhawa wrote:
m used my university project for Ionic 3, Im added ion-toogle and im try to added ionic-toogle switched to set open modal view, but its not work please help me o fix that issue , look my code
home.html
<ion-item class="rooms-toogle" item-right > <ion-toggle value="foo" checked="true" (click)="openModal({charNum: 0})" ></ion-toggle></ion-item>
home.tsopenModal(characterNum) { let modal = this.modalCtrl.create(AddnewroomsopenalertPage, characterNum); modal.present(); }
Posts: 1
Participants: 1
@vnyksj wrote:
I am using couple of cordova plugins like camera and Image Pickers in my App and they work great in all the Devices… but the problem comes for getting the Permission to these plugins from for phone. Below Android 6 Versions asks for these permissions while installing but Android 6 and above asks for these permissions only when first time when user uses that plugin inside the application(i.e during the Runtime).
I found this Ionic native plugin to handle these permissions in all versions of Android But exactly not getting how to use it or where to use it in my code, So If anyone has any Videos or know anything about it then please mention it here.Thanks,
Posts: 1
Participants: 1
@tanvralam wrote:
Hello All
I have been using google maps in my ionic application. Application was working perfectly fine since today morning, but suddenly it starting throwing error on google maps stating
Sorry, Something went wrong. The page didn’t load google maps correctly. See the JavaScript console for technical details.
It was written in some articles that this message only comes if we don’t provide API key, but in my case, i have been using api key since i started using google maps.
Most importantly, error is not coming all the times
Looking forward to have some solution.
Regards
TA
Posts: 1
Participants: 1
@DetectiveConan wrote:
For example, https://ionicframework.com/docs/api/components/toast/ToastController/
import { ToastController } from 'ionic-angular'; constructor(private toastCtrl: ToastController) { } presentToast() { let toast = this.toastCtrl.create({Can I use ToastController without defining in the constructor?
Posts: 1
Participants: 1
@albertdarmali999 wrote:
Hello, i want to ask why my back button in status bar (only in iOS actual device) overlap but in emulator and browser looks fine.
Ionic: 3.13.2
Actual Device : iPhone 6 iOS 10i’ve tried change my index.html viewport, app.module.ts ios status bar, delete all my app.scss, no one work.
Posts: 1
Participants: 1
@hissro wrote:
hello every one
i have problem when i run ionic cordova run android
the error log :Total time: 1 mins 29.375 secs Build file 'C:\apps\carservice\platforms\android\build.gradle' line: 20 * What went wrong: A problem occurred evaluating root project 'android'. > Failed to apply plugin [id 'com.android.application'] > Minimum supported Gradle version is 4.1. Current version is 3.3. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Hissro\Desktop\apps\carservice\gradle\wrapper\gradle-wrapper.properties to gradle-4.1-all.zip * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * Where: Build file 'C:\apps\carservice\platforms\android\build.gradle' line: 20 * What went wrong: A problem occurred evaluating root project 'android'. > Failed to apply plugin [id 'com.android.application'] > Minimum supported Gradle version is 4.1. Current version is 3.3. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Hissro\Desktop\apps\carservice\gradle\wrapper\gradle-wrapper.properties to gradle-4.1-all.zipcordova -v 7.1.0
ionic -v 3.19.0
please help me
Posts: 1
Participants: 1
@Vartex05 wrote:
Hi in my app, i have list of records, with each list item there is a icon to inform if that record is entry or exit. I want to use log-in and log-out icons. But when the log-out icon is chosen, i want it to rotate it, so it is more obvious. Is there any way to bind some class to icon tag when the name attribute equals to log-out?
Posts: 2
Participants: 2
@rahashim wrote:
{{Date | date: ‘dd/MM/yyyy’}} is not supporting in ios
is their any quick solution to solve this issue
Posts: 1
Participants: 1
@sapienzafra2 wrote:
I’m working on a ionic V3 project using a plugin with a javascript file inside: FILE.js
When I run the application on my android device (ionic cordova run android -l -c), if I make changes to the file in the plugin path nothing happens: plugins/NAMEPLUGIN/www/FILE.js
Instead, it works if I modify the file in this other path:
platforms/android/assest/www/plugin/NAMEPLUGIN/www/FILE.jswhy?
Posts: 1
Participants: 1
@devsm wrote:
When I launch the app with serve it call the http://localhost:8100/____/wp-json/wp/v2 and get a 404 not found; if I open browser and call http://localhost/_____/wp-json/wp/v2 I get the response…
I need to remove the :8100 from the call, but I don’t know how…Or I am wrong?
I changed the .htaccess, the ionic proxy, all works… Only this http request don’t…
Posts: 1
Participants: 1
@rpragesh1 wrote:
Hi, I have implemented fcm notification, but I am receiving HTML tags in content on notification data and that is shown in the notification bar. kindly help if anyone knows how to replace those tags and print plain text in the notification bar.
here is my code :-
FCMPlugin.onNotification( (data) => { if (!data.wasTapped) { data.replace(/<\/?[^>]+>/gi, ""); this.nav.push(HomePage, { data }); } else if (this.platform.is('android')) { data.replace(/<\/?[^>]+>/gi, ""); this.nav.push(HomePage, { data }); } }, (e) => { console.log(e); } );thank you for your support !
Posts: 1
Participants: 1
@valentinay wrote:
Basically i want to insert a Foreign key acc_id in patient_info table from account_info table.
I have managed to retrieve the data from my database. Now I want to insert it in another table as Foreign key. I have following code :
try { $stmt = $pdo->query('SELECT acc_id FROM account_info ORDER BY acc_id DESC LIMIT 1'); while($row = $stmt->fetch(PDO::FETCH_OBJ)) { // Assign each row of data to associative array $data[] = $row; } // Return data as JSON echo json_encode($data); }How can I insert the value in the table?
this is the full code :<?php header('Access-Control-Allow-Origin: *'); // Define database connection parameters $hn = 'localhost'; $un = 'root'; $pwd = ''; $db = 'ringabell'; $cs = 'utf8'; // Set up the PDO parameters $dsn = "mysql:host=" . $hn . ";port=3306;dbname=" . $db . ";charset=" . $cs; $opt = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_EMULATE_PREPARES => false, ); // Create a PDO instance (connect to the database) $pdo = new PDO($dsn, $un, $pwd, $opt); // Retrieve specific parameter from supplied URL $key = strip_tags($_REQUEST['key']); $data = array();switch($key)
{ // Add a new record to the technologies table case "create": // Sanitise URL supplied value $acc_id = filter_var($_REQUEST['acc_id'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); $p_fname = filter_var($_REQUEST['p_fname'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); $p_lname = filter_var($_REQUEST['p_lname'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); $p_gender = filter_var($_REQUEST['p_gender'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); $p_condition = filter_var($_REQUEST['p_condition'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); $p_emergencycontact = filter_var($_REQUEST['p_emergencycontact'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); $p_birthdate = filter_var($_REQUEST['p_birthdate'], FILTER_SANITIZE_STRING, FILTER_FLAG_ENCODE_LOW); try{ $stmt = $pdo->query('SELECT acc_id FROM account_info ORDER BY acc_id DESC LIMIT 1'); while($row = $stmt->fetch(PDO::FETCH_OBJ)) { // Assign each row of data to associative array $data[] = $row; } // Return data as JSON echo json_encode($data); $sql= "INSERT INTO patient_info(acc_id, p_fname, p_lname, p_gender, p_condition, p_birthdate, p_emergencycontact) VALUES(:acc_id, :p_fname, :p_lname, :p_gender, :p_condition, :p_birthdate, :p_emergencycontact)"; $stmt = $pdo->prepare($sql); $stmt->bindParam(':p_fname', $p_fname, PDO::PARAM_STR); $stmt->bindParam(':p_lname', $p_lname, PDO::PARAM_STR); $stmt->bindParam(':p_gender', $p_gender, PDO::PARAM_STR); $stmt->bindParam(':p_condition', $p_condition, PDO::PARAM_STR); $stmt->bindParam(':p_birthdate', $p_birthdate, PDO::PARAM_STR); $stmt->bindParam(':p_emergencycontact', $p_emergencycontact, PDO::PARAM_STR); $stmt->bindParam(':acc_id', $acc_id, PDO::PARAM_STR); $stmt->execute(); echo json_encode(array('message' => 'Congratulations the record was added to the database')); } // Catch any errors in running the prepared statement catch(PDOException $e) { echo $e->getMessage(); } break; } ?>I am getting this error:
ERROR SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>)I am getting the error here which links back to the php file:
load() { this.http.get('http://localhost:10080/ionic/patients.php') .map(res => res.json()) .subscribe(data => { this.items = data; }); }
Posts: 1
Participants: 1
@nocture wrote:
want to upload images to Microsoft Azure Blob storage
i have created Microsoft Azure account and Blob storage
i have referred https://www.npmjs.com/package/angular-azure-blob-service
when calling this.blob.upload(this.config);
getting this error
TypeError: Cannot read property ‘length’ of undefined at file:///android_asset/www/build/vendor.js
Posts: 1
Participants: 1
@stewchicken wrote:
Dear all,
when i Geolocation Plugin getCurrentPostion , it has problem
sometimes it get location based on WIFI , but i want to get postion based on GPS (if on handy)
how to do this settings?
any hints well be more than welcom!import { Geolocation } from ‘@ionic-native/geolocation’;
…
constructor(private geolocation: Geolocation) {}
…
this.geolocation.getCurrentPosition().then((resp) => {
// resp.coords.latitude
// resp.coords.longitude
}).catch((error) => {
console.log(‘Error getting location’, error);
});let watch = this.geolocation.watchPosition();
watch.subscribe((data) => {
// data can be a set of coordinates, or an error (if an error occurred).
// data.coords.latitude
// data.coords.longitude
});
Posts: 1
Participants: 1