Browser Issue
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.
Re: Browser Issue
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)
Re: Browser Issue
"Go Live" <barunshrestha [at] gmail.com> wrote in message
news:615c0bb0-5cf8-42be-a053-164b2eb1a582 [at] p69g2000hsa.google groups.com...
> 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;
>
> }
> ------------------------------------------------------------ --------------
----------------
Where is the Response.Write for this line?
<input type=""image"" id=""search"" onclick=""Get_Search_keyword();"">"
Where are the opening and closing table tags for the outer table?
Why use so many Response.Write statements?
Where's the "src=" for your image?
Perhaps you could use this:
Dim strHTM
strHTM = "`<form name='form1' method='get' target='_blank'>" _
& "`<table>" _
& "`<tr>" _
& "` <td>" _
& "` <table width='100%' border='0' cellpadding='0'
cellspacing='0'>" _
& "` <tr>" _
& "` <td valign='top' width='200'>" _
& "` <input type='text' id='text' name='text'
value='text'>" _
& "` </td>" _
& "` <td>" _
& "` <input type='image' id='search'
onclick='Get_Search_keyword();'>" _
& "` </td>" _
& "` </tr>" _
& "` </table>" _
& "` </td>" _
& "`</tr>" _
& "`</table>" _
& "`</form>"
Response.Write Replace(strHTM,"`",vbCrLf)