Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm working on a quick prototype, and i would like to persist data locally for not having to write Server Side Code.
My application, store data on the $scope, and i have a form on my pages wich add more data on my $scope. But when i'm navigating on the application, i'm loosing my data.
Is it possible to store the data on the session ? and how ?
Is it easier to store data on Google chrome local datastore ?
In advance thanks.
You can store data in javascript using either cookies or the local storage feature introduced in HTML5.
Cookies aren't very intuitive: they have a very tight space limitation, and in order to store any possible javascript type you'll have to do some serializing.
Local storage is much easier to use, but will only be available to users running a HTML5 compliant web browser.
If you can afford to get your users to use HTML5, then check out this page:
http://diveintohtml5.info/storage.html
If not, you'll have to use cookies:
http://www.w3schools.com/js/js_cookies.asp
I haven't been able to find my own works on that field, however I just found this:
https://github.com/marcuswestin/store.js
If your users are mostly IE or modern web browser users, this lib seems to be perfect for you.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 months ago.
Improve this question
I have the following problem. I downloaded a web page with the wayback machine downloader. The wayback machine downloader saves the query strings with %3f because question marks are not allowed in Windows Explorer. For example, when I go to the splash.aspx?page=3 page, nothing happens except that for each value after the ?, the same page appears. How can I assign different pages with the query strings?
Btw: I use IIS for hosting.
The problem is that the downloader creates a static copy of the site. There won't be any server-side processing. Multi-page processing requires that.
Assuming that the wayback machine actually iterated through all the pages, you will need a different downloading tool that can find them all, creating static versions of each page and rewriting the links for each, since the wayback machine downloader doesn't know how to do paging itself.
But really, stepping back, I think what you're trying to do is the problem. Wayback Machine is for creating snapshots of sites at a point in time. It's goal is not to backup and restore the backend functionality. (Which it can't do, even if it wanted to, since it doesn't have access to the backend of every site on the internet.)
You didn't specify what your final end goal is, but my guess is that while the wayback machine might be able to be used to scrape the data, you'll have to write your own server code and website if you want to redeliver it again. (And assuming you have the rights to do so.)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Given:
Suppose that I have a website called "exampledomain.com", and that on that website, I have one file called "my_doc.html", the full URL address of which is "https://www.exampledomain.com/my_directory/my_doc.html". (Not my actual website; this is just hypothetical).
Objecive:
I'm trying to develop a Client-Side Application, using C++ & Windows Sockets, that downloads my HTML file, parses it, extracts some specific information, runs some calculations, and displays its results to the user.
Question:
How do I download the HTML file from the server to the directory "C:/ExampleDirectory/" on the client-side computer, using the Windows Sockets Library?*
Clarification:
I want to write this Client-side program to work with the existing website. IE: I want it to download the file in the same way that an Internet-Browser like Microsoft Edge would.
Edit:
Just to clarify, the server uses a secure, account-based system, and thus the document would be transferred using HTTPS. I'm not really sure if this would effect the solution, but I thought it'd be worth mentioning.
Don't.
A socket library is not an appropriate tool to talk with a web-server. http is complex enough that you want to use a specialized http library. There are several such libraries available. curllib springs to mind. And of course there is the WinHttp tag https://stackoverflow.com/tags/winhttp/info.
And for the html part, you'd want to use an html parsing library to extract the desired info.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am in need of some help, here is what i have...I have build a Access Database using 2013 and have placed it on our company network. The database is updated frequently of visitors signing in and out. What i am trying to do is view the database like a report or select* from table1 (something like that) I would like to view this by HTML from browser (file://) as i will be using a IPAD that is connected to our network. I am looking for some insight our other possible ways this might work
Thanks in advance
Does your company use SharePoint?
I just created a web database relatively easily that is hosted on sharepoint.
You should be able to import your tables pretty easily.
Possibly relevant:
Move Access Web Database to Another Sharepoint Site
If you going to build a web interface, then you need to use web development tools.
You can of course adopt terminal services, and thus consume the application on an iPad or any device that supports remote desktop protocol (RDP).
And you can now “eliminate” the need for a RDP client since technology does exist that converts RDP to pure HTML5. Check out:
https://www.cybelesoft.com/thinfinity/remote-desktop/
In fact there is even an open source one here:
http://guac-dev.org/
The above will thus let you run existing Access applications in a browser – you need a server running remote desktop for this purpose.
As several mentioned, you can also adopt Access web publishing, but that choice does not support VBA, nor does it support existing forms etc. (you have to re-build your forms as access web forms and no conversion of existing forms exists).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am building an app that will have local database. I plan to implement local database that will be used for offline work, and when app connects with internet it should sync with the server data.
What is currently the best way to do it?
I prefer JSON type databases over SQL databases so I would like to use MongoDB for web, but then for local database there is only one solution that is not yet available for android.
https://github.com/thejustinwalsh/airejdb
How do you do it?
Do you save key:value inside of SQLite database, do you use plain text saved somewhere or do you have some other implementation of mongoDB for local Adobe Air?
Thankx
Depends on project, if I have sensitive data then putting it in encrypted SQLite might be necessary, also if JSON data is not so small it might be good idea to just compress it as a string and put as a byteArray->BLOB in SQLite, can save lot of space which in case of mobile project might be useful, otherwise you can do same with some text file without using SQLite at all, just save and load data, IMHO impelementing something like MongoDB is much more harder work then given examples.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
When does a single page web app need a loading page in the style of Gmail or RTM or the many others? Should there be a size at which I introduce one? Is it just about time?
And, is it just loading in the JS, CSS files etc, or is it doing processing too?
Also, as an aside, how would I even go about introducing such a page? Are there plugins/guides, etc?
Thanks!
It is a complex question. as many times the best answer is "it depends".
I think it is not about size but simply about how user experience you want to offer. More richest and dynamic content more rich your client must be.
So if you make many things dynamically using JS at client side, like gmail,where UI never freeze, the calls are asynchonous and content refresh is made by JS, you can arrive to have an architecture where server offers an API and client side contains more business logic.
The basic idea is to have a HTML file, with some CSS and JS code responsible to load or send data from/to server and update the UI.
This is different from the "traditional" model whre client request a server page. The server proces the request, generates a HTML (plus CSS+ JS) and returns to client. Then any click on a button generates a new request that returns a new page. etc.
I suggest you to take a look to Dojo toolkit.
Programming in the gmail way can produce lost of JS files and really big HTML files. Dojo simplifies that a lot and also manages modules. This way the client side code is not loaded once when the HTML page is loaded, but it manages which "modules" you need and load it when needed.
Hope this can clarify a bit.