Browser Issue

Discussion in 'ASP General' started by Go Live, Dec 28, 2007.

  1. Go Live

    Go Live Guest

    HI I am not being able to figure out why my code runs in IE and not in
    firefox.

    the code goes like this:

    ***********ASP****************
    Response.Write "<form name=""form1"" method=""get""
    target=""_blank"">"
    Response.Write " <tr>"
    Response.Write " <td >"
    Response.Write " <table width=""100%"" border=""0""
    cellpadding=""0"" cellspacing=""0"">"
    Response.Write " <tr>"
    Response.Write " <td valign=""top"" width=""200"">"
    Response.Write " <input type=""text"" id=""text"" name=""text""
    value=""text"">"
    Response.Write " </td>"
    Response.Write " <td>"
    <input type=""image"" id=""search"" onclick=""
    Get_Search_keyword();"">"
    Response.Write " </td>"
    Response.Write " </td>"
    Response.Write " </tr>"
    Response.Write " </table>"
    Response.Write " </td>"
    Response.Write " </tr>"
    Response.Write " </form>"

    ********************************Java script Code ****************
    function Get_Search_keyword()

    {

    var TEXT1 = document.getElementById('text').value;
    var TEXT2 = http://testsite.com/searchwords/
    var comb =TEXT2 + TEXT1;
    document.form1.action = comb;

    }

    ------------------------------------------------------------------------------------------
    Solution to this issue will be highly appreciated.
     
    Go Live, Dec 28, 2007
    #1
    1. Advertising

  2. Go Live

    Evertjan. Guest

    Go Live wrote on 28 dec 2007 in microsoft.public.inetserver.asp.general:

    > HI I am not being able to figure out why my code runs in IE and not in
    > firefox.


    That is not an ASP issue,
    see the view-source and test clientside.

    Please ask in a clientside NG.


    > the code goes like this:
    >
    > ***********ASP****************
    > Response.Write "<form name=""form1"" method=""get""
    > target=""_blank"">"
    > Response.Write " <tr>"
    > Response.Write " <td >"
    > Response.Write " <table width=""100%"" border=""0""
    > cellpadding=""0"" cellspacing=""0"">"
    > Response.Write " <tr>"
    > Response.Write " <td valign=""top""
    > width=""200"">" Response.Write " <input
    > type=""text"" id=""text"" name=""text""
    > value=""text"">"
    > Response.Write " </td>"
    > Response.Write " <td>"
    > <input type=""image"" id=""search"" onclick=""
    > Get_Search_keyword();"">"
    > Response.Write " </td>"
    > Response.Write " </td>"
    > Response.Write " </tr>"
    > Response.Write " </table>"
    > Response.Write " </td>"
    > Response.Write " </tr>"
    > Response.Write " </form>"
    >
    > ********************************Java script Code ****************
    > function Get_Search_keyword()
    >
    > {
    >
    > var TEXT1 = document.getElementById('text').value;
    > var TEXT2 = http://testsite.com/searchwords/
    > var comb =TEXT2 + TEXT1;
    > document.form1.action = comb;
    >
    >}
    >
    > -----------------------------------------------------------------------
    > ------------------- Solution to this issue will be highly appreciated.
    >




    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Dec 28, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lauchlan M
    Replies:
    2
    Views:
    434
    John Saunders
    Aug 17, 2003
  2. DKM
    Replies:
    15
    Views:
    779
  3. xyZed
    Replies:
    9
    Views:
    639
    Big Bill
    May 12, 2004
  4. ai4u
    Replies:
    0
    Views:
    2,828
  5. =?Utf-8?B?cm9kY2hhcg==?=

    Browser to browser

    =?Utf-8?B?cm9kY2hhcg==?=, Nov 3, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    261
    Mark Rae
    Nov 3, 2006
Loading...

Share This Page