Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 2 Hours, 15 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Can't paste javascript in articlae
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Can't paste javascript in articlae
#7231
Can't paste javascript in articlae 1 Year, 12 Months ago  
Hi,

I can't get this javascript to work. I am new with joomla and also javascript, php etc

<script type="text/javascript"> writeFlash({name:'player',width:'320',height:'397',src:'http://sermon.net/swf/player.swf',pluginspage:'http://www.macromedia.com/go/getflashpla! yer',flashvars:'clientid=19218&by=&d=http://www.sermon.net/',wmode:'transparent',allowscriptaccess:'always',quality:'high'});</script>


This works on our current site but if I paste this into a {source} tag it does not work. It shows nothing.

If I use the sample javascript from this site, the javascript works. I did notice that there is, what I consider a strange !, in the middle of the code but if I remove it nothing changes.

Does anyone have any ideas?

Regards,

Neil
Neil Worley
Posts: 3
User OfflineClick here to see the profile of this user
Last Edit: 2010/02/14 17:14 By peter.
The administrator has disabled public write access.
 
#7245
Re: Can't paste javascript in articlae 1 Year, 12 Months ago  
What is the exact code you have entered (including the {source} tags)?
And how does it show up in your sites html source output?
Peter van Westen
Admin
Posts: 9169
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7260
Re: Can't paste javascript in articlae 1 Year, 12 Months ago  
Hi Peter,

This is what is put into sourcerer:

{source}

<script language="javascript" type="text/javascript">
writeFlash({name:'player',width:'320',height:'397',src:'http://sermon.net/swf/player.swf',pluginspage:'http://www.macromedia.com/go/getflashpla! yer',flashvars:'clientid=19218&by=&d=http://www.sermon.net/',wmode:'transparent',allowscriptaccess:'always',quality:'high'});

</script>

{/source}


and this is what is in the article:

Test Document

{source}
<strong>Text</strong>
{/source}

{source}

<script language="javascript" type="text/javascript">
writeFlash({name:'player',width:'320',height:'397',src:'http://sermon.net/swf/player.swf',pluginspage:'http://www.macromedia.com/go/getflashpla! yer',flashvars:'clientid=19218&by=&d=http://www.sermon.net/',wmode:'transparent',allowscriptaccess:'always',quality:'high'});
    
</script>

{/source}


More Stuff

and this is the relevant source in firefox:

<table class="contentpaneopen">
<tr>
<td valign="top">

<span class="small">
Written by Administrator </span>
&nbsp;&nbsp;
</td>
</tr>

<tr>
<td valign="top" class="createdate">
Tuesday, 02 February 2010 17:30 </td>

</tr>


<tr>
<td valign="top">
<p>Test Document</p><pre class="brush: plugin; gutter: false;">
<strong>Text</strong>
<br /><br />

<script language="javascript" type="text/javascript">
writeFlash({name:'player',width:'320',height:'397',src:'http://sermon.net/swf/player.swf',pluginspage:'http://www.macromedia.com/go/getflashpla! yer',flashvars:'clientid=19218&by=&d=http://www.sermon.net/',wmode:'transparent',allowscriptaccess:'always',quality:'high'});
    
</script>

<br /></pre><p>More Stuff<br mce_bogus="1"></p>

</td>
</tr>

<tr>
<td class="modifydate">
Last Updated on Sunday, 14 February 2010 17:08 </td>
</tr>
</table>


As I say the other source info is correct but I get nothing for the javascript. If I put in the demo javascript from your website only the demo javascript works. I know that it must be my javascript but I have copied this from our current website, using page source.

Regards,
Neil Worley
Posts: 3
User OfflineClick here to see the profile of this user
Last Edit: 2010/02/15 09:53 By peter.
The administrator has disabled public write access.
 
#7271
Re: Can't paste javascript in articlae 1 Year, 12 Months ago  
Well, Sourcerer seems to work ok, 'cause the script is the same in your output as you have entered.

s you said earlier, the 'getflashpla! yer' is weird.
Try changing that to 'getflashplayer'

If you still can't get it to work... do you have a link to the page where you have that script?
Peter van Westen
Admin
Posts: 9169
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7354
Re: Can't paste javascript in articlae 1 Year, 11 Months ago  
Hi,

Thanks for the response but sorry this took so long to get back to you. Work and life have been busy as anything.

I have tried changing as per your suggestion but still nothing. I did paste it in so I might try typing it in, can't really see a difference but you never know.

The site I am trying to get working is

ww123.limewebs.com

Try going to listen to messages from menu.

The site that I am emulating is

www.wbchurch.com.au

and again go to listen to messages.

Regards,
Neil Worley
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7373
Re: Can't paste javascript in articlae 1 Year, 11 Months ago  
The problem in your output is:
...src"'http...
instead of
...src:'http...
Peter van Westen
Admin
Posts: 9169
User Online NowClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
Open Source Training | Online Joomla! Training and Support
MaxCDN | Content Delivery Network | Accelerate your site to the max