I have multiple iframes which are displaying same collection of data (help in asp.net Cache).
After the modifies the data on one of the frames, I would like all of the others to reflect the update without the need for explicit postback on each one of them.
So the question is: What is the easiest and most elegant way to keep iframes synchronized in this case?
Thanks in advance
I'm yet to see an elegant iframe solution, but it's a pragmatic solutions to certain problems. Here's a few ideas:
Post your changes to the top level frame and rebuild all the frames
Use a custom javascript to update the necessary frames on changes
Use a custom javascript to update the top level frame on changes
Ok, I have implemented you second suggestion. However, in the final solution I managed to avoid usage of iframes, which is in any case much better :)
Thanks....
Related
I am about to implement a function that loads potentially large set of data (~1000 rows with ~10 columns). I am planning to implement a infinite scolling solution (ajax, jQuery, asmx) as a performance measure. However, if a user has javascript disabled or the googlebot comes a-crawling, I would like to generate the entire set of data all as once, so that no data becomes inaccessible for either of those two scenarios.
I'm not sure what approach to use here. Should I look towards the noscript-tag perhaps?
In my experience if you're expecting a 1000 rows and expect any sort of traffic you would need to offer two scenarios.
I would use the noscript tag and then offer a paginated view for non js users. Or, you can do as I have done in the past and simply explain that your application requires that javascript be left on (also through the noscript tag). Anyone that runs around the internet with javascript turned off is most likely going to be used to the internet not working the way it should, or only getting a partial experience.
Try to use a client-side pagination class with JS,
its lightweight, very user friendly and if browser doesnt submit JS,
No problem, he will see a huge data table :)
http://en.newinstance.it/2006/09/27/client-side-html-table-pagination-with-javascript/
I have to add all 86 fields from a view based query inside a grid on a form. The problem is that a form is very slow and the application freezes.
Is there any way to make it faster?
Also try to disable auto-sizing of columns:
grid.autoSizeColumns(false)
Crazy clients ask for crazy things.
My suggestion is DON'T.
As I have the advantage of working opposite you ;) my suggestion is to avoid using a Form/Grid altogether and export the data directly to Excel. Code example.
I've got a databound series of predefined shapes (Path with Data="" set) which each trigger the same event when clicked.
I'd like to programmatically access the mini form of the Path.Data property at runtime to be able to persist it.
In this case I could just name the elements and on click check which one, however I'd prefer a more generic solution.
There seem to be some WPF workarounds but I haven't seen any for WP7.
Does anyone know if this is possible? and if so, how to do it?
Thanks.
Looking in to if and how this may be possible I came across http://www.eightyeightpercentnerd.dreamhosters.com/?p=40 and even though it's quite old it explains how a paths data/geometry is parsed in Siverlight.
It leads me to think that you may be better off trying to find a different approach to solving your problem. :(
I am working with ASP.net and I have two gridvew controls and some link buttons. Now, to bind these gridviews, I have to call web services and data access. Since I am pulling large amount of data, the page loads slow. I am wondering if there is a way I could do partial page load, meaning that I would like show the link buttons first then show rest of gridview as data are available (to bind to gridivews).
Is there a way I can accomplish this? (Preferably, without AJAX).
Thanks.
If you want a truly AJAX-less method, you could go with the ol' trusty IFrame tags and have your gridviews be stand alone pages. I believe the page will render around the IFrames while the IFrames themselves load.
NOTE: I also am not advocating this a the best solution, but it may meet the intent of this scenario.
Not without AJAX. But can you define what you mean by "without AJAX"?
Have you seen PageMethods? They may do what you intend, in a way that is palatable to you.
Alternately, you may mean "without UpdatePanels" in which case, are you familiar with XMLHttpRequests? (Note: I do not intend that an XHR is the appropriate solution here, I'm probing for familiarity with the topic)
First a couple of things, you may want to limit the data you are grabbing. If you are using a gridview this data will be stored in view state, causing huge overhead. If you are only displaying data, consider using repeater or datalists they are lighter. In any case you should be using pagination, though you may have to implement a custom pagination solution for the repeater.
I had been going through Iframe related questions and got stuck with this.
They break the one-document-per-URL
paradigm, which is essential for the
proper functioning of the web (think
bookmarks, deep-links, search engines,
...).
Moreover, if I ask you to tell me the difference between Iframes and Frames, what is the easiest way to explain it?
Frame allows you to display multiple documents on page.
They all have distinct URLs which are hidden from you. So, you cannot bookmark them separately.
An iframe is a frame in an otherwise normal document.
Normal frames are placed in a document which consists entirely of frames (plus, hopefully, some fallback content from user agents that don't support them).