?
Solved

URL Text interfering with page functions

Posted on 2005-05-16
16
Medium Priority
?
360 Views
Last Modified: 2010-04-09
My problem is this. I have a links page with two text boxes and a button that are printed recursively until the end of a recordset is reached. Everything is written in HTML except for the data that is displayed in the text boxes, that is written using asp. One text box has the name of the link, the other the actual URL text. Clicking the button will save changes made to the link in the text box.

Everything was working great but after the user entered the following link: "http://esl.about.com/library/writing/blwrite_connectors.htm" and saved it, the button used for saving/adding links stopped working. If I remove the text from the text box that has that url text, the button works without having to refresh or anything.

So I can only assume that something in this line of text (http://esl.about.com/library/writing/blwrite_connectors.htm) being written on a page is somehow interfering with the rest of the HTML on the page.

Does anyone have an idea as to why that might be? Is it possible that it is treating something in that line as an escape character and throwing off the code?

This is a really big headache for me and I would value some input.

Thanks
0
Comment
Question by:fisherbrsnch00
  • 7
  • 6
  • 2
  • +1
16 Comments
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 14012371
You must have some kind of url validation in the code.
Maybe it's looking for a link that starts with this:  "http://www."
0
 
LVL 6

Expert Comment

by:benwiggy
ID: 14012389
Thats very likely, just change it to 'http://' - all links start with that anyway.
0
 

Author Comment

by:fisherbrsnch00
ID: 14012553
Maybe I wasn't clear. This page is being used to edit links from another page. The links work fine on the that page, that is not the issue. On this page the url is being displayed in a text box, as text. It is not a hyperlink. That is why I am confused because as far as the browser is concerned, this is just some text in a text box and should not affect anything else on the page.

I did try adding the "http://www." and it made no difference, as I expected, again as this is just text, not an actual hyperlink.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 14012759
Post the page code or a link to the page please.

Cd&
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 14012806
What i meant is that there is probably a javascript validation in your page that checks for the url syntax. Am i wrong? Are there other urls that work fine?
0
 

Author Comment

by:fisherbrsnch00
ID: 14012943
I wish I could provide a direct link to the page as it would make things easier to understand, but it requires administrative login. Here is the code for the page, excluding the asp at the top which populates a recordset with the links for the section name that has been passed and the functions to deal with add/edit/delete button presses (which is irrelevant since the issue is that the buttons cease to work when that particular link is displayed so these functions are not called.

I just had a thought, so I'm going to try something and let you know how it goes.

<!-- #INCLUDE FILE="inc_links.asp" -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Update Links</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../Style_Sheets/font.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body bgcolor =8FC0E0>
<table width="100%" height="557"  border="0">
  <tr valign="top">
    <td width="4%" height="493">&nbsp;</td>
    <td width="80%"> <!-- InstanceBeginEditable name="EditRegion3" -->
        <table width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="3%"><img src="../Images/Designers/tl.gif" width="39" height="40"></td>
          <% if session("Security") = "admin" then  %>
              <td colspan="2" bgcolor="#FFFFFF">
                    <input name="Cancel" type="button" value="Cancel" onClick="window.location='links.asp?section=<%=request("section")%>'">
                        &nbsp;
                   <!-- <input name="Edit" type="submit" value="Save Links">--><center><font color="#FF0000"><%=request("strError")%></font></center>
              </td>
          <% else %>
              <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>              
              <% end if %>
          <td width="4%"><img src="../Images/Designers/tr.gif" width="39" height="40"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="38">&nbsp;</td>
          <td width="4%" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><font color="#CCCCCC" size="5" face="century gothic"><img src="../Images/TemplateImages/sub-page%20headers/green-bullet-header.gif" width="48" height="38"></font></div></td>
          <td width="89%" bgcolor="#FFFFFF"><div align="center"><font size="4" face="century gothic">Update Links for - <% =request("section") %></font></div></td>
          <td>&nbsp;</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
        </tr>
            <form action="Links_Update.asp">
            <% counter = 0 %>
        <% do while not MyRs.eof %>
            <%
                  strLink_Name = MyRs("Link_Name")
                  strLink = MyRs("Link")
                  
                  strLink_Name = Replace(strLink_Name,"'", "''")
                  strLink = Replace(strLink,"'", "''")
                        
                  strLink_Name = Replace(strLink_Name, chr(34), chr(39) & chr(39))
                  strLink = Replace(strLink, chr(34), chr(39) & chr(39))
            %>
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime<%=counter%>.value='<%=MyRs("Prime")%>'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=<%=MyRs("Prime")%>" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
                      <td><input name="Prime<%=counter%>" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name<%=MyRs("Prime")%>" value="<%=MyRs("Link_Name") %>">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">

<!-- ******************* THIS IS WHERE THE URL IS DISPLAYED IN A TEXT BOX. WORKS FINE EXCEPT WHEN THAT ONE URL IS DISPLAYED ********** -->
Link: </font><input size="80%" type="text" name="Link<%=MyRs("Prime")%>" value="<%=strLink %>">
<!-- **************************************************************************************************************** -->

&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            <% counter = counter + 1 %>
            <% MyRs.movenext %>
            <%
                  loop
                  session("counter") = counter
            %>
                        
            <tr bgcolor="#FFFFFF">
              <td class="Cent-GothicFort">&nbsp;</td>
              <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input name="Add_New" type="submit" onClick="this.form.New.value='true';" value="Add Link"></font>&nbsp; </font></td>
              <td>&nbsp;</td>
          </tr>

            <tr bgcolor="#FFFFFF">
          <td> <input size="80%" type="hidden" name="Section" value="<%=request("section")%>"> &nbsp; </td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="New_Link_Name">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>

            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="New_Link">&nbsp;</td>
          <td><input name="New" type="hidden">&nbsp;</td>
        </tr>
            
        <tr>
          <td height="40"><img src="../Images/Designers/bl.gif" width="39" height="40"></td>
          <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
          <td><img src="../Images/Designers/br.gif" width="39" height="40"></td>
        </tr>
            </form>
      </table>
      <!-- InstanceEndEditable --></td>
    <td width="19%">&nbsp;</td>
  </tr>
  <tr>
    <td height="21">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 14013309
> Post the page code or a link to the page please.
He meant the generated html.  There is nothing we can do with that ASP.
What you should do is to open the page in firefox, then "Save Page As ..." and choose "Web Page, complete", then you upload all files on a web server and you post the link here.
0
 

Author Comment

by:fisherbrsnch00
ID: 14013394
The page requires a database connection as that is where the links are comming from and asp to display them. Saving it as a complete webpage and posting on a server would be pointless because you need a number of things for the page to work.
1) To be logged in
2) Have been directed from a section on the website
3) A database to get the links from
You want the HTML that is generated? I don't know what you mean, what I posted here is the HTML code for the page.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 14013453
What you posted is the asp that generates the HTML.  The problem appears to be in the HTML, so we need to see what the browser sees. Put the page in a browser then do view source and cut and paste it here.

