close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

IE8 Search Problem

Thread began 1/05/2010 4:38 pm by B Tonkin | Last modified 1/06/2010 7:48 pm by Eric Mittman | 4855 views | 8 replies |

B Tonkin

IE8 Search Problem

Just testing out my PowerStore2 site on IE8 and have noticed an issue when doing a search. Chrome, Safari and Firefox, on both OSX and Windows, works a treat, but when doing a search on IE8 it seems to be dropping the necessary "Search=Search" section of the URL. Without it it just seems to be repeating the first search.

Products_Results.php?Search=Search&S_ProductName=ITEMNAME works.

Products_Results.php?S_ProductName=ITEMNAME doesn't work.

Sign in to reply to this post

Eric Mittman

I have done some testing on my local PowerStore in IE 8, I also tried this with compatibility mode on. In my testing the search parameter was always showing up in the URL. Do you have a link to your site where we can try this out? Please post back with a link some test search terms that you are using when you experience this problem. I will do some testing to see what results I get and let you know what I discover.

Sign in to reply to this post

B Tonkin

Buy Wine Online

The site is ... www.buywineonline.com.au/ ... do a search for something (like sparkling) and then try another search for something else (like rose). On IE8 it seems to be displaying results from the initial search.

Sign in to reply to this post

Eric Mittman

I have done some testing on your site and this is not the result that I get when I use IE 8 or any other browser.

In my first search I looked for 'bor' and found 53 results. For my follow up test I went to the search page and looked for 'ter' and this found 166 results. When I examine the URL in both of these cases I can see the search parameter present and set to search.

I'm including some screen shots from my test for your reference. It seems that there may be something else to this as I'm not getting the same result when I test it.

Sign in to reply to this post

B Tonkin

Nav or Search Page?

Was that a search from the nav bar or from the search page? For me the search page works good, but from the nav bar it doesn't. Same problem on IE7 and IE8.

Sign in to reply to this post

B Tonkin

Nav Bar vs Search Page

Nav bar form looks like this ...

<form id="searchForm" method="get" action="Products_Results.php" >
<input type="text" name="S_ProductName" id="S_ProductName" />
<input name="Search" type="submit" id="Search" value="Search" alt="Search" />
</form>

... and the search page form looks like this ...

<div class="contentBox">
<form action="Products_Results.php" method="get" name="WADASearchForm" id="WADASearchForm" class="WADADataTable">
<fieldset class="insertForm">
<p>
<label for="S_ProductName">Keyword:</label>
<input type="text" name="S_ProductName" id="S_ProductName2" value="<?php echo((isset($_GET["S_ProductName"]))?$_GET["S_ProductName"]:"") ?>" size="32" />
</p>
<p>
<label for="S_ProductPrice">Price Range:</label>

<span id="sprytextfield1">
<input type="text" name="S_ProductPrice" id="S_ProductPrice" value="<?php echo((isset($_GET["S_ProductPrice"]))?$_GET["S_ProductPrice"]:"") ?>" size="10" onblur="if (document.getElementById('priceRangeServerValidation')) document.getElementById('priceRangeServerValidation').style.display='none';" style="width: 114px;" />
</span> -
<span id="sprytextfield2">
<input name="S_ProductPrice2" type="text" id="S_ProductPrice2" onblur="if (document.getElementById('priceRangeServerValidation')) document.getElementById('priceRangeServerValidation').style.display='none';" value="<?php echo((isset($_GET["S_ProductPrice2"]))?$_GET["S_ProductPrice2"]:"") ?>" size="10" style="width: 114px;" />
</span><span id="additionalErrorZone" class="additionalErrorZone"><span class="textfieldRequiredMsg textfieldInvalidFormatMsg textfieldMinCharsMsg textfieldMaxCharsMsg textfieldMinValueMsg textfieldMaxValueMsg">Price range fields can be positive numbers, or left blank.</span></span>
<?php
if (ValidatedField("ProductsResults","ProductsResults")) {
if ((strpos((",".ValidatedField("ProductsResults","ProductsResults").","), "," . "1" . ",") !== false || "1" == "") || (strpos((",".ValidatedField("ProductsResults","ProductsResults").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span class="textfieldServerError" id="priceRangeServerValidation">
Price range fields can be positive numbers, or left blank.
</span>
<?php //WAFV_Conditional Products_Results.php ProductsResults(1,2:)
}
}
}?>
</p>
<div class="buttons">
<input name="Search" type="submit" id="Search2" onclick="if (document.getElementById('priceRangeServerValidation')) document.getElementById('priceRangeServerValidation').style.display='none';" value="Search" />
<input type="submit" name="cancel" id="cancel" value="Cancel" onclick="window.location = 'Products_Results.php';" />
</div>
</fieldset>
</form>
</div>

... what have I done wrong?

Sign in to reply to this post

Eric Mittman

That was it! When I test the search from the nav bar and use the enter key to submit the form it will not include the search parameter in the URL.

To fix this you will need to go into the Templates > Main.dwt.php file. Go into split view and select the submit button in the nav bar. In the code you will need to update this submit button to look like this:

html:
<input name="Search2" type="submit" value="Search" id="Search" alt="Search" />



Then you need to add in a hidden form element to this form, it can be before this submit button or just after it, here is the hidden form element you will need to add:

html:
<input type="hidden" name="Search" value="Search" />



This is a problem in IE, if you use the enter key to submit a form it will not always submit what is in the value attribute of the submit button. Changing the name of the submit button to be search2 then adding a new hidden form element with the name search and a value of search will fix this.

If you encounter this problem in the future this is a pretty good workaround for it. I will make sure that a bug is logged for this issue. Thanks for being so patient and working this out with me.

Sign in to reply to this post

B Tonkin

Worked a treat

Thanks for that. Worked a treat. Always love a logged bug.

Sign in to reply to this post

Eric Mittman

Thanks again for being so patient on this, good catch.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...