Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
javascript popup in team site presentation templat
getnaren
Hi,
I am new to team site...I have some erros with javascript popup ...here is the code...
in data capture form I have url as
http://www.google.com
and it gives error at http:// when I preview
can anyone take a look at this?
Naren
Find more posts tagged with
Comments
IwovHeather
Hi,
A litte more information would be helpful
Which version of TeamSite are you running?
Which Platform?
Can you attach the code that you were using?
What error exactly were you seeing?
Thanks!
Heather
getnaren
Heather,
We are on team site 6.5 sp2, and with sun and weblogic servers
[edited by Heather] code is attached in later post.
in ie it says error: expected ')'
in firefox it says
Error: missing ) after argument list
Source Code:
openResult(
http://www.gartner.de/it-news/050728_ou.html
);
Thnaks
Naren
Edited by IwovHeather on 10/13/05 08:45 AM (server time).
getnaren
Heather,
code I posted redered..!!! here is the code
getnaren
Heather,
code is not visible !! I am sending it as an attachment
Adam Stoller
Your code still isn't showing up - I suggest you set the
Make post
option to
without Markup/HTML
and try posting it again.
However - before you do - check your code - is there a line that says:
openResult(
http://www.gartner.de/it-news/050728_ou.html
);
in
the code? If so - try changing it to be:
openResult(
"
http://www.gartner.de/it-news/050728_ou.html
"
);
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
getnaren
here is the code
in ie it says error: expected ')'
in firefox it says
Error: missing ) after argument list
Source Code:
openResult(
http://www.gartner.de/it-news/050728_ou.html
);
----------------------------------------------------------------------------
<iw_iterate list='dcr.newslist.newsitems' var='newsitem'>
<![CDATA[
<iw_if expr='({iw_value name="$iw_iteration"/} == "1")'>
<tr><td width="22" bgcolor="#FFFFFF" valign="top" align="center">
<img src="/images/homepage/reversed_green_arrow.gif" width="9" height="9" vspace="3" border="0"></td>
<td width="328" valign="top" bgcolor="#FFFFFF"><a href="javascript:void(null)" onclick="openResult({iw_value name='newsitem.url'});" class="smallBlueLink" target="_new"><iw_value name='newsitem.title'/></a></td>
<td width="6" bgcolor="#FFFFFF"><img src="/images/trans_pixel.gif" width="6" height="1" alt="" border="0"></td>
</tr>
<tr><td colspan="3"><img src="/images/trans_pixel.gif" width="356" height="10" border="0"></td></tr>
</iw_if>
]]>
Adam Stoller
As I said, the error appears to be in the code (reformatted for clarity):
<td width="328" valign="top" bgcolor="#FFFFFF">
<a href="javascript:void(null)"
onclick="openResult(
'
{iw_value name=
"
newsitem.url
"
}
'
);"
class="smallBlueLink"
target="_new">
<iw_value name='newsitem.title'/>
</a>
</td>
Try making the above change and see if that helps. It's kind of difficult getting all the quoting to work right when you're in XML mode - it's a lot easier if you're writing the code in Perl mode, but hopefully the above will fix it.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com