BrightNail
05-28-2008, 10:36 PM
hello,
I am seemingly having issues with IE and onclicks and building dynamic href's and such. SO, I am just gonna build it with builder.node.
This is where I need help because the content that needs building is mixed.
here is the actual content. how do I build this. I will show what I have, and what is needed.
var linkBuild = Builder.node('tr',{id:'postmessage'},[
Builder.node('td', {},
['[% dynamic_app_content +%] ' + currpageselects.total() + ' [%+ dynamic_app_content %]</span> '),
Builder.node('a', {
id:'alleventselected',
javascript:'void(0);',
onclick:'addallitemstocart()',
className: 'cursorHand'
}, ['[%+ dynamic_app_content +%]' + allFilterlength + ' [%+ dynamic_app_content +%]'] ),
Builder.node('a', {
href:'javascript:setFilterEdits(\'none\')',
className: 'cursorHand'},['[% dynamic_app_content %]']),
]
]);
this is what I want it to be when viewed (if one could view source).
<tr id="postmessage"><td>Do you want 10 items? Some content is generated here <a href="javascript:void(0)" onClick="addallitemstocart();">select all 10</a> to be add to this cart. | <a href="javascript:dosomething()">this is the last link</a></td></tr>
So basically, my issue is mixing regular text with links in the "builder".
Please advise.
I am seemingly having issues with IE and onclicks and building dynamic href's and such. SO, I am just gonna build it with builder.node.
This is where I need help because the content that needs building is mixed.
here is the actual content. how do I build this. I will show what I have, and what is needed.
var linkBuild = Builder.node('tr',{id:'postmessage'},[
Builder.node('td', {},
['[% dynamic_app_content +%] ' + currpageselects.total() + ' [%+ dynamic_app_content %]</span> '),
Builder.node('a', {
id:'alleventselected',
javascript:'void(0);',
onclick:'addallitemstocart()',
className: 'cursorHand'
}, ['[%+ dynamic_app_content +%]' + allFilterlength + ' [%+ dynamic_app_content +%]'] ),
Builder.node('a', {
href:'javascript:setFilterEdits(\'none\')',
className: 'cursorHand'},['[% dynamic_app_content %]']),
]
]);
this is what I want it to be when viewed (if one could view source).
<tr id="postmessage"><td>Do you want 10 items? Some content is generated here <a href="javascript:void(0)" onClick="addallitemstocart();">select all 10</a> to be add to this cart. | <a href="javascript:dosomething()">this is the last link</a></td></tr>
So basically, my issue is mixing regular text with links in the "builder".
Please advise.