Cd&
0
 

Author Comment

by:fisherbrsnch00
ID: 14013507
I uderstand, here it is. I've added comment lines <!-- ******* --> around the link that is causing the problem towards the end.

Thanks

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Update Links</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../Style_Sheets/font.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body bgcolor =8FC0E0>
<table width="100%" height="557"  border="0">
  <tr valign="top">
    <td width="4%" height="493">&nbsp;</td>
    <td width="80%"> <!-- InstanceBeginEditable name="EditRegion3" -->
        <table width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="3%"><img src="../Images/Designers/tl.gif" width="39" height="40"></td>
         
              <td colspan="2" bgcolor="#FFFFFF">
                    <input name="Cancel" type="button" value="Cancel" onClick="window.location='links.asp?section=grammar'">
                        &nbsp;
                   <!-- <input name="Edit" type="submit" value="Save Links">--><center><font color="#FF0000"></font></center>
              </td>
         
          <td width="4%"><img src="../Images/Designers/tr.gif" width="39" height="40"></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="38">&nbsp;</td>
          <td width="4%" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><font color="#CCCCCC" size="5" face="century gothic"><img src="../Images/TemplateImages/sub-page%20headers/green-bullet-header.gif" width="48" height="38"></font></div></td>
          <td width="89%" bgcolor="#FFFFFF"><div align="center"><font size="4" face="century gothic">Update Links for - grammar</font></div></td>
          <td>&nbsp;</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
        </tr>
            <form action="Links_Update.asp">
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime0.value='14'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=14" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime0" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name14" value="The Internet TESL Journal's Links:  Grammar and English Usage">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link14" value="iteslj.org/links/ESL/Grammar_and_English_Usage/">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime1.value='18'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=18" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime1" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name18" value="Phrasal Verbs - verbs followed by an adverb or preposition (for example: drop in, take off, get up, lie down), Purdue University on-line writing lab">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link18" value="owl.english.purdue.edu/handouts/esl/eslphrasal.html">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime2.value='19'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=19" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime2" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name19" value="Phrasal Verbs - from Stuff Media">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link19" value="www.stuff.co.uk/phrasal.htm">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime3.value='20'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=20" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime3" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name20" value="Phrasal Verbs - from Dave's ESL Cafe">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link20" value="www.eslcafe.com/pv/">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime4.value='21'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=21" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime4" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name21" value="Please see our Lessons Matrix page for a variety of grammar topics with links to grammar websites in each lesson. For example, Phrasal verbs, Articles, Modal Verbs, Prepositions, Connectors.">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link21" value="canadianefp.com/WebPages/Admin/AdminSiteMap.asp">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime5.value='54'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=54" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime5" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name54" value="English Corner: Grammar (check out these interactive activities, quizzes, grammar games, etc)">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link54" value="www.angelfire.com/wi3/englishcorner/grammar/grammar.html#top">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime6.value='73'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=73" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime6" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name73" value="About: English as a 2nd Language (try a variety of quizzes on articles (a/the/some))">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link73" value="esl.about.com/sitesearch.htm?terms=articles&SUName=esl&TopNode=3042&type=1">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime7.value='74'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=74" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime7" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name74" value="Purdue University Online Writing Lab (OWL): Articles (insert the missing articles)">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link74" value="owl.english.purdue.edu/handouts/esl/eslartEX2.html">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime8.value='75'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=75" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime8" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name75" value="ESL Blues: Articles (articles quiz)">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link75" value="www.collegeem.qc.ca/cemdept/anglais/aandim.htm">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime9.value='76'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=76" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime9" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name76" value="Simon & Schuster: Handbook for Writers: ESL - Articles (fill in the blanks and multiple choice questions)">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link76" value="wps.prenhall.com/ca_ph_troyka_handbook_3/0%2C2985%2C102649-%2C00.html">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
        <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input type="submit" value="Save Changes" onClick="this.form.Edit.value='true';this.form.Prime10.value='77'"></font>&nbsp; | <font color="#FF0000">&nbsp;<a href="Links_Update.asp?Delete=true&Prime=77" onClick="return confirm('Are you sure you want to delete this link?')"> <font color="#FF0000">Delete </font></a> </font></td>
             <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
            <!--this.form.prime.value=frames.idContent.document.body.innerHTML;this.form.submit();return true;-->
          <td><input name="Prime10" type="hidden"> &nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="Link_Name77" value="About: ESL: Connectors">&nbsp;</td>
          <td><input name="Edit" type="hidden">&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
