Loading ...
Sorry, an error occurred while loading the content.

Re: [JavaScript] Javascript: problem writing parsed variable to form text box

Expand Messages
  • David Smart
    You re going to need to post your whole page - the actual statement works OK in the test page I put together. However, your
    Message 1 of 11 , Oct 4, 2005
    • 0 Attachment
      You're going to need to post your whole page - the actual statement works OK in the test page I put together.

      However, your <BODY class="myvt-page-blue" onLoad="function()"> is bad. If you want to put an "onLoad" in there, it's got to be a call to a function, and that function is not allowed to be called "function". (Or you can put other JavaScript in the onLoad if you wish. The main point is that functions can't be named "function".)

      As I see it, though, this is redundant - you are actually defining an onLoad function in your script.

      However, post the whole page (plus the code from the included script file again).

      OK second thoughts. In my test I just set args equal to a string - I didn't use parseQueryString. A glance at that function suggests that it isn't returning a string. What happens when you do an "alert (args)" just after the call to parseQueryString?

      Dave S

      ----- Original Message -----
      From: John
      To: javascript_official@yahoogroups.com
      Sent: Wednesday, October 05, 2005 6:01 AM
      Subject: [JavaScript] Javascript: problem writing parsed variable to form text box


      I have this login form that I want to be able to feed a variable to
      via the URL.

      For example: http://dev.sheridan.edu/uportal/login/index.htm?
      uP_fname=eservices-outlook

      So far I've managed to parse the URL and even write the variable to
      the page, but I'm pulling my hair out trying to figure out how to
      write that variable inside of a text box.

      Here's my code elements so far:

      =================================================

      <head>
      <SCRIPT src="index_files/link-parser.js" type=text/javascript>
      </SCRIPT>
      </head>

      <BODY class="myvt-page-blue" onLoad="function()">

      <SCRIPT>
      window.onload=function()
      {
      var args = parseQueryString();
      document.myForm.uP_fname.value=args; //cant get this
      to work
      }
      </SCRIPT>

      <input value="" name="uP_fname" type="text" />

      =================================================

      link-parser.js:

      function parseQueryString (str) {
      str = str ? str : location.search;
      var query = str.charAt(0) == '?' ? str.substring(1) : str;
      var args = new Object();
      if (query) {
      var fields = query.split('&');
      for (var f = 0; f < fields.length; f++) {
      var field = fields[f].split('=');
      args[unescape(field[0].replace(/\+/g, ' '))] =
      unescape(field[1].replace(/\+/g, ' '));
      }
      }
      return args;
      }

      =================================================








      SPONSORED LINKS C programming language Computer programming languages Java programming language
      The c programming language C programming language Concept of programming language


      ------------------------------------------------------------------------------
      YAHOO! GROUPS LINKS

      a.. Visit your group "javascript_official" on the web.

      b.. To unsubscribe from this group, send an email to:
      javascript_official-unsubscribe@yahoogroups.com

      c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      ------------------------------------------------------------------------------



      [Non-text portions of this message have been removed]
    • John Bruso
      Hi David, here is the full code...
      Message 2 of 11 , Oct 4, 2005
      • 0 Attachment
        Hi David,

        here is the full code...

        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
        <!-- saved from url=(0069)http://www-dev.sheridan.edu:8080/uPortal/render.userLayoutRootNode.uP -->
        <HTML><HEAD><TITLE>Welcome to e-Services: Welcome</TITLE>
        <META http-equiv=Content-Type content="text/html; charset=utf-8">
        <META content="noindex, nofollow" name=robots>
        <SCRIPT src="index_files/myvt-common.js" type=text/javascript> </SCRIPT>
        <SCRIPT src="index_files/link-parser.js" type=text/javascript> </SCRIPT>
        <LINK href="index_files/eservices-common.css" type=text/css rel=stylesheet><LINK
        href="index_files/uportal.css" type=text/css rel=stylesheet><LINK
        href="index_files/blue.css" type=text/css rel=stylesheet><!--[if gte IE 5.5000]>
        <SCRIPT src="index_files/pnghack.js" type=text/javascript> </SCRIPT>
        <![endif]-->
        <META content="MSHTML 6.00.2900.2722" name=GENERATOR>

        <script type="text/javascript">
        window.onload=function()
        {
        var args = parseQueryString();
        alert (args);
        document.myForm.uP_fname.value=args; //cant get this to work
        }

        </script>



        </HEAD>
        <BODY class="myvt-page-blue" >
        <DIV id=page-header>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD vAlign=top width="100%">
        <DIV id=eserv_topleftnav>
        <TABLE cellSpacing=0 cellPadding=0 width="100%"
        background=index_files/top_blue_bar_bg.gif border=0>
        <TBODY>
        <TR>
        <TD width=2 rowSpan=2><IMG height=22 alt=""
        src="index_files/spacer.gif" width=2></TD>
        <TD><A class=font_toprightbar href="http://dev.sheridan.edu/">‹‹
        Back to College Home-Page</A></TD>
        <TD width="100%">
        <DIV class=align-right><A class=font_toprightbar
        href="Officeshttp://www.sheridan.edu/offices/">Offices</A> | <A
        class=font_toprightbar
        href="Catalogshttp://www.sheridan.edu/catalog/">Catalogs</A> | <A
        class=font_toprightbar
        href="Directoryhttp://www.sheridan.edu/directory/">Directory</A> | <A
        class=font_toprightbar
        href="Searchhttp://www.sheridan.edu/search/">Search</A>  
        </DIV></TD></TR>
        <TR>
        <TD><IMG height=1 alt="" src="" width=130></TD>
        <TD><IMG height=1 alt="" src=""
        width=175></TD></TR></TBODY></TABLE></DIV></TD>
        <TD>
        <DIV id=myvt-toolbar>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD class="myvt-toolbar-text first-item">Log on for personalized
        content <IMG height=1 src="index_files/transparent.gif"
        width=100></TD>
        <TD class=myvt-spacer>|</TD>
        <TD align=right><A class=myvt-toolbar-button
        href="javascript:popUp('http://dev.sheridan.edu/uportal/help/')"><IMG
        height=16 alt="" src="index_files/help.png" width=16> Help
        </A></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
        <DIV style="POSITION: relative">
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD background=index_files/sky-bg.gif>
        <TABLE id=tab-bar cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD class=myvt-separator>|</TD>
        <TD>
        <DIV class="myvt-tab-container myvt-tab-active myvt-tab-blue">
        <DIV class=myvt-tab-link><IMG height=24 alt=""
        src="index_files/welcome-active.png" width=24>
        Welcome</DIV></DIV></TD>
        <TD class=myvt-separator>|</TD>
        <TD>
        <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-ltblue"><A
        class=myvt-tab-link
        href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1774&uP_sparam=page&page=default"><IMG
        height=16 alt="" src="index_files/home-inactive.png" width=16>
        Home</A></DIV></TD>
        <TD class=myvt-separator>|</TD>
        <TD>
        <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-khaki"><A
        class=myvt-tab-link
        href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1773&uP_sparam=page&page=default"><IMG
        height=16 alt="" src="index_files/my-college-inactive.png" width=16>
        My College</A></DIV></TD>
        <TD class=myvt-separator>|</TD>
        <TD>
        <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-grey"><A
        class=myvt-tab-link
        href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1772&uP_sparam=page&page=default"><IMG
        height=16 alt="" src="index_files/services-inactive.png" width=16>
        Services</A></DIV></TD>
        <TD class=myvt-separator>|</TD>
        <TD>
        <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-green"><A
        class=myvt-tab-link
        href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1771&uP_sparam=page&page=default"><IMG
        height=16 alt="" src="index_files/campus-life-inactive.png"
        width=16> Campus Life</A></DIV></TD>
        <TD class=myvt-separator>|</TD>
        <TD>
        <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-purple"><A
        class=myvt-tab-link
        href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1770&uP_sparam=page&page=default"><IMG
        height=16 alt="" src="index_files/my-page-inactive.png" width=16> My
        Page</A></DIV></TD>
        <TD class=myvt-spacer>|</TD>
        <TD align=right width=226>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD><IMG height=38 alt=""
        src="index_files/sky-bg-eservlogo.gif" width=205></TD></TR>
        <TR>
        <TD><IMG height=1 alt="" src="index_files/spacer.gif"
        width="100%"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></DIV>
        <TABLE id=tab-base cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD id=greeting>Welcome to e-Services!</TD>
        <TD id=search><SPAN class=date>
        <SCRIPT src="index_files/todays-date.js" type=text/javascript></SCRIPT>
        </SPAN></TD></TR></TBODY></TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <COLGROUP>
        <COL>
        <COL></COLGROUP>
        <TBODY>
        <TR>
        <TD id=layout-left>
        <DIV id=left-column>
        <DIV id=shared-column>
        <DIV class=myvt-channel-container>
        <DIV class=myvt-channel-titlebar>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD class="myvt-channel-title-text myvt-channel-no-icon">Login</TD>
        <TD class=myvt-channel-buttons><IMG class=image-18
        style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
        width=1></TD></TR></TBODY></TABLE></DIV>
        <DIV class=myvt-channel-content>
        <DIV class=myvt-channel-rendered-content>
        <FORM id=formMyVTLogon name=myForm onsubmit=doLogonWait()
        action=http://www-dev.sheridan.edu:8080/uPortal/Login method=post>

        <DIV class=myvt-channel-rendered-content>
        <DIV class=myvt-channel-rendered-content>
        <DIV
        style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; PADDING-TOP: 7px"><INPUT
        type=hidden value=login name=action>
        <DIV>Enter your User ID and password below to log on to e-Services.</DIV>
        <TABLE cellSpacing=4 cellPadding=1 width="100%" border=0>
        <TBODY>
        <TR>
        <TD><LABEL for=logon-pid>User ID:</LABEL></TD>
        <TD class=width-100 style="PADDING-RIGHT: 5px"><INPUT
        class="myvt-input-text width-100" maxLength=16 size=11
        name=userName></TD></TR>
        <TR>
        <TD><LABEL for=logon-password>Password:</LABEL></TD>
        <TD class=width-100 style="PADDING-RIGHT: 5px"><INPUT
        class="myvt-input-text width-100" type=password maxLength=16 size=11
        name=password>
        <P>

        <input value="" type="text" name="uP_fname" />

        </TD></TR>
        <TR>
        <TD>
        <DIV id=logon-wait-animation><IMG class=hidden
        id=logon-wait-animation-img height=18 alt=""
        src="index_files/wait-animation.gif" width=18></DIV></TD>
        <TD class=width-100>
        <DIV id=logon-wait-text>Logging on...</DIV>
        <DIV id=logon-submit-button><INPUT type=submit value="Log On" name=Login></DIV></TD></TR></TBODY></TABLE><INPUT
        type=hidden value=login name=action><INPUT type=hidden value=Portal
        name=authportalservice><INPUT id=logon-alternate-username type=hidden
        name=userName><INPUT id=logon-alternate-password type=hidden
        name=password><BR></DIV></DIV></DIV></FORM></DIV></DIV>
        <DIV class=myvt-channel-border-bl>
        <DIV class=myvt-channel-border-br></DIV></DIV></DIV>
        <DIV class=myvt-channel-container>
        <DIV class=myvt-channel-titlebar>
        <DIV class=myvt-channel-icon><IMG height=24 alt=""
        src="index_files/icon-24.png" width=24></DIV>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD class=myvt-channel-title-text>Login Help</TD>
        <TD class=myvt-channel-buttons><IMG class=image-18
        style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
        width=1></TD></TR></TBODY></TABLE></DIV>
        <DIV class=myvt-channel-content>
        <DIV class=myvt-channel-rendered-content>
        <SCRIPT
        src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(1).js"
        type=text/javascript>

        </SCRIPT>
        <DIV class=myvt-channel-rendered-content>
        <DIV class=myvt-content-main>
        <UL class=myvt-flush-list>
        <LI><STRONG>Forgot your password?</STRONG><BR>Contact the Help-Desk ext:
        2600.
        <LI><STRONG>New to e-Services?</STRONG><BR><A
        href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Account%20Creation"
        shape=rect>Create your e-Services Account</A>
        <LI><STRONG>Trouble viewing site?</STRONG><BR><A
        href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Browsers"
        shape=rect>Required Browsers and Settings</A>
        <LI><STRONG>Other Problems?</STRONG><BR><A
        href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
        shape=rect>Contact Us</A> </LI></UL></DIV></DIV></DIV></DIV>
        <DIV class=myvt-channel-border-bl>
        <DIV class=myvt-channel-border-br></DIV></DIV></DIV>
        <DIV class=myvt-channel-container>
        <DIV class=myvt-channel-titlebar>
        <DIV class=myvt-channel-icon><IMG height=24 alt=""
        src="index_files/nd0003-24.png" width=24></DIV>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD class=myvt-channel-title-text>System Status</TD>
        <TD class=myvt-channel-buttons><IMG class=image-18
        style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
        width=1></TD></TR></TBODY></TABLE></DIV>
        <DIV class=myvt-channel-content>
        <DIV class=myvt-channel-rendered-content>

        <TABLE cellSpacing=3 cellPadding=6 width="100%" border=0>
        <TBODY>
        <TR>
        <TD align=right>
        <TABLE borderColor=#eeeeee cellSpacing=2 cellPadding=2 width="100%"
        bgColor=#ffffff border=1>
        <TBODY>
        <TR>
        <TD width="45%"><FONT color=#666666 size=1>Network</FONT></TD>
        <TD width="55%"><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>Colleague</FONT></TD>
        <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>WebAdvisor</FONT></TD>
        <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>e-Services</FONT></TD>
        <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>e-Mail & WebMail</FONT></TD>
        <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>WebCT</FONT></TD>
        <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>MediaCast</FONT></TD>
        <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
        <TR>
        <TD><FONT color=#666666 size=1>Library Databases</FONT></TD>
        <TD><FONT color=#009933
        size=1>ok.</FONT></TD></TR></TBODY></TABLE><BR>
        <DIV align=right><FONT face="Arial, Helvetica, sans-serif"
        color=#666666 size=1><A
        href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Report</A>
        a problem.</FONT></DIV></TD></TR></TBODY></TABLE></DIV></DIV>
        <DIV class=myvt-channel-border-bl>
        <DIV class=myvt-channel-border-br></DIV></DIV></DIV></DIV></DIV>
        <DIV id=shared-column-border-bottom></DIV></TD>
        <TD id=layout-right>
        <TABLE id=tab-toolbar cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD id=tab-breadcrumbs>Welcome</TD></TR></TBODY></TABLE>
        <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <COLGROUP>
        <COL>
        <COL></COLGROUP>
        <TBODY>
        <TR>
        <TD id=main-column>
        <DIV class=myvt-channel-container>
        <DIV class=myvt-channel-rendered-content>
        <SCRIPT
        src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(2).js"
        type=text/javascript>

        </SCRIPT>
        <DIV class=myvt-channel-rendered-content>
        <DIV class=myvt-content-flush
        style="WIDTH: 100%; POSITION: relative">
        <TABLE cellSpacing=10 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
        <TD class="valign-top width-66">
        <DIV style="FONT-WEIGHT: bold; FONT-SIZE: 1.1em"><IMG
        alt=e-Services src="index_files/eserve_logo.gif" vspace=5
        border=0></DIV>
        <DIV style="PADDING-BOTTOM: 1em"><IMG height=83 alt=""
        hspace=10 src="index_files/compass.gif" width=81 align=right
        border=0> <SPAN class=td_text><STRONG>Your personal college
        experience.</STRONG><BR>e-Services, your one-stop location for
        accessing and managing your personal Northern Wyoming
        Community College District information. In addition to having
        the information you need presented to you automatically, you
        can customize e-Services to show other information that you
        find useful.</SPAN></DIV><BR><BR>
        <DIV style="FONT-WEIGHT: bold">Inside e-Services, you will
        find the following tabs:</DIV>
        <DIV
        style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">
        <TABLE cellSpacing=0 cellPadding=4 border=0>
        <TBODY>
        <TR>
        <TD class=valign-top><IMG height=32 alt=""
        src="index_files/wi0149-32.png" width=32 border=0></TD>
        <TD class=valign-middle><A
        href="Homehttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Home"><STRONG>Home</STRONG></A>
        <DIV>Important, personalized announcements and an
        at-a-glance look at today's events, news releases and
        featured content from across the NWCCD Web
        network.</DIV></TD></TR>
        <TR>
        <TD class=valign-top><IMG height=32 alt=""
        src="index_files/ac0057-32.png" width=32 border=0></TD>
        <TD class=valign-middle><A
        href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20College"><STRONG>My
        College</STRONG></A>
        <DIV>Access your Financial Aid, Admissions and
        Registration information via WebAdvisor or access your
        online classes via WebCT.</DIV></TD></TR>
        <TR>
        <TD class=valign-top><IMG height=32 alt=""
        src="index_files/ac0034-32.png" width=32 border=0></TD>
        <TD class=valign-middle><A
        href="Serviceshttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Services"><STRONG>Services</STRONG></A>
        <DIV>Links to information from select college service
        providers.</DIV></TD></TR>
        <TR>
        <TD class=valign-top><IMG height=32 alt=""
        src="index_files/community-32.png" width=32 border=0></TD>
        <TD class=valign-middle><A
        href="Campus'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Campus%20Life"><STRONG>Campus
        Life</STRONG></A>
        <DIV>Campus information, student activities and event
        calendars.</DIV></TD></TR>
        <TR>
        <TD class=valign-top><IMG height=32 alt=""
        src="index_files/ac0052-32.png" width=32 border=0></TD>
        <TD class=valign-middle><A
        href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20Page"><STRONG>My
        Page</STRONG></A>
        <DIV>Local, regional and national
        news.</DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></DIV></DIV></DIV></TD>
        <TD id=side-column>
        <DIV class=myvt-channel-container>
        <DIV class=myvt-channel-rendered-content>
        <SCRIPT
        src="http://dev.sheridan.edu/uportal/login/index_files/myvt-common(1).js"
        type=text/javascript xml:space="preserve"> </SCRIPT>
        <DIV class=myvt-content-flush
        style="WIDTH: 100%; POSITION: relative"></DIV>
        <DIV class=myvt-channel-container>
        <DIV class=myvt-channel-border-tl>
        <DIV class=myvt-channel-border-tr></DIV></DIV>
        <DIV class="myvt-channel-content myvt-channel-no-titlebar"
        style="PADDING-RIGHT: 1em; PADDING-LEFT: 1em; PADDING-BOTTOM: 1em; PADDING-TOP: 1em; BACKGROUND-COLOR: #ffffcc">
        <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center
        border=0>
        <TBODY>
        <TR>
        <TD>
        <DIV class=bold align=center><FONT color=#666666>A "thank you"
        to our users:</FONT></DIV></TD>
        <TD><IMG height=36 alt="" hspace=5
        src="index_files/butterfly.gif"
        width=36></TD></TR></TBODY></TABLE><SPAN class=td_text><FONT
        color=#666666>Thank you for your continued feedback and support.
        Sheridan College, Gillette Campus and Outreach Center faculty,
        students and staff have contributed a great deal of valuable
        feedback and insights which we have used to create the all new
        e-Services 2.0 from the ground up. <BR clear=none><BR clear=none>We
        have big plans for e-Services. We think you'll be pleasantly
        surprised. If e-Services doesn't do something you want, <A
        href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
        shape=rect>let us know</A>. We will be adding features continuously.
        <BR clear=none><BR clear=none>So, "What's New?" you ask? You'll have
        to log-in to find out :) Why spoil the surprise? <BR clear=none><BR
        clear=none>Thank You, <BR clear=none><BR clear=none>Brady Fackrell
        and John Bruso<BR clear=none>Information Technologies<BR
        clear=none><BR clear=none></FONT></SPAN></DIV>
        <DIV class=myvt-channel-border-bl>
        <DIV
        class=myvt-channel-border-br></DIV></DIV></DIV></DIV></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
        <P><BR><BR></P>
        <P></P>
        <P></P>
        <HR align=center width="90%" noShade SIZE=1>
        <TABLE cellSpacing=0 cellPadding=3 width="90%" align=center border=0>
        <TBODY>
        <TR>
        <TD class=valign-top><STRONG><FONT color=#999999>e-</FONT><FONT
        color=#ff99cc>S</FONT><FONT color=#999999>ervices
        2.0</FONT></STRONG><BR><FONT color=#999999>© 2004-06 Northern Wyoming
        Community College District</FONT></TD>
        <TD class="align-right valign-top"><A
        href="http://www.sheridan.edu/offices/infotech/policies/" shape=rect>Web
        Policies</A> | <A href="College'>http://www.sheridan.edu/president/">College
        Policies</A> | <A href="Equal'>http://www.sheridan.edu/equal.asp">Equal
        Opportunity</A> | <A title="Contact IT (Opens in a new window)"
        href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Contact
        IT</A><BR>Powered by <A href="http://www.uportal.org/" target=_blank
        shape=rect>uPortal 2.4.2</A></TD></TR></TBODY></TABLE>
        <P></P>
        <DIV id=font-size-check>This text is used to check the minimum font size of your
        browser</DIV></BODY></HTML>



        David Smart <smartware@...> wrote:
        You're going to need to post your whole page - the actual statement works OK in the test page I put together.

        However, your <BODY class="myvt-page-blue" onLoad="function()"> is bad. If you want to put an "onLoad" in there, it's got to be a call to a function, and that function is not allowed to be called "function". (Or you can put other JavaScript in the onLoad if you wish. The main point is that functions can't be named "function".)

        As I see it, though, this is redundant - you are actually defining an onLoad function in your script.

        However, post the whole page (plus the code from the included script file again).

        OK second thoughts. In my test I just set args equal to a string - I didn't use parseQueryString. A glance at that function suggests that it isn't returning a string. What happens when you do an "alert (args)" just after the call to parseQueryString?

        Dave S

        ----- Original Message -----
        From: John
        To: javascript_official@yahoogroups.com
        Sent: Wednesday, October 05, 2005 6:01 AM
        Subject: [JavaScript] Javascript: problem writing parsed variable to form text box


        I have this login form that I want to be able to feed a variable to
        via the URL.

        For example: http://dev.sheridan.edu/uportal/login/index.htm?
        uP_fname=eservices-outlook

        So far I've managed to parse the URL and even write the variable to
        the page, but I'm pulling my hair out trying to figure out how to
        write that variable inside of a text box.

        Here's my code elements so far:

        =================================================

        <head>
        <SCRIPT src="index_files/link-parser.js" type=text/javascript>
        </SCRIPT>
        </head>

        <BODY class="myvt-page-blue" onLoad="function()">

        <SCRIPT>
        window.onload=function()
        {
        var args = parseQueryString();
        document.myForm.uP_fname.value=args; //cant get this
        to work
        }
        </SCRIPT>

        <input value="" name="uP_fname" type="text" />

        =================================================

        link-parser.js:

        function parseQueryString (str) {
        str = str ? str : location.search;
        var query = str.charAt(0) == '?' ? str.substring(1) : str;
        var args = new Object();
        if (query) {
        var fields = query.split('&');
        for (var f = 0; f < fields.length; f++) {
        var field = fields[f].split('=');
        args[unescape(field[0].replace(/\+/g, ' '))] =
        unescape(field[1].replace(/\+/g, ' '));
        }
        }
        return args;
        }

        =================================================








        SPONSORED LINKS C programming language Computer programming languages Java programming language
        The c programming language C programming language Concept of programming language


        ------------------------------------------------------------------------------
        YAHOO! GROUPS LINKS

        a.. Visit your group "javascript_official" on the web.

        b.. To unsubscribe from this group, send an email to:
        javascript_official-unsubscribe@yahoogroups.com

        c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


        ------------------------------------------------------------------------------



        [Non-text portions of this message have been removed]



        ---------------------------------
        YAHOO! GROUPS LINKS


        Visit your group "javascript_official" on the web.

        To unsubscribe from this group, send an email to:
        javascript_official-unsubscribe@yahoogroups.com

        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


        ---------------------------------




        [Non-text portions of this message have been removed]
      • John Bruso
        hmmm... can u email ur test page that is working? john@johnbruso.com thanks. David Smart wrote: You re going to need to post your
        Message 3 of 11 , Oct 4, 2005
        • 0 Attachment
          hmmm... can u email ur test page that is working?

          john@...

          thanks.

          David Smart <smartware@...> wrote:
          You're going to need to post your whole page - the actual statement works OK in the test page I put together.

          However, your <BODY class="myvt-page-blue" onLoad="function()"> is bad. If you want to put an "onLoad" in there, it's got to be a call to a function, and that function is not allowed to be called "function". (Or you can put other JavaScript in the onLoad if you wish. The main point is that functions can't be named "function".)

          As I see it, though, this is redundant - you are actually defining an onLoad function in your script.

          However, post the whole page (plus the code from the included script file again).

          OK second thoughts. In my test I just set args equal to a string - I didn't use parseQueryString. A glance at that function suggests that it isn't returning a string. What happens when you do an "alert (args)" just after the call to parseQueryString?

          Dave S

          ----- Original Message -----
          From: John
          To: javascript_official@yahoogroups.com
          Sent: Wednesday, October 05, 2005 6:01 AM
          Subject: [JavaScript] Javascript: problem writing parsed variable to form text box


          I have this login form that I want to be able to feed a variable to
          via the URL.

          For example: http://dev.sheridan.edu/uportal/login/index.htm?
          uP_fname=eservices-outlook

          So far I've managed to parse the URL and even write the variable to
          the page, but I'm pulling my hair out trying to figure out how to
          write that variable inside of a text box.

          Here's my code elements so far:

          =================================================

          <head>
          <SCRIPT src="index_files/link-parser.js" type=text/javascript>
          </SCRIPT>
          </head>

          <BODY class="myvt-page-blue" onLoad="function()">

          <SCRIPT>
          window.onload=function()
          {
          var args = parseQueryString();
          document.myForm.uP_fname.value=args; //cant get this
          to work
          }
          </SCRIPT>

          <input value="" name="uP_fname" type="text" />

          =================================================

          link-parser.js:

          function parseQueryString (str) {
          str = str ? str : location.search;
          var query = str.charAt(0) == '?' ? str.substring(1) : str;
          var args = new Object();
          if (query) {
          var fields = query.split('&');
          for (var f = 0; f < fields.length; f++) {
          var field = fields[f].split('=');
          args[unescape(field[0].replace(/\+/g, ' '))] =
          unescape(field[1].replace(/\+/g, ' '));
          }
          }
          return args;
          }

          =================================================








          SPONSORED LINKS C programming language Computer programming languages Java programming language
          The c programming language C programming language Concept of programming language


          ------------------------------------------------------------------------------
          YAHOO! GROUPS LINKS

          a.. Visit your group "javascript_official" on the web.

          b.. To unsubscribe from this group, send an email to:
          javascript_official-unsubscribe@yahoogroups.com

          c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


          ------------------------------------------------------------------------------



          [Non-text portions of this message have been removed]



          ---------------------------------
          YAHOO! GROUPS LINKS


          Visit your group "javascript_official" on the web.

          To unsubscribe from this group, send an email to:
          javascript_official-unsubscribe@yahoogroups.com

          Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


          ---------------------------------




          [Non-text portions of this message have been removed]
        • David Smart
          No, I didn t save it. Essentially I did three things: 1) I removed the onload stuff from the tag. It is erroneous and is overridden anyway by the
          Message 4 of 11 , Oct 6, 2005
          • 0 Attachment
            No, I didn't save it.

            Essentially I did three things:

            1) I removed the onload stuff from the <BODY> tag. It is erroneous and is overridden anyway by the script that defines the onload function.

            2) I removed the call to parseQueryString and simply said args = "abc"

            3) Put a form with the right name around the text field

            After this, it worked fine.

            I stopped at that point because of what you had said: "So far I've managed to parse the URL and even write the variable to the page, but I'm pulling my hair out trying to figure out how to write that variable inside of a text box." To me this meant that you were only having trouble with the text box, and that you'd checked that you had decoded the information correctly.

            As I indicated in my e-mail, however, I glanced over parseQueryString out of interest, and I suspect that it isn't returning what you want it to return. You need a simple string with the text to go into the box. I think you're getting an object - most likely an array.

            That's why I suggested you try an alert of args. What happened when you tried one?

            Dave S

            ----- Original Message -----
            From: John Bruso
            To: javascript_official@yahoogroups.com
            Sent: Wednesday, October 05, 2005 8:30 AM
            Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


            hmmm... can u email ur test page that is working?

            john@...

            thanks.

            David Smart <smartware@...> wrote:
            You're going to need to post your whole page - the actual statement works OK in the test page I put together.

            However, your <BODY class="myvt-page-blue" onLoad="function()"> is bad. If you want to put an "onLoad" in there, it's got to be a call to a function, and that function is not allowed to be called "function". (Or you can put other JavaScript in the onLoad if you wish. The main point is that functions can't be named "function".)

            As I see it, though, this is redundant - you are actually defining an onLoad function in your script.

            However, post the whole page (plus the code from the included script file again).

            OK second thoughts. In my test I just set args equal to a string - I didn't use parseQueryString. A glance at that function suggests that it isn't returning a string. What happens when you do an "alert (args)" just after the call to parseQueryString?

            Dave S

            ----- Original Message -----
            From: John
            To: javascript_official@yahoogroups.com
            Sent: Wednesday, October 05, 2005 6:01 AM
            Subject: [JavaScript] Javascript: problem writing parsed variable to form text box


            I have this login form that I want to be able to feed a variable to
            via the URL.

            For example: http://dev.sheridan.edu/uportal/login/index.htm?
            uP_fname=eservices-outlook

            So far I've managed to parse the URL and even write the variable to
            the page, but I'm pulling my hair out trying to figure out how to
            write that variable inside of a text box.

            Here's my code elements so far:

            =================================================

            <head>
            <SCRIPT src="index_files/link-parser.js" type=text/javascript>
            </SCRIPT>
            </head>

            <BODY class="myvt-page-blue" onLoad="function()">

            <SCRIPT>
            window.onload=function()
            {
            var args = parseQueryString();
            document.myForm.uP_fname.value=args; //cant get this
            to work
            }
            </SCRIPT>

            <input value="" name="uP_fname" type="text" />

            =================================================

            link-parser.js:

            function parseQueryString (str) {
            str = str ? str : location.search;
            var query = str.charAt(0) == '?' ? str.substring(1) : str;
            var args = new Object();
            if (query) {
            var fields = query.split('&');
            for (var f = 0; f < fields.length; f++) {
            var field = fields[f].split('=');
            args[unescape(field[0].replace(/\+/g, ' '))] =
            unescape(field[1].replace(/\+/g, ' '));
            }
            }
            return args;
            }

            =================================================








            SPONSORED LINKS C programming language Computer programming languages Java programming language
            The c programming language C programming language Concept of programming language


            ------------------------------------------------------------------------------
            YAHOO! GROUPS LINKS

            a.. Visit your group "javascript_official" on the web.

            b.. To unsubscribe from this group, send an email to:
            javascript_official-unsubscribe@yahoogroups.com

            c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


            ------------------------------------------------------------------------------



            [Non-text portions of this message have been removed]



            ---------------------------------
            YAHOO! GROUPS LINKS


            Visit your group "javascript_official" on the web.

            To unsubscribe from this group, send an email to:
            javascript_official-unsubscribe@yahoogroups.com

            Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


            ---------------------------------




            [Non-text portions of this message have been removed]





            SPONSORED LINKS C programming language Computer programming languages Java programming language
            The c programming language C programming language Concept of programming language


            ------------------------------------------------------------------------------
            YAHOO! GROUPS LINKS

            a.. Visit your group "javascript_official" on the web.

            b.. To unsubscribe from this group, send an email to:
            javascript_official-unsubscribe@yahoogroups.com

            c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


            ------------------------------------------------------------------------------



            [Non-text portions of this message have been removed]
          • David Smart
            Thank you. I can t claim I didn t ask for that. :-) I notice that you have an alert (args) in your onload code. What is this alert giving you? I ll hold
            Message 5 of 11 , Oct 6, 2005
            • 0 Attachment
              Thank you. I can't claim I didn't ask for that. :-)

              I notice that you have an "alert (args)" in your onload code. What is this alert giving you?

              I'll hold onto your code for the moment and not look at it in any detail until you get back to me with what the alert is telling you.

              But looking at parseQueryString again, I'm sure I'm on the right track ...

              You are setting the value of your text field to args. But "args" isn't a string, it's an array. Specifically, it's a sparse array with its indexes being the actual keywords in the query string. So, if you have a query string of "uP_fname=eservices-outlook", I'd expect to find an element of the args array args["uP_fname"] that contained your value - i.e. "eservices-outlook". This array reference is what you'd need on the right of your equals sign.

              I don't know where you got this bit of code, but it's certainly not the way I'd approach the decoding of a query string. It has no error robustness for a string that can easily be changed by user fiddling (deliberate or inadvertent).

              Dave S

              ----- Original Message -----
              From: John Bruso
              To: javascript_official@yahoogroups.com
              Sent: Wednesday, October 05, 2005 8:26 AM
              Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


              Hi David,

              here is the full code...

              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
              <!-- saved from url=(0069)http://www-dev.sheridan.edu:8080/uPortal/render.userLayoutRootNode.uP -->
              <HTML><HEAD><TITLE>Welcome to e-Services: Welcome</TITLE>
              <META http-equiv=Content-Type content="text/html; charset=utf-8">
              <META content="noindex, nofollow" name=robots>
              <SCRIPT src="index_files/myvt-common.js" type=text/javascript> </SCRIPT>
              <SCRIPT src="index_files/link-parser.js" type=text/javascript> </SCRIPT>
              <LINK href="index_files/eservices-common.css" type=text/css rel=stylesheet><LINK
              href="index_files/uportal.css" type=text/css rel=stylesheet><LINK
              href="index_files/blue.css" type=text/css rel=stylesheet><!--[if gte IE 5.5000]>
              <SCRIPT src="index_files/pnghack.js" type=text/javascript> </SCRIPT>
              <![endif]-->
              <META content="MSHTML 6.00.2900.2722" name=GENERATOR>

              <script type="text/javascript">
              window.onload=function()
              {
              var args = parseQueryString();
              alert (args);
              document.myForm.uP_fname.value=args; //cant get this to work
              }

              </script>



              </HEAD>
              <BODY class="myvt-page-blue" >
              <DIV id=page-header>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD vAlign=top width="100%">
              <DIV id=eserv_topleftnav>
              <TABLE cellSpacing=0 cellPadding=0 width="100%"
              background=index_files/top_blue_bar_bg.gif border=0>
              <TBODY>
              <TR>
              <TD width=2 rowSpan=2><IMG height=22 alt=""
              src="index_files/spacer.gif" width=2></TD>
              <TD><A class=font_toprightbar href="http://dev.sheridan.edu/">��
              Back to College Home-Page</A></TD>
              <TD width="100%">
              <DIV class=align-right><A class=font_toprightbar
              href="Officeshttp://www.sheridan.edu/offices/">Offices</A> | <A
              class=font_toprightbar
              href="Catalogshttp://www.sheridan.edu/catalog/">Catalogs</A> | <A
              class=font_toprightbar
              href="Directoryhttp://www.sheridan.edu/directory/">Directory</A> | <A
              class=font_toprightbar
              href="Searchhttp://www.sheridan.edu/search/">Search</A>  
              </DIV></TD></TR>
              <TR>
              <TD><IMG height=1 alt="" src="" width=130></TD>
              <TD><IMG height=1 alt="" src=""
              width=175></TD></TR></TBODY></TABLE></DIV></TD>
              <TD>
              <DIV id=myvt-toolbar>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD class="myvt-toolbar-text first-item">Log on for personalized
              content <IMG height=1 src="index_files/transparent.gif"
              width=100></TD>
              <TD class=myvt-spacer>|</TD>
              <TD align=right><A class=myvt-toolbar-button
              href="javascript:popUp('http://dev.sheridan.edu/uportal/help/')"><IMG
              height=16 alt="" src="index_files/help.png" width=16> Help
              </A></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
              <DIV style="POSITION: relative">
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD background=index_files/sky-bg.gif>
              <TABLE id=tab-bar cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD class=myvt-separator>|</TD>
              <TD>
              <DIV class="myvt-tab-container myvt-tab-active myvt-tab-blue">
              <DIV class=myvt-tab-link><IMG height=24 alt=""
              src="index_files/welcome-active.png" width=24>
              Welcome</DIV></DIV></TD>
              <TD class=myvt-separator>|</TD>
              <TD>
              <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-ltblue"><A
              class=myvt-tab-link
              href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1774&uP_sparam=page&page=default"><IMG
              height=16 alt="" src="index_files/home-inactive.png" width=16>
              Home</A></DIV></TD>
              <TD class=myvt-separator>|</TD>
              <TD>
              <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-khaki"><A
              class=myvt-tab-link
              href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1773&uP_sparam=page&page=default"><IMG
              height=16 alt="" src="index_files/my-college-inactive.png" width=16>
              My College</A></DIV></TD>
              <TD class=myvt-separator>|</TD>
              <TD>
              <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-grey"><A
              class=myvt-tab-link
              href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1772&uP_sparam=page&page=default"><IMG
              height=16 alt="" src="index_files/services-inactive.png" width=16>
              Services</A></DIV></TD>
              <TD class=myvt-separator>|</TD>
              <TD>
              <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-green"><A
              class=myvt-tab-link
              href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1771&uP_sparam=page&page=default"><IMG
              height=16 alt="" src="index_files/campus-life-inactive.png"
              width=16> Campus Life</A></DIV></TD>
              <TD class=myvt-separator>|</TD>
              <TD>
              <DIV class="myvt-tab-container myvt-tab-inactive myvt-tab-purple"><A
              class=myvt-tab-link
              href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1770&uP_sparam=page&page=default"><IMG
              height=16 alt="" src="index_files/my-page-inactive.png" width=16> My
              Page</A></DIV></TD>
              <TD class=myvt-spacer>|</TD>
              <TD align=right width=226>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD><IMG height=38 alt=""
              src="index_files/sky-bg-eservlogo.gif" width=205></TD></TR>
              <TR>
              <TD><IMG height=1 alt="" src="index_files/spacer.gif"
              width="100%"></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></DIV>
              <TABLE id=tab-base cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD id=greeting>Welcome to e-Services!</TD>
              <TD id=search><SPAN class=date>
              <SCRIPT src="index_files/todays-date.js" type=text/javascript></SCRIPT>
              </SPAN></TD></TR></TBODY></TABLE>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <COLGROUP>
              <COL>
              <COL></COLGROUP>
              <TBODY>
              <TR>
              <TD id=layout-left>
              <DIV id=left-column>
              <DIV id=shared-column>
              <DIV class=myvt-channel-container>
              <DIV class=myvt-channel-titlebar>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD class="myvt-channel-title-text myvt-channel-no-icon">Login</TD>
              <TD class=myvt-channel-buttons><IMG class=image-18
              style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
              width=1></TD></TR></TBODY></TABLE></DIV>
              <DIV class=myvt-channel-content>
              <DIV class=myvt-channel-rendered-content>
              <FORM id=formMyVTLogon name=myForm onsubmit=doLogonWait()
              action=http://www-dev.sheridan.edu:8080/uPortal/Login method=post>

              <DIV class=myvt-channel-rendered-content>
              <DIV class=myvt-channel-rendered-content>
              <DIV
              style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; PADDING-TOP: 7px"><INPUT
              type=hidden value=login name=action>
              <DIV>Enter your User ID and password below to log on to e-Services.</DIV>
              <TABLE cellSpacing=4 cellPadding=1 width="100%" border=0>
              <TBODY>
              <TR>
              <TD><LABEL for=logon-pid>User ID:</LABEL></TD>
              <TD class=width-100 style="PADDING-RIGHT: 5px"><INPUT
              class="myvt-input-text width-100" maxLength=16 size=11
              name=userName></TD></TR>
              <TR>
              <TD><LABEL for=logon-password>Password:</LABEL></TD>
              <TD class=width-100 style="PADDING-RIGHT: 5px"><INPUT
              class="myvt-input-text width-100" type=password maxLength=16 size=11
              name=password>
              <P>

              <input value="" type="text" name="uP_fname" />

              </TD></TR>
              <TR>
              <TD>
              <DIV id=logon-wait-animation><IMG class=hidden
              id=logon-wait-animation-img height=18 alt=""
              src="index_files/wait-animation.gif" width=18></DIV></TD>
              <TD class=width-100>
              <DIV id=logon-wait-text>Logging on...</DIV>
              <DIV id=logon-submit-button><INPUT type=submit value="Log On" name=Login></DIV></TD></TR></TBODY></TABLE><INPUT
              type=hidden value=login name=action><INPUT type=hidden value=Portal
              name=authportalservice><INPUT id=logon-alternate-username type=hidden
              name=userName><INPUT id=logon-alternate-password type=hidden
              name=password><BR></DIV></DIV></DIV></FORM></DIV></DIV>
              <DIV class=myvt-channel-border-bl>
              <DIV class=myvt-channel-border-br></DIV></DIV></DIV>
              <DIV class=myvt-channel-container>
              <DIV class=myvt-channel-titlebar>
              <DIV class=myvt-channel-icon><IMG height=24 alt=""
              src="index_files/icon-24.png" width=24></DIV>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD class=myvt-channel-title-text>Login Help</TD>
              <TD class=myvt-channel-buttons><IMG class=image-18
              style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
              width=1></TD></TR></TBODY></TABLE></DIV>
              <DIV class=myvt-channel-content>
              <DIV class=myvt-channel-rendered-content>
              <SCRIPT
              src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(1).js"
              type=text/javascript>

              </SCRIPT>
              <DIV class=myvt-channel-rendered-content>
              <DIV class=myvt-content-main>
              <UL class=myvt-flush-list>
              <LI><STRONG>Forgot your password?</STRONG><BR>Contact the Help-Desk ext:
              2600.
              <LI><STRONG>New to e-Services?</STRONG><BR><A
              href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Account%20Creation"
              shape=rect>Create your e-Services Account</A>
              <LI><STRONG>Trouble viewing site?</STRONG><BR><A
              href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Browsers"
              shape=rect>Required Browsers and Settings</A>
              <LI><STRONG>Other Problems?</STRONG><BR><A
              href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
              shape=rect>Contact Us</A> </LI></UL></DIV></DIV></DIV></DIV>
              <DIV class=myvt-channel-border-bl>
              <DIV class=myvt-channel-border-br></DIV></DIV></DIV>
              <DIV class=myvt-channel-container>
              <DIV class=myvt-channel-titlebar>
              <DIV class=myvt-channel-icon><IMG height=24 alt=""
              src="index_files/nd0003-24.png" width=24></DIV>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD class=myvt-channel-title-text>System Status</TD>
              <TD class=myvt-channel-buttons><IMG class=image-18
              style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
              width=1></TD></TR></TBODY></TABLE></DIV>
              <DIV class=myvt-channel-content>
              <DIV class=myvt-channel-rendered-content>

              <TABLE cellSpacing=3 cellPadding=6 width="100%" border=0>
              <TBODY>
              <TR>
              <TD align=right>
              <TABLE borderColor=#eeeeee cellSpacing=2 cellPadding=2 width="100%"
              bgColor=#ffffff border=1>
              <TBODY>
              <TR>
              <TD width="45%"><FONT color=#666666 size=1>Network</FONT></TD>
              <TD width="55%"><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>Colleague</FONT></TD>
              <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>WebAdvisor</FONT></TD>
              <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>e-Services</FONT></TD>
              <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>e-Mail & WebMail</FONT></TD>
              <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>WebCT</FONT></TD>
              <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>MediaCast</FONT></TD>
              <TD><FONT color=#009933 size=1>ok.</FONT></TD></TR>
              <TR>
              <TD><FONT color=#666666 size=1>Library Databases</FONT></TD>
              <TD><FONT color=#009933
              size=1>ok.</FONT></TD></TR></TBODY></TABLE><BR>
              <DIV align=right><FONT face="Arial, Helvetica, sans-serif"
              color=#666666 size=1><A
              href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Report</A>
              a problem.</FONT></DIV></TD></TR></TBODY></TABLE></DIV></DIV>
              <DIV class=myvt-channel-border-bl>
              <DIV class=myvt-channel-border-br></DIV></DIV></DIV></DIV></DIV>
              <DIV id=shared-column-border-bottom></DIV></TD>
              <TD id=layout-right>
              <TABLE id=tab-toolbar cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD id=tab-breadcrumbs>Welcome</TD></TR></TBODY></TABLE>
              <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <COLGROUP>
              <COL>
              <COL></COLGROUP>
              <TBODY>
              <TR>
              <TD id=main-column>
              <DIV class=myvt-channel-container>
              <DIV class=myvt-channel-rendered-content>
              <SCRIPT
              src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(2).js"
              type=text/javascript>

              </SCRIPT>
              <DIV class=myvt-channel-rendered-content>
              <DIV class=myvt-content-flush
              style="WIDTH: 100%; POSITION: relative">
              <TABLE cellSpacing=10 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
              <TD class="valign-top width-66">
              <DIV style="FONT-WEIGHT: bold; FONT-SIZE: 1.1em"><IMG
              alt=e-Services src="index_files/eserve_logo.gif" vspace=5
              border=0></DIV>
              <DIV style="PADDING-BOTTOM: 1em"><IMG height=83 alt=""
              hspace=10 src="index_files/compass.gif" width=81 align=right
              border=0> <SPAN class=td_text><STRONG>Your personal college
              experience.</STRONG><BR>e-Services, your one-stop location for
              accessing and managing your personal Northern Wyoming
              Community College District information. In addition to having
              the information you need presented to you automatically, you
              can customize e-Services to show other information that you
              find useful.</SPAN></DIV><BR><BR>
              <DIV style="FONT-WEIGHT: bold">Inside e-Services, you will
              find the following tabs:</DIV>
              <DIV
              style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">
              <TABLE cellSpacing=0 cellPadding=4 border=0>
              <TBODY>
              <TR>
              <TD class=valign-top><IMG height=32 alt=""
              src="index_files/wi0149-32.png" width=32 border=0></TD>
              <TD class=valign-middle><A
              href="Homehttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Home"><STRONG>Home</STRONG></A>
              <DIV>Important, personalized announcements and an
              at-a-glance look at today's events, news releases and
              featured content from across the NWCCD Web
              network.</DIV></TD></TR>
              <TR>
              <TD class=valign-top><IMG height=32 alt=""
              src="index_files/ac0057-32.png" width=32 border=0></TD>
              <TD class=valign-middle><A
              href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20College"><STRONG>My
              College</STRONG></A>
              <DIV>Access your Financial Aid, Admissions and
              Registration information via WebAdvisor or access your
              online classes via WebCT.</DIV></TD></TR>
              <TR>
              <TD class=valign-top><IMG height=32 alt=""
              src="index_files/ac0034-32.png" width=32 border=0></TD>
              <TD class=valign-middle><A
              href="Serviceshttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Services"><STRONG>Services</STRONG></A>
              <DIV>Links to information from select college service
              providers.</DIV></TD></TR>
              <TR>
              <TD class=valign-top><IMG height=32 alt=""
              src="index_files/community-32.png" width=32 border=0></TD>
              <TD class=valign-middle><A
              href="Campus'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Campus%20Life"><STRONG>Campus
              Life</STRONG></A>
              <DIV>Campus information, student activities and event
              calendars.</DIV></TD></TR>
              <TR>
              <TD class=valign-top><IMG height=32 alt=""
              src="index_files/ac0052-32.png" width=32 border=0></TD>
              <TD class=valign-middle><A
              href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20Page"><STRONG>My
              Page</STRONG></A>
              <DIV>Local, regional and national
              news.</DIV></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></DIV></DIV></DIV></DIV></TD>
              <TD id=side-column>
              <DIV class=myvt-channel-container>
              <DIV class=myvt-channel-rendered-content>
              <SCRIPT
              src="http://dev.sheridan.edu/uportal/login/index_files/myvt-common(1).js"
              type=text/javascript xml:space="preserve"> </SCRIPT>
              <DIV class=myvt-content-flush
              style="WIDTH: 100%; POSITION: relative"></DIV>
              <DIV class=myvt-channel-container>
              <DIV class=myvt-channel-border-tl>
              <DIV class=myvt-channel-border-tr></DIV></DIV>
              <DIV class="myvt-channel-content myvt-channel-no-titlebar"
              style="PADDING-RIGHT: 1em; PADDING-LEFT: 1em; PADDING-BOTTOM: 1em; PADDING-TOP: 1em; BACKGROUND-COLOR: #ffffcc">
              <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center
              border=0>
              <TBODY>
              <TR>
              <TD>
              <DIV class=bold align=center><FONT color=#666666>A "thank you"
              to our users:</FONT></DIV></TD>
              <TD><IMG height=36 alt="" hspace=5
              src="index_files/butterfly.gif"
              width=36></TD></TR></TBODY></TABLE><SPAN class=td_text><FONT
              color=#666666>Thank you for your continued feedback and support.
              Sheridan College, Gillette Campus and Outreach Center faculty,
              students and staff have contributed a great deal of valuable
              feedback and insights which we have used to create the all new
              e-Services 2.0 from the ground up. <BR clear=none><BR clear=none>We
              have big plans for e-Services. We think you'll be pleasantly
              surprised. If e-Services doesn't do something you want, <A
              href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
              shape=rect>let us know</A>. We will be adding features continuously.
              <BR clear=none><BR clear=none>So, "What's New?" you ask? You'll have
              to log-in to find out :) Why spoil the surprise? <BR clear=none><BR
              clear=none>Thank You, <BR clear=none><BR clear=none>Brady Fackrell
              and John Bruso<BR clear=none>Information Technologies<BR
              clear=none><BR clear=none></FONT></SPAN></DIV>
              <DIV class=myvt-channel-border-bl>
              <DIV
              class=myvt-channel-border-br></DIV></DIV></DIV></DIV></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
              <P><BR><BR></P>
              <P></P>
              <P></P>
              <HR align=center width="90%" noShade SIZE=1>
              <TABLE cellSpacing=0 cellPadding=3 width="90%" align=center border=0>
              <TBODY>
              <TR>
              <TD class=valign-top><STRONG><FONT color=#999999>e-</FONT><FONT
              color=#ff99cc>S</FONT><FONT color=#999999>ervices
              2.0</FONT></STRONG><BR><FONT color=#999999>� 2004-06 Northern Wyoming
              Community College District</FONT></TD>
              <TD class="align-right valign-top"><A
              href="http://www.sheridan.edu/offices/infotech/policies/" shape=rect>Web
              Policies</A> | <A href="College'>http://www.sheridan.edu/president/">College
              Policies</A> | <A href="Equal'>http://www.sheridan.edu/equal.asp">Equal
              Opportunity</A> | <A title="Contact IT (Opens in a new window)"
              href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Contact
              IT</A><BR>Powered by <A href="http://www.uportal.org/" target=_blank
              shape=rect>uPortal 2.4.2</A></TD></TR></TBODY></TABLE>
              <P></P>
              <DIV id=font-size-check>This text is used to check the minimum font size of your
              browser</DIV></BODY></HTML>



              David Smart <smartware@...> wrote:
              You're going to need to post your whole page - the actual statement works OK in the test page I put together.

              However, your <BODY class="myvt-page-blue" onLoad="function()"> is bad. If you want to put an "onLoad" in there, it's got to be a call to a function, and that function is not allowed to be called "function". (Or you can put other JavaScript in the onLoad if you wish. The main point is that functions can't be named "function".)

              As I see it, though, this is redundant - you are actually defining an onLoad function in your script.

              However, post the whole page (plus the code from the included script file again).

              OK second thoughts. In my test I just set args equal to a string - I didn't use parseQueryString. A glance at that function suggests that it isn't returning a string. What happens when you do an "alert (args)" just after the call to parseQueryString?

              Dave S

              ----- Original Message -----
              From: John
              To: javascript_official@yahoogroups.com
              Sent: Wednesday, October 05, 2005 6:01 AM
              Subject: [JavaScript] Javascript: problem writing parsed variable to form text box


              I have this login form that I want to be able to feed a variable to
              via the URL.

              For example: http://dev.sheridan.edu/uportal/login/index.htm?
              uP_fname=eservices-outlook

              So far I've managed to parse the URL and even write the variable to
              the page, but I'm pulling my hair out trying to figure out how to
              write that variable inside of a text box.

              Here's my code elements so far:

              =================================================

              <head>
              <SCRIPT src="index_files/link-parser.js" type=text/javascript>
              </SCRIPT>
              </head>

              <BODY class="myvt-page-blue" onLoad="function()">

              <SCRIPT>
              window.onload=function()
              {
              var args = parseQueryString();
              document.myForm.uP_fname.value=args; //cant get this
              to work
              }
              </SCRIPT>

              <input value="" name="uP_fname" type="text" />

              =================================================

              link-parser.js:

              function parseQueryString (str) {
              str = str ? str : location.search;
              var query = str.charAt(0) == '?' ? str.substring(1) : str;
              var args = new Object();
              if (query) {
              var fields = query.split('&');
              for (var f = 0; f < fields.length; f++) {
              var field = fields[f].split('=');
              args[unescape(field[0].replace(/\+/g, ' '))] =
              unescape(field[1].replace(/\+/g, ' '));
              }
              }
              return args;
              }

              =================================================








              SPONSORED LINKS C programming language Computer programming languages Java programming language
              The c programming language C programming language Concept of programming language


              ------------------------------------------------------------------------------
              YAHOO! GROUPS LINKS

              a.. Visit your group "javascript_official" on the web.

              b.. To unsubscribe from this group, send an email to:
              javascript_official-unsubscribe@yahoogroups.com

              c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


              ------------------------------------------------------------------------------



              [Non-text portions of this message have been removed]



              ---------------------------------
              YAHOO! GROUPS LINKS


              Visit your group "javascript_official" on the web.

              To unsubscribe from this group, send an email to:
              javascript_official-unsubscribe@yahoogroups.com

              Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


              ---------------------------------




              [Non-text portions of this message have been removed]





              ------------------------------------------------------------------------------
              YAHOO! GROUPS LINKS

              a.. Visit your group "javascript_official" on the web.

              b.. To unsubscribe from this group, send an email to:
              javascript_official-unsubscribe@yahoogroups.com

              c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


              ------------------------------------------------------------------------------



              [Non-text portions of this message have been removed]
            • John Bruso
              Hi David, Yes, I figured out that I had an array and not a string.. so, I added a statement (myValue) to create the string and the script is working now. Not
              Message 6 of 11 , Oct 6, 2005
              • 0 Attachment
                Hi David,

                Yes, I figured out that I had an array and not a string.. so, I added a statement (myValue) to create the string and the script is working now. Not getting anything from the alert got me to thinking ;)

                <script>
                var args = parseQueryString ();
                for (var arg in args) {
                var myValue = (args[arg]);
                document.myForm.uP_fname.value=args[arg];
                }
                </script>

                <script>
                document.write("<input type='hidden' name='uP_fname' value='"+myValue+"'>");
                </script>

                Thanks for your help!

                :) John


                David Smart <smartware@...> wrote:
                Thank you. I can't claim I didn't ask for that. :-)

                I notice that you have an "alert (args)" in your onload code. What is this alert giving you?

                I'll hold onto your code for the moment and not look at it in any detail until you get back to me with what the alert is telling you.

                But looking at parseQueryString again, I'm sure I'm on the right track ...

                You are setting the value of your text field to args. But "args" isn't a string, it's an array. Specifically, it's a sparse array with its indexes being the actual keywords in the query string. So, if you have a query string of "uP_fname=eservices-outlook", I'd expect to find an element of the args array args["uP_fname"] that contained your value - i.e. "eservices-outlook". This array reference is what you'd need on the right of your equals sign.

                I don't know where you got this bit of code, but it's certainly not the way I'd approach the decoding of a query string. It has no error robustness for a string that can easily be changed by user fiddling (deliberate or inadvertent).

                Dave S

                ----- Original Message -----
                From: John Bruso
                To: javascript_official@yahoogroups.com
                Sent: Wednesday, October 05, 2005 8:26 AM
                Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                Hi David,

                here is the full code...










                href="index_files/uportal.css" type=text/css rel=stylesheet>
                href="index_files/blue.css" type=text/css rel=stylesheet>





                window.onload=function()
                {
                var args = parseQueryString();
                alert (args);
                document.myForm.uP_fname.value=args; //cant get this to work
                }













                background=index_files/top_blue_bar_bg.gif border=0>


                src="index_files/spacer.gif" width=2>
                ‹‹
                Back to College Home-Page

                href="Officeshttp://www.sheridan.edu/offices/">Offices | class=font_toprightbar
                href="Catalogshttp://www.sheridan.edu/catalog/">Catalogs | class=font_toprightbar
                href="Directoryhttp://www.sheridan.edu/directory/">Directory | class=font_toprightbar
                href="Searchhttp://www.sheridan.edu/search/">Search




                width=175>






                Log on for personalized
                content width=100>
                |
                href="javascript:popUp('http://dev.sheridan.edu/uportal/help/')"> height=16 alt="" src="index_files/help.png" width=16> Help










                |


                src="index_files/welcome-active.png" width=24>
                Welcome


                |

                class=myvt-tab-link
                href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1774&uP_sparam=page&page=default"> height=16 alt="" src="index_files/home-inactive.png" width=16>
                Home

                |

                class=myvt-tab-link
                href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1773&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-college-inactive.png" width=16>
                My College

                |

                class=myvt-tab-link
                href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1772&uP_sparam=page&page=default"> height=16 alt="" src="index_files/services-inactive.png" width=16>
                Services

                |

                class=myvt-tab-link
                href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1771&uP_sparam=page&page=default"> height=16 alt="" src="index_files/campus-life-inactive.png"
                width=16> Campus Life

                |

                class=myvt-tab-link
                href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1770&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-page-inactive.png" width=16> My
                Page

                |




                src="index_files/sky-bg-eservlogo.gif" width=205>

                width="100%">





                Welcome to e-Services!

















                Login
                style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                width=1>



                action=http://www-dev.sheridan.edu:8080/uPortal/Login method=post>



                style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; PADDING-TOP: 7px"> [input] type=hidden value=login name=action>
                Enter your User ID and password below to log on to e-Services.




                User ID:
                [input] class="myvt-input-text width-100" maxLength=16 size=11
                name=userName>

                Password:
                [input] class="myvt-input-text width-100" type=password maxLength=16 size=11
                name=password>



                [input]





                id=logon-wait-animation-img height=18 alt=""
                src="index_files/wait-animation.gif" width=18>


                Logging on...

                [input]
                [input] type=hidden value=login name=action> [input] name=authportalservice> [input] name=userName> [input] name=password>













                src="index_files/icon-24.png" width=24>




                Login Help
                style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                width=1>



                src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(1).js"
                type=text/javascript>






                Forgot your password?
                Contact the Help-Desk ext:
                2600.

                New to e-Services?
                href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Account%20Creation"
                shape=rect>Create your e-Services Account

                Trouble viewing site?
                href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Browsers"
                shape=rect>Required Browsers and Settings

                Other Problems?
                href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
                shape=rect>Contact Us












                src="index_files/nd0003-24.png" width=24>




                System Status
                style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                width=1>








                bgColor=#ffffff border=1>


                Network
                ok.

                Colleague
                ok.

                WebAdvisor
                ok.

                e-Services
                ok.

                e-Mail & WebMail
                ok.

                WebCT
                ok.

                MediaCast
                ok.

                Library Databases
                size=1>ok.

                color=#666666 size=1> href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Report
                a problem.
















                Welcome









                src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(2).js"
                type=text/javascript>



                style="WIDTH: 100%; POSITION: relative">




                alt=e-Services src="index_files/eserve_logo.gif" vspace=5
                border=0>

                hspace=10 src="index_files/compass.gif" width=81 align=right
                border=0> Your personal college
                experience.
                e-Services, your one-stop location for
                accessing and managing your personal Northern Wyoming
                Community College District information. In addition to having
                the information you need presented to you automatically, you
                can customize e-Services to show other information that you
                find useful.



                Inside e-Services, you will
                find the following tabs:

                style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">



                src="index_files/wi0149-32.png" width=32 border=0>
                href="Homehttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Home">Home
                Important, personalized announcements and an
                at-a-glance look at today's events, news releases and
                featured content from across the NWCCD Web
                network.


                src="index_files/ac0057-32.png" width=32 border=0>
                href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20College">My
                College
                Access your Financial Aid, Admissions and
                Registration information via WebAdvisor or access your
                online classes via WebCT.


                src="index_files/ac0034-32.png" width=32 border=0>
                href="Serviceshttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Services">Services
                Links to information from select college service
                providers.


                src="index_files/community-32.png" width=32 border=0>
                href="Campus'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Campus%20Life">Campus
                Life
                Campus information, student activities and event
                calendars.


                === message truncated ===







                [Non-text portions of this message have been removed]
              • David Smart
                Well that will work provided there is only one item in the query string, and it isn t checking that the keyword is the one you expect. BTW your myValue isn t
                Message 7 of 11 , Oct 7, 2005
                • 0 Attachment
                  Well that will work provided there is only one item in the query string, and it isn't checking that the keyword is the one you expect.

                  BTW your myValue isn't doing anything that I can see. You set the field's value to args[arg] anyway.

                  Try removing the loop and simply set the value to args["uP_fname"]. I think that's the right syntax.

                  Dave S
                  ----- Original Message -----
                  From: John Bruso
                  To: javascript_official@yahoogroups.com
                  Sent: Friday, October 07, 2005 12:13 AM
                  Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                  Hi David,

                  Yes, I figured out that I had an array and not a string.. so, I added a statement (myValue) to create the string and the script is working now. Not getting anything from the alert got me to thinking ;)

                  <script>
                  var args = parseQueryString ();
                  for (var arg in args) {
                  var myValue = (args[arg]);
                  document.myForm.uP_fname.value=args[arg];
                  }
                  </script>

                  <script>
                  document.write("<input type='hidden' name='uP_fname' value='"+myValue+"'>");
                  </script>

                  Thanks for your help!

                  :) John


                  David Smart <smartware@...> wrote:
                  Thank you. I can't claim I didn't ask for that. :-)

                  I notice that you have an "alert (args)" in your onload code. What is this alert giving you?

                  I'll hold onto your code for the moment and not look at it in any detail until you get back to me with what the alert is telling you.

                  But looking at parseQueryString again, I'm sure I'm on the right track ...

                  You are setting the value of your text field to args. But "args" isn't a string, it's an array. Specifically, it's a sparse array with its indexes being the actual keywords in the query string. So, if you have a query string of "uP_fname=eservices-outlook", I'd expect to find an element of the args array args["uP_fname"] that contained your value - i.e. "eservices-outlook". This array reference is what you'd need on the right of your equals sign.

                  I don't know where you got this bit of code, but it's certainly not the way I'd approach the decoding of a query string. It has no error robustness for a string that can easily be changed by user fiddling (deliberate or inadvertent).

                  Dave S

                  ----- Original Message -----
                  From: John Bruso
                  To: javascript_official@yahoogroups.com
                  Sent: Wednesday, October 05, 2005 8:26 AM
                  Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                  Hi David,

                  here is the full code...










                  href="index_files/uportal.css" type=text/css rel=stylesheet>
                  href="index_files/blue.css" type=text/css rel=stylesheet>





                  window.onload=function()
                  {
                  var args = parseQueryString();
                  alert (args);
                  document.myForm.uP_fname.value=args; //cant get this to work
                  }













                  background=index_files/top_blue_bar_bg.gif border=0>


                  src="index_files/spacer.gif" width=2>
                  <<
                  Back to College Home-Page

                  href="Officeshttp://www.sheridan.edu/offices/">Offices | class=font_toprightbar
                  href="Catalogshttp://www.sheridan.edu/catalog/">Catalogs | class=font_toprightbar
                  href="Directoryhttp://www.sheridan.edu/directory/">Directory | class=font_toprightbar
                  href="Searchhttp://www.sheridan.edu/search/">Search




                  width=175>






                  Log on for personalized
                  content width=100>
                  |
                  href="javascript:popUp('http://dev.sheridan.edu/uportal/help/')"> height=16 alt="" src="index_files/help.png" width=16> Help










                  |


                  src="index_files/welcome-active.png" width=24>
                  Welcome


                  |

                  class=myvt-tab-link
                  href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1774&uP_sparam=page&page=default"> height=16 alt="" src="index_files/home-inactive.png" width=16>
                  Home

                  |

                  class=myvt-tab-link
                  href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1773&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-college-inactive.png" width=16>
                  My College

                  |

                  class=myvt-tab-link
                  href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1772&uP_sparam=page&page=default"> height=16 alt="" src="index_files/services-inactive.png" width=16>
                  Services

                  |

                  class=myvt-tab-link
                  href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1771&uP_sparam=page&page=default"> height=16 alt="" src="index_files/campus-life-inactive.png"
                  width=16> Campus Life

                  |

                  class=myvt-tab-link
                  href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1770&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-page-inactive.png" width=16> My
                  Page

                  |




                  src="index_files/sky-bg-eservlogo.gif" width=205>

                  width="100%">





                  Welcome to e-Services!

















                  Login
                  style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                  width=1>



                  action=http://www-dev.sheridan.edu:8080/uPortal/Login method=post>



                  style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; PADDING-TOP: 7px"> [input] type=hidden value=login name=action>
                  Enter your User ID and password below to log on to e-Services.




                  User ID:
                  [input] class="myvt-input-text width-100" maxLength=16 size=11
                  name=userName>

                  Password:
                  [input] class="myvt-input-text width-100" type=password maxLength=16 size=11
                  name=password>



                  [input]





                  id=logon-wait-animation-img height=18 alt=""
                  src="index_files/wait-animation.gif" width=18>


                  Logging on...

                  [input]
                  [input] type=hidden value=login name=action> [input] name=authportalservice> [input] name=userName> [input] name=password>













                  src="index_files/icon-24.png" width=24>




                  Login Help
                  style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                  width=1>



                  src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(1).js"
                  type=text/javascript>






                  Forgot your password?
                  Contact the Help-Desk ext:
                  2600.

                  New to e-Services?
                  href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Account%20Creation"
                  shape=rect>Create your e-Services Account

                  Trouble viewing site?
                  href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Browsers"
                  shape=rect>Required Browsers and Settings

                  Other Problems?
                  href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
                  shape=rect>Contact Us












                  src="index_files/nd0003-24.png" width=24>




                  System Status
                  style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                  width=1>








                  bgColor=#ffffff border=1>


                  Network
                  ok.

                  Colleague
                  ok.

                  WebAdvisor
                  ok.

                  e-Services
                  ok.

                  e-Mail & WebMail
                  ok.

                  WebCT
                  ok.

                  MediaCast
                  ok.

                  Library Databases
                  size=1>ok.

                  color=#666666 size=1> href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Report
                  a problem.
















                  Welcome









                  src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(2).js"
                  type=text/javascript>



                  style="WIDTH: 100%; POSITION: relative">




                  alt=e-Services src="index_files/eserve_logo.gif" vspace=5
                  border=0>

                  hspace=10 src="index_files/compass.gif" width=81 align=right
                  border=0> Your personal college
                  experience.
                  e-Services, your one-stop location for
                  accessing and managing your personal Northern Wyoming
                  Community College District information. In addition to having
                  the information you need presented to you automatically, you
                  can customize e-Services to show other information that you
                  find useful.



                  Inside e-Services, you will
                  find the following tabs:

                  style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">



                  src="index_files/wi0149-32.png" width=32 border=0>
                  href="Homehttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Home">Home
                  Important, personalized announcements and an
                  at-a-glance look at today's events, news releases and
                  featured content from across the NWCCD Web
                  network.


                  src="index_files/ac0057-32.png" width=32 border=0>
                  href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20College">My
                  College
                  Access your Financial Aid, Admissions and
                  Registration information via WebAdvisor or access your
                  online classes via WebCT.


                  src="index_files/ac0034-32.png" width=32 border=0>
                  href="Serviceshttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Services">Services
                  Links to information from select college service
                  providers.


                  src="index_files/community-32.png" width=32 border=0>
                  href="Campus'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Campus%20Life">Campus
                  Life
                  Campus information, student activities and event
                  calendars.


                  === message truncated ===







                  [Non-text portions of this message have been removed]





                  SPONSORED LINKS C programming language Computer programming languages Java programming language
                  The c programming language C programming language Concept of programming language


                  ------------------------------------------------------------------------------
                  YAHOO! GROUPS LINKS

                  a.. Visit your group "javascript_official" on the web.

                  b.. To unsubscribe from this group, send an email to:
                  javascript_official-unsubscribe@yahoogroups.com

                  c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                  ------------------------------------------------------------------------------



                  [Non-text portions of this message have been removed]
                • John Bruso
                  ahh, ic... like this? var args = parseQueryString (); var myValue = args[ uP_fname ]; That works too, and is simpler... thanks David! I know enough about
                  Message 8 of 11 , Oct 7, 2005
                  • 0 Attachment
                    ahh, ic... like this?

                    var args = parseQueryString ();
                    var myValue = args["uP_fname"];

                    That works too, and is simpler... thanks David! I know enough about JavaScript to be dangerous and that's it unfortunately.



                    David Smart <smartware@...> wrote:
                    Well that will work provided there is only one item in the query string, and it isn't checking that the keyword is the one you expect.

                    BTW your myValue isn't doing anything that I can see. You set the field's value to args[arg] anyway.

                    Try removing the loop and simply set the value to args["uP_fname"]. I think that's the right syntax.

                    Dave S
                    ----- Original Message -----
                    From: John Bruso
                    To: javascript_official@yahoogroups.com
                    Sent: Friday, October 07, 2005 12:13 AM
                    Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                    Hi David,

                    Yes, I figured out that I had an array and not a string.. so, I added a statement (myValue) to create the string and the script is working now. Not getting anything from the alert got me to thinking ;)

                    <script>
                    var args = parseQueryString ();
                    for (var arg in args) {
                    var myValue = (args[arg]);
                    document.myForm.uP_fname.value=args[arg];
                    }
                    </script>

                    <script>
                    document.write("<input type='hidden' name='uP_fname' value='"+myValue+"'>");
                    </script>

                    Thanks for your help!

                    :) John


                    David Smart <smartware@...> wrote:
                    Thank you. I can't claim I didn't ask for that. :-)

                    I notice that you have an "alert (args)" in your onload code. What is this alert giving you?

                    I'll hold onto your code for the moment and not look at it in any detail until you get back to me with what the alert is telling you.

                    But looking at parseQueryString again, I'm sure I'm on the right track ...

                    You are setting the value of your text field to args. But "args" isn't a string, it's an array. Specifically, it's a sparse array with its indexes being the actual keywords in the query string. So, if you have a query string of "uP_fname=eservices-outlook", I'd expect to find an element of the args array args["uP_fname"] that contained your value - i.e. "eservices-outlook". This array reference is what you'd need on the right of your equals sign.

                    I don't know where you got this bit of code, but it's certainly not the way I'd approach the decoding of a query string. It has no error robustness for a string that can easily be changed by user fiddling (deliberate or inadvertent).

                    Dave S

                    ----- Original Message -----
                    From: John Bruso
                    To: javascript_official@yahoogroups.com
                    Sent: Wednesday, October 05, 2005 8:26 AM
                    Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                    Hi David,

                    here is the full code...










                    href="index_files/uportal.css" type=text/css rel=stylesheet>
                    href="index_files/blue.css" type=text/css rel=stylesheet>





                    window.onload=function()
                    {
                    var args = parseQueryString();
                    alert (args);
                    document.myForm.uP_fname.value=args; //cant get this to work
                    }













                    background=index_files/top_blue_bar_bg.gif border=0>


                    src="index_files/spacer.gif" width=2>
                    <<
                    Back to College Home-Page

                    href="Officeshttp://www.sheridan.edu/offices/">Offices | class=font_toprightbar
                    href="Catalogshttp://www.sheridan.edu/catalog/">Catalogs | class=font_toprightbar
                    href="Directoryhttp://www.sheridan.edu/directory/">Directory | class=font_toprightbar
                    href="Searchhttp://www.sheridan.edu/search/">Search




                    width=175>






                    Log on for personalized
                    content width=100>
                    |
                    href="javascript:popUp('http://dev.sheridan.edu/uportal/help/')"> height=16 alt="" src="index_files/help.png" width=16> Help










                    |


                    src="index_files/welcome-active.png" width=24>
                    Welcome


                    |

                    class=myvt-tab-link
                    href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1774&uP_sparam=page&page=default"> height=16 alt="" src="index_files/home-inactive.png" width=16>
                    Home

                    |

                    class=myvt-tab-link
                    href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1773&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-college-inactive.png" width=16>
                    My College

                    |

                    class=myvt-tab-link
                    href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1772&uP_sparam=page&page=default"> height=16 alt="" src="index_files/services-inactive.png" width=16>
                    Services

                    |

                    class=myvt-tab-link
                    href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1771&uP_sparam=page&page=default"> height=16 alt="" src="index_files/campus-life-inactive.png"
                    width=16> Campus Life

                    |

                    class=myvt-tab-link
                    href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1770&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-page-inactive.png" width=16> My
                    Page

                    |




                    src="index_files/sky-bg-eservlogo.gif" width=205>

                    width="100%">





                    Welcome to e-Services!

















                    Login
                    style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                    width=1>



                    action=http://www-dev.sheridan.edu:8080/uPortal/Login method=post>



                    style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; PADDING-TOP: 7px"> [input] type=hidden value=login name=action>
                    Enter your User ID and password below to log on to e-Services.




                    User ID:
                    [input] class="myvt-input-text width-100" maxLength=16 size=11
                    name=userName>

                    Password:
                    [input] class="myvt-input-text width-100" type=password maxLength=16 size=11
                    name=password>



                    [input]





                    id=logon-wait-animation-img height=18 alt=""
                    src="index_files/wait-animation.gif" width=18>


                    Logging on...

                    [input]
                    [input] type=hidden value=login name=action> [input] name=authportalservice> [input] name=userName> [input] name=password>













                    src="index_files/icon-24.png" width=24>




                    Login Help
                    style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                    width=1>



                    src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(1).js"
                    type=text/javascript>






                    Forgot your password?
                    Contact the Help-Desk ext:
                    2600.

                    New to e-Services?
                    href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Account%20Creation"
                    shape=rect>Create your e-Services Account

                    Trouble viewing site?
                    href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Browsers"
                    shape=rect>Required Browsers and Settings

                    Other Problems?
                    href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
                    shape=rect>Contact Us












                    src="index_files/nd0003-24.png" width=24>




                    System Status
                    style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                    width=1>








                    bgColor=#ffffff border=1>


                    Network
                    ok.

                    Colleague
                    ok.

                    WebAdvisor
                    ok.

                    e-Services
                    ok.

                    e-Mail & WebMail
                    ok.

                    WebCT
                    ok.

                    MediaCast
                    ok.

                    Library Databases
                    size=1>ok.

                    color=#666666 size=1> href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Report
                    a problem.
















                    Welcome









                    src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(2).js"
                    type=text/javascript>



                    style="WIDTH: 100%; POSITION: relative">




                    alt=e-Services src="index_files/eserve_logo.gif" vspace=5
                    border=0>

                    hspace=10 src="index_files/compass.gif" width=81 align=right
                    border=0> Your personal college
                    experience.
                    e-Services, your one-stop location for
                    accessing and managing your personal Northern Wyoming
                    Community College District information. In addition to having
                    the information you need presented to you automatically, you
                    can customize e-Services to show other information that you
                    find useful.



                    Inside e-Services, you will
                    find the following tabs:

                    style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">



                    src="index_files/wi0149-32.png" width=32 border=0>
                    href="Homehttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Home">Home
                    Important, personalized announcements and an
                    at-a-glance look at today's events, news releases and
                    featured content from across the NWCCD Web
                    network.


                    src="index_files/ac0057-32.png" width=32 border=0>
                    href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20College">My
                    College
                    Access your Financial Aid, Admissions and
                    Registration information via WebAdvisor or access your
                    online classes via WebCT.


                    src="index_files/ac0034-32.png" width=32 border=0>
                    href="Serviceshttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Services">Services
                    Links to information from select college service
                    providers.


                    src="index_files/community-32.png" width=32 border=0>
                    href="Campus'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Campus%20Life">Campus
                    Life
                    Campus information, student activities and event
                    calendars.


                    === message truncated ===







                    [Non-text portions of this message have been removed]





                    SPONSORED LINKS C programming language Computer programming languages Java programming language
                    The c programming language C programming language Concept of programming language


                    ------------------------------------------------------------------------------
                    YAHOO! GROUPS LINKS

                    a.. Visit your group "javascript_official" on the web.

                    b.. To unsubscribe from this group, send an email to:
                    javascript_official-unsubscribe@yahoogroups.com

                    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                    ------------------------------------------------------------------------------



                    [Non-text portions of this message have been removed]



                    SPONSORED LINKS
                    C programming language Computer programming languages Java programming language The c programming language C programming language Concept of programming language

                    ---------------------------------
                    YAHOO! GROUPS LINKS


                    Visit your group "javascript_official" on the web.

                    To unsubscribe from this group, send an email to:
                    javascript_official-unsubscribe@yahoogroups.com

                    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                    ---------------------------------




                    [Non-text portions of this message have been removed]
                  • David Smart
                    Or just document.myForm.uP_fname.value=args[ uP_fname ]; You don t actually need a separate variable if you don t want it anywhere else. Dave S ... From: John
                    Message 9 of 11 , Oct 7, 2005
                    • 0 Attachment
                      Or just

                      document.myForm.uP_fname.value=args["uP_fname"];

                      You don't actually need a separate variable if you don't want it anywhere else.

                      Dave S

                      ----- Original Message -----
                      From: John Bruso
                      To: javascript_official@yahoogroups.com
                      Sent: Saturday, October 08, 2005 12:20 AM
                      Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                      ahh, ic... like this?

                      var args = parseQueryString ();
                      var myValue = args["uP_fname"];

                      That works too, and is simpler... thanks David! I know enough about JavaScript to be dangerous and that's it unfortunately.



                      David Smart <smartware@...> wrote:
                      Well that will work provided there is only one item in the query string, and it isn't checking that the keyword is the one you expect.

                      BTW your myValue isn't doing anything that I can see. You set the field's value to args[arg] anyway.

                      Try removing the loop and simply set the value to args["uP_fname"]. I think that's the right syntax.

                      Dave S
                      ----- Original Message -----
                      From: John Bruso
                      To: javascript_official@yahoogroups.com
                      Sent: Friday, October 07, 2005 12:13 AM
                      Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                      Hi David,

                      Yes, I figured out that I had an array and not a string.. so, I added a statement (myValue) to create the string and the script is working now. Not getting anything from the alert got me to thinking ;)

                      <script>
                      var args = parseQueryString ();
                      for (var arg in args) {
                      var myValue = (args[arg]);
                      document.myForm.uP_fname.value=args[arg];
                      }
                      </script>

                      <script>
                      document.write("<input type='hidden' name='uP_fname' value='"+myValue+"'>");
                      </script>

                      Thanks for your help!

                      :) John


                      David Smart <smartware@...> wrote:
                      Thank you. I can't claim I didn't ask for that. :-)

                      I notice that you have an "alert (args)" in your onload code. What is this alert giving you?

                      I'll hold onto your code for the moment and not look at it in any detail until you get back to me with what the alert is telling you.

                      But looking at parseQueryString again, I'm sure I'm on the right track ...

                      You are setting the value of your text field to args. But "args" isn't a string, it's an array. Specifically, it's a sparse array with its indexes being the actual keywords in the query string. So, if you have a query string of "uP_fname=eservices-outlook", I'd expect to find an element of the args array args["uP_fname"] that contained your value - i.e. "eservices-outlook". This array reference is what you'd need on the right of your equals sign.

                      I don't know where you got this bit of code, but it's certainly not the way I'd approach the decoding of a query string. It has no error robustness for a string that can easily be changed by user fiddling (deliberate or inadvertent).

                      Dave S

                      ----- Original Message -----
                      From: John Bruso
                      To: javascript_official@yahoogroups.com
                      Sent: Wednesday, October 05, 2005 8:26 AM
                      Subject: Re: [JavaScript] Javascript: problem writing parsed variable to form text box


                      Hi David,

                      here is the full code...










                      href="index_files/uportal.css" type=text/css rel=stylesheet>
                      href="index_files/blue.css" type=text/css rel=stylesheet>





                      window.onload=function()
                      {
                      var args = parseQueryString();
                      alert (args);
                      document.myForm.uP_fname.value=args; //cant get this to work
                      }













                      background=index_files/top_blue_bar_bg.gif border=0>


                      src="index_files/spacer.gif" width=2>
                      <<
                      Back to College Home-Page

                      href="Officeshttp://www.sheridan.edu/offices/">Offices | class=font_toprightbar
                      href="Catalogshttp://www.sheridan.edu/catalog/">Catalogs | class=font_toprightbar
                      href="Directoryhttp://www.sheridan.edu/directory/">Directory | class=font_toprightbar
                      href="Searchhttp://www.sheridan.edu/search/">Search




                      width=175>






                      Log on for personalized
                      content width=100>
                      |
                      href="javascript:popUp('http://dev.sheridan.edu/uportal/help/')"> height=16 alt="" src="index_files/help.png" width=16> Help










                      |


                      src="index_files/welcome-active.png" width=24>
                      Welcome


                      |

                      class=myvt-tab-link
                      href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1774&uP_sparam=page&page=default"> height=16 alt="" src="index_files/home-inactive.png" width=16>
                      Home

                      |

                      class=myvt-tab-link
                      href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1773&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-college-inactive.png" width=16>
                      My College

                      |

                      class=myvt-tab-link
                      href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1772&uP_sparam=page&page=default"> height=16 alt="" src="index_files/services-inactive.png" width=16>
                      Services

                      |

                      class=myvt-tab-link
                      href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1771&uP_sparam=page&page=default"> height=16 alt="" src="index_files/campus-life-inactive.png"
                      width=16> Campus Life

                      |

                      class=myvt-tab-link
                      href="http://www-dev.sheridan.edu:8080/uPortal/tag.23574cdcb26df0b7.render.userLayoutRootNode.uP?uP_sparam=tab&tab=1770&uP_sparam=page&page=default"> height=16 alt="" src="index_files/my-page-inactive.png" width=16> My
                      Page

                      |




                      src="index_files/sky-bg-eservlogo.gif" width=205>

                      width="100%">





                      Welcome to e-Services!

















                      Login
                      style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                      width=1>



                      action=http://www-dev.sheridan.edu:8080/uPortal/Login method=post>



                      style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; PADDING-TOP: 7px"> [input] type=hidden value=login name=action>
                      Enter your User ID and password below to log on to e-Services.




                      User ID:
                      [input] class="myvt-input-text width-100" maxLength=16 size=11
                      name=userName>

                      Password:
                      [input] class="myvt-input-text width-100" type=password maxLength=16 size=11
                      name=password>



                      [input]





                      id=logon-wait-animation-img height=18 alt=""
                      src="index_files/wait-animation.gif" width=18>


                      Logging on...

                      [input]
                      [input] type=hidden value=login name=action> [input] name=authportalservice> [input] name=userName> [input] name=password>













                      src="index_files/icon-24.png" width=24>




                      Login Help
                      style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                      width=1>



                      src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(1).js"
                      type=text/javascript>






                      Forgot your password?
                      Contact the Help-Desk ext:
                      2600.

                      New to e-Services?
                      href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Account%20Creation"
                      shape=rect>Create your e-Services Account

                      Trouble viewing site?
                      href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Browsers"
                      shape=rect>Required Browsers and Settings

                      Other Problems?
                      href="http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Welcome&page=Contact%20Us"
                      shape=rect>Contact Us












                      src="index_files/nd0003-24.png" width=24>




                      System Status
                      style="WIDTH: 1px" height=18 alt="" src="index_files/spacer.png"
                      width=1>








                      bgColor=#ffffff border=1>


                      Network
                      ok.

                      Colleague
                      ok.

                      WebAdvisor
                      ok.

                      e-Services
                      ok.

                      e-Mail & WebMail
                      ok.

                      WebCT
                      ok.

                      MediaCast
                      ok.

                      Library Databases
                      size=1>ok.

                      color=#666666 size=1> href="javascript:popUp('http://dev.sheridan.edu/uportal/help/contact_wfrm.htm')">Report
                      a problem.
















                      Welcome









                      src="http://dev.sheridan.edu\uportal\login\index_files\myvt-common(2).js"
                      type=text/javascript>



                      style="WIDTH: 100%; POSITION: relative">




                      alt=e-Services src="index_files/eserve_logo.gif" vspace=5
                      border=0>

                      hspace=10 src="index_files/compass.gif" width=81 align=right
                      border=0> Your personal college
                      experience.
                      e-Services, your one-stop location for
                      accessing and managing your personal Northern Wyoming
                      Community College District information. In addition to having
                      the information you need presented to you automatically, you
                      can customize e-Services to show other information that you
                      find useful.



                      Inside e-Services, you will
                      find the following tabs:

                      style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">



                      src="index_files/wi0149-32.png" width=32 border=0>
                      href="Homehttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Home">Home
                      Important, personalized announcements and an
                      at-a-glance look at today's events, news releases and
                      featured content from across the NWCCD Web
                      network.


                      src="index_files/ac0057-32.png" width=32 border=0>
                      href="My'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=My%20College">My
                      College
                      Access your Financial Aid, Admissions and
                      Registration information via WebAdvisor or access your
                      online classes via WebCT.


                      src="index_files/ac0034-32.png" width=32 border=0>
                      href="Serviceshttp://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Services">Services
                      Links to information from select college service
                      providers.


                      src="index_files/community-32.png" width=32 border=0>
                      href="Campus'>http://www-dev.sheridan.edu:8080/uPortal/navigate.jsp?tab=Campus%20Life">Campus
                      Life
                      Campus information, student activities and event
                      calendars.


                      === message truncated ===







                      [Non-text portions of this message have been removed]





                      SPONSORED LINKS C programming language Computer programming languages Java programming language
                      The c programming language C programming language Concept of programming language


                      ------------------------------------------------------------------------------
                      YAHOO! GROUPS LINKS

                      a.. Visit your group "javascript_official" on the web.

                      b.. To unsubscribe from this group, send an email to:
                      javascript_official-unsubscribe@yahoogroups.com

                      c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                      ------------------------------------------------------------------------------



                      [Non-text portions of this message have been removed]



                      SPONSORED LINKS
                      C programming language Computer programming languages Java programming language The c programming language C programming language Concept of programming language

                      ---------------------------------
                      YAHOO! GROUPS LINKS


                      Visit your group "javascript_official" on the web.

                      To unsubscribe from this group, send an email to:
                      javascript_official-unsubscribe@yahoogroups.com

                      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                      ---------------------------------




                      [Non-text portions of this message have been removed]





                      ------------------------------------------------------------------------------
                      YAHOO! GROUPS LINKS

                      a.. Visit your group "javascript_official" on the web.

                      b.. To unsubscribe from this group, send an email to:
                      javascript_official-unsubscribe@yahoogroups.com

                      c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                      ------------------------------------------------------------------------------



                      [Non-text portions of this message have been removed]
                    Your message has been successfully submitted and would be delivered to recipients shortly.