Make button load script?

I have a comment form and when you hit the submit button on the form it brings you to another page wich launches a script that post's the comment.
Is there a way for me to initiate the script when the button is pressed and not go to the new page and also reload the page my comment was submitted on?

Sure. Just put the script that is on the other page into the first page. You will then need to submit the form page back to itself. If you don't want the page to reload, you would need to use ajax.

Similar Messages

  • Make Button load Words from List

    Hey Guys!!!
    Just a note, I dont know about proramming and I am new to flash so please say you responses in the simplest way possible, thankyou!
    So I am making an app that when you click a button it will randomly select a Who, What, When, Where, and Why from a list that I make.
    So say there is a button that says New Idea.
    When I click the button there is:
    Who:
    What:
    When:
    Where:
    Why:
    Say a small list of who is 1, 2, and 3
    A small list of what is 4, 5, and 6
    A small list of when is 7, 8, and 9
    A small list of where is 10, 11, 12
    And a small list og why is 13, 14, and 15
    How can I make it so when I click the New Idea Button it will select (by random) a who, what, when, where, and why from their lists?
    Please help me saying what to do from making the button make get a word from a list, to what I am asking!
    Please!!!
    Thankyou!!!

    To make a random selection from a list you first have to have the list.  An array makes a good list, so for each category create an array and fill each with whichever choices you intend.
    To randomly pick one of the items in the list you can use the Math methods that Actionscript is supported by.
    var whoList:Array = [1,2,3];
    var randomWho = whoList[Math.floor(Math.random()*whoList.length)];
    Please don't start new postings for the same topic

  • Load Scripts for stress testing any OAF related application

    This may not be the correct forum. However, i'm sure many of you might have used load scripts to stress test your OAF related application.
    Can any of please shed some light on how to make these load scripts for automated testing for finding the performance of OAF appls (like iPro or iExpense)? What tool do we use for these type of Self Serv appls? How can we parameterise some of the session related values inside load scripts?
    Any of your experiences will give me a good start....Thanks

    Answers to these questions are generally dependent on the application server to which you will be deploying, as each application server has its own means of tuning for performance.
    For tuning Sun's App Server 8, see the online Performance Tuning Manual, at http://docs.sun.com/app/docs/doc/819-2561
    // Gregory

  • How to make a button load a sprite from library??

    PLEASE HELP!!
    Hey everyone.. iv been looking for help for a few weeks but cant seem to find the awnsers
    I am trying to create a newspaper that consists of four pages. Each   page i have created and are sitting in the library as sprites. Each page   has buttons that need linking so that when pressed it loads the next   page or page that i want. This is the part i am confused with =/ how do i   make the buttons on each page load the next page (sprite) from the   library??
    Basically i want to no how to make a button load a sprite from the library when clicked. Does anyone no the script for this?
    Thanks for any help

    A question arises as to whether or not you are posting in the right forum.  Sprites are AS3 objects.
    If you want to add movieclips to the stage from the library using AS2, then you need to assign them each an Identifier via right clicking them in the library and selecting the Linkage option... from there you slect the option to Export for Actionscript and then assign the Identifier.
    You then use the attachMovie() method to make use of that Identifier to dynamically load the library object.

  • Using SQL Loader script in a Stored Procedure

    Can I use SQL Loader script in a stored procedure and then execute it from a front-end appl.? The reason for this seemingly convoluted solution is that the users don't want a batch load though the records volume is quite high (around 1 mil). Other loads using ODBC connection or OLE DB seem to be inferior to SQL Loader.

    I would suggest a couple of solutions:
    1. Have a cgi script that can upload the file to the server from a web ui, then have the cgi script call the sql*loader file, and it will insert into the database.
    2. You can try to use External tables. This is avaliable in 9i and onwards. You will be able to make any sql DML on the external table.
    I would normally use sql*loader, move the data to a staging table with nologging, and paralle loading. After it has been loaded into the staging table I would process it into my main tables. Have used this approach with up to 60 million records in one load.
    You can do calls to C procedures, Pro*C procedures through PLSQL, as well as java calls, or use Java stored procedures.
    My experience is that SQL*Loader is the fastest way to load data into the database.

  • Need help in Load script

    Hi All,
    I have recorded a Load script with 5 classes(5 check boxes) and i press select all button,so if script is having 5 classes it will pass and if it is having less than 5 classes it is failing.
    http.solveXPath("web.input.selected",".//INPUT[@name='selected[]']/@value", "3523", 0,EncodeOptions.None);-one checkbox
    Need suggestions what should be done.
    Thanks
    Mahesh

    hi, use this one, it's working, if any thing u want mail to this id [email protected] .
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <script type="text/javascript">
    var newwindow;
    function poptastic(url) {
    newwindow=window.open(url,'name','height=300,width=400,left=100, top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    if (window.focus) {
    newwindow.focus()
    } else {
    newwindow.close()
    } // if (window.focus) {newwindow.focus()} }
    </script>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </HEAD>
    <BODY>
    World Environment
    </BODY>
    </HTML>

  • Cannot load script for the required change in butt...

    I got the email saying Skype will be changed after 15 March.  It says we need the new buttons.  So I go the site, and then there is a big box which says: "cut and paste this" which is:
    <script type="text/javascript" src="http://www.skypeassets.com/i/scom/js/skype-uri.js"></script>
    <div id="SkypeButton_Call_[Removed for privacy]_1">
    <script type="text/javascript">
    Skype.ui({
    "name": "call",
    "element": "SkypeButton_Call_[Removed for privacy]_1",
    "participants": ["[Removed for privacy]"],
    "imageSize": 32
    </script>
    </div>
    So where do I paste this script. Plus I get we need to do on our Ipads as well.

    Hi sheshu0022,
    Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
    The following similar thread is for your reference:
    http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Why did carefully over heating my 4s restore the wifi function? This, after 2 months of mysteriously grey out wifi buttons, loads of time trying to resolve issue with apple tech only to be told I must pay $199 to repair the problem. I'm disillusioned now

    Why did carefully over heating my 4s restore the wifi function? This, after 2 months of mysteriously grey out wifi buttons, loads of time trying to resolve issue with apple tech only to be told I must pay $199 to repair the problem. I'm disillusioned now

    Is the Wi-Fi button greyed out?  Try this article: http://support.apple.com/kb/TS1559
    Also, make a backup to iTunes of the device.  Then restore it as a new device.  If you still have wi-fi greyed out, then contact Apple again, and explain that you believe you have a hardware issue.  They may still ask for a $19 deposit, but if it is actually hardware related, then you won't be charged the $19.  Only if it is software related do you get charged that $19.

  • Error: Failed to load script file; java.lang.ArrayIndexOutOfBound.Exception: 3184

    Script editor was working find when I last used it last week.  Tried to open a script today to make some changes and now I'm getting this error message.  I have uninstalled and re-installed editor, checked the compatibility mode and it wont open the script.  any ideas out there what the problem could be? need some trouble shooting help.
    Error:
    failed to load script file: java.lang.ArrayIndexOutOfBound.Expception: 3184
    Thanks
    Lora

    Hmmm....   I haven't seen that, but I can tell you what I would do if I were you.  This is kind of drastic, but the alternative may be a workstation reimage.
    Open the windows control panel, and open the add/remove programs snap in.
    Uninstall the CRS editor.
    Uninstall all the JRE instances you have.  They may be listed as something like Java (TM) update....   or they may appear as J2SE Runtime....   Check in the J's (it's alphabetical) and uninstall all of them.
    Reboot the machine.
    Download and reinstall Java 1.6.0.17   (This is what's running on my workstation right now, and it works with the editor).
    Reinstall the CRS editor
    Reboot the machine
    Try it and see if it behaves.  If it doesn't, you may need to rebuild the whole thing.

  • Load Script Function

    I see a number of great things on the jQuery site that it offers, but have never understood the process of what to do. I'm sure the new Load Script function simplifies that process, but I'm just plain stuck. Was wondering if Adobe, or anyone, is planning to write out specific instructions, such as getting an accordion menu into a project and making it functional. Once I see and/or hear a process explained thoroughly, it sinks in. Thanks.

    see my blog on this here: http://www.edgehero.com/tutorials/plugins. You can download the samples to see how they are used.  It was using scripts with yepnope but the principle is the same. You can see the code inside the init function and you would use that pretty much the same.
    1- load the script
    There is a tab on the right sie - library - called 'scripts with a plus button.
      Click on the plus ans choose an option - load from a folder or from a URL
    2- Use the plugin as indicated in its API
    For the accordion, using jquery-UI it is pretty simple.
    Here is an example:
    https://app.box.com/s/quwocwbh6i9xx8sf2qkr
    I will update the blog with version 3 and script load in the near future.
    Let me know if you need more help.

  • Macbook want start and makes a load beep

    A friends Macbook wont start, when pressing the power button the macbook goes to a blank grey screen (with no apple logo) and also makes one load beep
    Please post any help
    Sorry but because it wont start cant tell you what operating system or model

    Try booting from the install disk.
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger and later) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    Carolyn

  • TS1587 Intel iMac won't light up and continues to make three load beeps.... What's that about, never happened before.

    Intel iMac won't light up and continues to make three load beeps.... What's that about, never happened before.

    Hello, sounds like bad RAM...
    The following table lists the new tones and their meaning:
    Tone(s)    Description
    1 tone, a 5-second pause, repeat    No RAM installed
    3 successive tones, a 5-second pause, 3 successive tones    RAM does not pass data integrity check
    1 long tone when holding down the power button    Firmware upgrade in process. See About firmware updates for Intel-based Macs for more details.
    3 long tones, 3 short tones, 3 long tones    Firmware restoration from CD in process. See About the Firmware Restoration CD (Intel-based Macs) for more details.
    http://support.apple.com/kb/HT2538

  • Creating SQL-Loader script for more than one table at a time

    Hi,
    I am using OMWB 2.0.2.0.0 with Oracle 8.1.7 and Sybase 11.9.
    It looks like I can create SQL-Loader scripts for all the tables
    or for one table at a time. If I want to create SQL-Loader
    scripts for 5-6 tables, I have to either create script for all
    the tables and then delete the unwanted tables or create the
    scripts for one table at a time and then merge them.
    Is there a simple way to create migration scripts for more than
    one but not all tables at a time?
    Thanks,
    Prashant Rane

    No there is no multi-select for creating SQL-Loader scripts.
    You can either create them separately or create them all and
    then discard the one you do not need.

  • How to make a calc script on a dense dimension ?

    Dears,
    I want to make a calculation script on a dense dimension where :
    - I want to get an input from a member, then make a mathematical calculation , then populate the result in another member at the same dimension .
    For More Clarification :
    I have the following fix
    CALC ALL ;
    FIX ("SAR","Working.V01","Budget2012","FY12","G_10","NM_CAT01","Employee General","BegBalance")
    "Internal Transportation" = "Monthly Transportation"*30 ;
    ENDFIX
    -Internal transportation and monthly transportation are 2 members on FB_account dimension (dense dimension) .
    Waiting for your response, Thanks in advance.

    Dear ,
    I appreciate your feedback . But, My problem is that after executing the calc script , No calculation happens .
    by another means ,
    -If I wrote "Internal transportation" = 500 ; --> It put 500 in it
    -If I wrote "Internal transportation" = "Internal transportation" * 100 ; --> No calculation happened but it executed successfully
    -if I wrote "Internal transportation" = "Monthly transportation" = 500; --> No calculation happened but it executed successfully
    I don't know Why ???

  • How do I make a loading screen like this one?

    Okay, so for my loading screen, I want a block to appear for every 10% loaded (so they'red be 10 blocks at the end).  I know how to make a loading bar, but I'm having trouble making this one.  Any help? Thanks.

    There are probably a number of ways to approach it.  One would be to have a movieclip with 10 frames where a new box is manually added in each frame.  You use the percent loaded information to tell that movieclip which frame to go to.

Maybe you are looking for

  • Why is it not possible to merge apple id's?

    Why is Apple being so stubborn that they will not let us merge two apple id's?  Forget that, I just want to change the primary e-mail address on my NON-MOBILEME apple id to my e-mail address, but for some reason it has a mobileme address in there and

  • Transferring from iPhoto to Aperture, Deleted Library Too Early

    I'm currently moving my entire 20GB photo library from iPhoto to Aperture. I imported all of the photos to Aperture, checked that they all worked right. After playing around with the program some, I decided I really liked it, and (stupidly) deleted m

  • Starting 'Help' fails in PSE8

    I can not start the help system with my XP-computer By pressing F1 or using the menu items. There is no error messages or no mouse time-glass icons showing up. I have reinstalled PSE8 following Adobes instructions using an administrator account. Have

  • 10.3.181.23 via SCUP

    Any idea when Flash 10.3.181.23 will be pushed out to the catalog for SCUP? Additionally, any idea when we might get the plugin handled through the catalog? Not sure why it would only be handing out the activex version, doesn't seem to make any logic

  • How to COUNT number of UNION results ?

    Dear SQL experts, How can I get number of records for this query ? select a.* from ACCDET a where a.instcode='ZZZ' and a.custcode='0000000000000' union select a.* from ACCDET a, CRDACC c where a.instcode = c.instcode and a.accno = c.accno and a.currc