473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

smartnavigation WebUIValidation.js

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
Nov 18 '05 #1
5 1618
"ddt.demos.su" <gfhgfhf> wrote in message
news:e9*************@TK2MSFTNGP11.phx.gbl...
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.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
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)
"ddt.demos.su" <gfhgfhf> wrote in message
news:e9*************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #3
"bruce barker" <no***********@safeco.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
johnwsaundersiii at hotmail
"ddt.demos.su" <gfhgfhf> wrote in message
news:e9*************@TK2MSFTNGP11.phx.gbl...
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


Nov 18 '05 #4
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
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
"bruce barker" <no***********@safeco.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
johnwsaundersiii at hotmail
"ddt.demos.su" <gfhgfhf> wrote in message
news:e9*************@TK2MSFTNGP11.phx.gbl...
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



Nov 18 '05 #5
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 news:uO**************@TK2MSFTNGP12.phx.gbl...
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
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:uz**************@TK2MSFTNGP12.phx.gbl...
"bruce barker" <no***********@safeco.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
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.
--
John Saunders
johnwsaundersiii at hotmail
"ddt.demos.su" <gfhgfhf> wrote in message
news:e9*************@TK2MSFTNGP11.phx.gbl...
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



Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dudi Nissan | last post by:
Hello When I add me.SmartNavigation="true" to code behind, I got the following javascript error messages "Unable to find script library...
1
by: Joe | last post by:
I have created a web application using C#. I have done several web based apps in C# and have not had this problem before. I think this may be a defect in the VisualSutdio.net2003. I am using a...
2
by: Morten | last post by:
Hi! I've developed an application that uses forms based authentication. The logon page uses the file WebUIValidation.js a couple of places and the file is located in the right place on the...
4
by: Bobby | last post by:
Hi all... I rather confuse using smartnavigation in my web application because if I set the "smartnavigation = true" then If I run my app, then after I post page that page, using event...
3
by: Nestus | last post by:
Hi, im developing a solution in ASP.Net, i have a page that i need to use the smartnavigation in true, the problem occurs when i put in the directive @Page SmartNavigation = true my page trhows a...
2
by: Wysiwyg | last post by:
Has anyone found a reasonable way to emulate smartnavigation functionality for any browser? I'd really like to avoid creating history entries when posting back to the same page. SmartNavigation...
3
by: 2stepme | last post by:
I am sorry to put this question up (because it has been asked and addressed many times) but I have searched and I been unable to solve my problem. I am running XP PRO Version 2002 SP2 on my...
0
by: Quazzo | last post by:
Hello, I have found a small bug in WebUIValidation. In a page I use a CompareValidator to check that the user input date in correct format. When using Culture Latvian the date looks like:...
5
by: Mogens Nielsen - Elbek & Vejrup A/S | last post by:
Hi, I can see from the msdn-docs that SmartNavigation is now obsolete. Why is that? The SmartNavigation feature has been replaced by MaintainScrollPosition, but the scoll position is not why...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.