• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

List Box Selecting Resets Client Variable

New Here ,
Feb 18, 2008 Feb 18, 2008

Copy link to clipboard

Copied

Does anyone know how I can reset a client variable, client.afid, after a user selects a value from a list box? Pretty much onClick the page will refresh I guess and the client.afid will be changed to the list box selection. I don't know a ton about javascript.
TOPICS
Advanced techniques

Views

333

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 18, 2008 Feb 18, 2008

Copy link to clipboard

Copied

sorry, left the code out.

<cfif IsDefined(client.afid) AND IsDefined(client.custid)>
<select name="client.afid" onclick="location.reload();">
<cfloop query="qrySelectafid">
<option value="#qrySelectafid.thirdParty_id#">#qrySelectafid#</option>
</cfloop>
</select>
</cfif>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2008 Feb 18, 2008

Copy link to clipboard

Copied

LATEST
It's easier for you and freindlier to the user if you do all this stuff when the form is submitted.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation