Change page attribute with JavaScript

Hi,
hope someone can help.
Is it possible to change a BSP page attribute with JavaScript??
I have a JavaScript array with some serialnumbers. After push a save button, i want to save the array data into a page attribute.
Some ideas?
Regards Anton

Hi,
The only way of passing vars from JS to page attributes is submitting them via (hidden) values in a form or via params in an URL.
Alternatively, you can try to let JS store things in a client cookie and let the BSP read that cookie.
I didn't try that out yet though.
Eddy
PS.
Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!

Similar Messages

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • Changing applet parameters with Javascript

    Is it possible to have an applet read a param value which has been changed with Javascript after the applet loads?
    I've tried changing the param value in this way, but the applet doesn't read the new value. It reads the default value in the HTML when the applet loads, and getParameter is in the main loop of the applet which runs and updates other (internal) values fine...

    Well that page says that param values can't be changed at run-time. Never mind though because I read some more and found out how to implement a method in the applet (which can be called from Javascript) that reads the host page's DOM, thereby achieving the same result.
    Thanks for the pointer.

  • Hide Page Controls on Page Load with JavaScript

    Good Morning, I am trying to use a peice of code that I found on another thread:
    HTML Header
    <script language="JavaScript1.1" type="text/javascript">
    function setDisabled(PageItem) {
    document.getElementById(PageItem).style.visibility = "hidden"
    </script>
    HTML Body Attribute
    onLoad="javascript:setDisabled('P36_COMMS1_0');
    The code works if I change the "onLoad" to "onClick" and click the control. But when I use it as written, it doesn't trigger when the page loads. Does anyone have any ideas?
    Here is the original thread: http://forums.oracle.com/forums/thread.jspa?messageID=2760790&#2760790, but the thread didn't really relate to my question.
    Donald

    Hi Donald,
    As the code is within a function block it is has to be called by something when the page loads.
    The simplest method would to be ensure that you have a piece of javascript at the bottom of the page (ie, underneath the function and the field it refers to):
    &lt;script type="text/javascript"&gt;
    setDisabled('itemname');
    &lt;/script&gt;When the browser loads this piece, because you haven't wrapped it within a function block, the code is executed immediately (hence needing to be loaded after the function and the field).
    Andy

  • Cannot change page size with acrobat

    I am able to convert my manuscript in Mac word(2011) to adobe acrobat (XI); unfortunately the 6 X 9 " page size does not convert. I spent a few hours on the phone with adobe support and the final resolution was to upload the file to them and they converted it for me. however, they used distiller which reduced the file size and appears to have affected the many images. Does anyone have any advice? The best I have been able to glean online is work with inDesign to change page size.

    Thanks.
    The problem was with the paper size. In addition to change the page size I needed to change the paper size in the print option before selecting save Adobe PDF.
    From Word go to File> Print
    Open the Copies & Pages dropdown
    Select Paper Handling
    Check the Scale to fit paper size box
    Open the Destination Paper Size list
    Select your custom 6x9 Preset
    Click the PDF button
    Select either Save as PDF or Save as Adobe PDF
    The unfortunate thing is that I was able to do this initially, but when I went back to replicate it adobe is creating 2 files one with my cover page and the rest to the manuscript. Luckily my initial copy was good. Thanks again for your help.

  • Call an applet in other page html with javascript

    Hi
    I found many exemples with javascript, to call applet method in the same html page, but never cross pages
    There is a way to call with javascript an applet in other window/page?
    Thanks

    By other WORKSPACE do you mean another location (as defined in dads.conf)?<br><br>Either way, you just have to make the url relative or just hard code the entire path. If location 1 is pls/htmldb and location 2 is pls/htmldb_two then all you need to do is:<br><br>
    owa_util.redirect_url( '/pls/htmldb_two/f?p=TLL:3:&SESSION.::::F119_TAB_CONDITION:1');<br>
    that is if I understood your question correctly...<br><br>
    chet<br>

  • Change 3D views with JavaScript code?

    I am looking for a way to change 3D views using JavaScript. I want to obtain similar result as the predefine action (Go to a 3D view) but with code.
    More preciselly, I want to connect items within a list box to different 3D views.
    Any ideas or suggestion would be greatly appreciated.
    Thank you
    Tutorial on how to use the Go to a 3D view action:
    Connecting Document JavaScript to 3D Views (PDF: 2.3M)
    http://partners.adobe.com/public/developer/en/tips/topic_tip3.pdf
    Related topics:
    looking for a way to switch views using Javascript
    http://www.adobeforums.com/cgi-bin/webx/.3bbed722/0
    SMOOTH TRANSITION BETWEEN VIEWS?
    http://www.adobeforums.com/cgi-bin/webx/.3bc0ce56
    Cameras vs. views; views.xml
    http://www.adobeforums.com/cgi-bin/webx/.3bbf0748/3

    hello maybe other have same problem i found a simple solution for me
    use the javascript bridge and juse the f4m manifest files
    function changeSrc(playerdivId,src){
                var player = document.getElementById(playerdivId);
                player.setMediaResourceURL(src);
    src multicast fm4 manifest like this
    http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=Flash_Media_Manifest_(F4M )_File_Format
    best regards

  • Change TextView value with Javascript

    Hello,
    I'm trying to find a way of changing the value of an HTMLB TextView on the client side with javascript.
    Do you know how to do that ? Cannot work it out...
    Many thanks
    Nicolas

    Hi,
    this can be a bit tricky, because you have to know, how to access the element. that means you need an unique id or an absolute position of the TextView-element
    if you can see, how to access the specific element in your client-pagesource, a possible javascript could be:
    document.getElementById("<id of element>").firstChild.nodeValue="My new Text"
    or access by name/count of the element:
    document.getElementsByName("<name of element>")[#position of occurance].firstChild.nodeValue="My new Text"
    kr, achim

  • Retaining BSP page chages with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design = "DESIGN2002+DESIGN2003"
    sessionManagement = "TRUE"
    controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
    disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a parameter to setTimeout

    duplicate post locked.
    Raja

  • Retaining BSP Page values with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design            = "DESIGN2002+DESIGN2003"
                   sessionManagement = "TRUE"
                   controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
                  disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a  parameter to setTimeout
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:32 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:34 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:35 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:37 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:38 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:39 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:44 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:46 AM

    If the BSP page is refrehed, all the user input it sent back to the server. If you don't do anything special, the input is lost and not sent back to the client again. You can go to your controller class' DO_HANDLE_DATA to read the user input, and store it in the controller class to send it back to the client.
    If you don't use controller classes, the equivalent would be onInputProcessing. A more advanced alternative would be to use MVC model binding, which would do most of the stuff automatically for you.

  • Changing page width with template

    I'm trying to create a wedding website in iWeb using one of the templates. I don't like the narrow "Apple" look so I tried to adjust it to 1000px. I found the Page inspector/Layout box and changed the page width easily enough but it looked terrible because there didn't seem to be a way to alter the background images in the template.
    After a lot of poking around online, I found instructions for duplicating and then altering an iWeb template. I went into it and changed all the images to 1000p. I thought that had solved the problem since it looks great in iWeb. But when I published it, it looks terrible. It seems like it's finding the old 700px images somewhere. Check it out: http://web.me.com/kamoore63/Wedding_Website/Home.html
    Does anyone have any ideas what files or things I might have to change to have this appear correctly?

    Welcome to the Apple Discussions. Publish the site to a folder on the desktop and check the files in there to see if the older narrow files are there. If so you probably will have to do a Publish Entire Site to totally replace all of the files on the server.
    What you're experiencing is why many recommend starting with either the white or black theme and crating your own layout. Editing the theme itself can be hit or miss and the theme may not stay changed thru an subsequent update of the application.
    OT

  • [Solved]ADF Page Scrolling with Javascript

    Hi All,
    In one of our application pages, when user closes a pop dialog it will create bunch of table lines at the bottom of the parent page, but after page refreshes it is going back to the top, so user having to scroll down to get to the lines.
    So onload of body tag, I wrote something like window.scrollTo(0, -200). I know this works in jsp page as we are using this in another application. but it doesn't in ADF.
    Can anyone please help me with this?. Thanks for your help in advance
    Thanks
    Praveen
    Message was edited by:
    bpraveen

    Hi All,
    I actually worked around the issue, which seems to be working fine for me.
    We need to scroll the page down to the line in the table that we just updated.
    Each of our table row has a sequence field. So before refreshing the page I'm putting the sequence of the line in the session in backing bean method. In the page I'm getting the value back from session and setting it to value of hidden field. just before the end of body tag. I wrote some javascript to focus the line with sequence that was saved in session (which is the value of hidden field on the page). So focusing the line sequence is scrolling the page up to the line.
    hope this helps.
    Thanks
    Praveen

  • Change Page size with a Script

    I have made artwork in Illustrator that is set up as two page spreads on 1 artboard.
    I need to convert this to single page spreads.
    I.e. So for half the documents, I need to set the anchor point of the document to top left and half the width of the artboard.
    For the other half of the documents, I need to set anchor point to to right and half the width.
    Is this possible with scripting?
    I have look around online to find ways of accessing the document size and anchor point via scripting, but cannot seem to find any resources.
    Thanks for any help that can be offered.
    Edit: Also is it possible to create a new artboard with a script and assign it a name?

    here you go, this script splits the artboard in two
    // carlos canto
    // http://forums.adobe.com/message/5380624#5380624
    var idoc = app.activeDocument;
    var ab = idoc.artboards[0];
    var abBounds = ab.artboardRect;// left, top, right, bottom
    var ableft = abBounds[0]; // 0
    var abtop = abBounds[1]; // 612
    var abright = abBounds[2];
    var abbottom = abBounds[3];
    var abwidth = abright - ableft; // 792 // width
    var abheight = abtop- abbottom; // 0 // height
    var half = ableft + abwidth/2;
    var abright2 = half;
    ab.artboardRect = [ableft, abtop, abright2, abbottom];
    var ableft2 = half;
    var newAB = idoc.artboards.add([ableft2, abtop, abright, abbottom]);

  • Change php variable with javascript??

    Hey Guys
    I need to know how can i send the form to a different email address if someone selects an option from the "BSU(area)" on the HTML from.
    So basically if the are on the html form and they select NewCastle from the "BSU(area)" for example i want the script to change the email address to the address assigned to that option.
    How can i achieve this? If you guys need to see my PHP script let me know.
    Help please!!
    Here's the link: http://flyingant.co.za/invite.html
    yours
    Ashveer

    Yes i agree with you.
    Here's my script tell me where i am going wrong?
    <?php
    // Build message.
    $my_email = "";
    global $my_email;
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Form To Email Comments";
    $headers = "From: " . $_REQUEST['Email'];
    mail($my_email,$subject,$message,$headers);
    ?>
    <?php
    function getValue($Result){
    //$Item = form.BSUarea.selectedIndex;
    $Item = $_POST["BSUarea"];
    //$Result = form.BSUarea.options[Item].text;
    $Result = $_POST["BSUarea"];
    switch ($Result) {
    case ($Result = "Gauteng"):
    //$Gauteng = "[email protected]";
    $my_email = "[email protected]";
    //$my_email = $Gauteng;
    break;
    /*case ($Result = CapeTown):
    CapeTown = "[email protected]";
    $my_email = CapeTown;
    break;
    case ($Result = Richards_Bay):
    Richards_Bay = "[email protected]";
    $my_email = Richards_Bay;
    break;
    case ($Result = Pinetown):
    Pinetown = "[email protected]";
    $my_email = Pinetown;
    break;
    case ($Result = Pietermaritzburg):
    Pietermaritzburg = "[email protected]";
    $my_email = Pietermaritzburg;
    break;
    case ($Result = NewCastle):
    New Castle = "[email protected]";
    $my_email = NewCastle;
    break;
    case ($Result = George):
    George = "[email protected]";
    $my_email = George;
    break;*/
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>BSU - Evite</title>
    </head>
    <body>
    <div class="main">
    <div class="content"></div>
    <form id="form1" name="myform" method="post" action="#build_message">
    <table width="525" border="0">
    <tr>
    <td width="270"><label><strong>BSU(area)</strong></label></td>
    <td width="10"> </td>
    <td width="240" align="left">
    <select name="BSUarea" id="BSUarea" onchange="getValue($Result)">
    <option value="Durban">Durban</option>
    <option value="Richards_Bay">Richards Bay</option>
    <option value="Gauteng">Gauteng</option>
    <option value="CapeTown">Cape Town</option>
    <option value="George">George</option>
    <option value="NewCastle" >NewCastle</option>
    <option value="Pietermaritzburg" >Pietermaritzburg</option>
    <option value="Pinetown">Pinetown</option>
    <option value="Polokwane">Polokwane</option>
    </select></td>
    </tr>
    <td width="270"></td>
    <td width="10"> </td>
    <td width="240"><label>
    <input type="reset" name="Reset" id="Reset" value="Reset" />
    <input type="submit" id="Submit" value="Submit" />
    </label></td>
    </tr>
    </table>
    </form>
    </div>
    </body>
    </html>

  • Change rtmfp groupspec with javascript

    hello
    is it possible to change dynamically the groupspec and play the new rtmfp group?
    test code
      var parameters =
                            {       src: "rtmfp://p2p.rtmfp.com/2924a8afa44eaff4aac318fe5b39248d277688d663c6dfb422e6e9663967d39b/"
                            ,       autoPlay: true
                            ,       groupspec: "G:0101010c040e6f747200"
                            ,       multicastStreamName: "stream"
                            ,       streamType: "live"
                            ,       streamName: "stream"
                            ,       controlBarAutoHide: false
                            ,   javascriptCallbackFunction: "onJavaScriptBridgeCreated"
                    // Embed the player SWF:
                    swfobject.embedSWF
                            ( "StrobeMediaPlayback.swf"
                            , "strobeMediaPlayback"
                            , 640
                            , 480
                            , "10.1.0"
                            , parameters
                            , { allowFullScreen: "true"}
                            , { name: "strobeMediaPlayback" }
    var player = null;
                    function onJavaScriptBridgeCreated(playerId)
                            if (player == null) {
                                    player = document.getElementById(playerId);
                                    document.getElementById("newchannelgroup").onclick = function(){
                                                   //HERE SET NEW groupspec and play the rtmfp
                                                    player.play2();

    hello maybe other have same problem i found a simple solution for me
    use the javascript bridge and juse the f4m manifest files
    function changeSrc(playerdivId,src){
                var player = document.getElementById(playerdivId);
                player.setMediaResourceURL(src);
    src multicast fm4 manifest like this
    http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=Flash_Media_Manifest_(F4M )_File_Format
    best regards

Maybe you are looking for