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.
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 1 year ago.
Improve this question
I have created a simple project with two HTML page 'home' and 'details'. I have a spreadsheet of some data I want to show as list in 'home' page and on clicking shows associated details. I tried searching in internet but I was left with even more question than before. The data consist of 10 column and 1000 rows and might reach 5000 rows.
If you are facing trouble while learning DataBase, there is an alternative you can try and it is very easy to understand and implement in your code.
You can learn about JSON (JavaScript Object Notation), Simply you have to create a JSON file in which you can store the detail of all those 1000-5000 rows and render them on your Web page using JavaScript
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 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.
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 have 10 records in json array that comes from api call. But I need to show only 1 record on webpage providing next and previous buttons. So when user clicks on next or previous buttons I need to fetch the next or previous records and display on webpage. Something like viewpager in android or flipview in windows apps.
The reason why I want to store is just to avoid unnecessarily api calls to server fetching record and also pointers to next and previous record.
Is it possible to store those 10 records in some javascript variable and keep iterating when user clicks on next and previous.
Server side I am using laravel 5.2
Of course it can be done. Just format your JSON correctly to hold an array of records, and maintain an index pointing to the current record.
To update the display you can either use pure JavaScript or utilize some kind of MVVM library (for example) like Knockout or Angular.