You can see the behavior here: 
http://www.fundanalyze.com/iphone/getlistproblem.aspx

When the page loads everything is fine.  But with each GET (that is, a
search) a list item is highlighted in blue.  This page uses arrays to
demonstrate the problem.  The code is below.

Any help appreciated!

Thanks,
Max



<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>

<script runat="server">

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs)

        Dim vUseY As Boolean

        Dim sPrefix As String = "<ul id=" & Chr(34) & "home" & Chr(34)
& " title=" & Chr(34) & _
             "Funds" & Chr(34) & " selected=" & Chr(34) & "true" & Chr
(34) & ">" ' selected='true'
        Dim sliStart As String = "<li><a href=" & Chr(34) &
"GetListProblem.aspx?f="
        Dim sliMiddle As String = Chr(34) & "ifd.aspx?f=Alger" & Chr
(34) & ">Alger Lit" ' this will be dynamic
        Dim sLiEnd As String = "</a></li>"

        Dim x(5) As String
        Dim y(7) As String
        x(1) = "First list A"
        x(2) = "First list B"
        x(3) = "First list C"
        x(4) = "First list D"
        x(5) = "First list E"

        y(1) = "Get list A"
        y(2) = "Get list A"
        y(3) = "Get list A"
        y(4) = "Get list A"
        y(5) = "Get list A"
        y(6) = "Get list A"
        y(7) = "Get list A"

        Dim s As String

        ' Search fund
        If Request.QueryString("f") <> "" Then
            vUseY = True
        Else
            vUseY = False
        End If

        s = sPrefix ' init list string

        Select Case vUseY
            Case Is = False
                ' First load, just show default list
                For i As Integer = 0 To 5
                    s = s & sliStart
                    s = s & x(i) & Chr(34) & " target=" & Chr(34) &
"_self" & Chr(34) & ">" & x(i)
                    s = s & sLiEnd
                Next
                ' We're been called by a get so show second list (what
would come from
                ' a database)
            Case Is = True
                For i As Integer = 0 To 7
                    s = s & sliStart
                    s = s & y(i) & Chr(34) & " target=" & Chr(34) &
"_self" & Chr(34) & ">" & y(i)
                    s = s & sLiEnd
                Next
        End Select


        s = s & "</ul>" ' close list

        Me.Lit1.Text = s


    End Sub
</script>

<head>
<title>iFundAnalyze</title>
<meta name="viewport" content="width=device-width; initial-scale=1.0;
maximum-scale=1.0; user-scalable=0;"/>
<link rel="apple-touch-icon" href="iui/iui-logo-touch-icon.png" />
<meta name="apple-touch-fullscreen" content="YES" />
<style type="text/css" media="screen">@import "iui/iui.css";</style>
<script type="application/x-javascript" src="iui/iui.js"></script>
<script type="text/javascript">
  //  iui.animOn = true;
</script>

</head>

<body>
    <div class="toolbar">
        <h1 id="pageTitle"></h1>
        <a id="backButton" class="button" href="#"></a>
        <a class="button" href="#searchForm">Search</a>
    </div>

    <asp:Literal ID="Lit1" runat="server">
    </asp:Literal>


      <form id="searchForm" class="dialog"
action="GetListProblem.aspx" method="get">
        <fieldset>
              <h1>Fund Search</h1>
            <a class="button leftButton" type="cancel">Cancel</a>
            <a class="button blueButton" type="submit">Search</a>

            <label >Fund:</label>
            <input type="text" id="f" name="f"/>
         </fieldset>
     </form>


</body>
</html>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to