/    Sign up×
Community /Pin to ProfileBookmark

Javascript / CSactions

I’m not a fan of what adobe does with their csactions crap… but I have to work with it.

Basically on this page [url]https://www.fsbtco.com/products/savings.html[/url]

I need to make it so that I can pass some kind of variable to display one of the content sections on the page via querystring.

I.E.
[url]https://www.fsbtco.com/products/savings.html?page=HSA[/url]

would bring me to that page and display the Health Savings Account info.

I already know how to pass a variable in the querystring into javascript, its setting off the HSA info I don’t know how to do.

Thanks.

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceJun 02.2006 — If it weren't for all that other stuff in there, this would be an easy task. However... This is the link you mentioned (rearranged just a bit):
[code=html]<a href="#"
onclick="CSAction(new Array(/*CMP*/'BFB4C9870',/*CMP*/'BFB4CC8E8',/*CMP*/'BFB4CC959',/*CMP*/'BFB4CCA010',/*CMP*/'BFB4CCA611',/*CMP*/'BFB4CCDF13',/*CMP*/'BFB4D1BC50'));return CSClickReturn()"
onmouseover="changeImages('health_savings_account','../images/buttons/health_savings_account_over.gif');return true"
onmouseout="changeImages('health_savings_account','../images/buttons/health_savings_account.gif');return true"
csclick="BFB4C9870,BFB4CC8E8,BFB4CC959,BFB4CCA010,BFB4CCA611,BFB4CCDF13,BFB4D1BC50"><img
name="health_savings_account" id="health_savings_account" src="../images/buttons/health_savings_account.gif" alt="" border="0"/></a>[/code]


Basically, you need to execute the equivalent of the [b]onclick[/b] event for this link when you find that value in the url query/search string. Is that enough to go on? ...or, do you need more?
Copy linkTweet thisAlerts:
@kevinkorbauthorJun 05.2006 — So since the onclick is

onclick="CSAction(new Array(/*CMP*/'BFB4C9870',/*CMP*/'BFB4CC8E8',/*CMP*/'BFB4CC959',/*CMP*/'BFB4CCA010',/*CMP*/'BFB4CCA611',/*CMP*/'BFB4CCDF13',/*CMP*/'BFB4D1BC50'));return CSClickReturn()"


I tried this in the body.


<script language="javascript">

CSAction(new Array(/*CMP*/'BFB4C9870',/*CMP*/'BFB4CC8E8',/*CMP*/'BFB4CC959',/*CMP*/'BFB4CCA010',/*CMP*/'BFB4CCA611',/*CMP*/'BFB4CCDF13',/*CMP*/'BFB4D1BC50'));return CSClickReturn();

</script>


And nothing happened. What else would I need to trigger that action?
Copy linkTweet thisAlerts:
@phpnoviceJun 05.2006 — It probably needs that associated csclick information. What you really need is to programmatically click the link itself. But, I don't think you can do that cross-browser.
Copy linkTweet thisAlerts:
@kevinkorbauthorJun 05.2006 — So I'm with this.. still doesn't work though. Any other ideas?

<script language="Javascript">

CSAction(new Array(/*CMP*/'BFB4C9870',/*CMP*/'BFB4CC8E8',/*CMP*/'BFB4CC959',/*CMP*/'BFB4CCA010',/*CMP*/'BFB4CCA611',/*CMP*/'BFB4CCDF13',/*CMP*/'BFB4D1BC50'));

return CSClickReturn();

csclick="BFB4C9870,BFB4CC8E8,BFB4CC959,BFB4CCA010,BFB4CCA611,BFB4CCDF13,BFB4D1BC50";

</script>
Copy linkTweet thisAlerts:
@phpnoviceJun 05.2006 — Those two don't associate in that manner. I guess you'd really have to find out such things from the Adobe documentation on the subject.
×

Success!

Help @kevinkorb 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.19,
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,
)...