Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770

    input to html apz

    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:
    Code:
    -- 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 ::
    Code:
    <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 ?

  2. #2
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    bump ----------------- ~(@)^(@)~

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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?

  4. #4
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    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.
    Attached Files

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    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

    Code:
    <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.

  6. #6
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    You couldn't do a apz real quick so I could see how it is done?

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    you said quick... so it isn't pretty
    Attached Files

  8. #8
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    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/su...iquid_news.ram
    Last edited by bobbie; 03-10-2006 at 12:48 PM.

  9. #9
    Join Date
    Feb 2005
    Location
    Mn
    Posts
    770
    Not working see above post.

Similar Threads

  1. How to insert bullet in a paragraph object
    By jrak in forum AutoPlay Media Studio 6.0
    Replies: 13
    Last Post: 12-29-2005, 10:53 AM
  2. Input Box Wierdness
    By Roboblue in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 11-18-2005, 01:20 PM
  3. Example: Creating Dynamic HTML Pages
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 12-17-2004, 05:05 PM
  4. Lorne’s two great input validation scripts
    By csd214 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-09-2004, 09:13 AM
  5. HOWTO: Open an HTML Help File to a Specific Topic
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-01-2002, 02:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts