Click to See Complete Forum and Search --> : Would this work?


sniper
11-25-2005, 09:54 AM
I just want to know if this would work, because I looked at it a second time and something doesn't seem right.
I changed this:

<td class="button" nowrap><a class="TitleBarButtonTxt" href="javascript:document.frmMain.hidCategory.value='515,<%=trim(fctGetText("CloseoutGolf"))%>';document.frmMain.action = 'catalog.asp#online';document.frmMain.submit();"><%=trim(fctGetText("CloseoutGolf"))%></a></td>


to this:

<td class="button" nowrap><a class="TitleBarButtonTxt" href="<%="<input type=""hidden"" name=""hidCategory"" value=""515,"+trim(fctGetText("CloseoutGolf"))+""" />"%><%response.Write "catalog.asp#online"%>"><%=trim(fctGetText("CloseoutGolf"))%></a></td>


If you are wondering why I'm getting rid of the javascript, it's because I was told to redo the whole site using only asp. The site is being constructed for the visually impaired and javascript does not show up in the source code. I'm guessing there is some machine that reads out the source code.

sniper
11-25-2005, 12:11 PM
And also, how would you succesfully take the javascipt out of this line. I have to have only asp on the page.

Response.Write "<td align=""right"" nowrap><a href=""javascript:SubmitFormQuick('" & Trim(rsCategoryButton(strFieldName)) & "," & Trim(rsCategoryButton("TypeName")) & "');"" onmouseover=""MM_swapImage('document.i" & strILevel & "','document.i" & strILevel & "','../images/" & Application("strProgramSource") & "/GENERAL/i" & strILevel & "_sel.jpg')"" onmouseout=""MM_swapImgRestore()"">"

sniper
11-25-2005, 01:39 PM
I also have this one that I'm getting an error on. I'm adding it here because it is similar to the other two.

<a class="SalesBarButtonTxt" href="<%="<input type=""hidden"" name=""hidKeyword"" value="" />"%><%="<input type=""hidden"" name=""hidCategory"" value="if strLang ="EN" then Response.write "605,Find the Money Program" else Response.write "605,Programme trouver l\'argent" end if" />"%><%response.Redirect "catalog.asp#online"%>">&nbsp;<%if strLang ="EN" then Response.write "Find the Money Program" else Response.write "Programme trouver l'argent" end if%>&nbsp;</a>


The error is an expected ")" at the if statement of the value. Please help.