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 6 years ago.
Improve this question
I'm using bootstrap in my web API page, and i'm planning to put 9 tabs in a page. Each tabs will have to load database values based on drop-down choice and the choice will be displayed in a table, then from the table they will make another choice and then that choice will be added with several other textbox inputs to be stored in the database.
So there will be a to-and-fro data retrieve and send process for each. Is it wise to do this? Does it affect performance? Or should i put those tabs in separate pages?
This is more of a UX/IA issue than a coding concern. I would envision using AJAX to load/refresh each tab's content, which could affect performance based on how much data is returned, how the data is displayed, etc.
I'm typically a proponent of the "less is more" mindset so 9 tabs may be a lot, but again this is up to your app's purpose and UX.
Related
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 8 days ago.
Improve this question
I'm in need of automatically getting reviews from a job posting page for my client. The problem is that it's a medium sized, local website without a public API. Are there any ways to automatically update your website based on information from another website? It'd consist of rating, name of reviewer, message + date
A library like Puppeteer is a premium choice for this if you're wanting to stick with Node.js. When you scrape just be sure you consider the website's Terms of Service that you're scraping - but I've used Puppeteer for this purpose and it's generally very simple and convenient.
You use DOM selectors as you would with Javascript and then can grab text or metadata attribute values wherever you want.
Then you just need to be careful with how you run these crawlers to not abuse the website. One crawl per 1-minute is probably a minimum if I were to guess but it's up to you!
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
Since a year and a half I am trying to figure out how some websites update their content in real time without AJAX method.
Please see this example website: https://pro.btcturk.com/en/basic/exchange/BTC_TRY
That website is changing many texts within content in different timing.
It means that when the server is updated with new values in the database then the website is listening to database changes and then reflecting/delivering inside content without ajax calls.
Can someone give an example how to achieve such functionality possibly using Javascript or PHP normal hand-code appreciated?
Thank you
You can see the process here:
More information here: Websockets
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 4 years ago.
Improve this question
I currently have a timer set up on an “admin” page with JavaScript and I want to display that same live clock on the homepage of my website. How can I do this? It’s basically two input fields that display number values. One displays minutes and one displays seconds. The values are updated using buttons which are found on the admin page. What I’m trying to do is display the current time that the clock is showing on the admin page on a separate page. Is there a simple way to do this?
You could store the value of the timer server side and just query it each second to see at what time it currently is. You could also use socket.IO to have real time access to the server timer.
It's impossible. website is connectionless.
You can't push any event to other client page
without client behavior(like button click..)
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
I have a website with multiple webpages.Among that one page is having 3 gridviews,20 dropdownlists and some ajax javacript calls. i am calling 15 stored procedures to fill the in gridviews and dropdownlists.
Since so many controls and stored procedure calls within the page, loading itself taking too much time.How can i improve the performance.I can't remove the existing gridviews and dropdownlists.
Any one please suggest the tips to improve my page response speed..
Here are three options:
Minimize the stored procedure calls at the time of page load. You can do it, let's say out of those 20 dropdowns 12 are dependent on the other 8. Bind them on the change event of those 8.
You can put some button to show the 2nd and 3rd if possible to reduce two more database calls.
You can combine some of the stored procedure in one and pull multiple tables in one dataset and use it to populate few of the dropdowns.
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 9 years ago.
Improve this question
As I understand, SPA means
Move maximum of logic to the client. Means client only receive JSON objects from the server by requesting them and nothing else
Push all our html to as single page
Maybe something else?
Questions
What are reasons/benfits to write Single Page Application?
Especially, what are the benefits to push all our html to a single page?
One of the big differences with SPAs is responsiveness. They just appear more responsive to the user because there's no gaps while a page has to load. Users can also be given direct feedback while they're waiting for changes (like spinning icons or progress bars). This kind of feedback is well received by users and decreases the perception of wait-time. Users can also be interacting with the app in multiple ways, all without having to wait for a new page load for each interaction.