PDA

View Full Version : input to html apz



bobbie
03-09-2006, 08:28 PM
I'm working with that one and want to embed a realplayer in the page and I have that working but I wanted to beable to add a ram url with the input to html .
This is what it has:
-- SET VARIABLE FOR THE Input.GetText action
--myTitle = Input.GetText("Input_Title");
myBody = Input.GetText("Input_Body");


-- SET HTML CODES INTO A VARIABLE NAMED AS stringHTML. ALSO PUT THE 2 VARIABLES ABOVE INTO THE CODES.

stringHTML = "<HTML><HEAD><TITLE>MY WEB</TITLE><HEAD><BODY>\r\n";
--stringHTML = stringHTML.."<CENTER><FONT SIZE=\"5\"><B>"..myTitle.."</B></FONT><BR><BR>\r\n";
stringHTML = stringHTML.."<FONT SIZE=\"3\">"..myBody.."</FONT>\r\n";
stringHTML = stringHTML.."</BODY></HTML>";


-- WRITE AN HTML FILE INTO YOUR AUTOPLAY DOCS -- IT WILL BE THERE UNTIL YOU CLICK CLEAR

TextFile.WriteFromString("AUTOPLAY\\DOCS\\myInput.html", stringHTML, false);


-- LOAD THE NEWLY CREATED HTML FILE INTO THE WEB OBJECT

Web.LoadURL("Web1", _SourceFolder.."\\AUTOPLAY\\DOCS\\myInput.html");




And I want it to input in to this ::

<embed src="..myBody.." type="audio/x-pn-realaudio-plugin"

name="video" console="Clip1" autostart="false" controls="ImageWindow" border="0"
width="460" height="380" align="center"></embed><br>

<embed src="..myBody.." type="audio/x-pn-realaudio-plugin"
name="video" console="Clip1"autostart="true" controls="ControlPanel" border="0"
width="176" height="30" align="center"></embed>
But I can't seem to get it to work right ?

bobbie
03-10-2006, 12:33 PM
bump ----------------- ~(@)^(@)~

Worm
03-10-2006, 12:39 PM
I'm a little dense, I guess. I'm not getting the jest of what you are trying to accomplish. Can you elaborate a little?

bobbie
03-10-2006, 01:01 PM
I want to where it says ..myBody.. I want to use the input box to add a url .
I will add the apz so you can see it .
It uses the input to add some info to the html file so I want to replace the ..myBody.. with a url address but it is in a embed type page to run realplayer ram file.
Get what I'm trying to do now.

Worm
03-10-2006, 01:30 PM
Bobbie,

Create a HTML file with the embeded info as if you were creating a page to play a src. But use this in you embed



<embed src="#RAM_SRC#" type="audio/x-pn-realaudio-plugin" name="video" console="Clip1" autostart="false" controls="ImageWindow" border="0"
width="460" height="380" align="center"></embed>


Save it, name it template.htm

Then read the html file into AMS as a string, use String.Replace to swap out #RAM_SRC# with the content of the input box, write the file out (not as template.htm), load it in the web object.

bobbie
03-10-2006, 01:34 PM
You couldn't do a apz real quick so I could see how it is done?

Worm
03-10-2006, 01:41 PM
you said quick... so it isn't pretty

bobbie
03-10-2006, 01:44 PM
Thanks , don't have to be pretty.
It opens the realplayer but it does not start playing?
Try this link in it .
http://www.bbc.co.uk/newsa/n5ctrl/summaries/entertain/bb_liquid_news.ram

bobbie
03-10-2006, 04:19 PM
Not working see above post.