Showing posts with label html. Show all posts
Showing posts with label html. Show all posts

Monday, March 26, 2012

Atlas updated field to "blink"

Is it possible to have the background of, say, an html SPAN tag blink a certain color when the field has been updated, but just for a second and then go back to the color it was before?

This as an indication to the use that a field has been updated?

Thanks!

We've recently added a component called "DynamicPopulate" that does part of this. It allows you to set an updating CSS class. That gets you part of the way there. We're working on adding the ability to specify animation effects as well, which will get you the rest of the way.

To check out DynamicPopuplate, you can try the source-code bits available at www.codeplex.com.


Cool. Thanks for the info!

Atlas update panel problem

Hi,

I have page which main content is generated with function which returns HTML string:

<table>
<

tbody><tr><tdvalign="top"align="left">
<%=_contentOfPage%>
</td></tr></tbody>
</table>

Ant the function in code behind looks like:

public

string _contentOfPage;
publicvoid getContent(Int32 nDays)

{

String content;

content=.....//here is logic, which define content of the page

.......

_contentOfPage=content;

}

Everything works fine.

Because page has a lot of menues which I don't wont to refresh on every page submit, I included atlas update panel, which refresh only the main content of the page. It works with atlas too, page doesn't blink and only the main content is refreshed on page submit, like I wanted. But the interesting here is that refreshing only the part of the page(main content) takes about 3 seconds, while on the other hand, refreshing whole page takes only 1 second.
On all other pages, refreshing only content of the page works much faster, but here not. Any idea why?
Maybe because the length of _contentOfPage string is about 10000 signs or more?

Regards,S

HI,
as per my guess you are using lots of string concatenations to create the _contentOfPage,
that will take much of the server time,
try using stringBuilder which will be quite faster than the normal string concatenation

hope this will help
satish

Hi,

all I'm using for string concate is + sign between many if statements.
Maybe string builder is faster but the problem is not on the server.

The function on the server generates string in miliseconds.

The problem is obviously on client side.

Atlas call this method from client to server with ajay technology(XML HTTP) and than replace part of page on client with new string which gets from the server.(I think with INNERHTML method or similar).

If string is very long, like in my case, that procedure is slower than refresh a whole page.

I don't know if that is a rule or I missed something? Any idea?

regards,S

Saturday, March 24, 2012

Atlas TextBox

Hi,
Just tried the textbox sample from HOL and realized if we have a HTML SELECT element under the auto-completed result list, the SELECT element will show through it.
I know this is a browser issue but as there are several AJAX toolkits around these days, do you expect to have a solution for this problem by RTM time?
Thank you,
António CruzYes, you're absolutely right. That's a very well known problem on IE browsers. It's something we already had to deal with in the ASP.NET 2.0 menu control but that we didn't have time to fix in the PDC Atlas build. Here's a blog post explaining how it was fixed in ASP.NET 2.0:
http://weblogs.asp.net/bleroy/archive/2005/08/09/422047.aspx
We're probably going to apply the same fix in a future build of Atlas right in the popup control.
The same fix will cover flash and other active content, in IE, however in firefox if there is movment, on your active content it will redraw the active content over the covered area untill you cause the document to redraw. ie: alt - tabing back and forth.
can anyone say annoying :)
Just a heads up.
-Adam
I'm not sure I understand thar: Firefox does not need this fix as it already covers selects and other similar contents.