/    Sign up×
Community /Pin to ProfileBookmark

Insert ASP (VB) Into JS Funtion

Hi

Is it possible to place ASP (V? code inside of a javascript function? When I try to do it, it doesn’t load properly

I want to populate these nodes with ASP code from a server(sample section of code):

[code]
<script language = “Javascript”>
function loadExample() {
new Node({name:’Boss of Org’,email:’[email protected]’,purpose:’TO serve and protect the w/Ww needs of the public. This is going to test the size of the doubel span row thing, hopefully it works.’},[
new Node({name:’One Manager’,email:’[email protected]’},[
new Node({name:’B. Fast’,email:’[email protected]’},[
new Node({name:’Bea Worker’,email:’[email protected]’}),
new Node({name:’D. Plebian’,email:’[email protected]’})
])
]),
new Node({name:’Manny Two’,email:’[email protected]’},[
new Node({name:’Slick Talkman’,email:’[email protected]’},[
new Node({name:’Patricia Guru’,email:’[email protected]’}),
new Node({name:’Mark Time’,email:’[email protected]’})
]),
new Node({name:’D. Warbucks’,email:’[email protected]’}),
new Node({name:’Berry Smart’,email:’[email protected]’})
])
]);
renderIt();
}
</script>
[/code]

Thanks,
Mark

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @MarkGG spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...