close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Set initial value on page load will not work, body tag is removed when template applied

Thread began 11/06/2013 11:56 pm by evansg7124312885 | Last modified 11/07/2013 8:45 am by evansg7124312885 | 1072 views | 1 replies

evansg7124312885

Set initial value on page load will not work, body tag is removed when template applied

I saw a similar a similar post on this and took a shot at correcting myself. While the page did load without errors, it did not go as hoped because the drop downs began appearing strange in that the child table listed country.state (parent.child) values and the initial values were not set. The similar post is in form http://www.webassist.com/forums/posts.php?id=23370

On an edit customer profile page, I am trying to populate list from array and set it to the initial value of customer's country and state from record set when the page loads. This was working fine until I applied a template to the page and the code applied to the body tag was removed. The post above recommended moving the code to the last "<!-- InstanceEndEditable -->" of template entry in source code. The code from before the template was applied read:

<body onload="WA_setSelectionsInChildList(MM_findObj('User_Update_group_11_Country'),<?php echo $row_SecurityAssistusers['UserCountry']; ?>);WA_FilterAndPopulateSubList(rsStateList_WAJA,MM_findObj('User_Update_group_11_Country'),MM_findObj('User_Update_group_State'),0,0,false,': ');WA_setSelectionsInChildList(MM_findObj('User_Update_group_State'),<?php echo $row_SecurityAssistusers['UserState']; ?>)">

This is what I applied:

<script language="language="javascript"">?WA_setSelectionsInChildList(MM_findObj('User_Update_group_11_Country'),<?php echo $row_SecurityAssistusers['UserCountry']; ?>);
WA_FilterAndPopulateSubList(rsStateList_WAJA,MM_findObj('User_Update_group_11_Country'),MM_findObj('User_Update_group_State'),0,0,false,': ');WA_setSelectionsInChildList(MM_findObj('User_Update_group_State'),<?php echo $row_SecurityAssistusers['UserState']; ?>) </script>

<!-- InstanceEndEditable -->

On a secondary note, a few years ago, I saw a Jason B entry that said you can temporarily disable the lock of the template, make your modifications, and then return the template lock entry to it's original state. If this is still possible, can you send those instructions again, I can not find the post. If this is possible, will future changes to the template going to remove the body tag edits when the change is applied?

Any assistance is appreciated,

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