close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Issue with Bootstrap search button in Data Assist

Thread began 11/28/2014 3:50 am by illbe322016 | Last modified 12/03/2014 8:20 pm by Jason Byrnes | 3587 views | 9 replies |

illbe322016

Issue with Bootstrap search button in Data Assist

Hi
I have a button from an older site:
<input type="image" name="Search" id="Search" value="Search" alt="Search" src="WA_DataAssist/images/Yosemite/Elemental_search.gif" />

I would like to use a bootstrap button for this instead of the GIF. If I use:
<input type="image" class="btn btn-success" name="Search" id="Search" value="Search" alt="Search" />
everything works fine, but I get an ugly border around my button text and IE doesn't show the text on the button at all!

I know this is something stupid I'm missing, thanks for the help.

Tom

Sign in to reply to this post

Jason ByrnesWebAssist

This would be a css confilct of some sort.

please post a link where I can see the problem.

  and IE doesn't show the text on the button at all!  



when using an image element type, there is no value attribute, the text should be a part of the image itself. IE does not have support for using a value attribute in image element types.

Sign in to reply to this post

illbe322016

Bootstrap button issue with data assist

Thanks Jason for the reply.

I guess my bigger question is if I change the element type from image to submit the query string is sends is incomplete as listed below:

IMAGE TYPE QUERY: http://senecagun.com/searchResults2.php?S_make=ARMSCOR&S_model=&S_caliber=&S_type=&S_typeDefined=&S_newUsed=&S_itemID=&Search.x=32&Search.y=9&Search=Search

SUBMIT TYPE QUERY: http://senecagun.com/searchResults2.php?S_make=ARMSCOR&S_model=&S_caliber=&S_type=&S_typeDefined=&S_newUsed=&S_itemID=&Search=Search

Note the missing x and y parameters on the Submit query.

The URL is http://www.senecagun.com/index2.php - currently set as type="image" with the outline around the text.

Thanks

Tom

Sign in to reply to this post

Jason ByrnesWebAssist

This is the difference between a submit element type and an image element type.


The Image Element type does not support the Value attribute, instead, it uses an X and Y attribute, this is the coordinates of where the mouse clicked the image.

The Submit element type does support the value attribute, so does not need to pass the X and y coordinates of where it was clicked.

Sign in to reply to this post

illbe322016

I see, thanks for that info about the element.

I still have an issue if I use type="submit" for my button the bootstrap button displays correctly but the results from my results page shows me all records regardless of my choices on the initial form. If I use type="image" the button works properly searchwise but doesn't display properly. I created this all with data assist so I'm assuming data assist is using the image somehow. Please help this is driving me crazy :-).

Thanks

Tom

Sign in to reply to this post

Jason ByrnesWebAssist

Most likely the trigger code for the search behavior is set to use the image element type, send a copy of the results page so i can see the code.

Sign in to reply to this post

illbe322016

Thanks Jason, here is the file.

T

Attached Files
searchResults2.php
Sign in to reply to this post

Jason ByrnesWebAssist

line 13 is the code for the trigger for the search behavior:

if ((isset($_GET["Search_x"]) && $_GET["Search_x"] != "")) {



note the _x at the name of the variable:
Search_x

this is for an image element which has no value, but passes the x and y coordinates.

remove the _x portion so it can work with the standard submit button:

if ((isset($_GET["Search"]) && $_GET["Search"] != "")) {
Sign in to reply to this post

illbe322016

Jason, you are the best! Thank you for the patience and knowledge.

All the best,

Tom

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post
loading

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...