Problem writing to a database on iphone in mobile safari - sqlite

I have got a web app working in Safari 5 on the desktop that writes to a local storage database - not problems! Able to add, update and delete records fine.
I then set the web app up on the iphone, but it seems to be ignoring all database transcattions except creating and dropping tables.
It does not matter whether the app is on line or off line. If I add a record, it does not get added to the database. I enabled the debug console, but there are no error messages.
The instruction to add the record just seems to be ignored! It doesn't matter which page of the app i am on and I have made sure that only the index file has a link to the manifest...
Suggestions would be very welcome!!
Dave

OK... Thanks if you looked at this...
:)
Turns out that when the app was locally cached, the page refreshes were happening too quickly for the data to be added to the database!
I have added some settimeout's and all is peachy...
Sorry to anyone who went for it...
:)

Related

My Angular 10 App deployed in Azure is loosing its styles when refreshed

I have started working on an Angular 10 application using DevExtreme UI Widgets. I deployed a demo version in our Azure Cloud but while I was playing with it, I noticed a strange behavior. It seems that I lose my styles when I refresh.
For example, this is how the login page should be displayed:
If I refresh the URL without entering my login credentials, the page changes and gets displayed like this:
When I login, the bad or good styles are carried over. For example, the landing page should be displayed like this:
If I refresh the screen here, I also see the styles being altered. This is how the landing page gets displayed when the styling is lost:
When I lose the styling if I keep refreshing the page over and over again, eventually I regain the styles and my application starts being displayed as intended.
Any idea what causes the styles to be lost? Any suggestion would be greatly appreciated.
Thanks,
Ed
Regarding the deployment of Angular projects, I have encountered various problems. I am willing to share it with you and hope it will help you.
Troubleshooting steps:
Solution 1.
You can deploy it via Azure Pipelines CI/CD without using the vscode to deploy webapp.
Maybe smth wrong with VS Code plugin, as it is in preview
Solution 2.
Use github for continuous deployment. It is recommended to create a webapp and choose the Linux operating system.
Solution 3.
It is recommended to use FTP to publish the build folder after the project npm build.
This issue was resolved. After further investigation, it turns out that the problem had nothing to do with Azure Cloud deployment. I use DevExtreme UI widgets in my application and the application is based on their Angular Template.
I tried the website using Chrome, Edge and Firefox. The issue described above only happened in Chrome. DevExpress tech support pointed me to this support ticket.
After following the recommendations in the workaround and a redeployment, my app looks fine even in Chrome.
Thanks for everyone trying to help.
Ed

Server not showing the right file on webpage

I am testing/learning how to send info from a Gravity form to a test file on my website.
I am using a testfile.txt that I added in var/www/ which is the location of the Wordpress directory.
The command I am running updates that file and I am able to see its contents when i go to the domain: mywebsite.com/testfile.txt.
The first time I run the Gravity form, I can see the changes on the webpage. However, after updating its contents to something else, the webpage does not update despite reloading it.
To troubleshoot this, I SSH'd into the server to see if the file was being updated and indeed it was...
So, basically, the file is being updated on the server but not on my GoDaddy domain... Has anybody encountered a problem like this? And if so does anyone have a solution?
I am no Expert in this field, Beginner to be honest. When I was learning Python flask a framework for building website, I had similar issue. Maybe the problem is that, when you visit your website it loads from the cache. To solve that press 'ctrl + F5', it forces a cache refresh, and will guarantee that IF the content is changed, you will get the new content. Again, I am beginner myself.
As #Sadman said, whenever I don't see my content getting updated I do a hard refresh or delete the cookies and cache manually. Either one of these solved my problem. To make a hard refresh press ctrl+shift+r or ctrl+f5 or shift+f5 on windows. On MAC this is cmd+R. I hope this helps!

Unable to delete page in Magnolia CMS

I'm trying to delete a page from Pages application and I'm receiving success message
But the page is still there.
It's the same when I try to delete a page from JCR, I'm receiving success message, but the node is still there.
I have no info, warning or error messages in the logs.
What I've tried is to turn off the public instance from the Configuration app, but still I'm not able to delete a page.
It's happening only on my author instance.
Any idea, where I can look to find some info why I'm unable to delete a page, or why I have that problem?
Thanks.
Edit:
I don't get the trash bin icon on the page like this:
Just nothing is happening.
Solution:
Ok, I kinda solve it.
This is happening only on macOS Mojave in Safari 12.1.1
It works fine on Windows under Chrome, Firefox, Edge.
You need to publish the deleted page. The activation/deactivation of pages does not happen automatically, so if the node disappears immediately after deletion, you won't be able afterwards to publish the "deletion" to public instances, to keep them in sync.

Firebase Hosting not updating connected domain

I'm hosting a web app with Firebase hosting service.
I build my app and then deploy it using firebase command tools.
The build is successful and the firebase domain shows the update:
https://calmeet-a7271.firebaseapp.com/e/-KsC5suhESWNwzYw6rtq
But the connected domain doesn't show the update:
https://calmeet.co
You can see the difference in these two links by the Settings (cog) button on the top right. https://calmeet-a7271.firebaseapp.com/e/-KsC5suhESWNwzYw6rtq has the settings button while https://calmeet.co does not
I'm not sure what I'm doing wrong, I thought this would be automatic.
DNS seem to be working alright. I don't see any error in firebase
I had this same issue. It was caused by doing back to back ng-build and firebase deploy commands in the terminal.
Turns out chrome was caching my connected site. If I opened it in a different browser (safari) it would update. Another way to fix it in chrome is to clear recent browsing data by going to your browser toolbar, clicking More and then More Tools and then Clear Browsing Data.
Short answer, Clear caching browse and try again or open another browser.
Hope this help.
Just do a hard refresh (cmd + shift + r) on your website on Chrome. That worked for me.

Firebase database empty tab, rules load indefinitely

I just created a firebase project. And the database in the console appears empty. On previous projects, when you clicked on the empty white area, you were able to create database items by hand.
But clicking it doesn't do anything.
The rules tab is loading indefinitely, and i can't type anything.
I'm on Chrome last version, do you encounter such problems by creating new projects?
Here are some screenshots:
Ok, quick answer to my own question as i wasn't able, from my Angular2 App, to interact with database as well via websocket.
I'm working in a company with a (strong) proxy setup file. Disabled it on windows settings and all works now perfectly. Firebase website appears to rely on websockets.
Hope this information can be useful to someone else!

Resources