Passing CFGrid variable to Javascript

I am trying to capture a value in my cfgrid and send it to a
javascript attached to a button.
<cfinput type="button" name="viewMemo" value="View
Safetrace Memos" tooltip="Click here to view memos "
onclick="getURL('javascript:openNewWindow(
my_grid.dataProvider[my_grid.selectedIndex][ITEM]');"
bind="my_grid.dataProvider[my_grid.selectedIndex][ITEM]">
When I drop the bindVariable into the javascript in the
getURL I get a ton of Flex engine errors. I've tried all kinds of
syntax variations and still errors. Could someone lend me a hand?
Thanks.
Mark F

Hi Mark,
You can try this example. If it works then you can try to
replace the txtSource with your my_grid.dataProvider ...
<script>
var newwin;
function executejava(strValue1, strValue2) {
alert(strValue1);
alert(strValue2);
</script>
<cfform format="flash">
<cfformitem type="script">
public function openURL(strSource):Void {
getURL("javascript:executejava('" + strSource + "','my
window','_blank')");
</cfformitem>
<cfinput name="txtSource" type="text" label="Source">
<cfinput name="btnClick" value="Click" type="button"
onclick="openURL(txtSource.text)">
</cfform>
Hope it helps
Cheers,
Keiko

Similar Messages

  • Passing jsp variable into javascript.....

    Hai friends,
    Look this code.....
    var mywindow= window.open( ......)
    mywindow.<%= loc%>.style.visibility = "hidden";     
    loc is my jsp variable passing dyanamically to the script....
    But it is not taking....
    when i assign jsp var into javascript like
    mywindow.somehardcodedvalue.style.visibility = <%= loc%>;     
    it is working fine ....
    pl reply me.......

    Hi,
    It is not working.My code is like....
    String loc=(String)arrStr;
    %>
    <script language="JavaScript" type="text/JavaScript">
    mywindow.<%= loc%>.style.visibility = "hidden";     
    </script>
    <%

  • Pass Flash Variables To Javascript, How????

    How can I pass variables to be used on the page the flash is embed?

    See ExternalInterface:
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInter face.html
    Create a JavaScript method which handles the variables flash sends out.
    ExternalInterface.call('JavaScriptMethod',arguments);

  • Passing a variable from Javascript to java variable in a JSP.

    Here is simple test Ive been messing around with.
    How do I assign the value that was selected in the radio button to a java variable in my JSP here. Javascript being client side and JSPs being serverside makes this difficult.
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript">
    function valbutton(thisform)
         myOption = -1;
         for (i=0; i<thisform.myradiobutton.length; i++)
              if (thisform.myradiobutton.checked)
                   myOption = i;
         if (myOption == -1)
              alert("You must select a radio button");
              return false;
         alert("You selected button number " + myOption + " which has a value of " + thisform.myradiobutton[myOption].value);
         thisform.submit();
    </SCRIPT>
    <title>CreateCategoryContent</title>
    </head>
    <body>
    <BR>
    <center>
    <%
         for(int i = 0; i < 10; i++)
    %>
    <form name="myform">
    <table border="1" bordercolor="#C0C0C0" width="50%" cellpadding="0" cellspacing="0" bgcolor="white">
         <tr>
         <td><%=i%><input type="radio" VALUE="<%=i%>" name="myradiobutton"></td>
         </tr>
    <%
    %>
    </form>
    <input type="submit" name="submitit" onclick="valbutton(myform);return false;" value="Validate" />
    </table>
    </center>
    <!--//T2-->
    </body>
    </html>
    Thanks dudes.

    Please excuse me for appearing dim but my JSP skills are rather weak.
    I dynamically create rows in a table from an Iterator. If the mainTopic is news then I need a third column to appear with radio buttons. I have all this done. When a radio button is selected and the UPLOAD button is selected I need to know which of the values in the table was selected.
    When I ran the test below the selected value was null. Can you help me?
    Thanks.
    <%@ page session="false" %>
    // imports etc
    <%@ page errorPage="../com/digisoft/common/Error.jsp" %>
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript">
    function valbutton(thisform)
         myOption = -1;
         for (i=0; i<thisform.myradiobutton.length; i++)
              if (thisform.myradiobutton.checked)
                   myOption = i;
         if (myOption == -1)
              alert("You must select a radio button");
              return false;
         alert("You selected button number " + myOption + " which has a value of " + thisform.myradiobutton[myOption].value);
    thisform.selected.value=thisform.myradiobutton[myOption].value;
         thisform.submit();
    </SCRIPT>
    <title>CreateCategoryContent</title>
    <LINK REL="stylesheet" HREF="<%=request.getContextPath() + "/stylesheets/digihostnews.css"%>" TYPE="text/css">
    <%
    HttpSession session = request.getSession(false);
    String mainTopic = request.getParameter("mainTopic");
    String subCategory = request.getParameter("subCategory");
    String subCategoryId = request.getParameter("subCategoryId");
    String subCategoryToBeDeleted = request.getParameter("subCategoryToBeDeleted");
    String selection = request.getParameter("selection");
    // other initializations etc
    %>
    </head>
    <body>
    <BR>
    <!--Another table-->
    <center>
    <table border="1" bordercolor="#C0C0C0" width="90%" cellpadding="0" cellspacing="0" bgcolor="white">
         <tr>
              <td class="blue">Select Topic</td>
         </tr>
         <tr>
         <td class="insidebox2">
         <BR>
              <form action="NewsUpdate.jsp" method=post>
              Select Topic
              <select NAME="mainTopic" class="dropdown">
              <%
                   Iterator menuItems = myLombardiaMgr.getMainCategories();
                   while(menuItems.hasNext())
                        MainCategory aMenuItemCategory = (MainCategory)menuItems.next();
                        String menuItem = aMenuItemCategory.getMainCategory();     
                        if(!menuItem.equalsIgnoreCase(mainTopic))
              %>
                        <option VALUE="<%= menuItem %>" ><%= menuItem %></option>
              <%
                        else
              %>
                        <option SELECTED VALUE="<%= menuItem %>" ><%= menuItem %></option>
              <%
              %>
         </select>
         <INPUT type=submit class="newsbutton" value="LOAD" name=Submit>
    </form>
    <form action="AddCategoryDescription.jsp" method=post>
    <INPUT TYPE=HIDDEN NAME="mainTopic" VALUE="<%=mainTopic%>">
    <INPUT type=submit class="newsbuttonlong" value="EDIT DESCRIPTION" name=Submit>
    </form>
    </td>
    </tr>
    </table>
    </center>
    <!--//Another table-->
    <!--T2-->
    <center>
    <table border="1" bordercolor="#C0C0C0" width="90%" cellpadding="0" cellspacing="0" bgcolor="white">
         <tr><td class="blue">Categories</td></tr>
         <tr>
              <td class="insidebox2">
              <BR>
              <form action="NewsUpdate.jsp" method=post>
                   Add Category
                   <input type="text" name="subCategory" class="dropdown" id="catId" value=""/>
                   <INPUT TYPE=HIDDEN NAME="mainTopic" VALUE="<%=mainTopic%>">
                   <%      
                   if (mainTopic != null)
                        %>
                        <INPUT type=submit class="newsbutton" value="ADD" name=Submit>
                   <%
                   else
              %>
                   <INPUT type=submit class="newsbutton" value="ADD" name=Submit disabled>
                   <%
                   %>
              </form>
                   <!--T3-->
         <table id="categoryTable" border="1" bordercolor="#035C98" width="60%" height="60%" cellpadding="0" cellspacing="0" bgcolor="white">
         <tr>
         <td colspan="1" class="result"><b>Category Name</b></td>
         <td colspan="1" class="result"><b></b></td>
         </tr>
    <%
              if(myApplicationDetails != null)
                   myApplicationDetails = myLombardiaMgr.getAllApplicationDetails();
                   Iterator myMainCategories = myApplicationDetails.getMainCategories();
              while(myMainCategories.hasNext())
                   MainCategory aMainCategory = (MainCategory) myMainCategories.next();
                   if(aMainCategory.getMainCategory().equalsIgnoreCase(mainTopic))
                        Iterator subTopics = aMainCategory.getSubTopics();
                        while(subTopics.hasNext())
                             SubTopic aSubTopic = (SubTopic) subTopics.next();
                   %>
                        <form action="NewsUpdate.jsp" method=post>
                             <tr>
                             <td class="result"><%=aSubTopic%></td>
                             <td class="result">
                                  <INPUT type=submit class="newsbutton" value="REMOVE" name=Submit>
                                  <INPUT TYPE=HIDDEN NAME="subCategoryId" VALUE="<%=aSubTopic.getId()%>">
                                  <INPUT TYPE=HIDDEN NAME="subCategoryToBeDeleted" VALUE="<%=aSubTopic%>">
                                  <INPUT TYPE=HIDDEN NAME="mainTopic" VALUE="<%=mainTopic%>">
                                  <INPUT TYPE=HIDDEN NAME="subCategory" VALUE="<%=aSubTopic%>">
                             </form>
                        <form action="EditStoryItem.jsp" method=post>
                             <INPUT TYPE=HIDDEN NAME="subCategory" VALUE="<%=aSubTopic%>">
                                  <INPUT TYPE=HIDDEN NAME="subCategoryId" VALUE="<%=aSubTopic.getId()%>">
                                  <INPUT TYPE=HIDDEN NAME="mainTopic" VALUE="<%=mainTopic%>">
                                  <INPUT type=submit class="newsbutton" value="EDIT" name=Submit>
                             </form>
                             <%
                                  if(mainTopic.equalsIgnoreCase("News"))
                             %>
                                  <td class="result">
                                       <INPUT type="radio" name="newsitem" VALUE="<%=aSubTopic%>" >
                                       <INPUT TYPE=HIDDEN onclick="valbutton(myform);return false;" NAME="selection" >
                                  </td>
                             <%
                             %>
                   </td>
                             </DL>
                                  </tr>
                        <%
                             } // end of if
                        %>
         </table>
         <table border="0" bordercolor="#C0C0C0" width="60%" cellpadding="0" cellspacing="0" bgcolor="white">
         <tr><td align="right">
         <form action="../../../../../../servlet/UploadXmlFiles" method=post>
         <% if(myApplicationDetails == null )
         System.out.println("******************* selection "+selection);
    %>
              <INPUT type=submit class="newsbutton" value="UPLOAD" name=Submit disabled>
    <%
         else
    %>
    <INPUT type=submit class="newsbutton" value="UPLOAD" name=Submit>
    <%
         System.out.println("******************* selection "+selection);
    %>
         </form>
         </td>
         </tr>
         </table>
         <!--//T3-->
         </td>
         </tr>
    </table>
    </center>
    <!--//T2-->
    </body>
    </html>

  • Passing variable from javascript to servlet!!!

    Hi all,
    I have one doubt,
    can we pass a variable from javascript to servlet???
    In Brief,
    i am getting some values in javascript through jsp and the same values i
    want to use in servlet.
    Yes, i know i can get these values in servlet by using request.getParameter("");
    But these values are dynamically generated so i dont know how many varaible are they!. so i am trying to put some array list so that i can forward this values to servlet.
    But i can't get this array which is declared in javascript!! :( so any buddy can help me how to get this dynamically generated values in servlet!!!
    Thanks in Advance!! :)

    can you post a sample of your code?
    remember to put it between tags                                                                                                                                                                                       

  • Passing variables to Javascript

    Does anyone know how to pass a variable to javascript in As2? Thank you!

    Javascript / Flash Communication
    Here's a link that provides some information on that...
    http://kb2.adobe.com/cps/156/tn_15683.html

  • Using Flash variable in Javascript problem

    I want Flash to load a rss feed and hand it to Javascript
    which will do the parsing and rendering. AFAIK Javaswcript can't
    load external documents and include them into the current html page
    for some security reasons. So I try this approach.
    I attached the code I have. My Problem is that Flash does
    pass the variable to javascript but the document.write overwrites
    everything else in the current html document.
    I don't want to work with popups for obvious reasons. The
    variable must be included in the _current_ document.
    Can anyone give me a hint how to get this working properly?

    What is happening is the XML file is getting cached by the browser.
    There are a few different ways to fix this, but this is what I have found to be the easiest.
    In the Actionscript, where the call to load the xml is, append a random string to the end of the call.
    so:
    (This is AS2 code - so a conversion is necessary if using AS3)
    myXML.load("http://path/to/xml.xml?r="+Math.round(Math.random()*99999999999999999999999999999999999999999999999));
    What this will do is tell the browser that you are calling a unique file every time you try to load the xml, which will forcefully bypass the cached version.

  • How to pass a jsp variable into javascript??

    <p><%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
    <p><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
    <p><html>
    <p><c:set var="binrmapi" value="http://localhost/paas-api/bingorooms.action;jsessionid=XXXXXX?userId=TEST2&sessionId=1&key=1" />
    <p><c:import var="testbinrm" url="${fn:replace(binrmapi, 'XXXXXX', jsessionid)}"/>
    <p><c:set var="tuples" value="${fn:split(testbinrm, '><')}" />
    <p>Time until next game
    <p><c:forEach var="tuple" items="${tuples}">
    <p><c:if test="${fn:contains(tuple, 'row ')}">
    <p> <p><code>
    <p> <c:set var="values" value="${fn:split(tuple, '=\"')}" />
    <p> <font color="blue">
    <p> <c:out value="${values[17]}" />
    <p><c:set var="remainingtime" value="${values[17]}" />
    <p> </font>
    <p> </code>
    <p></c:if>
    <p></c:forEach>
    <p><form name="counter"><input type="text" size="8" name="d2"></form>
    <p><script>
    <p>var milisec=0
    <p>var seconds=eval("document.myForm.remaining").value;
    <p>function display(){
    <p> if (milisec<=0){
    <p> milisec=9
    <p> seconds-=1
    <p>}
    <p>if (seconds<=-1){
    <p> milisec=0
    <p> seconds+=1
    <p> }
    <br>else
    <p> milisec-=1
    <p> document.counter.d2.value=seconds+"."+milisec
    setTimeout("display()",100)
    <p>}
    <p>display()
    <p></script>
    <p></body>
    <p></html>
    <p>This is my code that i was working on, in the jsp part of the script, i get a api call and save a value of time in the variable remainingtime.. and in the javascript, i try to have a countdown clock counting down the remaining time.. but i guess it doesnt work.. how can i get that working? thanks alot
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001
    Message was edited by:
    hamham3001

    Re: How to pass a jsp variable into javascript??Here is the sameple one, hope it will solves your problem.
    <html>
    <body>
    <form name=f>
    <%!
    String str = "A String"
    %>
    <script>
    var avariable = <%=str%>
    <script>
    </form>
    </body>
    </html>
    Let me know if you face any problem

  • Passing Variable from Javascript to Controller

    Hi Experts,
         I was using the Pagefragment page eg. CreateSales.htm. and for the leftnavigation I am using a javascript file. The scenerio was
    when user click on the left navigation "CreateSales" I was using the link eg.
    http://testserver.kuldeep.com:8440/sap/bc/bsp/zapplication/CreateSales.htm?gv_page_mode=f
    Here I am passing the variable gv_page_mode=f.
    But the page is changed into the Controller and views so I am not able to pass the variable like this
    http://testserver.kuldeep.com:8440/sap/bc/bsp/zapplication/CreateSales.do?gv_page_mode=f
    Can you please suggest me the solution. How to pass this variable gv_page_mode using the javascript into the controller CreateSales.do?
    Thanks and regards
    Kuldeep Verma

    Check the answer by Raja T in this thread
    Re: Call view in new window

  • Pass a url variable to javascript for drop down menu

    Hello,
    I'm in over my head as far as javascript goes. This is what I
    am trying to do. I have this URL...
    http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
    I want to take the variable for ProdAbbr which in this case
    is "shm" and make that a variable in javascript. So that I can add
    the variable to a dynamic link I'm using for a drop down menu.
    mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?SortBy=all&ProdAbb r=eval(ProdAbbr)'");
    I really have no clue what to do. I haven't hardly used
    javascript at all and I'm looking for some charity. Does anyone
    have any ideas on how I can do this?
    Thanks
    Steve
    Any insight is greatly appreciated.

    jawwinker wrote:
    > Hello,
    > I'm in over my head as far as javascript goes. This is
    what I am trying to
    > do. I have this URL...
    >
    > <a target=_blank class=ftalternatingbarlinklarge
    > href="
    http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
    >
    > I">
    http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
    >
    > I</a> want to take the variable for ProdAbbr which
    in this case is "shm" and
    > make that a variable in javascript. So that I can add
    the variable to a
    > dynamic link I'm using for a drop down menu.
    >
    >
    mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?Sort
    > By=all&ProdAbbr=eval(ProdAbbr)'");
    mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?Sort
    By=all&ProdAbbr='"+ProdAbbr+"'");
    Mick

  • Is it possible to pass a variable from one animation to another?

    I have multiple animations on the same page. I need to pass a variable from one to the other.
    Animation One has this:
    sym.setVariable("myVarOne", 1);
    Animation Two has this:
    var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getVariable("myVarOne");
    Seems like it should work, but kinda hard to tell. I put in:
    console.log("myVarOneInTwo = " + myVarOneInTwo);
    But I get: Javascript error in event handler! Event Type = timeline
    So it seems that it doesn't like getting a variable from another animation.
    Is there a way to pull a variable from one animation into another?

    Sorry also had to fix this:
    var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getVariable("myVar One");
    To this:
    var myVarOneInTwo=Edge.getComposition("EDGE-12345678").getStage().getVariable("myVar One");

  • Pass a variable from an XML to a Javascrip

    Aloha Everyone,
    What do I make wrong?
    Maybe it is just a sintax failure and maybe... . How can I
    pass a value to a javascript witch is loads a php code to generate
    the text on the button witch is the src of an <img> tag. The
    value of @id doesn't reaches the PHP file and the problem is in
    spry:region="dsmenus" is a special definition needed to pass the
    variables in such a region to a javacript, if so then how to do it
    if not than also please help if any of you can!
    Here is the code:
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    UTF-8">
    <script src="xpath.js"
    type="text/javascript"></script>
    <script src="SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var dsmenus = new Spry.Data.XMLDataSet("menus.xml",
    "menuelements/menuelement");
    </script>
    <script language="javascript" type="text/javascript">
    var textid = new string;
    function mouseOutImage(textid)
    document.getElementById("phbutton").src =
    "button2.php?text="+textid;
    function mouseOverImage(textid)
    document.getElementById("phbutton").src =
    "button.php?text="+textid;
    </script>
    </head>
    <body>
    <div spry:region="dsmenus"
    spry:repeatchildren="dsmenus">
    <img id="phbutton" spry:setrow="dsmenus"
    src="button2.php?text={@id}&amp;x={x}"
    onmouseover="mouseOverImage('{id}');"
    onmouseout="mouseOutImage('{id}');"
    onmouseenter="mouseOverImage('{id}');"
    onmouseleave="mouseOutImage('{id}');">
    <a href="button2.php?text={@id}">{@id}</a>
    </div>
    <div>
    <p name=log>
    </div>
    </body>
    </html>
    Thank You in advance!

    Sorry for spamming i just realized what do i make wrong after
    3 hours of programig.
    ..({id'} has a missing @ mark :)

  • How to pass a variable from HTML to Flash

    I have built my flash ad banner in Flash 9 and now want the
    HTML code to pass the url over to the flash movie that it should
    jump to when clicked.
    The info in the help file seems out of date for the latest
    HTML template as it uses mainly JavaScript to get round IE's
    dreadful embeding issue. So my problem is, how do I pass a variable
    from the HTML to the actionScript specified int he Help file
    (running on a full screen button) as shown below?
    myButton_btn.onRelease = function() {
    if (clickTAG.substr(0, 5) == "http:") {
    getURL(clickTAG);
    via the html code now used by Flash 9 which is like this:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Advert_long</title>
    <script language="javascript"> AC_FL_RunContent = 0;
    </script>
    <script language="javascript"> DetectFlashVer = 0;
    </script>
    <script src="AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 115;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!--
    Coping
    with
    Growing
    Audio
    Series
    Theraputic stories
    for children aged
    4 to 9
    -->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion,
    requiredMinorVersion, requiredRevision);
    if(hasRightVersion) { // if we've detected an acceptable
    version
    // embed the flash movie
    AC_FL_RunContent(
    'codebase', '
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
    'width', '120',
    'height', '600',
    'src', 'Advert_long',
    'quality', 'high',
    'pluginspage', '
    http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'Advert_long',
    'bgcolor', '#ffffff',
    'name', 'Advert_long',
    'menu', 'true',
    'allowScriptAccess','sameDomain',
    'allowFullScreen','false',
    'movie', 'Advert_long',
    'salign', ''
    ); //end AC code
    } else { // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be
    placed here.'
    + 'This content requires the Adobe Flash Player.'
    + '<a href=http://www.macromedia.com/go/getflash/>Get
    Flash</a>';
    document.write(alternateContent); // insert non-flash content
    // -->
    </script>
    <noscript>
    // Provide alternate content for browsers that do not support
    scripting
    // or for those that have scripting disabled.
    Alternate HTML content should be placed here. This content
    requires the Adobe Flash Player.
    <a href="
    http://www.macromedia.com/go/getflash/">Get
    Flash</a>
    </noscript>
    </body>
    </html>

    You should use SWFObject to embed your Flash. Not only does
    it make
    embedding more straightforward, it makes passing query
    parameters very easy.
    Check out:
    http://code.google.com/p/swfobject/
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to pass a variable from HTML to Flash 9

    I have built my flash ad banner in Flash 9 and now want the
    HTML code to pass the url over to the flash movie that it should
    jump to when clicked.
    The info in the help file seems out of date for the latest
    HTML template as it uses mainly JavaScript to get round IE's
    dreadful embeding issue. So my problem is, how do I pass a variable
    from the HTML to the actionScript specified int he Help file
    (running on a full screen button) as shown below?
    myButton_btn.onRelease = function() {
    if (clickTAG.substr(0, 5) == "http:") {
    getURL(clickTAG);
    via the html code now used by Flash 9 which is like this:
    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Advert_long</title>
    <script language="javascript"> AC_FL_RunContent = 0;
    </script>
    <script language="javascript"> DetectFlashVer = 0;
    </script>
    <script src="AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Revision of Flash required
    var requiredRevision = 115;
    // -->
    </script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!--
    Coping
    with
    Growing
    Audio
    Series
    Theraputic stories
    for children aged
    4 to 9
    -->
    <script language="JavaScript" type="text/javascript">
    <!--
    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion,
    requiredMinorVersion, requiredRevision);
    if(hasRightVersion) { // if we've detected an acceptable
    version
    // embed the flash movie
    AC_FL_RunContent(
    'codebase', '
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
    'width', '120',
    'height', '600',
    'src', 'Advert_long',
    'quality', 'high',
    'pluginspage', '
    http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'Advert_long',
    'bgcolor', '#ffffff',
    'name', 'Advert_long',
    'menu', 'true',
    'allowScriptAccess','sameDomain',
    'allowFullScreen','false',
    'movie', 'Advert_long',
    'salign', ''
    ); //end AC code
    } else { // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be
    placed here.'
    + 'This content requires the Adobe Flash Player.'
    + '<a href=http://www.macromedia.com/go/getflash/>Get
    Flash</a>';
    document.write(alternateContent); // insert non-flash
    content
    // -->
    </script>
    <noscript>
    // Provide alternate content for browsers that do not
    support scripting
    // or for those that have scripting disabled.
    Alternate HTML content should be placed here. This content
    requires the Adobe Flash Player.
    <a href="
    http://www.macromedia.com/go/getflash/">Get
    Flash</a>
    </noscript>
    </body>
    </html>

    You should use SWFObject to embed your Flash. Not only does
    it make
    embedding more straightforward, it makes passing query
    parameters very easy.
    Check out:
    http://code.google.com/p/swfobject/
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Reading Applet variable to javascript but getting some [native code] error?

    Hello All,
    I am trying to get the value of an applet variable into a javascript variable.
    The variable in applet is: Public String list;
    I am accepting it in javascript as: var val = document.content.list; where content is the applet name or ID
    When I do: alert(val); , I get an alert box with "Hi" on it. Which is as expected.
    However when I try to do: alert(val.length); , i get an alert box with "function length { [native code] }" in it.
    I have seen such a thing for the first time in my life, I am quite new to the world of coding.
    Can anyone tell me how can I solve this problem, because further I need to pass this javascript variable val to a server side script using Xmlhttp method.
    Presently when I am passing the variable, it doesn't get saved on the server which I intend to do after passing the variable.
    Any Suggestions??

    mailsforabhinav wrote:
    However when I try to do: alert(val.length); , i get an alert box with "function length { [native code] }" in it.That's because the returned String is still a Java string so you have to use val.length() to get the length!
    If really want to convert the Java string to Javascript String then do
    var val = document.content.list + "";
    alert(val.length);Bye.

Maybe you are looking for

  • Can't send smartform to external mail address

    Hi, everyone. Now, after creating some self-defined smartforms, we want to send its PDF copy to our external mail address. From this point, I had some try. Reference to SAP Library, I make a testing program named 'YPDF_TEST'. However, one exception a

  • Looking for a database application with report-writing capabilities for my iMac.

    Does anyone know of an iMac-compatible database application (small business type) with report-writing capabilities?

  • Adobe Photoshop CC 2014 a cessé de fonctionner

    Bonjour, Je viens d'installer "Adobe Photoshop CC 2014 sous Windows 8. L'installation s'est déroulée sans problème. Par contre , dés l'ouverture de celui ci, j'ai le message suivant : J'utilisais auparavant Photoshop Eléments 12 sans problème! Merci

  • Wi-Fi Installation in large property W/Cisco 2504

    Hi, I have an interesting job where i am having to fit a wifi network through a large property. I was advised to use the Cisco 2504 WLC and 9 x Cisco AIR-AP1142N access points. I know that out of the box the AP's (in standalone versions) have the GUI

  • Error: Missing Component

    Hi, I'm doing the cross component navigation from the DC A to DC B. I imported DC A into the DC B as "Used WDP Components" and embedded the view of DC A. Build and deployed and everything works fine. Then i shut down my PC and launch my NWDS, at WDP