The concept that took me awhile to get my head around. You don't usually pass variables to _javascript_ in examples like this. If you need to truly pass variables to _javascript_ from CFML you need to use some kind of intermediary technology such as WDDX. But for what you seem to be trying to do
Hi Patric,
I'll try to consolidate information I've provided so far. I'm not at work today so I can't generate the exact code, but I'll do my best to simulate it.
Here goes:
Purpose of the code:
When a user clicks on a menu link (generated by the CF code prior to the user interaction), an associ
Hi Patric,
I'll try to consolidate information I've provided so far. I'm not at work today so I can't generate the exact code, but I'll do my best to simulate it.
Here goes:
Purpose of the code:
When a user clicks on a menu link (generated by the CF code prior to the user interaction), an as
I created the following test code and it runs just fine, I believe it does basically what you are asking code to do.
HTH
aQuery = queryNew("menu_bmarkLink,menu_Text,menu_nonBmarkLink");
tmp = QueryAddRow(aQuery,4);
tmp = QuerySetCell(aQuery,"menu_bmarkLink","MinorRts",1);
tmp = QueryS
So there was nothing wrong with my original code and I shouldn't have gotten an error saying that onClick didn't understand the CF variable #menu_bmarkLink#.
Maybe it failed because there was no value for #menu_bmarkLink# when that variable was blank - which would be the case when the menu_nonBmar
I think you might be right, when I added a row to my test query with a blank "menu_bmarkLink" it produced output such as this:
That is definitely incorrect syntax in the onClick property and my test threw a JS error, but it did not say anything about not understanding #menu_bmarkLink#
You sh
Joy,
taht's what I think too. The code sample Dave provided does the same
thing your code should render. That's why I thought you could provide
a dump of your database query to see if it's serving unexpected
data...
Patric
> So there was nothing wrong with my original code and I shouldn't have g
Thank you for testing that,Ian. I must have jumped to the wrong conclusion. I didn't expect that onClick would read the portion of my when the condition was met for the menu_nonbmarkLink.
> I think you might be right, when I added a row to my test query with a
> blank "menu_bmarkLink" it produ
I see. I'll definitely incorporate that strategy.
Thanks, Patric.
Joy
> Joy,
>
> taht's what I think too. The code sample Dave provided does the same
> thing your code should render. That's why I thought you could provide
> a dump of your database query to see if it's serving unexpected
> data..
9 matches
Mail list logo