Safari not recognizing &

I thought I had resolved this issue once before but now I
cannot find.
My site:
http://www.magnoliaparkburbank.org
Click on neighborhood directory. At the bttom Search for
store name
When I do an auto-suggest search any storename that has an
& in its name is resulting in an undefined field.
BUT only in Safari as far as I can tell. It seems ok in
Firefox. My xml code is :
My xml is this
<store>
<storeName>Dream Beauty Supply &amp;
Spa</storeName>
<phone>861-7655</phone>
<address>3001 W. Magnolia</address>
<website></website>
<locationClass>RedText</locationClass>
</store>
THE HTML CODE that controls this is: (I think)
var sprysuggest1 = new
Spry.Widget.AutoSuggest("spryautosuggest1", "productMenu", "ds3",
"storeName", {containsString: true});
What do I need to do to fix this?
Thanks
Marlene

This is the code
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en" xmlns:spry="
http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>Magnolia Park Directory</title>
<style type="text/css">
body {
margin:0px;
padding:0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color:#000
background-color:#fff;
line-height: 1.5em;
width:800px;
.firstCell {
font-weight:bold;
.redText{
color:#ed1c24;
.purpleText{
color:#5e4ea1;
.goldText{
color:#dfc519;
.greenText{
color:#79ad37;
.cyanText{
color:#00aeef;
h2 {
font-size:14px;
text-align:left;
margin-top: 12px;
color: #CC0000;
table td {
font-family: Arial, Helvetica, sans-serif;
font-size:11px;
border-bottom:1px solid #eee;
border-right: 1px solid #eee;
#wrapper {
margin-left: 20px;
width: 800px;
#wrapper #select {
float: left;
width: 480px;
closeWindow {
float: right;
#wrapper #select th {
font-size: 12px;
border-top: 1px solid #eee;
border-right: 1px solid #eee;
border-bottom: 1px solid #eee;
td.firstCell, th.firstCell {
border-left-width: 1px;
border-left-style: solid;
border-left-color: #eee;
form1 {
width: 150px;
#productMenu {
width: 300px;
#form1 input {
font-size: 12px;
h1 {
font-size: 14px;
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
#wrapper #select h2 {
margin-bottom: 6px;
#map img {
#wrapper #select #form1 {
margin-top: 36px;
#wrapper #select #form1 a {
color:0033ff;
#spryautosuggest1 h1 {
text-align: left;
color: #CC0000;
#wrapper #select .noBorder, #wrapper #select .noBorder a{
border-style: none;
color:#0033ff;
font-family: Arial, Helvetica, sans-serif;
font-size:11px;
</style>
<script src="includes/SpryAutoSuggest.js"
type="text/javascript"></script>
<script type="text/javascript"
src="includes/xpath.js"></script>
<script type="text/javascript"
src="includes/SpryData.js"></script>
<script type="text/javascript"
src="includes/SpryNestedXMLDataSet.js"></script>
<script type="text/javascript">
var ds1 = new Spry.Data.XMLDataSet("teams2.xml",
"stores/category", { sortOnLoad: "@id",
sortOrderOnLoad:"ascending"});
var ds2 = new Spry.Data.NestedXMLDataSet(ds1, "store");
var ds3 = new Spry.Data.XMLDataSet("teams2.xml",
"stores/category/store");
function MM_callJS(jsStr) { //v2.0
return eval(jsStr)
</script>
<link href="includes/SpryAutoSuggest.css" rel="stylesheet"
type="text/css" />
</head>
<body bgcolor="#ffffff">
<h1> Magnolia Park Store Directory</h1>
<div id="wrapper">
<a href="javascript:window.close();"><img
src="images/closeWindow.jpg" style="float:right; margin-right:
20px;"></a>
<div id="select">
<div spry:region="ds1">
<h2>Search by category</h2>
<select spry:repeatchildren="ds1" spry:choose="choose"
id="test"
onChange="ds1.setCurrentRowNumber(this.selectedIndex);">
<option spry:when="{ds_RowNumber} ==
{ds_CurrentRowNumber}" id="{ds_RowID}"
selected="selected">{@id}</option>
<option spry:default="default"
id="{ds_RowID}">{@id}</option>
</select>
</div>
<div spry:detailregion="ds2">
<table width="474" cellpadding="6" cellspacing="0" >
<tr>
<th width="112" class="firstCell">Store
Name</th>
<th width="77">Address</th>
<th width="52">Phone</th>
<th width="183" class="noBorder"> </th>
</tr>
<tr spry:repeat="ds2" class="{locationClass}">
<td class="firstCell">{storeName} </td>
<td>{address}</td>
<td>{phone}</td>
<td class="noBorder"><a
href="{website}">{website}</a></td>
</tr>
</table>
</div>
<form id="form1" name="form1" method="post"
onSubmit="doSearch(); return false;" action="">
<div id="spryautosuggest1">
<h2>Search By Store Name</h2>
<h2>
<input type="text" name="text1" id="text1" />
</h2>
<div id="productMenu" spry:region="ds3" >
<div spry:repeat="ds3" spry:suggest="{storeName}">
<div onClick="doSearch();">{storeName}</div>
</div>
</div>
</div>
<div>
<p><strong>Phone: </strong><span
id="phone">  </span></p>
<p><strong>Address: </strong><span
id="address">  </span></p>
<p><strong>Website: </strong><span
id="website">  </span></p>
</div>
<div><a href="javascript: newSearch();">New
Search</a></div>
</form>
</div>
<div id="map"><img src="images/mapWeb.jpg"
width="287" height="622" /></div>
</div>
<script type="text/javascript">
function newSearch() {
document.getElementById('phone').innerHTML = "";
document.getElementById('address').innerHTML = "" ;
document.getElementById('website').innerHTML = "" ;
document.getElementById('text1').value = "" ;
function doSearch(){
setTimeout('processSearch()',100);
function processSearch(){
var tf = document.getElementById('text1');
if(tf.value == '') return
var data = ds3.findRowsWithColumnValues({storeName:
tf.value.replace( /[&]/g,"&amp;") },true);
if(data){
var address = data.address;
var phone = data.phone;
var website = data.website;
document.getElementById('phone').innerHTML = phone;
document.getElementById('address').innerHTML = address;
document.getElementById('website').innerHTML ="<a
href=http://"+website+">"+website+"</a>";
var sprysuggest1 = new
Spry.Widget.AutoSuggest("spryautosuggest1", "productMenu", "ds3",
"storeName", {containsString: true});
</script>
</body>
</html>

Similar Messages

  • Safari not recognizing my ipad

    Websites are not recognizing my iPad anymore.  I have to answer a security question every time I sign in.  Any suggestions.  I have checked every setting I can think of!

    what what sites are asking for secuirty question? which ever website your using you need to contact them to see about reseting those questions. It maybe apple id security questions, and if so then contact apple.

  • Safari not recognized by website-help

    My Powerbook G4 cannot acess this site using Safari: http://newmls.gsmls.com/member/ It's a realty site. I checked with the site Admin and they seem a bit clueless. Claim they only support IE but aren't sure. I tried Firefox - didn't work. Any guru's out there have any suggestions? My wife needs it for a work application and as it stands I'd have to go out and buy a PC.... ack... HELP!!

    You can change the user agent in Safari as well via the Debug menu, but all that does is change the calling card a browser uses when it accesses a site. It does not make the browser emulate the browser whose user agent you choose. ActiveX requires Internet Explorer for Windows - period.
    Still, its worth a try in case this is one of the few real estate sites not using ActiveX.

  • Safari not recognizing flash

    OS Snow Leopard, iMac Intel Core i3
    Installed Flash version 11.1.102.62 restarted Safari, go to website needing Flash and it asks me to install Flash.
    Checked user library internet plug-ins, is empty.
    Checked system library internet plug-ins and Flash is there.
    Restart Safari, check Help:Installed plug-ins   and Adobe Flash is not listed.
    Javascript and java are installed and enabled.
    I installed Flash 3 times today, just to be sure.
    Why does not Safari recognize the installed Adobe Flash?

    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

  • Safari not recognizing my email address

    Safari is rejecting my email address and says it is not a valid address. I type in the same address running Firefox and I don't have a problem. Does anyone have a solution for me to get Safari to recognize my .mac email address?

    Hi,
    Quit Safari
    Open Keychain Access. (Applications/Utilities) Find the "Safari AutoFill" item. Delete it.
    Relaunch Safari. Next time it asks for authorization, click "Always Allow".
    Carolyn
    Message was edited by: Carolyn Samit

  • Safari Extensions-Safari Not Recognized

    Hi All.
    This is my first post here, so pls excuse any breach of etiquette.
    I'm using Safari 5.0.1(6533.17.8). I've been able to add extensions in the last two weeks with no problems. Now when I go to the extensions manager, I'm told I'm not on Safari 5.01.
    Additionally, I can see all the extensions I've added before.
    So far I've tried the following:
    1) uninstall all extensions - they just come right back.
    2) uninstall Safari using AppZapper (includes preferences file)
    3) removed ~/library/caches/com.apple.safari
    4) removed ~/library/caches/metadata/safari
    5) downloaded and reinstalled Safari.
    I was finally able to get Safari running with no extensions installed, but now I still get a message saying Safari 5.01 is not installed.
    There was another post here related to this same issued marked as answered, but the only answer I saw was where someone said they had to 'notify the hosts'. I have no idea what that means or why it would have worked, hence posting a new message here.
    Thanks in advance.

    know what could have caused it in the first place so as to avoid that situation again.
    Never move system files. Been there, done that myself.
    Re installing SL shouldn't take that long. Maybe 30 - 40 minutes. If you Mac restarts itself during the installation, just let your Mac do the work for you.
    You're welcome.

  • Safari not recognizing known filetypes

    http://bitzofbrinenhanced.blogspot.com/
    Here's a site I tried listening to that featured enhanced podcasts. But they display as text files in Safari. If I right/ctrl click to save the file to disk it gets a .txt appended to it! The file is .m4b and I thought that maybe her server wasn't encoding the mime type correctly, but the podcast downloads correctly in other browsers like Firefox and Flock. Clicking on the link in those browsers tells me the file is a MPEG-4 file playable in iTunes by default. What's up with Safari? I've tried it on two different Macs. Same results. What are your results with that podcast in Safari?

    Douglas, I have no problem listening to the podcasts. Sorry.

  • Ios8 Safari not recognized by Develop on desktop

    I recently updated my iPhone to ios8 and my MacPro to 10.9.5. After the updates my Safari developer tools don't recognize the iPhone's version of Safari. It does recognize my iPhone, but gives me the message that there are "No Inspectable Applications". This makes it very difficult to debug websites and apps for the iPhone. Can anyone suggest some help?

    I recently updated my iPhone to ios8 and my MacPro to 10.9.5. After the updates my Safari developer tools don't recognize the iPhone's version of Safari. It does recognize my iPhone, but gives me the message that there are "No Inspectable Applications". This makes it very difficult to debug websites and apps for the iPhone. Can anyone suggest some help?

  • Safari Not Recognizing my layout

    The other parts I figured were not important.
    <body>
    <div id="container">
      <nav id="navButton1">Mitosis: Formation of Daughter Cells</nav>
      <nav id="navButton2">Metamorfosi di una Barca</nav>
      <nav id="navButton3">Interstices</nav>
      <nav id="navButton4">Diario di una giovane Barca</nav>
      <div id="galleryCont">
        <div id="mainImg"></div>
        <div id="thumbImg2"></div>
        <div id="thumbImg3"></div>
        <div id="thumbImg0"></div>
        <div id="thumbImg4"></div>
        <div id="thumbImg5"></div>
        <div id="thumbImg6"></div>
        <div id="thumbImg7"></div>
        <div id="thumbImg8"></div>
        <div id="thumbImg9"></div>
      </div>
    </div>
    </body>
    </html>
    This is what it is supposed to look like:
    This is what it looks like in safari

    The code snippet you've supplied really doesn't help, except to point out you likely have a very verbose .css file with a lot of redundant code.
    Could you post a link to a test page on your server so we can take a look at the source code in action?

  • Iphone not recognized by itunes and my safari also will not open??? Help??

    I bought an iphone and synced it. When unplugging it, I realized all my apps I downloaded were gone off the iphone (I did find them in the itunes folder however) but the issue is, my Safari and my itunes program will NOT open. They bounce once and that is it, never opens. No errors, nothing. I have been going insane trying to figure out what the problem is. Anyone else have this issue?

    See:
    iOS: Device not recognized in iTunes for Windows

  • Windows media player not recognized as a valid plug-in in safari?

    on this PB 15 1.67/OS 10.4.3 I experienced some difficult in installing a piece of software, here's the thread....
    http://discussions.apple.com/thread.jspa?messageID=1360929#1360929
    prior to this difficulty, I had installed windows media player to access video clips embedded on news web sites etc, and everything worked fine, video usually streamed right into the media player, not saving a file to the desktop, but merely playing in a window....
    to solve the software install problem above, I returned to the apple store & they suggested and helped me accomplish an archive & re-install of the OS, and afterwards, the problem software installed properly...
    since the archive & re-install of OS 10.4.3, my windows media player is not recognized as a valid plug-in by safari.
    when I click on a video link (embedded), a seperate window appears that describes my need to install windows media player 9 for mac (and it's already in my app's folder), when I download the file to attempt re-installing media player, stuffit doesn't seem to un zip the file after double clicking on it, no app file appears on the desktop to mount in the apps dierctory?
    if the video link is not embedded, I can cntrl-click and save the file to the desktop and it will play normally, but if the file is embedded I have no means to see the news clip etc?
    also, for those video files that are not embedded, instead of playing directly via streaming, when a link is clicked, the file downloads to the desktop before playing?
    these aren't huge problems (well when trying to view an embedded news clip it is!) but any help in trying to return to normal behaviour would help!
    thanks again,
    dave
    powerbook G4 1.67   Mac OS X (10.4.3)  

    thanks for the link, but I wa really looking into making the win media player function as it had before I had to archive & re-load OS 10.4.3
    I use the player infrequently, but it drives me crazy when I'm looking @ a news page w/an embedded video and can't merely click it's link & see the clip!
    any thoughts on why I can't get the win media player sitx file to un-stuff and possibly re-install win media player to allow safari to recognize it as a valid plug-in?
    thanks again....
    dave

  • CSS okay in IE but not recognized by FF and Safari

    I have a style sheet for image floats that is attached to a html document within a php file that is recognized by IE but is not recognized by Firefox and Safari. I have attached it as an internal style sheet as well as an external style sheet and neither makes a difference.  HELP!

    I've cleaned up the code in the html file within the php file per your instructions by removing the embedded CSS and deleting the <html>, <head> and <body> tags.  This seemed to clear any conflicts on the php file (http://www.mdy.lib.in.us/index.php). However the page is still showing okay in IE but not in FF and Safari. Below is my revised html code...what am I not getting right?
    <link href="/mdby2.css" rel="stylesheet" type="text/css" />
    <p><img src="/Weekly_News/images/ScienceClublogo.jpg" width="153" height="99" class="left" />
    On Thursday, April 23 at 3:30 p.m. students, ages 7 and up, can participate in a fun science experiment.  Bring a bottle of your favorite soft drink for the experiment. Registration required.</p>
    <p><img src="/Weekly_News/images/FamilyStoryTimelogo.jpg" width="153" height="102" class="right" />
    On Saturday, April 18 at 10:00 a.m. attend this special storytime co-sponsored with Little Saints Child Care in Middlebury. There will be stories about families, a craft and a tour of the Children's Department.</p>
    <p><a href="http://www.booksite.com/texis/scripts/bookletter/showlist.html?sid=5638&amp;list=CNL3&amp; preview=1">
    <img src="/Weekly_News/images/LTAIlogo.jpg" width="122" height="87 "class="left" /></a>
    The next book in the series is &ldquo;The Guardians&rdquo; by Ana Castillo. The lecture will be on April 21at 7:00 p.m.  It will be followed by refreshments and book discussion. For more about this series see <a href="http://www.booksite.com/texis/scripts/bookletter/showlist.html?sid=5638&amp;list=CNL3&amp; preview=1">&quot;Love and Forgiveness: In the presence of the enemy&quot;</a>. </p>
    <p><img src="/Weekly_News/images/GED.jpg" width="140" height="97" class="right" />
    Access free online GED classes at the library.  An instructor from The Learning Generation Initiative (LGI) will be available on Wednesdays from 4:00 to 8:00 p.m. &amp; Saturdays from 10:00 a.m. to 2:00 p.m. in Community Room 3. For more information call LGI at 866-898-3908.</p>
    <p><a href="http://www.mdy.lib.in.us/Kids/toddlertime.php"><img src="/Weekly_News/images/toddlerLOGO.gif" alt="Toddler Time" width="150" height="58" class="left" /></a>
    <a href="http://www.mdy.lib.in.us/ToddlerTime/ToddlerTime.php"><strong>Toddler Time</strong></a> meets on Tuesdays at 10:00 a.m.   Introduce your toddler to fun activities at the library. Registration required. The last winter/spring session will be on April 28th.</p>
    <p><a href="http://www.mdy.lib.in.us/Kids/StoryTime/storytime.php"><img src="/images/StoryTimeLogo.gif" width="150" height="50" class="right" /></a>
    <a href="http://www.mdy.lib.in.us/StoryTime/storytime1.php"><strong>Story Time</strong></a> meets on Wednesdays and Thursdays at 10:00 a.m. and 1:00 p.m. Introduce your preschooler to the world of children's literature.  Registration required. The last winter/spring sessions will be on April 29th and 30th.</p>
    <p><img src="/Weekly_News/images/GoGreenPink2.jpg" width="152" height="98" class="left" />
    Recycle your InkJet and Laser Printer Cartridges at the library. For every acceptable cartridge, the recycler makes a donation to the National Breast Cancer Foundation.</p>

  • I own the iphone 4 and i was using safari and went to google something and my phone froze. My computer is not recognizing my phone when I plug it in, and my charger is not allowing my phone to charge. What can i do to get my phone unfrozen?

    I own the iphone 4 and i was using safari and went to google something and my phone froze. My computer is not recognizing my phone when I plug it in, and my charger is not allowing my phone to charge. What can i do to get my phone unfrozen?

    Try resetting it: hold the on/off and home buttons 10-20 seconds until you see the Apple logo (ignoring the off slider that appears first), then release.  If it won't reset you may need to put it in recovery mode and restore it as described here: http://support.apple.com/kb/ht1808.

  • Tried to download Opera Browser 10 and it says disk images failed to mount. reason,not recognized. What do I do to download this browser. using OS 10.4.11 and safari 4.1.3.Thankst sais

    tried to download Opera Browser 10 and it says disk images failed to mount. reason,not recognized. What do I do to download this browser. using OS 10.4.11 and safari 4.1.3.Thankst sais

    These are the requirements for various versions of Opera.
    http://www.opera.com/browser/download/requirements/
    Get the one that matches your Mac's.
    http://www.opera.com/browser/download/?os=mac&list=all
    Peter

  • Why is my Iphone 5 not opening safari and not recognizing my verizon data plan?

    Why is my Iphone 5 not opening safari and not recognizing my verizon data plan?

    What did Verizon say when you called them.

Maybe you are looking for

  • Internatio​nal Roaming Issue... Please Help!!

    Hello, I have the TELUS Tour 9630, I have activated international calling and checked with TELUS customer service before I left to make sure everything was working on their end.  However I have arrived in Italy and the phone does not work at all.  I

  • Creating a soft return in Pages for iPad

    I would really like to create a space between numbered items in Pages but I can't figure out how to do it.  Does anyone know how to create a soft return in Pages for iPad.

  • Unable to reset user permissions

    I have a big problem: I can't reset the user permissions and ACLs (with the resetpassword in the recovery partition), and my permissions are totally wrong. When I click on "reset" after ~0,5 sec the buttons says finished, but it didn't. I have a Fusi

  • How to define additional virtual image directories for multi lingual app.

    Hi, In my ApEx application, for English language I want to use default image directory /i/, but for other languages I want to use seperate image directories like /i/fr/ for French etc. In - Translate Application -> Application Language Mapping , ther

  • Maps app missing

    Somehow, my Maps app is missing on my home screen. It only appears when I double tap the home button, and then it appears at bottom of screen with all the recently opened apps. Any way I can get it back on the home screen where it was when I bought t