/    Sign up×
Community /Pin to ProfileBookmark

javascript missing ; error

Hi Guys need help solving javascript error in

<tr>
^IF:TP:DEFAULT_FORMBEAN.action:equals:reenrollOut^
<td align=”right”><a href=”javascript:registrationStartSubmit(‘/accountStatusOut’,’reenrollment’, ‘^accountStatusFormBean.accountId^’)” onmouseover=”^RESOURCEVAL:reenroll.button1.over^” onmouseout=”^RESOURCEVAL:reenroll.button1.out^”><img src=”^CLIENTDIR^static/images/nls/^RESOURCEVAL:nlsLang^/buttons/^RESOURCEVAL:reenroll.button1^” border=”0″ alt=”^RESOURCEVAL:reenroll.button1.alt^” name=”button1″ id=”button1″ /></a></td>
^ELSE^
<td align=”right”><a href=”document.registrationStartSubmit(‘gracePeriod’,’reenrollment’,’^gracePeriodFormBean.consumerAccountId^’)” onmouseover=”^RESOURCEVAL:reenroll.button2.over^” onmouseout=”^RESOURCEVAL:reenroll.button2.out^”><img src=”^CLIENTDIR^static/images/nls/^RESOURCEVAL:nlsLang^/buttons/^RESOURCEVAL:reenroll.button1^” border=”0″ alt=”^RESOURCEVAL:reenroll.button1.alt^” name=”button2″ id=”button2;” /></a></td>
^ENDIF^
</tr>

I get error on line href=”document.registrationStartSubmit …… that ; is missing.

plz help

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@felgallAug 19.2008 — What does the HTML that generates look like?
Copy linkTweet thisAlerts:
@rita_diazauthorAug 19.2008 — What does the HTML that generates look like?[/QUOTE]


here is teh html like

<td align="right"><a href="javascript:registrationStartSubmit('gracePeriod','reenrollment', '3899129432020314111298176895309')" onmouseover="com.systems.comm.error.DSTException occurred at: com.systems.ecomm.util.ClientCfg.getAppResourceValue(ClientCfg.java:1000)" onmouseout="com.dstsystems.ecomm.error.Exception occurred at: com.systems.ecomm.util.ClientCfg.getAppResourceValue(ClientCfg.java:1000)"><img src="/ebill/ntl/static/images/nls/en/buttons/reEnroll.gif" border="0" alt="Reenroll" name="button2" id="button2" /></a></td>
Copy linkTweet thisAlerts:
@cgishackAug 19.2008 — whats with all the ^ ? Is this some server side language?
Copy linkTweet thisAlerts:
@rita_diazauthorAug 19.2008 — whats with all the ^ ? Is this some server side language?[/QUOTE]

yes we have custom jsp tags and it evaluates to the value from other beans.
Copy linkTweet thisAlerts:
@Declan1991Aug 19.2008 — yes we have custom jsp tags and it evaluates to the value from other beans.[/QUOTE]
Could you view the source and show us the generated HTML? It's much easier to tell. Also, put your code in [noparse][/noparse] blocks. It's easier to read.
Copy linkTweet thisAlerts:
@rita_diazauthorAug 19.2008 — This is html code

<Code>

<td align="right"><a href="javascript:registrationStartSubmit('gracePeriod','reenrollment', '3899129432020314111298176895309')" onmouseover="com.systems.ecomm.error.Exception occurred at: com.systems.ecomm.util.ClientCfg.getAppResourceValue(ClientCfg.java:1000)" onmouseout="com.systems.ecomm.error.Exception occurred at: com.systems.ecomm.util.ClientCfg.getAppResourceValue(ClientCfg.java:1000)"><img src="/ebill/ntl/static/images/nls/en/buttons/reEnroll.gif" border="0" alt="Reenroll" name="button2" id="button2" /></a></td>

</code>

I removed onmouseover and onmouseout and it worked .... dont know all together is not working.
Copy linkTweet thisAlerts:
@Declan1991Aug 19.2008 — onmouseover="[b]com.systems.ecomm.error.Exception occurred at: com.systems.ecomm.util.ClientCfg.getAppResourceValue(ClientCfg.java:1000)[/b]"

Not a JavaScript problem.
Copy linkTweet thisAlerts:
@rita_diazauthorAug 19.2008 — TX for d reply, but ; missing doesnt seem to be a backend error and after removal onmouseover and onmouseout, it displays the page regardless of exception in onmouseout/over.
Copy linkTweet thisAlerts:
@rita_diazauthorAug 19.2008 — Hi declan, i got ur point

Thanks a lot ?
×

Success!

Help @rita_diaz 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.22,
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,
)...