I'd like to ask about the way in ASP.NET VB to detect the changes in stocks prices, if the price inceased, the containing cell inside the grid blinks in green, decreased will blinks in red?
ex: if the price now 10.00$ and increased to 10.01$ the containing cell will blink with 1 second in green..!! Many thanks guys in advance.
Ideally, you would want to have a JSON/XML feed that provides the necessary stock symbols, the current trading price, and the time of the last update which is then loaded via AJAX in the background every 'X' seconds. You would capture the previous price and the new price and compare the two.
jQuery/Javascript provides a lot of transitions to help improve the UI on an app such as you described and also has a pretty easy-to-use implementaton of AJAX, via $.ajax().
Related
My webpage is scoring 90+ on desktop version but yet it's test result on Field Data show "does not pass". While the same page on Mobile with 70+ speed is marked as "Passed"
What's the criteria over here and what else is needed to pass test on desktop version. Here is the page on which I'm performing test: Blog Page
Note: This page speed is on 90+ from about 2 months. Moreover if anyone can guide about improving page speed on Mobile in WordPress using DIVI builder, that would be helpful.
Although 6 items show in "Field Data" only three of them actually count towards your Core Web Vitals assessment.
First Input Delay (FID)
Largest Contentful Paint (LCP)
Cumulative Layout Shift (CLS)
You will notice that they are denoted with a blue marker.
On mobile all 3 of them pass, despite a lower overall performance score.
However on Desktop your LCP occurs at 3.6 seconds average, which is not a pass (it needs to be within 2.5 seconds).
That is why you do not pass on Desktop but do on mobile.
This appears to be something with your font at a glance (sorry not at PC to test properly), causing a late switch out. I could be wrong, as I said, I haven't had chance to test so you need to investigate using Dev Tools etc.
Bear in mind that the score you see (95+ on Desktop, 75+ on mobile) is part of a synthetic test performed each time you run Page Speed Insights and has no bearing on your Field Data or Origin Summary.
The data in the "Field Data" (and Origin Summary) is real world data, gathered from browsers, so they can be far apart if you have a problem at a particular screen size (for example) etc. that is not picked up in a synthetic test.
Field Data pass or fails a website based on historical data.
Field Data Over the previous 28-day collection period, field data shows
that this page does not pass the Core Web Vitals assessment.
So if you have made recent changes to your website to improve your site score you need to wait atleast a month so that Field Data shows result based on newer data.
https://developers.google.com/speed/docs/insights/v5/about#distribution
I need some kind of control that will allow a user on a mobile device to select from available time ranges in a 24-hour period for a reservation manager.
For example, let's say the range starts at 8:00am. A user cannot rent the space between 10:00am and 12:00pm (noon), and cannot rent the space between 3:00pm and 6:00pm. Therefore, some valid rental ranges would be:
8:00am - 9:00am
8:00am - 10:00am
12:00pm - 3:00pm
1:00pm - 3:00pm
6:00pm - 7:00pm
You get the idea.
The problem is that I need to display to the user which range of times are already taken, and allow them to select a range of time from the available time slots. My boss suggested using a range slider (such as the jQuery one or the Telerik one), but none of the ones I've found seem to support this use-case.
I should note that my boss would really like to see this as a "timeline" for lack of a better word, where two slider bars represent the range and the slider line is colored red or green depending on whether that time is available.
Any suggestions? Keep in mind that this is on a mobile device using ASP.NET MVC3.
What you could do is to dynamically load the values using ajax when your control has focus and populate that control with the received values. In addition, you could use Remote attribute that would validate the selection against the available hours when a user makes a selection, just to be sure that another user did not make a reservation for the chosen time (so that you can avoid time clash).
I've got a situation where I want the user to enter a start date and end date for report data. In addition there should be a drop down which allows the user to choose one of the following:
last 7 days
last 14 days
last 30 days
If the user selects one of these values, the datepickers should adjust there values? I can't quite figure out how to approach this. Anyone have any ideas.
This isn't possible solely from within SSRS. However, you can still achieve your goal with a bit of extra work. Here's a bit of pseudocode to get you going. This technique works and we use it in our organization often.
In SSRS, hide the report parameters
Create a new blank HTML/ASPX page
Using only HTML, create create your own datapickers and custom "last 7 days" dropdown.
Use Javascript/jQuery on the client to handle your custom logic.
Place a "Generate Report" button on the page.
Insert a hidden iFrame on the page
When the user clicks "Generate Report", perform an HTTP POST passing the report parameters in the URL (something like http://server/reportserver?/dir/Report&rs:Command=Render&Parm1=VALUE1&Parm1=VALUE2&Parm1=VALUE3)
Display the report in the iFrame
Your users won't know the difference and this will give you total control over the layout and presentation of your report parameters.
You can do this within in SSRS. Not great but acceptable.
Have the first parameter be a pick list with two choices.
Pick Dates or Last X Days.
Have the next parameter be the start date.
The third parameter is another pick list. It is either a list of dates or a list of numbers depending on the choice they made in the beginning.
Another way would be to have two reports displayed to the user. one with an open date range and one with a predefined pick list of dates. These would be linked reports that call the same underlying report but display different parameters. This is the approach I would take for such a user request.
We are building a financial web application which requires a real time chart. Initially an empty chart will be shown to the customer with X-Axis from 08:00 to 18:00 with a gap of 2 hours, i.e 6 points. The Y-axis should be adjusted based on the price between these timings. Now, from 08:00 the client(browser) will send a JSON/Ajax request to the server for every 15sec(configurable time) to fetch the latest price. And then, the price needs to be updated on chart based on the time.
I have seen some third party controls but really aren't successfull to satisfy this requirement. Telerik controls doesn't have client side access to the chart because it renders as an image.
Could anyone please let me know a third party control to satisfy this requirment.
Thanks a lot.
Mahesh
This looks like what you want
http://www.jscharts.com/
Can anyone recommend a free asp.net control that I can use for the following:
Weekdays Monday-Saturday along the top row
Time of day along left hand side
Template fields for the actual data
Databindable
Cells span the rows based on the start time and end time
Here is a control that I found that is pretty good, but I am trying to find alternatives:
Databound Schedule controls
DayPilot is a pretty good general purpose calendaring/schedule control.
The full version is not free, but there is a "lite" version available which is not only free but open source!