smartnavigation WebUIValidation.js

D

ddt.demos.su

I have had some problems with using Samrtnavigation.
Using a frame solution where initially a datagrid is displayed, which when
an item is selected hides the datagrid panel & presents a panel of controls
that have validation.
Without smatnavigation this works fine, with it enabled the error message
'can't find script....' occurrs.
One thing I found that cures it is setting; in I.E. the 'Check for newer
versions of stored pages' to automatic, this made me think that it is
somehow linked to caching.
The solution I am currently using is to create a textbox (invisible) on the
datagrid panel with a value, plus a required validation control (visible).
This works as it seems that if the WebUIValidation script is not loaded when
the page is first rendered it will not find it on postback.

ARC
 
J

John Saunders

ddt.demos.su said:
I have had some problems with using Samrtnavigation.
Using a frame solution where initially a datagrid is displayed, which when
an item is selected hides the datagrid panel & presents a panel of controls
that have validation.
Without smatnavigation this works fine, with it enabled the error message
'can't find script....' occurrs.
One thing I found that cures it is setting; in I.E. the 'Check for newer
versions of stored pages' to automatic, this made me think that it is
somehow linked to caching.
The solution I am currently using is to create a textbox (invisible) on the
datagrid panel with a value, plus a required validation control (visible).
This works as it seems that if the WebUIValidation script is not loaded when
the page is first rendered it will not find it on postback.

SmartNavigation is known to have several bugs, which is why I never use it.
 
B

bruce barker

smart nav work as follows.

1) on the original render, javascript creates a hidden iframe.
2) on post pack, the hidden iframe is the target.
3) after postback, the parent catches the onload event of the hidden frame.
4) the main frame javascript copies the dom from the hidden frame to the
main frame.

this means that with smart nav on, all javascript you call, must be included
on the original render. javascript included on the postback will only exist
in the hidden frame. you can make you script calls smart enough to call in
the hidden, but the script must also determine where objects are local or in
a parent.


-- bruce (sqlwork.com)
 
J

John Saunders

bruce barker said:
smart nav work as follows.

1) on the original render, javascript creates a hidden iframe.
2) on post pack, the hidden iframe is the target.
3) after postback, the parent catches the onload event of the hidden frame.
4) the main frame javascript copies the dom from the hidden frame to the
main frame.

this means that with smart nav on, all javascript you call, must be included
on the original render. javascript included on the postback will only exist
in the hidden frame. you can make you script calls smart enough to call in
the hidden, but the script must also determine where objects are local or in
a parent.

Once I saw that Smart Navigation was copying the DOM from one frame to
another, I decided never to use it again! I have no confidence that one can
duplicate the DOM and its state so completely that no difference would be
seen between the original frame and the new one.
 
D

ddt.demos.su

Every time I try smartnavigation I get so far, then end up not using it.
After fixing the loading of the script error, I have now found that the
calendar control, if included with controls that are validated when a day is
selected & posted back there is a script error.
For some reason there is no way to stop autopastback in a calendar control,
therefore unless I use a 3rd party control or someone knows of a solution, I
will have to stop using smatnavigation, shame cause it is was nearly OK

ARC
 
S

Scott G.

There are several home-brewed alternatives to SmartNavigation; they are all done with Javascript (which I think ASP.NET 2.0 is now using, but don't quote me on that) and work just as well as the <iframe> technique, except without the bugs and they aren't IE specific.

Do a google and you should find one that you can use as a replacement.

Scott
"ddt.demos.su" <gfhgfhf> wrote in message Every time I try smartnavigation I get so far, then end up not using it.
After fixing the loading of the script error, I have now found that the
calendar control, if included with controls that are validated when a day is
selected & posted back there is a script error.
For some reason there is no way to stop autopastback in a calendar control,
therefore unless I use a 3rd party control or someone knows of a solution, I
will have to stop using smatnavigation, shame cause it is was nearly OK

ARC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

WebUIValidation.js 0
WebUIValidation.js and Latvian[lv] 0
WebUIValidation.js 2
SmartNavigation 2
WEBUIValidation.JS 1
SmartNavigation 2
SmartNavigation ? 2
WebUIValidation.js script error 1

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,048
Members
48,769
Latest member
Clifft

Latest Threads

Top