BASEFONT in html and pass a value thru a javascript

Friends I am try to set the size of my text of my entire HTML/JSP document by using the <BASEFONT SIZE ="6"> in the <HEAD> section
but it is not working.I mean I want my jsp/html to override the default size set by the users
internet explorer setting.
Also can some one tell me in javascript how to set a java variable to some value when a button is clicked.I mean when a submit button is clicked I want to submit the form and a java varaible has to be set to some value.I needed this because I am using INPUT TYPE = IMAGE (rather than SUBMIT)which doesn't return the value .Also I have never worked in javascript and I am in a big rush.Please help.
Please help.

Friends I am try to set the size of my text of my entire HTML/JSP document by using the <BASEFONT SIZE ="6"> in the <HEAD> section
but it is not working.I mean I want my jsp/html to override the default size set by the users
internet explorer setting.
Also can some one tell me in javascript how to set a java variable to some value when a button is clicked.I mean when a submit button is clicked I want to submit the form and a java varaible has to be set to some value.I needed this because I am using INPUT TYPE = IMAGE (rather than SUBMIT)which doesn't return the value .I know I can use the INPUT TYPE = hidden but It is not as easy as that.I mean I display say 10 employee in each page ,one employee per row ,and in each row I have submit button like PROCESS EMPLOYEE SALARY and PROCESS EMPLOYEE LEAVE,PROCESS EMPLOYEE BENEFITS etc.Hence every time i click a button I want the employee id to be passed and do the processing and throw a new form with the updated status of that particular employee in the page.
Also I have never worked in javascript and I am in a big rush.Please help.
Please help.