<!-- ***************** THIS IS THE PROBLEM LINK ************************************************** -->
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="Link77" value="http://www.esl.about.com/library/writing/blwrite_connectors.htm">&nbsp;</td>
<!-- **************************************************************************************** -->
          <td>&nbsp;</td>
        </tr>
            <tr bgcolor="#FFFFFF">
          <td class="Cent-GothicFort">&nbsp;</td>
          <td colspan="2" valign="top" bgcolor="#FFFFFF"> <div align="center">
              <hr width =500 size = 2 color = #99cccc >
            </div></td>
          <td>&nbsp;</td>
            </tr>
            
            
                        
            <tr bgcolor="#FFFFFF">
              <td class="Cent-GothicFort">&nbsp;</td>
              <td colspan="2" valign="top" bgcolor="#FFFFFF"><font color="#FF0000"><input name="Add_New" type="submit" onClick="this.form.New.value='true';" value="Add Link"></font>&nbsp; </font></td>
              <td>&nbsp;</td>
          </tr>

            <tr bgcolor="#FFFFFF">
          <td> <input size="80%" type="hidden" name="Section" value="grammar"> &nbsp; </td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"><img src="../Images/TemplateImages/sub-page%20headers/blue-bullet.gif" width="16" height="15"></div></td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link Name: </font><input size="80%" type="text" name="New_Link_Name">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>

            <tr bgcolor="#FFFFFF">
          <td>&nbsp;</td>
          <td valign="top" bgcolor="#FFFFFF"> <div align="left" class="Cent-GothicFort"></div> </td>
              <td bgcolor="#FFFFFF" class="Cent-GothicFort"><font color="#000099">Link: </font><input size="80%" type="text" name="New_Link">&nbsp;</td>
          <td><input name="New" type="hidden">&nbsp;</td>
        </tr>
            
        <tr>
          <td height="40"><img src="../Images/Designers/bl.gif" width="39" height="40"></td>
          <td colspan="2" bgcolor="#FFFFFF">&nbsp;</td>
          <td><img src="../Images/Designers/br.gif" width="39" height="40"></td>
        </tr>
            </form>
      </table>
      <!-- InstanceEndEditable --></td>
    <td width="19%">&nbsp;</td>
  </tr>
  <tr>
    <td height="21">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
