Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Cfdiv Binding Variable with # sign Issue

View previous topic View next topic Go down 
AuthorMessage
JackInDabox
Member
Member
avatar

Posts : 10
Join date : 2011-04-08

Cfdiv Binding Variable with # sign Issue Empty
PostSubject: Cfdiv Binding Variable with # sign Issue   Cfdiv Binding Variable with # sign Issue EmptySun May 01, 2011 3:51 am

Have a problem using cfdiv binding variable, because it contains # in the value, so when it passed in Firefox it truncked anything from # sign on.
here is the code:
Code:

<form name="myForm" method="post">

<b><center>Part Name</center></b><br>

    <select name="Avail_Names" id="Avail_Names">

        <cfoutput query="getName">

        <option value ="#getName.name#"> #name#

        </cfoutput>

    </select>

</form>

<cfdiv id="nameDiv" bind="url:desc.cfm?name={Avail_Names}"/>

The code works with IE browser but not in Firefox.
Not sure what is the way to bypass # in that variable, or I should not use CFDIVE altogether. Appreciate your help.
Back to top Go down
Iseeee
Member
Member
avatar

Posts : 8
Join date : 2011-04-08

Cfdiv Binding Variable with # sign Issue Empty
PostSubject: Re: Cfdiv Binding Variable with # sign Issue   Cfdiv Binding Variable with # sign Issue EmptySun May 01, 2011 3:52 am

Try surrounding your value with the urlEncodedFormat() function.

For example:
Code:

<form name="myForm" method="post">
  <b><center>Part Name</center></b><br>
 
  <select name="Avail_Names" id="Avail_Names">
    <cfoutput query="getName">
      <option value="#urlEncodedFormat( getName.name )#">#name#
    </cfoutput>
  </select>
</form>

<cfdiv id="nameDiv" bind="url:desc.cfm?name={Avail_Names}"/>

Let me know how that goes.
Back to top Go down
JackInDabox
Member
Member
avatar

Posts : 10
Join date : 2011-04-08

Cfdiv Binding Variable with # sign Issue Empty
PostSubject: Re: Cfdiv Binding Variable with # sign Issue   Cfdiv Binding Variable with # sign Issue EmptySun May 01, 2011 3:53 am

Thanks Greg, it worked. It seems I have to encode it before cfdiv and decode it in the binding url page.

Appreciate your help. Thank you very much.
Back to top Go down
Sponsored content




Cfdiv Binding Variable with # sign Issue Empty
PostSubject: Re: Cfdiv Binding Variable with # sign Issue   Cfdiv Binding Variable with # sign Issue Empty

Back to top Go down
 

Cfdiv Binding Variable with # sign Issue

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» PHP variable issue with database
» Data grid binding a balnk after "add new row" button click
» [java] Share a variable?
» Database access related issue
» embedded html in javascript variable works in <body> but not in $(function()

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Cfdiv Binding Variable with # sign Issue Edit-trash Useless :: Trash-