Similar Messages

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

  • How do you create a user defined functions  UDF and passing a value like a ID to GEt a Value.

    How do you create a user defined functions UDF and passing a
    value like a ID to GEt a Value.
    using a query.
    are there example.
    Thanks

    tons of examples at cflib.org - good place to start, even
    though many
    udfs there are a bit outdated in their code...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Multiple selection list and passing that value to oracle reports

    Hi
    I need to create a multiple selection list and then based on use selection, I need to pass that value to oracle reports. Can any one help with steps on how I can do this. Thanks

    Hi
    Concatenate the multiple values into a string separated by comma and then pass that string to report as a parameter.
    In report query, you have to use the lexical parameter using ' & '
    regards
    SD

  • Need help parsing a long and passing the value.

    I'm doing Cattle Drve 4b on javaranch.com (http://www.javaranch.com/say.jsp) and I need a bit of help.
    I want to pass the reference of my num value to several small methods to work out the value printed. Here's the original code I did from 4a:
    public class Say{
    public static void main(String[]args){
    int num = Integer.parseInt(args[0]);  // parse argument from command line
    String array[] ={"Zero", "One", "Two", "Three", "four", "five", "six","seven","eight",
               "nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen",
               "seventeen","eighteen","nineteen","twenty","thirty","fourty","fifty",
               "sixty","seventy","eighty","ninety"};     //initialize the array
    //start check for value
    if(num<21)
    System.out.println("\n" + array[num]);
                                            //  \n is added before
    else if(num<30)                                   //  each result for a
    System.out.println("\n" + array[20]+ "-" + array[(num-20)]);     //  cleaner output
    else if(num<40)
    System.out.println("\n" + array[21]+ "-" + array[(num-30)]);
    else if(num<50)
    System.out.println("\n" + array[22]+ "-" + array[(num-40)]);
    else if(num<60)
    System.out.println("\n" + array[23]+ "-" + array[(num-50)]);
    else if(num<70)
    System.out.println("\n" + array[24]+ "-" + array[(num-60)]);
    else if(num<80)
    System.out.println("\n" + array[25]+ "-" + array[(num-70)]);
    else if(num<90)
    System.out.println("\n" + array[26]+ "-" + array[(num-80)]);
    else if(num<100)
    System.out.println("\n" + array[27]+ "-" + array[(num-90)]);
    //endFor 4b I need to be able to print out values in the billions, so I was going to create a few methods to keep it clean like so:
    public class billion (long (int num)
    { if( num<9 billion)
         num-= 8 billion
    System.out.print("eight billion ");
    else if(num<8 billion){
    num-= 7 billion
    System.out.print("seven billion ");
    ....etc
    return num;
    public class million...
    public class thousand...
    etc.And the current main section will be moved into a new "tens" class.
    I'm running into two problems though.
    1. How do you parse a long? I know integers are like so:
    int num = Integer.parseInt(args[0]); are longs the same?
    like:
    long num = Long.parseLong(args[0L])if not, how can I do it?
    2. how do I properly pass num to all the methods? I'm going to make num a public int and make the methods public because that seems simplest, but can I pass num to the method and then return the new value of num back to main?
    BTW, I'll be removing the carriage return from the beginning of the "tens" class when all is said and done so the results don't end up printing on multiple lines.
    Thanks in advance everyone.

    The L suffix is used to identify a Long literal.
    The index of the args[] array does not need to be specified as a Long.
    Solong num = Long.parseLong(args[0]);will suffice. You might want to put that in a try/catch block to catch the NumberFormatException that will be thrown if args[0] cannot be parsed to a long value.
    Various ways to update the value of num in the methods of the same class:
    Simplest of all: declare num as an instance variable. The methods simply access and assign its value.
    Other ways:
    -- pass num as a parameter to the method.
    -- return the value of num from the method (provided the method doesn't have to return any other value)
    -- Have a getNum() method return the value of num
    -- Have setNum() method to update the value of num
    db
    What's that line? public class billion (long (int num)edit Typos, typos...
    Also, the set/get approach with public access is the preferred method when used in the methods of another class.
    Don't forget that the other class has to know whose set/get methods to call.
    Message was edited by:
    Darryl.Burke

  • Trap string output from resultset and pass the value to getSchema.

    I want to get the string ldb output frm the resultset and pass it to getSchemas(ldb).kindly let me know how to do it,right now it is throwing error like variable ldb might not have been initialised.
    public boolean Err_getSchemas() {
    boolean ret = true;
    try {
    System.out.println("**** Testing getSchemas Tests : - ");
    if(login()) {
    Statement stmt = con.createStatement();
    ResultSet rs;
    String ldb;
    rs = stmt.executeQuery("SELECT identifier FROM ldb_catalog");
    while(rs.next())
    ldb = rs.getString(1);
    //String ldb = rs.getString(1);
    //System.out.println("lll"+ldb);
    try{
    System.out.println("1.Testing DatabaseMetaData.getSchemas() with string ldb");
    ordbjava.jdbc.ordbMetaData dbmd = ( ordbjava.jdbc.ordbMetaData)con.getMetaData();
    ResultSet dbmdrst = dbmd.getSchemas(ldb);
    System.out.println(" Exception not thrown: TEST Pass ");
    dbmdrst.close();
    }catch(Exception ex){
    System.out.println("***JDBCMetaData.getSchemas() with string ldb failure***");
                   System.out.println(" Catch Exception"+ex );
    catch (SQLException e) {
    printExceptionStack(e);
    System.out.println("***ordbCollection Preparation Error Caught SQLException: " + e.getMessage());
    return false;
    finally {
    try {
    con.close();
    catch (SQLException e) {}
    return ret;
    }

    I want to get the string ldb output frm the resultset and pass it to getSchemas(ldb).kindly let me know how to do it,right now it is throwing error like variable ldb might not have been initialised.
    public boolean Err_getSchemas() {
    boolean ret = true;
    try {
    System.out.println("**** Testing getSchemas Tests : - ");
    if(login()) {
    Statement stmt = con.createStatement();
    ResultSet rs;
    String ldb;
    rs = stmt.executeQuery("SELECT identifier FROM ldb_catalog");
    while(rs.next())
    ldb = rs.getString(1);
    //String ldb = rs.getString(1);
    //System.out.println("lll"+ldb);
    try{
    System.out.println("1.Testing DatabaseMetaData.getSchemas() with string ldb");
    ordbjava.jdbc.ordbMetaData dbmd = ( ordbjava.jdbc.ordbMetaData)con.getMetaData();
    ResultSet dbmdrst = dbmd.getSchemas(ldb);
    System.out.println(" Exception not thrown: TEST Pass ");
    dbmdrst.close();
    }catch(Exception ex){
    System.out.println("***JDBCMetaData.getSchemas() with string ldb failure***");
                   System.out.println(" Catch Exception"+ex );
    catch (SQLException e) {
    printExceptionStack(e);
    System.out.println("***ordbCollection Preparation Error Caught SQLException: " + e.getMessage());
    return false;
    finally {
    try {
    con.close();
    catch (SQLException e) {}
    return ret;
    }

  • Is there a way where I can give an HTML File  and pass database values to it?

    Hello,
    I have a Report that has Complex Layout with different Fonts,sizes etc.
    After designing it in Front Page, the HTML Source comes to be around 180 KB. Portal Reports with Custom Layout fail to get this size of layout code( seems the limit is around 32KB).
    Writing my own stored Package using htp/htf calls, but still I needed to paste this entire 180KB Code and replace the layout names with database names. This works fine but the readability of this code is ugly.
    Is there a way where I can feed the database values as parameters along with the HTML File to pick substitute and then
    show me the output?
    Thank you.
    Madhav

    you can use dynamic pages!

  • How to validate and pass a value stored in the Check box to a SQL report

    I have a menu(parameter form) with select lists and two check boxes(one option for DD/MM/YY(called CHK_BOX_MTH) and other for Quarter(Called CHK_BOX_QTR)).
    If the user selects the check box for month, he should be only be able to select list of values for Month, Day and Year. The user should not be able to choose Quarter(or should be prompted with a message, "Check only one option"). Similarly if Quarter is chosen, DD/MM/YY should be disallowed.
    How do I code this validation in HTML DB and where would it reside on the item?
    How do I then pass these parameters(Checked box value) using a URL to another page as input?
    The query expects the following
    SELECT ... FROM DIM_DAY
    WHERE
    (:CHK_BOX_MTH IS NOT NULL AND START_DATE = ":SELECTED_DATE")
    OR
    (:CHK_BOX_QTR IS NOT NULL AND QTR = ":SELECTED_QTR");

    Vikas ,Thank you for your reply.
    The only reason I am not able to use the radio group because I am not able to place the items shown adjacent to Month in the page. The From Date and To date (user enterable fields) should appear to the right of the Month radio button and quarter item to the right of the quarter radio button.
    From Date : "Month" "Day" "Year" (should be displayed to the right of Month )
    End Date : "Month" "Day" "Year" (should be displayed to the bottom right of
    Month and above the Quarter line)
    I hope I am making sense.

  • RRI?  How to call ITS URL and pass field value from Bex Query.

    I am doing RRI from query to webaddress,
    i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
    here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
    jump is working from portal(from bex query ivew).
    but i want to pass value(shopping cart value) to above url and want to skip first screen.
    i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
    i tried the diffrent combination of url and field assignment as like below:
    1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    assigned field: GS_HEADER-OBJECT_ID
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
    2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
    assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
    I have seen the source code of that url(inital screen and after entring the value to that screen) too.
    how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
    Thanks and regards,
    Dushyant.

    Declare the gv_orderid in modulepool program.
    And Declare the parameter as import parameter in smartform.
    CALL FUNCTION  lv_form
       EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
         i_input                    =  gv_orderid
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5

  • Call view of another WDA Component and pass the value to it

    Dear Experts,
    I have a wda component1 with window1 and view1
    wda1 has a node1 with one attribute carrid (no default value).
    view1 also has the same structure and is mapped with it.
    (here i have one input field of type carrid)
    This view will be shown in wda2.
    now i have wda2 with window2 and view2 with the same structure & names as above (node & attribute)
    But here the carrid has a default value of 'AA'(so that when view1 is displayed in wda2,data is passed from here wda2).
    in wda property->used components i have used wda component1
    in view property->used components i have used wda component1
    view2 has a viewcontainer.
    In window2, in the view container i have embedded the view1 of the wda1.
    In the component2 context node, the default value of carrid is AA.
    when i have executed the application of wda2, it was showing the input field of view1 of wda1.
    but it was empty ie., had no value (AA).
    Now My problem is if i have the value AA in wda2 for the attribute, how does it get passsed to wda1.
    Regards
    Sajid

    Hi Sajid,
    Let me first try to say as to what I thought you were trying to achieve.
    You have 2 components say SUB & MAIN. Now in both the components you are trying to display an input field on your layout. This input field is bound to an context attribute CARRID & you have given it an initial value in only 1 component. (MAIN component) Now within your component MAIN you have an VIEWCONTAINERUIELEMENT & you are trying to display the view from SUB within it. But you end up with the input field from your MAIN view displaying the default value as AA whereas the view from SUB displays a blank input field. You now want to be able to have this input field fetch the value from your MAIN component and get initialized. So if this is your requirement then you can continue reading below:
    1) When you create your context at component controller level in component MAIN you have a property for the node which says as: "Interface Node" Just checkmark this checkbox. When you do this you would be able to share the data within your context nodes across other components.
    2) Specify a default value of AA in the "Default Value" property of the attribute in component MAIN
    3) Now go to your other component SUB which you would like to also get initialised. Define a usage of your component MAIN within this component.
    4) Go to your component controller & create your context node & attribute with exactly the same names as how you had created in your MAIN component.
    5) Do a mapping between the interface controller of your MAIN component & the component controller of your SUB component
    6) You would be able to see that the appearance of the node has changed to an interface node. This means that your SUB component now has an exact replica of your MAIN components context data.
    Test your application after following all these steps & you should be fine.
    Regards,
    Uday

  • Saving and passing SelectOneChoice Values for af: table population

    Hey yall.
    *First things first... I am using the EJB as opposed to ADF BC so any examples involving VO's would not help me at this point and that's pretty much all I have been able to find online when searching for help.  I am using JDev version 10.1.3.1.
    Im having some trouble trying to figure out how to program my command button to return a table using the values acquired from a set of 3 dynamic LOV's. In detail, this is what I'm trying to do but can't get it to work no matter what I do:
    1. I have a page where the user must select an option from each drop down list (there are 3 in all). The 2nd list depends on the 1st and the 3rd list depends on the 1st and 2nd. That part is working fine.
    2. Once all selections are made, the user must then click on execute (my command button on page) to then be taken to another page with a table populated using the values selected in the previous page. The table was created using a method from the data control palette that contains the named queries needed to return results in the table.
    3. My problem is figuring out how to wire the execute button to do the tasks mention in #2 above.
    Any suggestions? Ideas? Help?
    Greatly appreciative... Thanks.

    Hi,
    you can do this from the UI using createWithParams
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    Or by overriding the doDML on the parent EO so you can use an association to update the child records. And of course you could use view links similar. However, the update is recognized on the entity level. And finally, another option - if the tables are not loaded together in an application, is to use a database trigger
    Frank

  • Subreports and passing multiple value param

    I have a main report that has 3 subreports.  It used to take a parameter, which was in each subreport and main report sql command to bring back records pertinent to that param.
    Now report needs to be able to take a multi-value param.  I took it out of sql commands and have record selection handle it in CR directly.  Problem is data is displayed like this
    Params : p1, p2
    for p1 //main (grouping on param here)
      rec1 rec2 // Sub a - displays all records for both param
      rec1 rec2 // Sub b - same
    for p2 // main
      rec1 rec2 // Sub a - same
      rec1 rec2 // Sub b - same
    what I need is
    for p1 //main
      rec1 // Sub a
      rec1 // Sub b
    for p2 // main
      rec2 // Sub a
      rec2 // Sub b
    I am linking main report to subreports on that param field, but subs display the whole nine yards, ie for all given params instead of "current" param.  What to do?

    Please note that this forum is dedicated to all other development-related questions which are not directly addressed by other forums. This includes Business Objects SDKs, products, or technologies which do not fall under BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server, or Crystal Reports (for example Desktop Intelligence SDK, Universe Designer SDK, Portal Integration Kits, Java User Function Libraries, and other third party technologies or development languages).
    Your query appears to be related to development of reports in the Crystal Reports Designer. Please post the query to the Crystal Reports Design forum at this link:
    SAP Crystal Reports
    Thank you for your understanding,
    Ludek

  • Creating a function and passing query value

    I have what I thought was a pretty easy to resolve situation:
    I want to concatenate two query fields, if the 2nd one isn't empty.
    I created a function:
    <cfargument name="q1" value='#query.q1#' />
    <cfargument name="q1a" value='#query.q1a#' />
    <CFSET variables.myPunct = ": ">
    <cfset variables.ResultVar="">
    <cfif Trim(arguments.q1) NEQ "">
    <cfset variables.ResultVar='#arguments.q1#'>
    </cfif>
    <cfif Trim(arguments.q1a) NEQ "">
    <cfif variables.ResultVar NEQ "">
    <cfset variables.ResultVar='#variables.ResultVar &
    variables.myPunct#'>
    </cfif>
    <cfset variables.ResultVar='#variables.ResultVar &
    arguments.q1a#'>
    </cfif>
    <cfreturn variables.ResultVar>
    This is basically just the example they provide in the online
    instruction, with the names changed.
    In the detail band of my report, I have an expression builder
    field containing: report.mytestfunction()
    When I run this, I get: Element Q1 is undefined in ARGUMENTS.
    I've tried this ninety different ways (literally). It seems
    very clear to me that the query.q1 (for that matter, any of the
    query results) are NOT getting passed to the function. I have tried
    making the expression: report.mytestfunction(query.q1). I have
    tried creating an input parameter.
    The documentation on this is ridiculously limited,
    considering that the ability to implement conditional logic depends
    entirely on the "function", as far as I can tell. I can in no way
    get the function to interface with the query results. If is set
    fixed values in the function, as opposed to trying to use the query
    variables, it outputs fine.
    Any ideas?

    That has got to be the only way I DIDN'T try, although I
    could swear I tried that, too. Maybe I didn't have the "required"?
    I don't know. I know it works now. For the record, FUNCTION:
    <cfargument name="q1" required="yes" />
    <cfargument name="q1a" required="yes" />
    <CFSET variables.myPunct = ": ">
    <cfset variables.ResultVar="">
    <cfif Trim(arguments.q1) NEQ "">
    <cfset variables.ResultVar='#arguments.q1#'>
    </cfif>
    <cfif Trim(arguments.q1a) NEQ "">
    <cfif variables.ResultVar NEQ "">
    <cfset variables.ResultVar='#variables.ResultVar &
    variables.myPunct#'>
    </cfif>
    <cfset variables.ResultVar='#variables.ResultVar &
    arguments.q1a#'>
    </cfif>
    <cfreturn variables.ResultVar>
    In the "Detail" band, called function:
    report.mytestfunction(query.q1, query.q1a)
    Thanks for the tip. I'm going to go take a long walk on a
    short pier now.
    max

  • [Ann] HTML and CHM version of FrameMaker 12 Javascript Reference

    Just dropping by (I'm not an FM user) to announce that I have made a conveniently browseable version of the Javascript Reference for FM 12, in the formats HTML (lots of files) and CHM (single file in Windows Help format; non-Windows users will need a CHM viewer such as iCHM for Mac). Thanks go to Rick Quatro (http://frameautomation.com) for his support.
    Downloads are available at Indesign JavaScript Help -- scroll down to "New: FrameMaker 12", and the HTML files can also be browsed online at Adobe FrameMaker-12 Object Model JS: Table of Contents (with additional thanks to John Hawkinson for the generous donation of bandwidth).

    Thank you my brother!

  • How to Pass Click Value to DB using Java

    How to Pass Click Value to DB using Java and display tat
    clicked value row data in flex
    i have created connection with Sql Server using java and drew
    pie chart from values fetched from XML file created by Java
    wat i need is when i click pie chart region (widget) i should
    display a alert by giving value of particular widget name and Value
    from Database and display in Flex Alert

    Use AddResource to add Javascript in your BackingBean Code and pass the value to your javascript code.
    JSCookMenu and other dynamic adding of javascript to a JSF-JSP page is done using AddResource....

Maybe you are looking for

  • Find first 3 letters with Form search?

    Greetings I have a search form in which the user types the first 3 letters of a word - the results should display only those words that begin with the letters. What would the correct SQL format be to accomplish this? WHERE myword LIKE '%#Trim(FORM.Ke

  • Looping Problem

    I'm kinda getting confused with my program, my loops are going crazy on me! HELP! I'm posting my whole code, so you can try the program yourself: import java.io.*; import java.io.BufferedReader; import java.util.Vector; import java.util.Iterator; imp

  • AME freezes on "Loading..." and PPro locks up

    I have a project that uses H.264 quicktime video as source.  I'm replacing the audio and exporting the same format but keep running into situations where AME won't render anything. Everything is fine in PPro CS4 (latest updates) but when I try to ren

  • Prime Instant Video error 6205

    I got amazon instant video thinking it would be great to watch the films it offers. It worked for about 7 days, now the error 6205 just pops up and nothing will load. I have followed all of the microsoft troubleshooting steps on the website, yet it s

  • A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.

    Hi, I was running Shoutcast.Sample.Phone.Background in windows phone 8 device.I have got this example from codeplex  http://shoutcastmss.codeplex.com/workitem/826. I have used the code present in above and started running the app.But the stream was n