Access forms Do not work in web browsers
You need to use server side scripting (ASP) to connect to and use the Db in a browser
- if you don't know how to do that look at the FP DBRW
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________
| I'm programming the webpage in FP which is where I think the error is. If you
| can't help there's no need in replying.
| --
| Adam Thwaites
| Access Database Designer
| adam.*spamless*
[email protected]
| Manchester, UK
|
|
| "Thomas A. Rowe" wrote:
|
| > Either way it is still not directly related to using FP.
| >
| > --
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > ==============================================
| > If you feel your current issue is a results of installing
| > a Service Pack or security update, please contact
| > Microsoft Product Support Services:
| >
http://support.microsoft.com
| > If the problem can be shown to have been caused by a
| > security update, then there is usually no charge for the call.
| > ==============================================
| >
| > | > > So you don't think the problem is the script in my website, in particular the
| > > line:
| > > var qpairs = document.location.search.substring(1).split("&") ?
| > >
| > > <script type="text/javascript">
| > > function qsobj(parm)
| > > {var qpairs = document.location.search.substring(1).split("&")
| > > var qvbl = qpairs[parm].split("=")
| > > return qvbl[1] ? unescape(qvbl[1].replace(/%20|\+/g," ")) : null}
| > >
| > > var TimeOfDay = qsobj(0)
| > > var Agent = qsobj(1)
| > > </script>
| > >
| > > --
| > > Adam Thwaites
| > > Access Database Designer
| > > adam.*spamless*
[email protected]
| > > Manchester, UK
| > >
| > >
| > > "Thomas A. Rowe" wrote:
| > >
| > >> This is not a FP related issue, you need to post to the Access newsgroup.
| > >>
| > >> --
| > >> ==============================================
| > >> Thomas A. Rowe (Microsoft MVP - FrontPage)
| > >> ==============================================
| > >> If you feel your current issue is a results of installing
| > >> a Service Pack or security update, please contact
| > >> Microsoft Product Support Services:
| > >>
http://support.microsoft.com
| > >> If the problem can be shown to have been caused by a
| > >> security update, then there is usually no charge for the call.
| > >> ==============================================
| > >>
| > >> | > >> > Hi, I have an MS Access form with a Web Browser in it which is loaded when
| > >> > the form loads using the following code:
| > >> > With webHome
| > >> > .Navigate URL:="G:\ADAM\img\MBIScript.html?TimeOfDay=" & varTimeOfDay &
| > >> > "&Agent=" & txtAgentSelected
| > >> > Beep
| > >> > Do While .Busy: DoEvents: Loop
| > >> > Do While .ReadyState <> 4: DoEvents: Loop
| > >> > End With
| > >> >
| > >> > THe webpage uses this code to extract the syntax:
| > >> >
| > >> > <script type="text/javascript">
| > >> > function qsobj(parm)
| > >> > {var qpairs = document.location.search.substring(1).split("&")
| > >> > var qvbl = qpairs[parm].split("=")
| > >> > return qvbl[1] ? unescape(qvbl[1].replace(/%20|\+/g," ")) : null}
| > >> >
| > >> > var TimeOfDay = qsobj(0)
| > >> > var Agent = qsobj(1)
| > >> > </script>
| > >> >
| > >> > This works fine when I load the webpage from another webpage but when it
| > >> > loads from Access I get Error: 'undefined' is null or not an object.
| > >> > And the webpage loads up:
| > >> > Good Morning&Agent, my name is undefined.
| > >> >
| > >> > How do I fix this? I think it might be a problem with the
| > >> > var qpairs = document.location.search.substring(1).split("&")
| > >> > line and the document location with it being inside a Access form but I have
| > >> > no idea how to fix it.
| > >> > --
| > >> > Adam Thwaites
| > >> > Access Database Designer
| > >> > adam.*spamless*
[email protected]
| > >> > Manchester, UK
| > >>
| > >>
| > >>
| >
| >
| >