<!-- InstanceEnd --></html>
0
 

Author Comment

by:fisherbrsnch00
ID: 14013571
Well that's interesting, I took that code from the "view source", saved it as an HTML page and ran it from the desktop (outside of the local server) and the problem is gone. If I run it from the server the "Add Link" and "Save Changes" buttons are useless, pressing them does nothing (until I remove that one link, than it works fine). When I run it from the desktop the buttons do work (updates can't be made without the asp obviously, but at least it responds to button clicks. Hmmmm. I don't know.
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 14013978
You have use the "Edit" name 11 times in your form (<input name="Edit" type="hidden">).
That's invalid, each form field should have its own name.

Also, each time you submit the form, it's the complete set of links that gets submitted.
That's not necessary just to update 2 text fields.
Change your code so that it uses 1 form per link, that's much better.
So you can have something like this for each link:

<form action="Links_Update.asp?Update=true&Prime=76">
<input type="submit" value="Save Changes">
<input size="80%" type="text" name="Link_Name" value="Simon & Schuster: Handbook for Writers: ESL - Articles (fill in the blanks and multiple choice questions)">
<input size="80%" type="text" name="Link_Url" value="wps.prenhall.com/ca_ph_troyka_handbook_3/0%2C2985%2C102649-%2C00.html">
</form>

<form action="Links_Update.asp?Update=true&Prime=77">
<input type="submit" value="Save Changes">
<input size="80%" type="text" name="Link_Name" value="About: ESL: Connectors">
<input size="80%" type="text" name="Link_Url" value="esl.about.com/library/writing/blwrite_connectors.htm">
</form>
0
 

Author Comment

by:fisherbrsnch00
ID: 14014622
That sounds more efficient, but doesn't resolve the problem. There are multiple sections, this one happens to be Grammar. No matter what section you are connecting from, you end up at this page. This is the only section that has issues (because of the link) and the rest work fine.

The "Edit" hidden field's value is set when the button is clicked so the name can be used multiple times.

The code works absolutely fine and has been for months now, my only reason for posting this question was because this link has thrown a wrench into things. I don't think that anyone can understand the issue without actually executing the asp code so I appreciate the response, but I think I am going to have to resolve this on my own.

Thanks
0
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 2000 total points
ID: 14014883
> That sounds more efficient, but doesn't resolve the problem.
I know it does not solve the porblem, but sometimes problems disappear when you simplify the code.

Just a simple question:
are you sure you enter this in your textfield: "esl.about.com/library/writing/blwrite_connectors.htm"
and not "http://esl.about.com/library/writing/blwrite_connectors.htm" ?
All the other links don't have the "http://" part.  And in the initial question, you included it.

Good luck.
0
 

Author Comment

by:fisherbrsnch00
ID: 14016119
Well you nailed it GrandSchtroumpf, I changed it so that each link has its own form and everything is working perfectly fine now. I always thought that using "post" instead of "get" would avoid the limitation issue, I guess not.

Thanks for the advice.
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
ID: 14017756
I'm happy that solved your problem.
<:°)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question