close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Problem adding Javascript

Thread began 11/21/2011 8:36 am by glmcps295424 | Last modified 12/01/2011 10:37 am by glmcps295424 | 1671 views | 5 replies

glmcps295424

need better understanding of the update page

Jason,

Using 2 dynamic drop downs (parent = galltype, child= category) in an insert page for file called imagefil.

The insert page works perfectly. (selecting a galltype filters the category DD

Trying to make the update page function properly

pertinent fields

parent drop down is gallid (serves as a lookup from the galltype file)

gallid and galldesc are pertinent fields




child dropdown is catid (serves as a lookup from the category file)

catid , gallid and category are the fields


have worked for two days trying different combinations to no avail.

I have read and tried many of the suggestions from various posts and your responses from this forum.

My questions are:

1. Could you explain the purpose of the dynamic Array ?
2. In one instance you state that the update page is similar to the insert, except for the body onload event where the set selected in list for the parent list and populate list from array are to be added. Does that mean the dynamic array, dynamic menu on parent and the onchange behavior on the parent select are all the same?
3. Could you explain what the purpose of the “populate list from array” and “set select in list” are and how they must relate to the dynamic array?

Note that in my insert page I added the following jquery because I don't understand the regular javascript...

var j = jQuery.noConflict();
j("select.catid").change(function () {
var str = "";
j("select.catid option:selected").each(function () {
str += j(this).text() + " ";
});
j(".category").val(str);
});

this fills a text field below the child dropdown . My display on another page required that I capture the catid and category ( the actual description field )


Thank you for your time,


Gregg

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