close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How does search work with X an Y variable?

Thread began 8/18/2010 12:32 am by htm2112 | Last modified 8/18/2010 7:43 am by Jason Byrnes | 619 views | 1 replies |

htm2112

How does search work with X an Y variable?

I'm quite sure I don't understand how the x and y variables work in the search component of DataAssist. Would someone offer a little explanation in how they are handled? When I create a search with no selected item from my "Regions" area, the url returned is items_Results.php?S_ItemCatID=&Search.x=31&Search.y=14&Search=Search. Why is it so complicated?

Also, I am trying to remove the "Search" button on my home page. I would like the search to be implemented when the user selects an available option from the "Region" area. How can I accomplish this so they don't have to make a selection and then click "Search"?

You can access the front page of my site by going to new.php. Everything works on it except the search in the drop down div accessed by the "options" button that is not part of this question.

Thanks for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

the x and y variables are created when you use an image input type for a submit button:

<input type="image" name="Search" id="Search" value="Search" alt="Search" src="WA_DataAssist/images/Nautica/Modular_search.gif"  />



In some browsers, the value of image input type is not passed, instead the x and y coordinates of where the mouse clicked the image are passed.

When an image input type is used, the trigger for the search will be set to use the $_GET['Search_x'] variable so that the search will work correctly in all browsers.

To trigger the search to occur when a selection is made from the category list, you will need to use javascript on the onchange event of the list.


You will also need to modify the search server behaviors trigger.

On the results page, open the bindings panel. Click the plus button and select Form Data. Inthe form data dialog, click the folder icon and select the search form.

this will bring in the search form elements to the results page bindings panel.

Now open the server behaviors panel and Double Click the Data Assist Search behavior.

click the lightning bolt next to Trigger and select the S_ItemCatID form element so the search will be triggered by the select list.

Now on the search page, change the select list tag:

<select id="S_ItemCatID" name="S_ItemCatID">




to:

<select id="S_ItemCatID" name="S_ItemCatID" onchange="documet.WADASearchForm.submit();">
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...