Simple Question (Probably) About Buttons

I am delving into Web programming for the first time. I am
used to event driven programming. How and where do I code for a
button's OnClick event? I want the button to perform an action
OTHER THAN simply a submit.
Just to keep my example simple, let's say I want to open up a
small window which says "Thank You" once the button was clicked.
Where do I put this code.
Thanks in advance for helping a really discouraged and
frustrated newby.

You cannot add such things to Flash objects. That
functionality would have
to be implemented in the object's Actionscript.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"MrJCG1" <[email protected]> wrote in
message
news:ek752i$f5i$[email protected]..
> Thanks. I don't know why I never thought of functions. I
was trying to
> attach
> several lines of code to the onClick event and it wasn't
working. But...
>
> If I create a function called test, what is the correct
syntax to call it?
> Here's what I have. Is this correct???
>
> <object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=5,0,0,0" name="btnAddToCart" width="105"
height="33"
> id="btnAddToCart"
> onclick="Test()">
>
>

Similar Messages

  • Simple question just about any one can answer I need a quick answer.

    Of course there are millions of iPod and iTunes users. and of course many of them want to back up their music, Reformat the same PC and pu the music they bought and legaly on Back onto the same PC.
    I can't be the first person in iPod history to re-format.
    So do I De-Authorize my PC "Before" or "After" I burn a Back up CD.

    Well....You can Use iTunes for Backing up your Music, but I do not favor this mehtod.
    It works fine for music files BUT: I prefer more control and completeness over my backup process. It is also very important to note that a large limitation of using iTunes to manage the backup is that the iTunes method does not create or maintain backups of the two meta-data files (iTunes Library.itl & iTunes Music Library.xml) where your Playlists, Ratings, Play Counts, etc. are stored. See: What are the iTunes Library files?
    If you are heavily invested in your Library data (Playlists, Play Counts, Ratings, Last Played, Date Added, etc.), it is crucial that you also make and archive multiple backups of your ‘iTunes Library.itl’ file.
    If your music is located under one common Folder (e.g.-‘iTunes’), then it is easiest to physically copy that folder and all its sub-folders in one simple process. It can be done quickly, and incrementally – several times a day, when necessary. In the case of any data loss, just re-copy your entire (or partial) music library back to wherever it was, placing it in the main Folder that the previous iTunes expected. Along with the ‘iTunes Library.itl’ metadata file, this completes a full ‘restore’ of your music to the time of your last backup.
    Use of a backup software program will greatly help. It will allow you to easily perform incremental backups of only the files that have changed. WinXP has such a facility built-in. I use a free program called FileSync ( http://www.fileware.com ). There are many out there. Some use Zipped files or proprietary formats, others use standard file formats. I like FileSync as it uses normal file formats that can be viewed/managed via any Windows program or utility.
    iTunes Files to Backup (anytime you make additions or changes to the Music or Library that you want to retain)
    1) All music files in their current folder structure (usually located in and under the ‘iTunes Music’ folder)
    2) The Library database file: ‘iTunes Library.itl’ located in the ‘iTunes’ folder
    3) The Library XML file: ‘iTunes Music Library.xml’ located in the ‘iTunes’ folder
    4) Any XML playlist files you created for Playlist retention
    5) The two iTunes.pref files (optional)
    -- C:\Documents and Settings\<your username>\Application Data\Apple Computer\iTunes\iTunes.pref
    -- C:\Documents and Settings\<your username>\Local Settings\Application Data\Apple Computer Inc\iTunes.pref
    6) The XML file of Ratings, Play Counts and Last Played attributes saved from the main Library and created by Otto’s SaveRatings script (also optional, but recommended):
    “Download this: http://ottodestruct.com/itunes/SaveRatings.zip . It's a program, just run it like any other program. Run it on the machine where you're copying the info from BEFORE you move the files to the new machine. Click the "Save Ratings" button and it'll create a ratings.xml file. Now when you move the files, move the program and this file as well. Then after you make your new iTunes library, run it again and click the "Restore Ratings" button. Voila, all your information is back in the Library. Well, most of it anyway, it's not perfect. It'll tell you what songs it couldn't figure out though, and there's usually not very many.”
    Here's a list of possible ways to copy your music files from your main iTunes computer to another storage medium for backup purposes.
    1) Use an External Hard Drive to store the complete iTunes meta-data files and underlying Music Folder structure and songs from your main computer. They are quite cheap now, for their storage volume. This is my preferred main medium.
    2) If you have Two Computers:
    2a) Connect them through a router
    2b) Connect them using a Direct (w/Mac) or Crossover (PC/PC) Ethernet cable (See: http://www.ifelix.co.uk/tech/3001.html)
    2c) Connect them via a USB-to-USB Network Bridge. See: here as an example.
    Copy the files and folders from one computer to the other. Use the second PC as your backup repository.
    3) Burn several DVDs (at 4.7+ GBs each) with the music data files and store them safely. Re-writable ones are good for backup purposes (if your DVD drive can manage these).
    4) Burn 6x more on CDs (at 700MB each) than in #3 above and store them safely in more space Re-writable ones are good for backup purposes (if your CD drive can manage these).
    5) Use a larger USB Flash drive (1GB – 4+GBs) to store the files only if you have a small amount ripped music or have multiple and/or jumbo USB drives at your disposal that will fit your music library.
    6) Use the Second Internal Hard Drive (if available) of your PC -- not optimum, as you really want to physically separate the storage of backups from the originals, but good as a tertiary storage device.
    By keeping only one copy of your music (other than on the iPod), you are not truly 'backed-up' and are running a high risk of losing your music. Music files on just the iPod and the computer is not considered having any backup. If you cannot store your complete music files on the computer’s internal HD, then create and maintain at least two external sets (any multiple combinations of ExHDs, DVDs, CDs).
    You need at least two full sets of your music, not including what is on the iPod:
    -- One full set on the PC within iTunes (on internal HD or ExHD)
    -- One full set on an separate external backup medium (CD/DVD/ExHD/other)
    -- One (full or partial) set on the iPod
    It is a good policy to backup all your important data. It is a very smart policy to back it up on more than one medium.
    External hard drives now run less than $100 for 200-250GBs of storage. Very cheap backup insurance, indeed. See This Link

  • Simple question with a button action

    Im having some slight problems setting up my script so that when you click on the button a method is performed called encrypt().
    I have...
    public class Easy_Encrypt {
    public static void main(String[] args) {
    ..Class stuff
    JButton convert = new JButton("convert text");
    encrypt() { ..stuff inside }
    How do I make it so when you press convert it does the function encrypt() Ive searched through java's documentaries but every script does'nt work.....

    try this:
    convert.addActoinListener(new
    ActionListener()
    public void actionPerformed(ActionEvent event)
    encrypt()

  • Simple question (?) about monitor size

    I'm trying to work out what monitor I would need to view 1 or 2 A4 documents at 100% viewed in vertical/portrait.
    Will Apples 23" be sufficient, or would the 30" be neccesary?

    That's right. A few applications let you enter the actual dpi of the screen so that 100% shows 100%. But not many apps do, so one inch on the screen ruler rarely matches up with one inch on paper. Apple's Scalable User Interface technology may in the future allow us to calibrate the screen to take the actual display dpi into account at the system level. Maybe in Leopard.

  • Simple question.. about synchronizing

    what's the difference between these two?
    synchronized myMethod () {
      code
    myMethod() {
      code1
    synchronized(this){
       code2
      code3
    and on the second format, is it always 'this' in synchronized()?
    thank you                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi.
    In your first implementation of myMethod(), the lock (on 'this') is acquired upon entry to the method and released upon exit. Only one thread at a time may execute myMethod().
    In your second implementation, 'code1' and 'code3' are not synchronized so that many threads could execute 'code1' and/or 'code3' concurrently. You acquire the lock (once again, on 'this') when executing code2.
    Regards,
    Lance
    Lance Walton - [email protected]
    Team In A Box - Software without Tragedy
    http://www.teaminabox.co.uk

  • Simple question about telnet and characters

    Hi all,
    We've installed for the first time a SUN machine. So i think it's for a SUN expert a very simple question.
    Normally when i type a special character it will be dispayed like " � " [alt+132]
    But when i use a telnet session and i type "alt+132" i get a "d" and not "�".
    Does someone know where i must start to find out how this works ?
    Thanks you very much.
    ESP

    This is probably related to the locale your server is in. I don't remember the default locale a box is installed in if you don't specify. I think its "C". I use the UTF-8 or en_US.ISO8859-1 locales at home. At work, usually C but sometimes applications may require UTF-8. BEA Weblogic required this for a project a while back. This is defined in /etc/init/tz.

  • Simple question about flex and AS 3.0

    Hi, this might sound like a simple question so I apologize...
    I have both a copy of flex 2 and 3, and i want to simply code in AS
    3.0 not mxml. I referred to the help of both flex 2 and 3, and all
    i could come up with is "you can add dynamic behavior to your
    documents using actionscript", which means to me, you only write
    your functions in AS and create instances with mxml (...ugh).
    personally, i find mxml to be ugly (mainly because it looks like
    html to me), and i'd rather not use it. coming from programming in
    an IDE in Java, it seems like it would be nicer to have something
    similar, all the while having the power and cool features of flash.
    I'm not fully educated in this matter so i understand that i could
    be totally wrong.
    i mean, if i have to code in mxml, i will. i'm a web
    programmer for a living, and if a more experience programmer said
    something like "if you don't code mxml in flex, you'll never get a
    job coding in flex", i would trust the advice, and learn the ugly
    code. :)
    yes, i do have Flash cs3, it's great but it seems like a pain
    to me the way you organize classes.... i've only seen a few
    tutorials, ones that explain how you cannot simply import a custom
    class, you have tell your movie to link to it, put it in the same
    directory, or manually name the package, it's sort of confusing.
    my main point here is that i'm very eager to start building
    apps in straight AS 3.0 instead of using flash cs3 (for some
    projects), and it would be cool to get some help or be pointed in
    the right direction.
    to simplify:
    can i write AS 3.0 and only as 3.0 in flex 2 or 3? how? can
    you link me to a tutorial? any advise?
    thanks!

    Hey William, thanks for the post. It's a great coincidence
    because I'm reading that book as well. I'm about half way through
    it, and I love it. I installed mxmlc on my linux box and am writing
    pure AS 3 apps. I think that's the way to go, though I know it's
    not for everybody.
    My problem with mxml is that it has a weird syntax for
    function calls, and it's not as 'intuitive' for a person like me,
    who came from C++ and Java programming in the past. I like writing
    programs in the C++ and Java style syntax, and since so many other
    languages use a similar syntax, I don't see any reason to learn the
    nuances of mxml, unless I was getting paid to do it. As far as I
    can tell there is no benefit.
    I hate using Flash to write flash apps as well, I feel like
    they become messy and confusing, especially when trying to write an
    OOP application. I only use it if I want to move an object in a
    very specific way and can't do it with the Tween methods.

  • Simple question about mount and delay script

    Hello, I have a simple question about mounting volumes on start up.
    My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs)
    I use this script (daily) for serveral connections with external volumes I always need the connect to. ( In the script I use this code 3 times for other locations) I do this on start up.
    set Uname to "XXX"
    set Pword to "XXX"
    set someVolume to "afp://XXX.XXX.XXX.XXX/XXX/XXX
    mount volume someVolume as user name Uname with password Pword
    (same code for 2 other locations)
    When i do this on start up sometimes the script says there is no connection possible. I guess it's because on start up the connection isn't there. And 1 minute later when computer is total ready the connection is ok. When I run the script then It works. Just sometimes ( In the morning) 'It' want to connect but the script stops. When i do it manually(I run the script again) it works just fine.
    Is it possible that I need a delay? Can someone explain this?
    How would I make a delay handler for this script? Is that the best solution?
    Thanks in advance. This is something small i'm wondering about.
    Colin

    BTW, If you saved the script as an application +(and not as an application bundle)+ you could drop the script on to *Drop Script Backgrounder* (freeware).
    Then the script would run in the background, so, you wouldn't see it running in the Finder.
    <http://www.macupdate.com/info.php/id/7922/drop-script-backgrounder-x>
    Tom

  • Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    Probably incredibly simple question, so sorry. I have just changed e-mail after many many years and I want to e-mail everyone in my mac mail client with the new e-mail address at the same time.

    If you are using Address Book, open it, create a new Group, select all you contacts by click the top one while holding down the shift key and then select the last one. Drag the contacts to the group, then send an e-mail to the group.

  • A simple question about combo box

    Dear All,
    Just got a simple question about combo box: I have one of these selectors with labels based on filtered rows from a table.
    Is it possible to have one more label that would select all options?
    Like:
    Product A
    Product B
    Product C
    All Product
    Many thanks for your help!
    Gilles

    Hi Gilles,
    The purpose of ComboBox itself to select single option out of many.
    For your purpose, you may have to use "List Builder" which can accomodate 1 or more  to select.
    Please revert for more clarification if you need.
    With best wishes
    BaaRaa.

  • A simple question about performance!

    Hi! I have a simple question about performance. Suppouse that you have a servlet or a class with DB access, and you need to use a value several times in that page. What is best, to assign the value from say, a resultset or a request.getParameter() to a variable or to call the resultset or the request every time you need to retrieve that value? Which option uses less memory, which is faster, etc.?
    Hoping the best fou u
    Raul

    If you need more values from a db, the best is to open some connections (connection pool) and use the for accessing the db.
    To get the data only once, open the connection, get the data, store the data whereever you want: variable (class), hidden control (if you want to send from one page to another by request) and close the connection as quicky as possible.
    The advantage of the first method is that the most time consuming activity (connections opening) is done only once.

  • A simple Question about % in CR Chart!

    Hi, I have another simple question.
    When i use SQL to storage data and wanna Crystal Report to display the data in chart using %
    which data type should i use?
    float or string?
    and I found when i use 0.12 as 12% in database , It could not display in Crystal Report line chart normally.
    What should I do??
    Please Help!!!
    Thank you VERY MUCH!!!

    If you have the datatype as string from your database then try adding the string field as a summary field in chart and select maximum instead of count and if you have them in number format then you can directly select the percentage in chart.
    Regards,
    Raghavendra

  • Simple question about generate proxy

    Hi guys...
    This is a simple but a truly simple question....
    When trying to create a proxy from our messages interfaces using SPROXY, i'm not able to get the Software component versions that were used from the sld...
    Do I have to export them? Or import them?

    Hi Goncalo,
    Check if it helps...
    Re: SW component version not visible in SPROXY
    Regards
    Anand

  • Simple question about JAVA path

    Hi. I have a simple question , but I spent several hours trying to find an answer.
    How do I know the location of the java executable which is used by Concurrent Manager.
    I already know that running which java under application user will not give me the correct answer

    Maybe you can try like this:
         public String getPath(){
              Class cls=getClass();
              String className=cls.getName();
              String packageName=cls.getPackage().getName();
              System.out.println(className);
              System.out.println(packageName);
              String newClassName=className.replaceAll("\\.", "/");
              String resouceName=newClassName+".class";
              System.out.println(resouceName);
              URL url;
              url=cls.getClassLoader().getResource(resouceName);
              String path="";
              path=url.getFile();
              return path;
         }

  • Simple Question about a web service

    Hi,
    I have been playing with Java and the graphics api to build some multitouch desktop apps, but now I have a new project but don't even know where to begin.
    What would be the best way to create a very simple webpage with buttons that when clicked would send a message or call a service that would then call a method in my java code running on my server?
    Is Soap the way to go? Is there any simple tutorial explaining what I'd like to do? I just don't even know what to search for :/
    Thanks!
    Edited by: phil.harlow on Jul 13, 2009 10:22 PM

    Hi Tolls,
    That's exactly it. A very simple ajax page with buttons, that when clicked, send a message to my server so I can run some java code. Eg, I want to have a "hello world" button on a webpage that I view on my iphone, and when I click it, I want to see a hello world trace out on my server. To be more specific I just got a java app working on my server that will control x10 (automated lighting) via usb and I want to build a webfront to turn lights on/off.
    I actually got it working using GWT, but I think the servlets are what I want to do. (I think) GWT doesn't give me full control over the page and only lets me use prebuilt js objects. Plus, I have to keep eclipse and the GWT tool thing open while the server is running.
    I just setup my tomcat installation before trying GWT, do you know of any simple tutorial for starting with servlets to accomplish this simple task? I will start browsing now.
    Thanks for all your help!

Maybe you are looking for

  • Unable to open  Obiee IBOT pdf file

    Hi, The IBOT was sending the file in PDF format through mail, while i tried to open the file its showing the popup message " The Adobe Reader couldnt open the file xx.pdf file, because it is either not a supported file or because the file is being da

  • How do I transfer the credit from one account to another?

    the e-mail address of my old account does not exist anymore. So I can't change account names and/or e-mail addresses or passwords.

  • What does it take to go from an Intune Trial version to an actual Licensed Version

    Hello All, I have intune trail account and now i want to go buy subscription. so can i merge my trial version account details in to new subscription? or will there be any difference in this like azure? Thanks

  • Table positioning in Pages 5.5

    Hello, In the new pages 5.5, Apple apparently changed the way tables are distributed in multiples pages. You can't distribute a table between two pages as before. Someone knows how to solve the problem? I need a table that continues from the end of o

  • Hp dv6 2137-el --a strange click from hard disk

    Hi everybody , sorry for my bad english , i need help. March 13 I bought an HP 2137-el DV6 the hard drive makes a sound like a click, usually discontinuous. I went by the seller and pointed out the problem give me a new one, now with the new PC I hav