Pass  variable (hyperlink) in javascript

Hi
how can i pass multiple hyperlink in java, from 1 page to another page i want to open www.yahoo.com in second page how can i pass multiple hyperlink variable from 1 page to 2nd page please guide me..
Thanks

This is first Page TEST.asp
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
function newWindow(newContent)
try{
var win = window.open('test2.asp?nc='+ escape(newContent) + 'nextWin', 'right=0, top=20,width=350,height=350, toolbar=no,scrollbars=yes, resizable=yes, statusbar=no');
win.focus();
}catch(e){
// popup stopper perhaps
alert("Do you have a popup stopper active?");
</SCRIPT>
</head>
<body>
<p>Java
Scrpt</p>
</body>
</html>
This is 2nd page TEST2.asp
<HTML>
<HEAD>
<title>Untitled Document</title>
<META content="MSHTML 6.00.2479.6" name=GENERATOR>
<IFRAME marginHeight=0
src="<%request("nc")%>" frameBorder=0 width=270
scrolling=no
height=80> <font size="2" face="Verdana">Advertisement </font></IFRAME>
</BODY>
</HTML>
Message was edited by:
AppHouse

Similar Messages

  • How can I pass variables from one project to another using Javascript?

    Hi all, I am trying to do this: let learners take one course and finish a quiz. Then based on their quiz scores, they will be sent to other differenct courses.
    However, I wish keep track on their previous quiz scores as well as many other variables.
    I found this nice widge of upload/download variables by CPguru (http://www.cpguru.com/2011/05/18/save-and-load-data-widget-for-adobe-captivate-4-and-adobe -captivate-5/). However, this widget works by storing variables from one project in local computer and then upload it to another project.
    My targeted learners may not always use the same computer though, so using this widget seems not work.
    All these courses resided in a local-made LMS which I don't have access to their code. Therefore, passing variables to PHP html files seems not work.
    Based on my limited programing knowledge, I assume that using Javascript to pass variables may be the only possible way.
    Can someone instruct me how to do this?
    Thank you very much.

    If you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.

  • The function javascript:doSubmit not passing variables between pages

    Hi,
    I have an report that has a link to another page, and I'm trying to pass 2 variables. If I use a target URL as such the variables do not get passed, but if I use a page target and explicitly add the item name and values it works fine. Here is the call I'm using to javascript:doSubmit:
    javascript:doSubmit('f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#');
    Does anyone have any insights?
    Thanks,
    Joe

    You can't use doSubmit to pass variables; it will only submit your page with the request you passed in.  All normal page processing and branching will be followed..  Why are you using doSubmit?  Just put the URL in the URL field.
    f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#

  • Passing variables to hyperlink

    Hi,
    Can you pass variables to the Cp7 hyperlink feature ?
    I am looking at some cases where I would like to create the link dynamically
    rgds Renovator

    Not AFAIK. Use of variables outside of text containers and advanced actions is pretty lilmited. Even if you populate a variable associated with a TEB, or one associated with checkboxes/dropdown/radiobuttons interactions using an (advanced) action it will never show up (except with Jim's extended widgets). Could you please enter a feature request, I did already several like that. Same for advanced action: if we could concatenate strings with variables to create an action, a lot more would be possible or at least lot of long conditional actions could be avoided.
    Lilybiri

  • How to get the value of a variable defined in javascript in JSP

    how to get the value of a variable defined in javascript in/through JSP????

    In Javascript you can use the DOM to access the input element and set it's value before submitting the form. Then it's value will just be passed.

  • In OBIEE 11g, how can you set a presentation variable value from javascript ?

    I want to set up presentation variable from a javascript variable. Does anyone knows the workaround for this ?

    SriniVEERAVALLI,
    Thanks for your suggestions. I want to make a custom prompt that is only my requirement. From JS I have made a custom slider prompt now I want to use this slider prompt to pass selected value in presentation variable. Since, we have slider prompt only for numbers, I have to use it for other values.
    I just want to make my post looks simple and focus on the specific problem.
    Anyways, thanks a lot for taking time to reply. Appreciate your help.

  • How to pass variable form javacript to java BackingBean

    Hello,
    I am trying to pass variable from Javascript method (which is written in jspx) page to a Java BakingBean.
    here is the Javascript code:
    <SCRIPT type="text/javascript">
    function OnSave() {
    alert("The signature you have taken is the following data: " + SigPlus1.SigString);
    </SCRIPT>
    of course, this method will be called after the use press save button as follow:
    <INPUT id="submit1" name="Save" type="submit" value="Save" onclick="OnSave()"/>
    As you can see this Javascript will alert the result to the user. Instead I want to pass the object ( SigPlus1) to a Java Bean.
    I am using ADF technology with JDveloper 11.1.2.3

    here is the answer:
    ADF RichClient API - af:serverListener

  • Dynamically creating variable names in javascript

    Hi.
    I have to create variable names dynamically in JavaScript.
    My JSP file accesses information from Database and forms a String corresponding to the information received.
    This String is passed to a JAvaScript function that should CREATE a variable with that NAME.
    For Ex:
    My database access resulted in a single row...
    id name sal
    34 John Smith 38000
    the resulting VARIABLE NAME should be Menu34. 34 comes from the database result.
    Is there any function to dynamically create a variable name in JavaScript?
    Thanks in advance.

    The JSP is printing the contents of an HTML page, and Javascript code can be part of that output...
    So you would just write out the stuff, something like this....
    <script>
    <% while(rs.hasNext()) { %>
    var Menu<%= rs.getInt("id") %> = '<%= rs.getString("name") %>';
    <% } %>
    </script>
    In the browser, it'll just look like another long list of Javascript variables.

  • Passing variables with page redirect

    I have a cfform. After it is filled out and submitted, the
    action page generates a random reference_no and puts the data into
    a database. I then do a cflocation url and pass the reference_no to
    another page. This page takes the reference_no and does a cfquery
    again to get all the information just entered and displays it on
    the form. A javascript popup/alert message then tells the user the
    form was submitted with the reference_no and to print the form. I
    was advised to do it this way so that the form cannot be
    resubmitted again. Everything works fine the way I have it.
    Now here is what I would like to do. After the form is
    displayed with the popup, I would like to pause 3-5 seconds and
    then redirect that page to another page that is identical (minus
    the javascript popup message) with the cfdoucment tag because I
    want them to print the form in pdf format. The problem I am having
    is when I do another cflocation url at the end of the display page
    and pass the referendce_no, to go to the pdf page, it works but it
    never stops at the display page to display the javascript popup
    message. So I tried to use the meta tag refresh rediredct set at 3
    seconds and pass the reference_no. The display page with the
    javascript message works then the page is redirected but the
    reference_no is never passed and the pdf form comes up but without
    anything to display. I guess you cannot pass variables in a meta
    tag since that is not cf ?
    How can I go from the page with the javascript popup to the
    page with cfdocuement pdf format ?
    Thanks

    You would have to craft the url of the popup page to pass the
    reference_no. I'm going to assume that you're using the "Post"
    method on your form, which means you have to pass the reference_no
    form value as a url/GET value.
    <cflocation
    url="somesite.com/popup.cfm?reference_no="#form.reference_no#">
    and then on the popup.cfm page, consume the url.reference_no
    again as part of the url in the meta refresh
    <cfoutput>
    <meta http-equiv="refresh"
    content="10;url=http://somesite..com/pdfDisplay.cfm?reference_no=#url.reference_no#"
    />
    </cfoutput>
    If you're just trying to prevent double submission, you could
    just lock the
    form from double submission clientside. In the method below,
    it actually hides the form. There are other options such as
    displaying an inline IFRAME which would simulate a popup and would
    remain until the page was refreshed from the form submission. I
    would also consider this old school. You might want to check out
    other options as far as Web 2.0 using AJAX and frameworks such as
    JQuery.
    <script language="javascript">
    function formSubmit(){
    if (document.myForm.isSubmitted.value != "no"){
    return false;
    }else{
    document.myForm.isSubmitted.value = "yes";
    document.getElementById('submitdiv').style.display =
    "block";
    document.getElementById('formdiv').style.display = "none";
    document.myForm.submit();
    </script>
    <div id="submitdiv" style="display:none">
    Your Form has been submitted.
    </div>
    <div id="formdiv" style="display:block">
    <form method="post" name="myForm" id="myForm"
    action="HandleSubmission.cfm">
    <input type="text" name="isSubmitted" value="no">
    <input type="button" name="manSubmit" value="submit"
    onclick="formSubmit();">
    </form>
    </div>

  • Passing variables from one swf to another

    I am facing problem to pass variable from one swf to another.
    I am using loadMovie to load another swf. how can I pass a variable
    value to another swf. Can anyone help me plz? It is somewhat
    urgent.
    thanx in advance.

    first of all:
    this is the Flash Media Server and your problem is not
    related to FMS....
    second thing related to the "somewhat urgent" :
    we, users on this forum, are not there to do your job... so
    calm down otherwise no people will answer your question. This forum
    is a free support forum that community of Flash developer use to
    learn tricks and to solve problems.
    Possibles solutions:
    If the two swf are seperate you can use LocalConnection to
    establish a connection between different swf.
    If you load a second swf into the first one you can interact
    like a standard movieClip(only if there from the same domain or if
    you a policy file on the other server)
    You can use SetVariable(via Javascript) to modify a root
    variable on the other swf and check with an _root.onEnterFrame to
    see if the variable had changed in the second swf.
    * MovieClipLoader will do a better job, in your specify case,
    than the loadMovie. Use the onLoadInit event to see when the swf is
    really totaly loaded into the first one otherwise you will have
    timing issues.
    My final answer(lol) is the solution 2 with the
    notice(*)

  • Jquery and serialize / passing variables

    I already put this question on the jquery forum but noone responded. My question is about jquery.
    I have this image gallery, people can drop and drag pictures, the idea is they can determine theirselves the order in which images are shown on their website.
    I have the sortable part, but I don't know how to pass the new order to the next page that should contain a query that updates the ordernumber for each item.
    My code:
    <!--- load the necessary scripts --->
         <script src="scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" type="text/javascript"></script>
        <script src="http://jquery-ui.googlecode.com/svn/tags/latest/external/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script>
    ,!--- the actual sortable image gallery --->
    <ul id="ulsortable">
        <cfoutput query="items">
            <li id="ID_#T_items_autoID#">
                <CFIF #T_items_img1# IS NOT 0>
                    <img src="../#session.foldername#/galleries/#T_items_itemid#_thumbsitemanager.#T_items_img1#" alt="Click here to update" border="0" width="125" height="125">
                    <CFELSE>
                        <img src="layoutimg/no_picture_available.jpg" alt="" width="125" height="125" border="0">
                    </CFIF><br>
                    <CFIF #T_items_title# IS NOT "">#left("#T_items_title#","15")#</CFIF>
            </li>
        </cfoutput>
    </ul>
      <script>
        $(function() {
            $( "#ulsortable" ).sortable();
            $( "#ulsortable" ).disableSelection();
            $('#frm-sort').submit(function(){
                var sort_serialized = $("#ulsortable").sortable("serialize");
        </script>
    <form action="#request.site.webroot#/actions/act_writeneworder.cfm" method="post" id="frm-sort">
      <input type="submit" name="save" id="save" value="save" />
      <input type="hidden" name="sort_serialized" id="sort_serialized" value="" />
    </form>
    When I use this and go to the next page thrugh submit button I get the error that sort_seriallized is an empty string. i must be doing something wrong. It has been 3 days i am on it:-)

    If anyone is interested, here is the working code.
    Make sure to include the right jslibraries
    Make your stylesheet so you have an unordered list that looks like an image gallery:
    <style>
             ul
                width                : 715px;
                list-style-type    : none;
                margin              : 0;
                padding             : 0;
            /* float & allow room for the widest item */
              ul li
                float                 : left;
                width                : 136px;
                height              : 165px;
                margin              : 2px;
                text-align          : center;
                border              : 1px solid gray;
               /* stop the float */
              br
                clear            : left;
              /* separate the list from subsequent markup */
              div.wrapper
                margin-bottom    : 1em;
        </style>
    Then the jquery script:
    <script type="text/javascript">
            $(document).ready(function(){
    // sortable makes the ul drag and drop
                $("#ulsortable").sortable();
    // create variable that will be submitted with form           
                    $("#frm_sort").submit(function(){
                        var order = $('#ulsortable').sortable("serialize");
                        $('#order').val(order);
        </script>
    Ouput the listitems:
    <ul id="ulsortable">
        <cfoutput query="items">
            <li id="myprimarykey_#T_items_autoID#">
                     <img src="../#session.foldername#/galleries/#T_items_itemid#_thumbsitemanager.#T_items_img1#" alt="Click here to update" border="0" width="125" height="125">
                    <br/>
                   <CFIF #T_items_title# IS NOT "">#left("#T_items_title#","15")#</CFIF>
            </li>
        </cfoutput>
    </ul>
    Finally the form with submit button and hidden field that passes variable:
    <form action="actions/act_writeneworder.cfm" method="post" id="frm_sort">
          <input type="hidden" name="order" id="order" value="" />
          <input type="submit" name="save" id="save" value="Save new order" />
    </form>
    The page that handles the serialize and database update:
    <!--- convert the serialized string to a comma delimited list --->
        <cfset idlist = ReReplaceNoCase( form.order, "(&)?myprimarykey\[\]=", ",", "all" )>
        <cfset position = 0>
        <cfset pk = 0>
    <cfloop list="#idlist#" index="pk">
          <cfset position++>
        <cfquery name="writeneworder" datasource="#request.dba#">
            UPDATE T_items
                SET T_items_order = <cfqueryparam value="#position#" cfsqltype="CF_SQL_INTEGER">
                 WHERE T_items_autoID = <cfqueryparam value="#pk#" cfsqltype="CF_SQL_INTEGER">
        </cfquery>
    </cfloop>
    <cflocation url="#request.site.webroot#/item_choose_cat.cfm?currentopic=changeorder" addtoken="no" />
    As I couldn't find anywhere a full working exemple I decided to post this code, hope it helps you.
    Bianca

  • Passing variables from shell script to separate sqlplus script

    Hi, I am having issues passing variables to a separate sqlplus script invoked by the shell script, e.g.
    #!/bin/sh
    DB_NAME=TEST
    PWD1=PA55W0rd
    echo exit | sqlplus / as sysdba @${DB_NAME}.sql ${DB_NAME} $PWD1 >> ${DB_NAME}.sql
    exit 0
    The script picks up the $DB_NAME variable fine, and therefore invokes the required sql script.
    However, when I pass the variable $PWD1 to the sql script I get an error.
    The script creates a database link:
    create or replace procedure new.link
    is
    begin
    execute immediate 'create database link TEST
    connect to TESTSCH identified by '$PWD1'
    using ''TEST''';
    end;
    exec new.link;
    output is:
    ERROR at line 1:
    ORA-00911: invalid character
    ORA-06512: at "NEW.LINK", line 4
    ORA-06512: at line 1
    any help appreciated!
    Edited by: 969765 on Apr 5, 2013 4:24 AM

    969765 wrote:
    that is a pretty unhelpful comment, this is actually my LAST resort I have looked up all the documentation etc.This is what I did...
    I went to the documentation:
    http://www.oracle.com/pls/db112/homepage
    I searched for "sqlplus" which gave me this documentation (under "SQL*plus program syntax")...
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_three.htm#i1169374
    I read the syntax:
    SQLPLUS [ [Options] [Logon|/NOLOG] [Start] ]and the subsequent information:
    >
    where Start has the following syntax:
      @{url|file_name[.ext]} [arg ...]and "Start" was hyperlinked, so I clicked on it, which took me to the section...
    >
    Start
    @} [arg ...]
    Specifies the name of a script and arguments to run. The script can be called from the local file system or from a web server.
    SQL*Plus passes the arguments to the script as if executing the file using the SQL*Plus START command. If no file suffix (file extension) is specified, the suffix defined by the SET SUFFIX command is used. The default suffix is .sql.
    See the START command for more information.
    >
    and here the "START" was hyperlinked, so I clicked on that...
    and hey presto, I ended up here:
    http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_twelve044.htm#BACJJHDA
    ... where the arguments are described...
    >
    arg ...
    Data items you wish to pass to parameters in the script. If you enter one or more arguments, SQL*Plus substitutes the values into the parameters (&1, &2, and so forth) in the script. The first argument replaces each occurrence of &1, the second replaces each occurrence of &2, and so on.
    >
    ... clearly explaining that SQL*Plus substitutes the substitution variables &1, &2 etc. in the script with the passed in arguments.
    Your script was including a Unix style substitution, not an SQL*Plus script substitution, so that's seems to be the most likely cause of your problem.
    And still you haven't come back to say whether it's worked for you or not... leaving others guessing as to whether you still need help.

  • Passing variables URL - IMP

    I am working on a dashboard with some graphs and tables. For each Graph and Table I have a "Detail" button. This essentially gives user the functionality to see the underlying data with a navigational block et al for Drilldown.
    http://img213.imageshack.us/img213/4223/question2hs3.jpg
    My problem is what ever the variables selection have been chosen for the dashboard to run are not being carried to the detailed query.
    Is there a solution for this. I tried hooking individual queries in the URL with infocube=XXXXX & Query=XXXXX.

    Hi VV,
    i dont know which way use to pass values (Table Interface, JavaScript etc.).
    1.) You know that you can create a Jump target with transaction RSBBS? There you can specify the variable values in the "assignment details" which should be passed to target query! This can be done only if you select a jump source and a jump target!
    2.) Maybe you can solve your problem easier. Try some Web API commands. I would try the CHANGE_TEMPLATE command! Please look here: http://help.sap.com/saphelp_nw04/helpdata/en/e0/a8fc39eb31a700e10000000a11402f/content.htm
    Well. As i dont know how you realize your jump - i dunno how i can help ya.
    Regards,
    Adem

  • Passing variable values to the navigation block

    Hi WAD Experts,
      I have a requirement regarding passing variable values to the navigation block. User requirement is first give the selections on the selection screen and then after executign output should display in browser. In the output page we have a navigation block. So when user gives selections those selections should also populate in the navigation block. Your help will be appreciated.
    Prasad.

    Hi,
    if your variable is 'Changeable at Query Navigation' the chosen values will appear in the Navigationblock.
    Variables which are 'Not Changeable at Query Navigation'
    will not appear.
    You can set this Property when you create a Variable.
    Kind Regards,
    Alican Polat

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

Maybe you are looking for

  • How do i get panning to stop at the edge of my screen?

    For the project i am working on i will need to use panning quite a bit.  Manual panning is too slow for what i need and auto panning will capture outside of my screen.  Is there any way to set the auto panning to stop at the edge of the screen so i a

  • Broken links on the web page :(

    Hi Guys I have been chasing this for a few weeks now & no one seems very interested in the issues with the web site On this web page http://www.palm.com/au/support/treo680/downloads/680mr_win.html Their is a link Download: Treo680_2_12_ROW_desktopupd

  • OSB Validate action problem with xs:short datatype

    Hi, In the XSD, intPayment is defined as xs:short. We have the validate action in OSB proxy. If we pass below, everything is fine : (correct) <intPayment>96</intPayment> If we pass below, OSB is throwing a validate error indicating fractional digits

  • How to enable IP SLA on cisco switch

    Hi guys, I am trying to enable IP SLA on a Cisco 4948 switch (running 'cat4500-ipbasek9-mz.122-46.SG.bin') to test CiscoWorks IPM using this swtich as a source device. But I can't run the command "ip sla monitor" on this switch. It just has "ip sla r

  • Return the difference between two strings

    Is it possible to return the difference between two strings? For example String one = "We went for a walk"; String two = "We went for a run"; compare "two" to "one" returns "walk" compare "one" to "two" returns "run"I need to return the difference of