Bad character found in field Prev location

General ShopSite user discussion

Bad character found in field Prev location

Postby ethanwillett » Wed Sep 23, 2009 9:52 am

After modifying the Curve layout to have the links in the left hand menu display search results, i get this error when trying to add a course from the search results page:
Code: Select all
Bad character found in field Prev location after "http://...?storeid=*28aab6adb97a7345e438e44542bf740c004cd7fd9824&search_field=".

This issue only happens when using the feature in IE, for some reason firefox is not effected.

the search_field= value is set to a closed quote search for "classroom based" etc. and another oddity is the only place this occurs are on links which contain some inline javascript to display rollover text...

Here's an example of a problematic link:
Code: Select all
<li class="link"><a href='http://.../sb/productsearch.cgi?storeid=*28aab6adb97a7345e438e44542bf740c004cd7fd9824&search_field="Classroom Based"' onmouseover='Tip("<b>Classroom-Based</b><br>These programs are FPMI’s classic seminars and Instructor-Led Training Programs.  They<br>are available for individual or group enrollment for federal employees, contractors, and the<br>private sector. Program lengths vary from one day to two weeks.  Programs will be offered<br>at an easily accessible location or client site.")' onmouseout='UnTip()'><font color='black'>Classroom-Based</font></a></li>


Hope someone can help, i know this is a lot of text.

Thanks :)
ethanwillett
 
Posts: 2
Joined: Wed Sep 23, 2009 9:43 am
Location: CT

Postby loren_d_c » Wed Sep 23, 2009 10:15 am

This may not work in a href URL because of the doublequotes:

search_field="Classroom Based"

Try:

search_field=Classroom+Based

Or:

search_field=Classroom%20Based

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby ethanwillett » Wed Sep 23, 2009 10:24 am

loren_d_c wrote:This may not work in a href URL because of the doublequotes:

search_field="Classroom Based"

Try:

search_field=Classroom+Based

Or:

search_field=Classroom%20Based

-Loren
Thank you, thank you! The link seems to be working with an escaped space.
ethanwillett
 
Posts: 2
Joined: Wed Sep 23, 2009 9:43 am
Location: CT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 127 guests