PC Review


Reply
Thread Tools Rate Thread

Webrowser syntax from URL in Access not loading

 
 
=?Utf-8?B?QWRhbSBUaHdhaXRlcw==?=
Guest
Posts: n/a
 
      24th Feb 2006
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*(E-Mail Removed)
Manchester, UK
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Access the http headers from WeBrowser =?Utf-8?B?UGF1bHVzdHJpb3Vz?= Microsoft C# .NET 1 6th Dec 2005 10:50 PM
Webrowser control threads... please read ;) Chase Gale Microsoft VB .NET 1 1st Sep 2004 04:21 PM
Webrowser control not giving me keyup/keydown events =?Utf-8?B?VG9kZA==?= Microsoft Dot NET 0 17th Aug 2004 08:39 PM
keeps jumping to webrowser William Donnelly Windows XP Basics 1 13th Jan 2004 12:20 PM
How to chage Absolute url to relative url ,and relative url to absolute url gqtang Microsoft C# .NET 1 13th Sep 2003 05:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:56 AM.