Model-Glue Model-Glue: ColdFusion (2.0.304)

<cfif isDefined("url.mute") AND url.mute EQ "true">
<cfset session.mute = true>
<cfelseif isDefined("url.mute") AND url.mute EQ "false">
<cfset session.mute = false>
<cfelseif NOT isDefined("session.mute")>
<cfset session.mute = false>
</cfif>

<cfset maxPregnancyCount = 15 />
<cfif session.lang EQ "eng">
<cfset errMsg = 'Please enter a number'>
<cfelse>
<cfset errMsg = 'Por favor, introduzca un nĂºmero'>
</cfif>
<cfoutput>
<script>
alert("#toScript(viewstate.getValue("s1"), "s1")#");
</script>
<cfif session.mute IS false>
<script>
alert("#toScript(viewstate.getValue("s1"), "s1")#");
var #toScript(viewstate.getValue("s1"), "s1")#;
var #toScript(viewstate.getValue("s2"), "s2")#;
var #toScript(session.lang, "lang")#;

//<![CDATA[
$(document).ready(function(){
$("##jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: "sounds/"+lang+"/"+s1+".mp3",
wav: "sounds/"+lang+"/wav/"+s1+".wav"
}).jPlayer("play");
},
ended: function (event) {
$("##jquery_jplayer_2").jPlayer("play", 0);
},
swfPath: "js",
supplied: "mp3, wav",
})
.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid 
both jPlayers playing together.
$(this).jPlayer("pauseOthers");
});

$("##jquery_jplayer_2").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: "sounds/"+lang+"/"+s2+".mp3",
wav: "sounds/"+lang+"/wav/"+s2+".wav"
});
},
swfPath: "js",
supplied: "mp3, wav",
cssSelectorAncestor: "##jp_interface_2"
})
.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid 
both jPlayers playing together.
$(this).jPlayer("pauseOthers");
});
});
//]]>
</script>
</cfif>

<div id="header">
<div id="top-text">
<cfoutput>#viewstate.getValue("topDisplay")#</cfoutput>
</div>
</div>


On Friday, November 30, 2012 5:00:16 PM UTC-5, Chris Blackwell wrote:
>
> As others have said, jplayer is client-side html & 
> javascript, whereas modelglue is server-side. So unless you are trying to 
> load your audio or video resources through modelglue then it has no part in 
> the process once it has sent the rendered html to the browser.
>
> You've not shown us any code to help debug your problem. Share your view 
> code, asset structure, event hadlers etc so we might better understand what 
> you are doing and then maybe we might be able to offer some useful advice.
>
> Chris
>
> On 30 November 2012 21:15, svee <[email protected]<javascript:>
> > wrote:
>
>> What I discovered in my USB debugging and testing is my problem is the 
>> model-glue frame work that is used here.
>>
>> jPlayer works just fine outside of model-glue. ****
>>
>> ** **I created a stand alone file by using the exact jplayer home page 
>> and it worked perfectly.
>>
>> I used the same  file using  only using model-glue frame and it does not 
>> work.****
>>
>> My code is very simple.....I have been using model-glue for almost 4 years
>>
>> The folks at jPlayer are trying to help as well
>>
>> It stops at the play jplayer  code.****
>>
>>
>> On Wednesday, November 28, 2012 5:39:31 PM UTC-5, Dan Wilson - 
>> [email protected] <javascript:> wrote:
>>
>>> Generally, everything ModelGlue does is server side. Javascript stuff is 
>>> client side. So, ModelGlue shouldn't interfere with any Javascript you 
>>> choose to use. 
>>>
>>> How are you integrating the Video Player with ModelGlue? 
>>> On Nov 28, 2012 4:38 PM, "svee" <websi...@healthsolutions.**org> wrote:
>>>
>>>>  So far all attempts to use jPlayer (html5 audio and video for Jquery) 
>>>> has failed.
>>>> I have debugged in USB and discovered that it will not load the player.
>>>> I have used many jQuery library functions with model-glue without issue 
>>>> except for this one.
>>>> Does jplayer just not work with model-glue and coldfusion?
>>>> svee
>>>>
>>>>  -- 
>>>> Model-Glue Sites:
>>>> Home Page: http://www.model-glue.com
>>>> Documentation: http://docs.model-glue.com
>>>> Bug Tracker: http://bugs.model-glue.com
>>>> Blog: http://www.model-glue.com/blog
>>>>  
>>>> You received this message because you are subscribed to the Google
>>>> Groups "model-glue" group.
>>>> To post to this group, send email to [email protected]
>>>>
>>>> To unsubscribe from this group, send email to
>>>> model-glue+...@**googlegroups.com
>>>>
>>>> For more options, visit this group at
>>>> http://groups.google.com/**group/model-glue?hl=en<http://groups.google.com/group/model-glue?hl=en>
>>>>
>>>  -- 
>> Model-Glue Sites:
>> Home Page: http://www.model-glue.com
>> Documentation: http://docs.model-glue.com
>> Bug Tracker: http://bugs.model-glue.com
>> Blog: http://www.model-glue.com/blog
>>  
>> You received this message because you are subscribed to the Google
>> Groups "model-glue" group.
>> To post to this group, send email to [email protected]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/model-glue?hl=en
>>
>
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to