Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

small compatible error in mozilla
in internet explorer its working fine, where as coming to firefox its
showing =EF=BB=BF symbol with the output.
thanking u in advance.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8" />
<title>Ajax Auto Suggest</title>

<script type=3D"text/javascript" src=3D"jquery-1.2.1.pack.js"></script>
<script type=3D"text/javascript">
function lookup(inputString) {
if(inputString.length =3D=3D 0) {
// Hide the suggestion box.
$('#suggestions').hide();
} else {
$.post("rpc.php", {queryString: ""+inputString+""},
function(data){
if(data.length >0) {
$('#suggestions').show();
$('#autoSuggestionsList').html(data);
}
});
}
} // lookup

function fill(thisValue) {
$('#inputString').val(thisValue);
setTimeout("$('#suggestions').hide();", 200);
}
</script>

<style type=3D"text/css">
body {
font-family: Helvetica;
font-size: 11px;
color: #000;
}

h3 {
margin: 0px;
padding: 0px;
}

.suggestionsBox {
position: relative;
left: 30px;
margin: 10px 0px 0px 0px;
width: 200px;
background-color: #212427;
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border: 2px solid #000;
color: #fff;
}

.suggestionList {
margin: 0px;
padding: 0px;
}

.suggestionList li {

margin: 0px 0px 3px 0px;
padding: 3px;
cursor: pointer;
}

.suggestionList li:hover {
background-color: #659CD8;
}
</style>

</head>

<body>


<div>
<form>
<div>
Type your county:


<input type=3D"text" size=3D"30" value=3D"" id=3D"inputString"
onkeyup=3D"lookup(this.value);" onblur=3D"fill();" />
</div>

<div class=3D"suggestionsBox" id=3D"suggestions" style=3D"display:
none;">
<img src=3D"upArrow.png" style=3D"position: relative; top:
-12px; left: 30px;" alt=3D"upArrow" />
<div class=3D"suggestionList" id=3D"autoSuggestionsList">
 
</div>
</div>
</form>
</div>

</body>
</html>

Report this thread to moderator Post Follow-up to this message
Old Post
thenature4u@gmail.com
04-02-08 09:32 AM


Re: small compatible error in mozilla
thenature4u@gmail.com schreef:
> in internet explorer its working fine, where as coming to firefox its
> showing  symbol with the output.
> thanking u in advance.
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>Ajax Auto Suggest</title>
>
> <script type="text/javascript" src="jquery-1.2.1.pack.js"></script>
> <script type="text/javascript">
>    function lookup(inputString) {
>       if(inputString.length == 0) {
>          // Hide the suggestion box.
>          $('#suggestions').hide();
>       } else {
>          $.post("rpc.php", {queryString: ""+inputString+""},
> function(data){
>             if(data.length >0) {
>                $('#suggestions').show();
>                $('#autoSuggestionsList').html(data);
>             }
>          });
>       }
>    } // lookup
>
>    function fill(thisValue) {
>       $('#inputString').val(thisValue);
>       setTimeout("$('#suggestions').hide();", 200);
>    }
> </script>
>
> <style type="text/css">
>    body {
>       font-family: Helvetica;
>       font-size: 11px;
>       color: #000;
>    }
>
>    h3 {
>       margin: 0px;
>       padding: 0px;
>    }
>
>    .suggestionsBox {
>       position: relative;
>       left: 30px;
>       margin: 10px 0px 0px 0px;
>       width: 200px;
>       background-color: #212427;
>       -moz-border-radius: 7px;
>       -webkit-border-radius: 7px;
>       border: 2px solid #000;
>       color: #fff;
>    }
>
>    .suggestionList {
>       margin: 0px;
>       padding: 0px;
>    }
>
>    .suggestionList li {
>
>       margin: 0px 0px 3px 0px;
>       padding: 3px;
>       cursor: pointer;
>    }
>
>    .suggestionList li:hover {
>       background-color: #659CD8;
>    }
> </style>
>
> </head>
>
> <body>
>
>
>    <div>
>       <form>
>          <div>
>             Type your county:
>
>
>             <input type="text" size="30" value="" id="inputString"
> onkeyup="lookup(this.value);" onblur="fill();" />
>          </div>
>
>          <div class="suggestionsBox" id="suggestions" style="display:
> none;">
>             <img src="upArrow.png" style="position: relative; top:
> -12px; left: 30px;" alt="upArrow" />
>             <div class="suggestionList" id="autoSuggestionsList">
>                 
>             </div>
>          </div>
>       </form>
>    </div>
>
> </body>
> </html>

try comp.lang.javascript

Erwin Moller

Report this thread to moderator Post Follow-up to this message
Old Post
Erwin Moller
04-02-08 01:12 PM


Re: small compatible error in mozilla
On Wed, 02 Apr 2008 11:30:18 +0200, <thenature4u@gmail.com> wrote:

> in internet explorer its working fine, where as coming to firefox its
> showing  symbol with the output.

Look up what an UTF-8 BOM is, and remove those from your files.
--
Rik Wasmus

Report this thread to moderator Post Follow-up to this message
Old Post
Rik Wasmus
04-03-08 12:20 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:43 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.