<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Wait for page to load in Jscript (not Java)</title><link>https://www.infopathdev.com:443/forums/thread/38052.aspx</link><pubDate>Tue, 03 Feb 2009 18:46:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38052</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=38052</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;This forum is dedicated to InfoPath form development. You may have better response to your post at a forum for javascript development, like one of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&amp;amp;s"&gt;http://www.webdeveloper.com/forum/forumdisplay.php?forumid=3&amp;amp;s&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.tek-tips.com/threadminder.cfm?pid=216"&gt;http://www.tek-tips.com/threadminder.cfm?pid=216&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Wait for page to load in Jscript (not Java)</title><link>https://www.infopathdev.com:443/forums/thread/38051.aspx</link><pubDate>Tue, 03 Feb 2009 17:45:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38051</guid><dc:creator>iStruggle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38051.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=38051</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Bump&lt;/p&gt;</description></item><item><title>Wait for page to load in Jscript (not Java)</title><link>https://www.infopathdev.com:443/forums/thread/37672.aspx</link><pubDate>Mon, 26 Jan 2009 17:31:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37672</guid><dc:creator>iStruggle</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=37672</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m new to Jscript. I am trying to open a page, and wait for the page to finish loading, then enter the Username and Password and hit enter.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Steps are:&lt;/p&gt;&lt;p&gt;1. Open webpage in IE7&lt;br /&gt;2. Wait for page to load&lt;br /&gt;3. Enter Username and Password, {enter}&lt;br /&gt;4. Wait for page to load&lt;br /&gt;5. Open second page on second tab in IE7&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m struggling with &amp;#39;wait for page to open&amp;#39; and entering username and password in Jscript.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve tried the readystate != (4) in a while loop, but I keep getting an error. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Any ideas? Code below:&lt;/p&gt;&lt;p&gt;var navOpenInBackgroundTab = 0x1000;&lt;br /&gt;var oIE = new ActiveXObject(&amp;quot;InternetExplorer.Application&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;oIE.Navigate2(&amp;quot;https://mail.google.com/a/sabic-ip.com/&amp;quot;);&lt;br /&gt;&lt;br /&gt;oIE.Visible = true;&lt;br /&gt;&lt;br /&gt;While (oIE.readyState != 4) //This does not work in Jscript.&lt;br /&gt;{&lt;br /&gt;WScript.Sleep (1000);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;oIE.Navigate2(&amp;quot;https://calendar.google.com/a/sabic-ip.com/&amp;quot;, navOpenInBackgroundTab);&lt;br /&gt;&lt;br /&gt;WScript.Quit(1)&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>