Browser Issue

Browser Issue

am 28.12.2007 22:44:38 von Go Live

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 "

target=""_blank"">"
Response.Write " "
Response.Write " "
Response.Write " cellpadding=""0"" cellspacing=""0"">"
Response.Write " "
Response.Write " "
Response.Write " "
Response.Write " "
Response.Write " "
Response.Write "
"
Response.Write " value=""text"">"
Response.Write "
"
Get_Search_keyword();"">"
Response.Write "
"
Response.Write " "
Response.Write " "
Response.Write "
"

********************************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

am 29.12.2007 00:00:17 von exjxw.hannivoort

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 "

> target=""_blank"">"
> Response.Write " "
> Response.Write " "
> Response.Write " > cellpadding=""0"" cellspacing=""0"">"
> Response.Write " "
> Response.Write " "
> Response.Write " "
> Response.Write " "
> Response.Write " "
> Response.Write "
> width=""200"">" Response.Write " > type=""text"" id=""text"" name=""text""
> value=""text"">"
> Response.Write "
"
> > Get_Search_keyword();"">"
> Response.Write "
"
> Response.Write " "
> Response.Write " "
> Response.Write "
"
>
> ********************************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

am 29.12.2007 05:00:25 von McKirahan

"Go Live" wrote in message
news:615c0bb0-5cf8-42be-a053-164b2eb1a582@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 "

> target=""_blank"">"
> Response.Write " "
> Response.Write " "
> Response.Write " > cellpadding=""0"" cellspacing=""0"">"
> Response.Write " "
> Response.Write " "
> Response.Write " "
> Response.Write " "
> Response.Write " "
> Response.Write "
"
> Response.Write " > value=""text"">"
> Response.Write "
"
> > Get_Search_keyword();"">"
> Response.Write "
"
> Response.Write " "
> Response.Write " "
> Response.Write "
"
>
> ********************************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?
"

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 = "`
" _
& "`" _
& "`" _
& "` " _
& "`" _
& "`
" _
& "` cellspacing='0'>" _
& "` " _
& "` " _
& "` " _
& "` " _
& "`
" _
& "` value='text'>" _
& "`
" _
& "` onclick='Get_Search_keyword();'>" _
& "`
" _
& "`
" _
& "`
"
Response.Write Replace(strHTM,"`",vbCrLf)