Keith, This one falls under RedDot's standard issue warnings on RQL. Loading any kind of page in RedDot is in fact a bunch of RQL operations generating the page instance. And you are forcing the xmlserver to modify the page while it is being generated ... so what gets executed is a toss.
I've have the opposite experience where the modification portion gets ignored and the page just loads as usual. After a few tries, I surrendered and just moved the data-modification RQL block outside the page, triggered it with Ajax at some page events (like jQuery's "ready" or Dojo's "AddOnload"). After the execution of the external RQL, just force the page to reload upon the Ajax return. Would'nt that serve your purpose? Without the Don Quixotic fight? Henry Lu On Wed, Sep 17, 2008 at 10:39 AM, Keith <[EMAIL PROTECTED]> wrote: > > I have a scenario where it would be very handy to automatically set a > few properties of a page as it is being loaded for the first time in > SmartEdit. In particular I'm trying to add taxonomy keys and set some > default items in a list element after certain values have been set in > SmartEdit mode on the page. Conceptually, the template is something > like this: > > <html> > <head> > --- all of the header contents, some built with ASP pre-execute > sections--- > </head> > <body> > <pre-execute><% > ' check if the page needs certain default properties set based > on current element values > ' run RQL to set those things > %></pre-execute> > --- all of the body content, some built from ASP pre-execute > sections, containers, etc... all the normal stuff--- > </body> > </html> > > While building the RQL to do this is easy enough, the problem I run > into is that when I run RQL that modifies the page contents while that > page is loading in SmartEdit (or being published), all of the output > from *every* ASP pre-execute block is removed from the page. This > leaves a bunch of holes and important pieces missing from the page. It > is not just the pre-execute block running the RQL that gets its output > stripped. The RQL itself is finishing OK (every change that it should > make is being made, verified afterwards in SmartTree), but all of the > pre-execute block output simply gets lost. This occurs both in > SmartEdit and during actual publication as well. If I execute read- > only RQL, there are no problems. It's only when running RQL that > modifies the page that is being shown/loaded that I seem to run into > this. > > This is in 7.1.2.6. Has anyone run into this before or have any ideas > on how to work around it? Thanks... > > - Keith > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/RedDot-CMS-Users?hl=en -~----------~----~----~----~------~----~------~--~---
