Recently Added Resources |
![]() |
No resources were found to be recently added. |
[text]_ManSerialNum=[interpret][_ManSerialNum_[index]][/interpret][/text] [text]_Alpha=[interpret][_Alpha_[index]][/interpret][/text] [textshow=T]index_count=[math][index_count]+1[/math]. [/text] [_Alpha] |
If I understand you correctly...=try this:[hideif [url][_Alpha][/url]=3D=%5B_Alpha_[index]%5D]CODE[/hideif]if =that works, then the issue is that [raw] turns off [interpret], meaning [in=dex] stays literally "[index]".. so you never actually were check=ing against=A0(e.g.) "[_Alpha_2]" (like you were trying to do)(in the loop's (e.g.) 2nd iteration).... so we have to ='cheat' like the above.(An opening square= bracket becomes=A0%5Binside an [url] wrapper...)If that does not work, then say so, and I'll look a=gain.-G=On Aug 28, 2010, at 7:51 AM, Suzanne Swift wrot=e:Hi everyone,
This may be a simple fix,= but I haven't been able to come up with a solution.=A0 Anyone know the= answer?
I've created a variable:
[text]_Alpha=3D[interpret][=_Alpha_[index]][/interpret][/text]
which is within a loop:
[loop =start=3D1&end=3D3]
both of the above follow a search:
==A0=A0=A0 [search db=3Dmydatabase.db&eqClientIDdatarq=3D[_ClientID]&=;neAlphadatarq=3D[blank]&neDate_Addeddatarq=3D[blank]&Alphasumm=3DT=&deDate_Addedsort=3D1&max=3D3]
=A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text]
=A0=A0=A0 =A0==A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0
=A0=A0=A0 =A0==A0=A0 [founditems]=A0=A0=A0 =A0=A0=A0
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [t=ext]_ManSerialNum_[index]=3D[ManSerialNumber][/text]
=A0=A0=A0 =A0=A0=A0= =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text]
=A0=A0=A0 =A0=A0=A0 [/founditems]
=A0=A0=A0 [/search]
In the= case I'm trying to solve, [numfound]=3D1.
I want to hide a =section of my code if the interpreted variable is raw (i.e. [_Alpha_2] or [=_Alpha_3]).=A0
I've tried the following:
=A0[hideif [_Alpha]=3D[interpret][_Al=pha_[index]][/interpret]]CODE[/hideif]
=A0[hideif [_Alpha]=3D[raw][inter=pret][_Alpha_[index]][/interpret][/raw]]CODE[/hideif]
=A0 [hideif [_Alph=a]=3D[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hideif]
=A0 [hideif [_Alpha]=3D[raw][_Alpha_[index]][/raw]]CODE[/hideif]
b=ut none of them work.=A0 I haven't done much coding with [interpret] ta=gs.=A0 Is there some other way to hide this code?
Thanks,
Suzanne=span>
--0016364ec7ae51acf4048f02187f-- Associated Messages, from the most recent to the oldest:
--0016364ec7ae51acf4048f02187fContent-Type: text/plain; charset=ISO-8859-1Thanks for all of your responses. I shouldn't have posted right before Iwent away for the weekend =).Here's the whole piece of code. I think the problem is that the search islooking for max=3 values. But in this case, there is only one valuecurrently in the database....so values 2 and 3 are showing code becausethere is nothing to find. [searchdb=ss_protected/data/mydbase.db&eqClientIDdatarq=[_ClientID]&neAlphadatarq=[blank]&neDate_Addeddatarq=[blank]&Alphasumm=T&deDate_Addedsort=1&max=3] [text]AddedResourcesFound=[numfound][/text] [founditems] [text]_ManSerialNum_[index]=[ManSerialNumber][/text] [text]_Alpha_[index]=[Alpha][/text] [/founditems] [/search] [hideif [AddedResourcesFound]=0] [hideif [ClientType]=Dealership] [hideif [noaddedresources]=0]
- Re: [WebDNA] [raw] tag with [interpret] question (Kenneth Grome
2010) - Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul
2010) - Re: [WebDNA] [raw] tag with [interpret] question (Govinda
2010) - Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul
2010) - Re: [WebDNA] [raw] tag with [interpret] question (Suzanne Swift
2010) - Re: [WebDNA] [raw] tag with [interpret] question (Kenneth Grome
2010) - Re: [WebDNA] [raw] tag with [interpret] question (Govinda
2010) - Re: [WebDNA] [raw] tag with [interpret] question (William DeVaul
2010) - [WebDNA] [raw] tag with [interpret] question (Suzanne Swift
2010)
Recently Added Resources [/hideif][/hideif][/hideif]On Sat, Aug 28, 2010 at 9:22 AM, Govinda[showif [AddedResourcesFound]=0]
[/showif] [text]index_count=0[/text] [loop start=1&end=3] [hideif [_Alpha]=[interpret][_Alpha_[index]][/interpret]] No resources were found to be recently added. [/hideif] [/loop] [text]_ManSerialNum=[interpret][_ManSerialNum_[index]][/interpret][/text] [text]_Alpha=[interpret][_Alpha_[index]][/interpret][/text] [textshow=T]index_count=[math][index_count]+1[/math]. [/text] [thisurl]"class="DefaultLinks_Font">[_Alpha]
wrote:> If I understand you correctly...>> try this:> [hideif [url][_Alpha][/url]=%5B_Alpha_[index]%5D]CODE[/hideif]>> if that works, then the issue is that [raw] turns off [interpret], meaning> [index] stays literally "[index]".. so you never actually were checking> against (e.g.) "[_Alpha_2]" (like you were trying to do)> (in the loop's (e.g.) 2nd iteration).> ... so we have to 'cheat' like the above.>> (An opening square bracket becomes> %5B> inside an [url] wrapper...)>> If that does not work, then say so, and I'll look again.>> -G>> On Aug 28, 2010, at 7:51 AM, Suzanne Swift wrote:>> Hi everyone,>> This may be a simple fix, but I haven't been able to come up with a> solution. Anyone know the answer?>> I've created a variable:> [text]_Alpha=[interpret][_> Alpha_[index]][/interpret][/text]>> which is within a loop:> [loop start=1&end=3]>> both of the above follow a search:>> [search> db=mydatabase.db&eqClientIDdatarq=[_ClientID]&neAlphadatarq=[blank]&neDate_Addeddatarq=[blank]&Alphasumm=T&deDate_Addedsort=1&max=3]> [text]AddedResourcesFound=[numfound][/text]>> [founditems]> [text]_ManSerialNum_[index]=[ManSerialNumber][/text]> [text]_Alpha_[index]=[Alpha][/text]> [/founditems]> [/search]>>> In the case I'm trying to solve, [numfound]=1.>>> I want to hide a section of my code if the interpreted variable is raw> (i.e. [_Alpha_2] or [_Alpha_3]).>> I've tried the following:> [hideif [_Alpha]=[interpret][_Alpha_[index]][/interpret]]CODE[/hideif]> [hideif> [_Alpha]=[raw][interpret][_Alpha_[index]][/interpret][/raw]]CODE[/hideif]> [hideif> [_Alpha]=[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hideif]> [hideif [_Alpha]=[raw][_Alpha_[index]][/raw]]CODE[/hideif]>> but none of them work. I haven't done much coding with [interpret] tags.> Is there some other way to hide this code?>> Thanks,> Suzanne>>> ------------> Govinda> govinda.webdnatalk@gmail.com>>>>>--0016364ec7ae51acf4048f02187fContent-Type: text/html; charset=ISO-8859-1Content-Transfer-Encoding: quoted-printableThanks for all of your responses.=A0 I shouldn't have posted right befo=re I went away for the weekend =3D).
Here's the whole piece of c=ode.=A0 I think the problem is that the search is looking for max=3D3 value=s.=A0 But in this case, there is only one value currently in the database..=..so values 2 and 3 are showing code because there is nothing to find.
=A0=A0=A0 [search db=3Dss_protected/data/mydbase.db&eqClientIDdatar=q=3D[_ClientID]&neAlphadatarq=3D[blank]&neDate_Addeddatarq=3D[blank=]&Alphasumm=3DT&deDate_Addedsort=3D1&max=3D3]
=A0=A0=A0 [tex=t]AddedResourcesFound=3D[numfound][/text]
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0
==A0=A0=A0 =A0=A0=A0 [founditems]=A0=A0=A0 =A0=A0=A0
=A0=A0=A0 =A0=A0=A0= =A0=A0=A0 [text]_ManSerialNum_[index]=3D[ManSerialNumber][/text]
=A0=A0==A0 =A0=A0=A0 =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text]
=A0=A0=A0 ==A0=A0=A0 [/founditems]
=A0=A0=A0 [/search]
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0=A0 [hideif [AddedResourc=esFound]=3D0]
=A0=A0=A0=A0 [hideif [ClientType]=3DDealership]
=A0=A0==A0=A0 [hideif [noaddedresources]=3D0]
=A0 <div id=3D"ResourcesM=oduleHeader" style=3D"position:relative; width:697px; height:20px=; overflow:visible;">
=A0=A0=A0 <table width=3D"100%" border=3D"0" cellspa=cing=3D"0" cellpadding=3D"0">
=A0=A0=A0=A0=A0 <=;tr>
=A0=A0=A0=A0=A0=A0=A0 <td class=3D"ModuleTitle_Font&quo=t;>Recently Added Resources </td></td>
=A0=A0=A0=A0=A0 </tr>
=A0=A0=A0=A0=A0 <tr>
=A0=A0=A0=A0==A0=A0=A0 <td><img src=3D"images/NEW/GreenLine.jpg" widt=h=3D"100%" height=3D"5"></td>
=A0=A0=A0=A0==A0 </tr>
=A0=A0=A0 </table>
=A0 </div>
=A0 <div id=3D"ResourcesModuleContainer" style=3D"pos=ition:relative; width:697px; overflow: visible;">
=A0=A0=A0 <=;table width=3D"100%" border=3D"0" cellspacing=3D"=0" cellpadding=3D"0">
=A0=A0=A0=A0=A0 [showif [AddedResourcesFound]=3D0]
=A0=A0=A0=A0=A0 <=tr class=3D"DefaultText_Font">
=A0=A0=A0=A0=A0=A0=A0 <t=d colspan=3D"1">No resources were found to be recently added.&=lt;/td>
=A0=A0=A0=A0=A0 </tr>
=A0=A0=A0=A0=A0 [/showif] [tex=t]index_count=3D0[/text] [loop start=3D1&end=3D3]
=A0 [hideif [_Alpha]=3D[interpret][_Alpha_[index]][/interpret]]
=A0=A0==A0=A0=A0 =A0=A0=A0 <tr class=3D"DefaultText_Font">
=A0==A0=A0=A0=A0=A0=A0 <td width=3D"35%" valign=3D"top"&=gt; [text]_ManSerialNum=3D[interpret][_ManSerialNum_[index]][/interpret][/t=ext]
=A0=A0=A0=A0=A0=A0=A0=A0=A0 [text]_Alpha=3D[interpret][_Alpha_[index]][/int=erpret][/text] [text show=3DT]index_count=3D[math][index_count]+1[/math]. <=br>=A0=A0=A0=A0=A0=A0=A0=A0=A0 [/text] <a href=3D"[thisurl]" c=lass=3D"DefaultLinks_Font">[_Alpha]</a><br>
=A0=A0=A0=A0=A0=A0=A0=A0 </td>
=A0=A0=A0=A0=A0 </tr>
=A0==A0=A0=A0=A0 [/hideif]
=A0=A0=A0=A0=A0 [/loop]
=A0=A0=A0 </table&=gt;
=A0 </div>
<script type=3D"text/javascript"=;>
var countries=3Dnew ddajaxtabs("ResourcesModuleHeader", ="ResourcesModuleContainer")
countries.setpersist(true)
countries.setselectedClassTarget("link&q=uot;) //"link" or "linkparent"
countries.init()
&=lt;/script>
[/hideif]
[/hideif]
[/hideif]On Sat, Aug 28, 2010 at 9:22 AM, Govinda <govinda.webd=natalk@gmail.com> wrote:If I understand you correctly...=try this:[hideif [url][_Alpha][/url]=3D=%5B_Alpha_[index]%5D]CODE[/hideif]if =that works, then the issue is that [raw] turns off [interpret], meaning [in=dex] stays literally "[index]".. so you never actually were check=ing against=A0(e.g.) "[_Alpha_2]" (like you were trying to do)(in the loop's (e.g.) 2nd iteration).... so we have to ='cheat' like the above.(An opening square= bracket becomes=A0%5Binside an [url] wrapper...)If that does not work, then say so, and I'll look a=gain.-G=On Aug 28, 2010, at 7:51 AM, Suzanne Swift wrot=e:Hi everyone,
This may be a simple fix,= but I haven't been able to come up with a solution.=A0 Anyone know the= answer?
I've created a variable:
[text]_Alpha=3D[interpret][=_Alpha_[index]][/interpret][/text]
which is within a loop:
[loop =start=3D1&end=3D3]
both of the above follow a search:
==A0=A0=A0 [search db=3Dmydatabase.db&eqClientIDdatarq=3D[_ClientID]&=;neAlphadatarq=3D[blank]&neDate_Addeddatarq=3D[blank]&Alphasumm=3DT=&deDate_Addedsort=3D1&max=3D3]
=A0=A0=A0 [text]AddedResourcesFound=3D[numfound][/text]
=A0=A0=A0 =A0==A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0
=A0=A0=A0 =A0==A0=A0 [founditems]=A0=A0=A0 =A0=A0=A0
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 [t=ext]_ManSerialNum_[index]=3D[ManSerialNumber][/text]
=A0=A0=A0 =A0=A0=A0= =A0=A0=A0 [text]_Alpha_[index]=3D[Alpha][/text]
=A0=A0=A0 =A0=A0=A0 [/founditems]
=A0=A0=A0 [/search]
In the= case I'm trying to solve, [numfound]=3D1.
I want to hide a =section of my code if the interpreted variable is raw (i.e. [_Alpha_2] or [=_Alpha_3]).=A0
I've tried the following:
=A0[hideif [_Alpha]=3D[interpret][_Al=pha_[index]][/interpret]]CODE[/hideif]
=A0[hideif [_Alpha]=3D[raw][inter=pret][_Alpha_[index]][/interpret][/raw]]CODE[/hideif]
=A0 [hideif [_Alph=a]=3D[interpret][raw][_Alpha_[index]][/raw][/interpret]]CODE[/hideif]
=A0 [hideif [_Alpha]=3D[raw][_Alpha_[index]][/raw]]CODE[/hideif]
b=ut none of them work.=A0 I haven't done much coding with [interpret] ta=gs.=A0 Is there some other way to hide this code?
Thanks,
Suzanne=span>
--0016364ec7ae51acf4048f02187f-- Suzanne Swift
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Server Creation - vendors (2005) Separate SSL Server (1997) Bugs in IE 6.0 ? (2003) Variables (1999) Generating unique SKU from [cart] - Still Stumped... (1997) emailer stuck (1997) Whats wrong with this code? (1998) OH CRAP!!!!!- Template not found error!!! (1999) Next X hits (1996) PIXO with cometsite ... and/or other plugins (1998) [click][/click] (1999) Odd Cart Behavior (1997) Add a field to the error log? (1997) Problems passing [SKU] with $Replace in 2.0 (1997) How To question on setting up downloads (1997) Multiple Ad databases? (1997) TemplateCacheSize preference (1998) [append] vs. [appendfile] delta + question? (1997) [WebDNA] Poll: Discussion Forum (2009) [WebDNA] PROBLEM WITH [SQL] (2009)