Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Sync client side info to server

Reply
Thread Tools

Sync client side info to server

 
 
Lloyd Sheen
Guest
Posts: n/a
 
      10-30-2007
Here are the components:

Using VS 2005 Pro / ASP.NET / AJAX.NET / VB.NET

Here is the application:

I have an app which has a navigator/search facility to find media files
available to my app and then using the media player ActiveX play them. It
can get a list of files and using Javascript it can play then as if in a
playlist. The navigator component is a server side component which
generates Javascript for buttons which are placed in a repeater. Once the
list of media files is created and the playing started it is handled solely
by the Javascript. Using Ajax allow the app to use the navigation component
to find more files and still have the media player ActiveX play the media
without interuption.

What I need to do is the following:

Since I know the URL for the media file playing I would like to be able to
navigate back to the currently playing file location (most likely a folder
on my server) without interupting the media playing. I have an image button
for this since the naviagation will take place on the server.

I have tried the following:

- use a hidden text field to hold the current media playing. This is
updated by the javascript. When the image button is clicked I access the
hidden text field but the information that the Javascript placed there is
not passed (most likely a viewstate issue).

- use Javascript to do the following:

<%--<script type="text/javascript">
function Tester()
{
//debugger;
var playList;
var argument;
playList = document.getElementById("ddPlayList");
if (playList.options.length>0)
{
argument = 'RESTORE' + playList.options[0].value;
__doPostBack('__PlayAllButton', argument);
}
}
</script>
--%>

This results in the page refreshing, the media stopping and the playlist
destroyed.

I would appreciate any ideas.

Thanks
Lloyd Sheen

 
Reply With Quote
 
 
 
 
andrew.douglas11@gmail.com
Guest
Posts: n/a
 
      10-30-2007
2 suggestions... Perhaps you could place the code that executes the
PostBack that you need in an IFRAME so that the refresh won't affect
the player that's in the main page. This would make your JavaScript a
little more complicated, but it should work if an IFRAME is an option.

Secondly, you could use AJAX to pass through JavaScript the current
directory stored in your hidden field into an ASP.Net page that looks
up whatever you need through server-side code, and return it to the
JavaScript that called it.

Hope that helps.

Andy

On Oct 30, 4:20 pm, "Lloyd Sheen" <(E-Mail Removed)> wrote:
> Here are the components:
>
> Using VS 2005 Pro / ASP.NET / AJAX.NET / VB.NET
>
> Here is the application:
>
> I have an app which has a navigator/search facility to find media files
> available to my app and then using the media player ActiveX play them. It
> can get a list of files and using Javascript it can play then as if in a
> playlist. The navigator component is a server side component which
> generates Javascript for buttons which are placed in a repeater. Once the
> list of media files is created and the playing started it is handled solely
> by the Javascript. Using Ajax allow the app to use the navigation component
> to find more files and still have the media player ActiveX play the media
> without interuption.
>
> What I need to do is the following:
>
> Since I know the URL for the media file playing I would like to be able to
> navigate back to the currently playing file location (most likely a folder
> on my server) without interupting the media playing. I have an image button
> for this since the naviagation will take place on the server.
>
> I have tried the following:
>
> - use a hidden text field to hold the current media playing. This is
> updated by the javascript. When the image button is clicked I access the
> hidden text field but the information that the Javascript placed there is
> not passed (most likely a viewstate issue).
>
> - use Javascript to do the following:
>
> <%--<script type="text/javascript">
> function Tester()
> {
> //debugger;
> var playList;
> var argument;
> playList = document.getElementById("ddPlayList");
> if (playList.options.length>0)
> {
> argument = 'RESTORE' + playList.options[0].value;
> __doPostBack('__PlayAllButton', argument);
> }}
>
> </script>
> --%>
>
> This results in the page refreshing, the media stopping and the playlist
> destroyed.
>
> I would appreciate any ideas.
>
> Thanks
> Lloyd Sheen



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client side script after client side validation with asp.net 2.0 Boss302 ASP .Net 0 11-21-2006 08:43 AM
sync.rb difference between Sync::UN, Sync::EX and Sync::SH Trans Ruby 2 12-12-2005 02:43 PM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com HTML 1 01-04-2005 06:13 AM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com Javascript 0 01-04-2005 04:06 AM
client-side browser timeout OR server-side web server timeout?? (please help) jrefactors@hotmail.com Java 0 01-04-2005 04:06 AM



Advertisments