PassMark Logo
Home » Forum

asp form producing javascript/validation issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • o0bago0ba
    Junior Member
    • Feb 2007
    • 5

    #1

    asp form producing javascript/validation issues

    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
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    ...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.

    Comment

    Working...