close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

selection changes to first in list

Thread began 5/29/2012 3:19 pm by Sweens | Last modified 6/05/2012 3:39 pm by Jason Byrnes | 1876 views | 13 replies |

Sweens

selection changes to first in list

Hi

Attached txt file is the code from a page that has a dynamic dropdown. The dynamic bit works - but as soon as you move the mouse to go and click the 'add' button, the selection reverts to the first item in the list.

I see there's a mouseover bit of code, but can't see its relevance to the problem, as the selection changes well before you get to the add button (button done wit button styler)

If you make a selection and tab to the add button and press enter, the record inserts properly.

Any ideas?

BTW - I think it's a great shame that this extension is being discontinued - I hope that webassist will create their own jquery version to help us non-tecchies!

Cheers
Chris

Attached Files
dropdowns.txt
Sign in to reply to this post

Jason ByrnesWebAssist

The populate list from array behavior should be set to the OnChange event of the parent list.

you have it set to the onMouse over event of the p tag that contains the submit button, it should not be on the submit button p tag.

Sign in to reply to this post

Sweens

Thanks Jason - if only I knew how to change it! I've run the behaviour again several times and with varying degrees of failure!

Sign in to reply to this post

Jason ByrnesWebAssist

you need to remove the onMouse over event code:

change:
<p onmouseover="WA_FilterAndPopulateSubList(rsPostList_WAJA,MM_findObj('CtteeID'),MM_findObj('PostID'),0,0,false,': ')">


to:
<p>

Sign in to reply to this post

Sweens

Hi Jason

Done that - but now the dependent dropdown doesn't work.

Cheers
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

the populate list from array behavior needs to be added to the on change event of the parent list.

Sign in to reply to this post

Sweens

Hi Jason

Tried that - now I get the dynamic dropdown (which I did before), but when I select one of the list items, nothing happens - it stays as the first in the list.
Cheers
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

please send a link where i can see the problem, and send a copy of the page in a zip archive so I can examine the code.

Sign in to reply to this post

Sweens

Hi Jason

Thanks - the original message contains the source code; I'm afraid I can't provide a link, as it's in a restricted area.

Cheers
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

but in the code from the original post, you did not have the Populate List From array behavior applied to the onchange event of parent select list.


you had it applied to the onmouse over event of a p tag.

I told you to remove it from the p tag and add it to the onchange event of the parent select list.

If this is not working, then I need to see the Current state of the code. the original file doesn't do any good since it does not accurately reflect the code that is running in the page now....

compress the current version of the file to a zip archive please....

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