PDA

View Full Version : asp form producing javascript/validation issues


o0bago0ba
08-07-2007, 11:17 PM
hi there,
i really have no idea what's going on here - so i thought i'd post the search box code that resides on the various pages in my site;

<form action="../search/search.asp" method="get" name="search" id="search">
<input type="text" name="zoom_query" class="zoomSearchbox" size="13" value="Search" onclick=”clickclear(this, ‘Search’)” onblur=”clickrecall(this,’Search’)”/>
<input type="submit" value="Go" />
</form>

upon closer inspection i also have this code on certain pages;

<form action="search/search.asp" method="get" name="search" id="search">
<input type="text" name="zoom_query" class="zoomSearchbox" size="13" value="Search" onclick="clickclear(this, 'Search')" onblur="clickrecall(this,'Search')"/>
<input type="submit" value="Go" />
</form>

as you can see some of the quotation marks are different - would this be causing the problem?
thanks in advance
Jas

wrensoft
08-07-2007, 11:53 PM
...would this be causing the problem?


Well you didn't actually say exactly what the problem was. And this Javascript code is not our code, so we don't support it.

But yes, as a general comment, messing up the quotes in Javascript could stop the Javascript code executing correctly.