Please help me...Javascript question

Hi everyone,
what i am trying to do is..
EX:
TABLE: EMP
empno empname sal entered_by
1 john 1000 user1
I have a form on the table EMP.The users want to enter the same record again(because mutiple users enter the same record) but want an alert message when they hit the create button like.. Eg:
when user2 is trying to enter this data..
empno: 2 (generated by sequence)
empname: john
sal: 1000
he wants to see an alert message like: THE Record is Already exists in the database which was entered by USER1 (But he can enter the same record)
what i did is.. I have a javascript which calls the application process (PL/SQL) where it check whether the data entered is already there in the database and returns back an alert message like this:
JAVASCRIPT:
==========
<script language=javascript>
function  f_insert_record()
        var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=INSERT_RECORD',0);
        get.add('P2_EMPNAME',html_GetElement('P2_EMPNAME').value);
        get.add('P2_SAL',html_GetElement('P2_SAL').value);
        gReturn = get.get();
        var a = gReturn.split("|");
        if(gReturn)
            if (a.length > 0) {alert(a[0]);}
        else
            null;
</script>APPLICATION_PROCESS
===================
DECLARE
   l_error   VARCHAR2 (4000);
   V_NAME VARCHAR2(1000);
   V_MSPR_ID NUMBER(15);
   I NUMBER;
   V_MYNUM STRING_OBJ := STRING_OBJ();
BEGIN
  FOR C1 IN (SELECT DISTINCT entered_by ENTERED_BY_USER_NM 
from emp 
WHERE  
  empname = :P2_EMPNAME
  AND sal  = :P2_SAL
  ) LOOP
    V_MYNUM.EXTEND;
    V_MYNUM(V_MYNUM.COUNT) := C1.ENTERED_BY_USER_NM;
  END LOOP;
  V_NAME := NULL;
  l_error := NULL;
  FOR I IN V_MYNUM.FIRST..V_MYNUM.LAST LOOP
    --dbms_output.put_line(V_MYNUM(I));
    V_NAME := V_NAME || '   ' || V_MYNUM(I);
  END LOOP;
  IF V_NAME IS NOT NULL THEN
    l_error := 'The record already exists in the database which was created by '||V_NAME;
  END IF; 
  HTP.PRN(l_error);
END;everything works fine...when i have a ONBLUR event on the SALARY field.
But i want the same thing to be achieved with the ONCLICK event on the CREATE button (Template based button).
The code i have shown over here is just an example...But the requirement is the same..Multiple Users can enter the same record but they want to see an alert message like this record was entered by USER1,USER2.
The only think i am not able to figure out is the ONCLICK event on that create button.
I tried like this Target: URL
javaScript:(f_insert_record();doSubmit('CREATE');)
I am not getting the alert message.
Please help me to solve this
thanks
phani

damn it! Those little quotation marks.....
I already did figure it out awhile after I posted my question
Thanks anyway!

Similar Messages

  • Please help me jmf question

    Hi i want to create custom data source as i have read in different post and also on sun site
    I tried to create one one for my self,
    where am getting stream from tcp port.
    before that i test the data by using socket programming, i saved the input stream into file and played and its working fine and then i transfer that file using avtransmiter2.java and it work fine again its mean it confirm that the data i am getting from skype is working fine . now my question is how to get that input stream and instead of saving to the file i can play it using jmf player or send it on rtp session. i read different post how to create custom data source from inputstreams but have not work for me ... i modified a user code posted http://archives.java.sun.com/cgi-bin/wa?A2=ind0106&L=jmf-interest&D=0&P=25865 in that post some body recommanded to implement seekable so i implemented that one als in that code..... below is the code
    the error is
    LoadInputStream.loadBytes() - realizing player
    Exception in thread "JMF thread: com.sun.media.PlaybackEngine@8ed465[ com.sun.media.PlaybackEngine@8ed465 ] ( configureThread)" java.lang.NullPointerException
    at com.skype.sample.InputSourceStream.read(InputSourceStream.java:89)
    at com.sun.media.parser.BasicPullParser.readBytes(BasicPullParser.java:142)
    at com.sun.media.parser.BasicPullParser.readBytes(BasicPullParser.java:114)
    at com.sun.media.parser.BasicPullParser.readInt(BasicPullParser.java:191)
    at com.sun.media.parser.audio.AuParser.readHeader(AuParser.java:109)
    at com.sun.media.parser.audio.AuParser.getTracks(AuParser.java:76)
    at com.sun.media.BasicSourceModule.doRealize(BasicSourceModule.java:180)
    at com.sun.media.PlaybackEngine.doConfigure1(PlaybackEngine.java:229)
    at com.sun.media.PlaybackEngine.doConfigure(PlaybackEngine.java:193)
    at com.sun.media.ConfigureWorkThread.process(BasicController.java:1370)
    at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
    i need urgent help to this matter so please help me in that i would be very thankfulll ......
    below is the code
    skype use the standard audio format
    Audio format
    File: WAV PCM
    Sockets: raw PCM samples
    16 KHz mono, 16 bit
    Note
    import javax.media.*;
    import java.io.*;
    import java.net.ServerSocket;
    import java.net.Socket;
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class LoadInputStream extends JFrame implements ControllerListener {
    private Player player;
    /** Creates new LoadInputStream */
    public LoadInputStream() {
    try{
    // declaration section:
    // declare a server socket and a client socket for the server
    // declare an input and an output stream
    ServerSocket SkypeServer = null;
    DataInputStream is;
    Socket clientSocket = null;
    try {
    SkypeServer = new ServerSocket(4447);
    catch (IOException e) {
    System.out.println(e);
    // Open input stream
    clientSocket = SkypeServer.accept();
    is = new DataInputStream(clientSocket.getInputStream());
    loadBytes(is);
    setBounds(100, 100, 300, 300);
    setVisible(true);
    catch(Exception e){
    System.out.println(e);
    /* Loads the given byte [] into the MediaPlayer and starts playing it immediately. */
    public void loadBytes(InputStream is){
    DataSource ds=new DataSource(is);
    System.out.println("LoadInputStream.loadBytes() - Creating DataSource (InputStream)");
    System.out.println("LoadInputStream.loadBytes() - Creating Player");
    try {
    player = Manager.createPlayer(ds);
    } catch(NoPlayerException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch(IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    System.out.println("LoadInputStream.loadBytes() - Adding Controller Listener");
    player.addControllerListener(this);
    System.out.println("LoadInputStream.loadBytes() - realizing player");
    player.realize();
    public static void main(String[] args){
    new LoadInputStream();
    public void controllerUpdate(javax.media.ControllerEvent e) {
    if(e instanceof RealizeCompleteEvent){
    System.out.println("Adding visual component");
    getContentPane().add(player.getVisualComponent());
    player.start();
    =============================Datasource==========================================================
    import java.io.*;
    import java.nio.ByteBuffer;
    import javax.media.*;
    import javax.media.protocol.*;
    public class DataSource extends PullDataSource {
    private InputStream is;
    private byte [] bytes;
    /** Creates new MediaViewerDataSource */
    public DataSource(InputStream is) {
    super();
    this.is = is;
    try{
    int byteCount = is.available();
    bytes = new byte [byteCount];
    is.read(bytes);
    catch (Exception e){
    System.out.println(e);
    public PullSourceStream [] getStreams() {
    PullSourceStream [] streams = new PullSourceStream [1];
    InputSourceStream iss = new InputSourceStream(new ByteArrayInputStream(bytes), new FileTypeDescriptor(ContentDescriptor.RAW_RTP));
    streams[0] = iss;
    return streams;
    public void connect() {}
    public void disconnect() {}
    public String getContentType() {
    return new String("audio.x-wav");
    public MediaLocator getLocator() {
    return null;
    public void initCheck() {}
    public void setLocator(MediaLocator source) {}
    public void start() {}
    public void stop() {}
    public Object getControl(String s){
    return null;
    public Object [] getControls(){
    return null;
    public Time getDuration(){
    return null;
    =================================InputStream======================================================
    import java.io.InputStream;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.PullSourceStream;
    import javax.media.protocol.Seekable;
    import javax.media.protocol.SourceStream;
    * Build a source stream out of an input stream.
    * @see DataSource
    * @see SourceStream
    * @see java.io.InputStream
    * @version %I%, %E%.
    public
    class InputSourceStream implements PullSourceStream, Seekable {
    protected InputStream stream;
    protected boolean eosReached;
    ContentDescriptor contentType;
    protected ByteBuffer inputBuffer;
    * Construct an <CODE>InputSourceStream</CODE> from an input stream.
    * @param s The input stream to build the source stream from.
    * @param type The content-type of the source stream.
    public InputSourceStream(InputStream s, ContentDescriptor type) {
    stream = s;
    eosReached = false;
    contentType = type;
    * Get the content type for this stream.
    * @return content descriptor for the stream.
    public ContentDescriptor getContentDescriptor() {
    return contentType;
    * Obtain the content length
    * @return content length for this stream.
    public long getContentLength() {
    return SourceStream.LENGTH_UNKNOWN;
    * Query if the next read will block.
    * @return true if a read will block.
    public boolean willReadBlock() {
    if( eosReached == true) {
    return true;
    } else {
    try {
    return stream.available() == 0;
    } catch (IOException e) {
    return true;
    * Read a buffer of data.
    * @param buffer The buffer to read data into.
    * @param offset The offset into the buffer for reading.
    * @param length The number of bytes to read.
    * @return The number of bytes read or -1 indicating end-of-stream.
    public int read(byte[] buffer, int offset, int length) throws IOException {
    int bytesRead = stream.read(buffer, offset, length);
    if( bytesRead == -1) {
    eosReached = true;
    inputBuffer.get(buffer,offset,length);
    return bytesRead;
    * Turn the stream off.
    * @exception IOException Thrown if there is a problem closing the stream.
    public void close() throws IOException {
    stream.close();
    * Return if the end of stream has been reached.
    * @return true if the end of the stream has been reached.
    // $jdr: This is a bug. Need to figure out
    // the "correct" way to determine, before a read
    // is done, if we're at EOS.
    public boolean endOfStream() {
    return eosReached;
    * Returns an zero length array because no controls
    * are supported.
    * @return a zero length <code>Object</code> array.
    public Object[] getControls() {
    return new Object[0];
    * Returns <code>null</code> because no controls are implemented.
    * @return <code>null</code>.
    public Object getControl(String controlName) {
    return null;
    public long seek(long where) {
    try {
    inputBuffer.position((int)(where));
    return where;
    catch (IllegalArgumentException E) {
    return this.tell(); // staying at the current position
    public long tell() {
    return inputBuffer.position();
    public void SeekableStream(ByteBuffer byteBuffer) {
    inputBuffer = byteBuffer;
    this.seek((long)(0)); // set the ByteBuffer to to beginning
    public boolean isRandomAccess() {
    // TODO Auto-generated method stub
    return false;
    }

    Use a BufferedImage where you draw the other images.
    You have to know the size.
    For example if the size is (50*50) for each image :
    int width =50;
    int height = 50;
    BufferedImage bufIm = new BufferedImage(width*3,height*3,BufferedImage.TYPE_INT_ARGB);
    Graphics gr = bufIm.createGraphics();
    int k, j;
    Toolkit tk = Toolkit.getDefaultToolkit();
    Image imTemp;
    for (k = 0; k<3; k++) {
        for (j = 0; j<3; j++) {
            imTemp = tk.getImage(imageNames[k][j]);
            gr.drawImage(imTemp,width*k,height*j, this); // replace this by the Image observer you want (this if you are in a panel for example)
    }After that bufIm contains the images as you want and you can paint it on a Graphics.
    Denis

  • Please help me about question security because in my apple id no have for restart or chenge my answer

    please help me about answer security question in my apple id because im forgot for my answer, in my apple id no have for change answer, tell me for this please because i love my iphone.
    <Email Edited by Host>

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (110899)

  • Please help. Javascript to open/place a file onto an open document to a specific layer

    Hello,
    I would like a javascript that would open and place a PDF file to an active document in Illustrator. I would like it to place it to a specific layer, align it to the art board, and then embed it. Can someone please help?
    Thanks in advance.

    This should be close to what you want:
    var sampleFile = new File( Folder.desktop.fullName + "/SampleFile.psd");
    if (sampleFile.exists) { app.open(sampleFile); }
    else { alert("Could not locate sample file on the desktop."); }
    Tested it out on a Windows machine with no problems.

  • Urgent!! Please Help! Security Question!

    I have forgotten the answers to my security questions (all three). As i made my Apple ID over 3 years ago, it did not ask me for a recovery e-mail adress. Is there any way i can reset the answers without the e-mail? Please Help!!

    Welcome to the Apple Community.
    ou should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • HELP PLEASE HELP! urgent question with an easy answer!!!!

    Hello;
    I designed a JFrame game, that uses gif files as ImageIcons. The game works perfectly when I run it from console with the java.exe command.
    However; now I want to create a wraparound and run the JFrame in the Internet Explorer from an applet. So I created a new file that extends JApplet; this new file creates a new object of the JFrame-game's class and show()'s it.
    And I created an HTM file that runs the JApplet class. However, the internet explorer cannot open the applet because it has trouble loading the pictures (gif files). How can I load the pictures from my applet for my frame???
    I dont want to change the Java security file. I just want to make the images accessible by my applet. I cannot use commands like setImage in my applet because my JFrame sets the Images.
    (I repeat)My JApplet only invokes an object of my JFrame class and shows it.
    PLEASE HELP PLEASE PLEASE..
    Thanks..

    OK; let me tell you the whole thing. My pictures are in the same folder for sure.
    My JFrame reads pictures and assigns JButtons pictures. when I run the frame there are 16 buttons with the same picture, and when I click the buttons there is a listener in the JFrame that changes the pictures. Simply put, the JFrame has no trouble finding and loading the pictures.
    Then I created a JApplet as follows:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MemoryApplet extends JApplet
    public void init ()
         GameFrame ce = new GameFrame ();
         ce.show ();
    GameFrame is the name of the JFrame class. Then when I try to open the applet using IE, it gives the following error:
    Exception: java.security.AccessControlException: (javax.io.FilePermission back.gif read)
    back.gif is one of the gif files that are used in GameFrame

  • Please Help !  Simple question !

    Hi all,
    Please anybody tell me why the following line
    <input type="text" name="price" value="<%=myBean.getPrice()==0.0?"":myBean.getPrice()%>">gives me the error:
    incompatible types for ?: neither is a subtype of the other
    second operand: java.lang.String
    third operand : float
    out.print(myBean.getPrice()==0.0?"":myBean.getPrice());
    ^
    1 error
    I am doing this in JSP.
    Please help and reply soon.
    Please reply soon.................
    Waiting for your reply !
    Thanks
    amitindia

    Like annie said, change the method to return a String (doubt if you want this)
    or
    <%=myBean.getPrice()==0.0?"":""+myBean.getPrice()%>

  • Pretty please help, Quick newb question...

    I have a dell axim x50. I have the jad and jar files. How can I make my application work on the PDA??
    I've simulated with toolkit, and such.
    Please Please help ><

    The act of getting the jar from a pc to the device is called "provisioning"
    Some devices let you do this over bluetooth or IR and many others only allow it over http.
    I used to use some free web midlet hosting sites but the ones i used have been shut down now. (do a search on the net for "Free Midlet Hosting")
    These days i set up a web server on my development machine and then just use the phones wap browser to download the program.

  • Please Please help with JavaScript and Actions

    Hello!
    Is there a way to perform a saved Action from the Action Pallette using a JavaScript script? I know there is a way to do it with Visual Basic.
    Is there a way to run a Visual Basic script from a JavaScript script?(which could be a potential workaround if JavaScript CANNOT call on an Action)
    Is there a way to call on a JavaScript from an Action?
    Here's specific information on my problem:
    I am using Illustrator CS2 on a PC
    I have written all of the JavaScript scripts that I need to perform various layer selection procedures and they all work perfectly. I have placed them in the Presets > Scripts folder so that they appear in my file menu.
    I wrote a very long action that called on these scripts (using Insert Menu Item > then selecting the script by going File > Scripts) sequentially and did some selecting and copy-pasting and applying graphic styles in between scripts. The Action worked PERFECTLY and ran all the scripts I needed to an automated a process that usually takes me an hour in less than five minutes!
    I saved the actions and saved the file.
    After closing Illustrator all of the lines of the action that called on scripts disappeared! It seems this is a known bug...I currently know of no workaround.
    Can anyone help with any of the following things:
    1. Getting actions to SAVE the commands to run javascripts
    2. Writing a JavaScript that runs an Illustrator Action
    3. Writing a JavaScript that runs a Visual Basic script that runs an Illustrator Action.
    I spent three days learning the basics of JavaScript (mostly by trial and error) and successfully wrote all the scripts I needed...I was overjoyed! But now that I've closed illustrator my actions to run said scripts do not work. PLEASE ADVISE!!!
    Thanks in advance,
    Matthew

    try next
    1)if possible split JS-code into 2 parts (before/after action)
    2)make vbs script with contents
    Set appRef = CreateObject("Illustrator.Application.3")
    appRef.DoJavaScriptFile("C:\my1.js")
    appRef.DoScript(Action As String, From As String)
    'add wait while ActionIsRunning
    appRef.DoJavaScriptFile("C:\my2.js")
    3) run vbs (File > Scripts or double-click).

  • Please, help a newbie:  Question about animating expanding containers

    Hi All,
    Short Version of my Question:
    I'm making a media player that needs to have an animation for panels sliding up and down and left and right, and the method I've been using to do this performs far slower than the speed I believe is possible, and required. What is a fast way to make a high performance animation for such an application?
    Details:
    So far, to do the animation, I've been using JSplitPanes and changing the position of the divider in a loop and calling paintImmediately or paintDirtyRegion like so:
    public void animateDividerLocation( JSplitPane j, int to, int direction) {
    for(int i=j.getDividerLocation(); i>=to; i-=JUMP_SIZE) {
    j.setDividerLocation(i);
    j.validate();
    j.paintImmediately(0, 0, j.getWidth(), j.getHeight());
    The validate and paintImmediately calls have been necessary to see any changes while the loop is going. I.e., if those calls are left out, the components appear to just skip right to where they were supposed to animate to, without having been animated at all.
    The animation requirement is pretty simple. Basically, the application looks like it has 3 panels. One on the right, one on the left, and a toolbar at the bottom. The animation just needs to make the panels expand and contract.
    Currenly, the animation only gets about, say, 4 frames a second on the 800 MHz Transmeta Crusoe processor, 114 MB Ram, Windows 2000 machine I must use (to approximate the performance of the processor I'll be using, which will run embedded Linux), even though I've taken most of the visible components out of the JPanels during the animation. I don't think this has to do with RAM reaching capacity, as the harddrive light does not light up often. Even if this were the case, the animation goes also goes slow (about 13 frames a second) on my 3 GHz P4 Windows XP if I keeps some JButtons, images etc., inside the JPanels. I get about 50 frames/sec on my 3 GHz P4, if I take most of the JButtons out, as I do for the 800 MHz processor. This is sufficient to animate the panels 400 pixels across the screen at 20 pixels per jump, but it isn't fast or smooth enough to animate across 400 pixels moving at 4 pixel jumps. I know 50 frames/sec is generally considered fast, but in this case, there is hardly anything changing on the screen (hardly any dirty pixels per new frame) and so I'd expect there to be some way to make the animation go much faster and smoother, since I've seen games and other application do much more much faster and much smoother.
    I'm hoping someone can suggest a different, faster way to do the animation I require. Perhaps using the JSplitPane trick is not a good idea in terms of performance. Perhaps there are some tricks I can apply to my JSplitPane trick?
    I haven't been using any fancy tricks - no double buffering, volatile images, canvas or other animation speed techniques. I haven't ever used any of those things as I'm fairly new to Swing and the 2D API. Actually I've read somewhere that Swing does double buffering without being told to, if I understood what I read. Is doing double buffering explicitly still required? And, if I do need to use double buffering or canvas or volatile images or anything else, I'm not sure how I would apply those techiniques to my problem, since I'm not animating a static image around the screen, but rather a set of containers (JSplitPanes and JPanels, mostly) and components (mostly JButtons) that often get re-adjusted or expanded as they are being animated. Do I need to get the Graphics object of the top container (would that contain the graphics objects for all the contained components?) and then double buffer, volatile image it, do the animation on a canvas, or something like that? Or what?
    Thanks you SO much for any help!
    Cortar
    Related Issues(?) (Secondary concerns):
    Although there are only three main panels, the actual number of GUI components I'm using, during the time of animation, is about 20 JPanels/JSplitPanes and 10 JButtons. Among the JPanels and the JSplitPanes, only a few JPanels are set to visible. I, for one, don't think this higher number of components is what is slowing me down, as I've tried taking out some components on my 3GHz machine and it didn't seem to affect performance much, if any. Am I wrong? Will minimizing components be among the necessary steps towards better performance?
    Anyhow, the total number of JContainers that the application creates (mostly JPanels) is perhaps less than 100, and the total number of JComponents created (mostly JButtons and ImageIcons) is less than 200. The application somehow manages to use up 50 MBs RAM. Why? Without looking at the code, can anyone offer a FAQ type of answer to this?

    You can comment out the lines that add buttons to the panels to see the behavior with empty panels.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    public class DancingPanels
        static GridBagLayout gridbag = new GridBagLayout();
        static Timer timer;
        static int delay = 40;
        static int weightInc = 50;
        static boolean goLeft = false;
        public static void main(String[] args)
            final GridBagConstraints gbc = new GridBagConstraints();
            gbc.weightx = 1.0;
            gbc.weighty = 1.0;
            gbc.fill = gbc.HORIZONTAL;
            final JPanel leftPanel = new JPanel(gridbag);
            leftPanel.setBackground(Color.blue);
            gbc.insets = new Insets(0,30,0,30);
            leftPanel.add(new JButton("1"), gbc);
            leftPanel.add(new JButton("2"), gbc);
            final JPanel rightPanel = new JPanel(gridbag);
            rightPanel.setBackground(Color.yellow);
            gbc.insets = new Insets(30,50,30,50);
            gbc.gridwidth = gbc.REMAINDER;
            rightPanel.add(new JButton("3"), gbc);
            rightPanel.add(new JButton("4"), gbc);
            final JPanel panel = new JPanel(gridbag);
            gbc.fill = gbc.BOTH;
            gbc.insets = new Insets(0,0,0,0);
            gbc.gridwidth = gbc.RELATIVE;
            panel.add(leftPanel, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            panel.add(rightPanel, gbc);
            timer = new Timer(delay, new ActionListener()
                    gbc.fill = gbc.BOTH;
                    gbc.gridwidth = 1;
                public void actionPerformed(ActionEvent e)
                    double[] w = cycleWeights();
                    gbc.weightx = w[0];
                    gridbag.setConstraints(leftPanel, gbc);
                    gbc.weightx = w[1];
                    gridbag.setConstraints(rightPanel, gbc);
                    panel.revalidate();
                    panel.repaint();
            JFrame f = new JFrame("Dancing Panels");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel);
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
            timer.start();
        private static double[] cycleWeights()
            if(goLeft)
                weightInc--;
            else
                weightInc++;
            if(weightInc > 100)
                weightInc = 100;
                goLeft = true;
            if(weightInc < 0)
                weightInc = 0;
                goLeft = false;
            double wLeft = weightInc/ 100.0;
            double wRight = (100 - weightInc)/100.0;
            return new double[]{wLeft, wRight};
    }

  • Please help with slicing question

    I'm new to FW and to slicing. I have tried to get all of the info from tutorials and the help that I could.I'm still confused.I'm trying to produce a multi page website mockup with FW using export to CSS and Images.
    I've submitted two other posts with 0 replies. I guess my questions were too broad? I've done some trial and error and tried testing with a simplified version of the multi page website mockup I'm trying to produce. See the simplified file here:
    http://www.openrangeimaging.com/test-posts/slicetest01.png
    The top area would be the header. The lower bar will have some nav tabs. The circle is to be a logo that if clicked on will take the user to the home page.. Below the nav bar is to be two columns with content.
    I have tried different ways of slicing this but cannot get the file to export correctly as CSS and Images. I also can't seem to include the logo as a slice with a link without getting the "overlap" problem. I have been beating myself against this for some time and have not had any success. Any help or advice on where to get help or any reply at all will be most appreciated. Thanks!

    Great, my entire message was wiped out. Here it is again:
    My comments are inline.
    On 2010-10-14, at 2:16 AM, markf12 wrote:
    Jim, thank you for your very helpful reply!
    Honestly I wouldn't even try to directly export this design from FW to a CSS based layout. I think I'd move a lot faster by exporting the graphics from FW and building the design in DW.<<
    This is what I needed to know. Being new to FW I was mistakenly assuming that I could use the Images and CSS to export a clicklable mockup that would also form the html/css basis of the 15 page site I'm designing. I thought that this was possible if only I could figure out how. I expected some pretty involved work in Dreamweaver would be needed. I now understand that for what I'm doing using the HTML and Images is what should be used. Then I develop the site in Dreamweaver using perhaps some images exported from the FW mockup, but not any html or css. Thank you for clearing that up for me! I knew i had some fundamental/core misunderstanding. The export to Images and CSS is only for very simple design.
    JB - It IS possible, but you have to design the site based on certain practices. Overlapping slices is one thing to avoid.
    . If you're new to Fireworks, you really want to keep things simple as  you learn the process. Regardless, a solid knowledge of HTML and CSS is  very important.<<
    Yes I'd like to keep it simple but this is a bit of trial by fire (pun intended) on a project. I have gotten books and other tutorial type stuff on html and css. I would not call my knowledge of it solid as I am new to it. i think I get the gist of it and am determined to become proficient. The only real way to do that is to actually create something/gotta start somewhere so.......
    JB - getting the "gist" isn't enough. If you do not have a solid grounding in HTML and CSS, you will likely run into trouble even IF you successfully export the design, because you will need to to edit and tweak the code once you're in DW. I'd recommend building your first sites "the old fashioned way" first, before trying to automate the process.
    David Hogue has created a great series of CSS export videos on the Fireworks Dev Center. I strongly recommend watching them. Likewise Michel Bozgounov has written an excellent article on setting up a Fireworks document for CSS export:<<
    I had viewed a number of  Dave H's tutorials. I somehow overlooked the ones that you provided a link to. I'm going to watch them straight away. I had read the Article by Michel B. also excellent. I have also read your excellent tutorials and watched your lynda.com video training. I've gained allot from all of this.
    Thanks again for your help!
    JB - You're very welcome. Good luck.

  • Can somebody please help with Javascript. 2 small problems.

    Hi. I have created a dynamic PDF form with fields. I have 2 problems that i am sure someone can help me with. (I can email anyone this PDF upon request).
    PROBLEM 1. In this form I have a table (actually i think its a sub form) which has 3 buttons associated with it ('Add Row', 'Delete Row' and (Clear Row'). One button adds a new row. It works but it effectively duplicates the row (and all text fields/cells contained in the row) and places this new row at the bottom of any existing rows. What i require is for this button (the button gets duplicated along with the row) to place the new row immediately below the row from where it is clicked. ie, imagine you open the document, fill out the row (at this stage there is only one) and hit the 'Add Row' button. You now have 2 Rows (great), so you fill out the second Row. Now here is my problem, if you hit the 'Add Row' button on the first Row, a new 3rd Row is added to the bottom and not in between Row 1 and Row 2.
    Effectively if you have dozens of Rows filled out and you need to insert a Row for an amendment, currently it cannot be done without deleting all Rows up to the point where you want to make the addition/insertion.
    PROBLEM 2. Within this Row of text/numeric fields are two fields (called 'Rate' and 'Loading') where dollar amounts are entered. As the form is filled out (the Rows can be dynamically generated and it's fields manually filled out by the user) there can potentially be dozens of Rows in a completed form and, as each Row has many text/numeric fields, one can imagine Columns forming once there is more than 1 Row. At the end of the form, totals are automatically calculated. I have created a button to reset (erase) all amounts entered into these two specific fields (Columns) but in every Row. Unfortunately there is something wrong with my script syntax as this button does not do this. ( i want this facility as when the form, which is a budget proposal, is completed i need to send two copies - one to accountants with figures and logistics and a second copy to another department whom i do not want to give the figures, so i need the button to erase figures without having to clear each cell individually).
    Any help that someone can give would be much appreciated.
    Please email me at
    [email protected] if you would like me to send you the file.
    Cheers
    Bradd

    Send the form to
    [email protected] and I will give it a go ....include a reference back to this forum posting.
    Paul

  • Please help answer some questions....this means a lot

    I'm really in need of some answers. I hope someone can help.
    I bought a Macbook yesterday, the basic 13" white version. I had an ibook G4 before.
    My first question is about "offgassing", giving off that new computer smell. It's really bad, my whole place smells like it and I feel sick and have a headache from it. I read that it would go away if I leave it running for a few days, so I put it in an empty room with the window open and just leave it running. How long will it take to go away? Will it go away completely? Did any of you have the same problem? I can't remember having this problem with the ibook although when the fan would turn on (which was rarely) or I took the battery out, it smelt a little like this.
    My second question is about the fan. It's been on the whole time I've been using it, pretty much right away, and never goes off. Is this normal? My ibook fan NEVER turned on unless it was incredibly overheated. It's the fan that is at the back of the computer under the screen. Is there a way to turn this off?
    My third question is about how loud it is. I was surprised at how loud it is, my ibook was so quiet. Is this normal? Is there a way to make it quieter? I loved how my ibook was so quiet so I was disappointed.
    My fourth question is about the brightness of the screen. On average, it's a lot brighter than the ibook. I kept my ibook brightness level at the very lowest, I like it darker, but the lowest level on my Macbook is really, really bright. How can I make it go darker? And why did they do this?
    Thank you so much if you can help me. These things are really bugging me and I would love to get some answers. It really does mean a lot. Thanks.

    Hi John
    I moved from an iBook to a MB and I had none of these problems.
    I have set up two MB's directly out of the box and have never heard of the 'smell' issue. That sounds a bit rubbish!
    I would call Apple regarding this and the other issues. Are you close to an Apple store?
    If so then it's be good to take a trip to check out some other MB's. Have a look at the brightess and noise levels. Comapre them to yours.
    While you're there have a chat about the fan issue and the 'offgassing'.
    Taking your MB out of the box and setting it up should be one of the fun bits. Doesn't sound like you're having much fun!?
    Good luck!
    ps. Have you done all of the recent software updates?
    Message was edited by: fragglerock

  • Please help with Javascript obejcts hierarchy

    Hi!
    Is following Javascript obejcts hierarchy is right?
    1. App > 2. Doc > 3. Page >
    (from Page) > 3.1 Annotation3D
    (from Page) > 3.2 Field (link)
    thank u )

    You have to have Acrobat/Reader open to open a PDF and use some or all of the Acrobat JS features.
    When Acrobat/Reader is started various folders are accessed and files within those folders read and processed to create the application. This includes dictionaries, certain global variables, various functions provided by Adobe, and user defined functions or variables. The Adobe provided functions or user provided functions or variables are accessed by their assigned name. So if you created an application folder level function in a file called 'hello.js' containing the following code:
    function HelloWorld()
    app.alert('Hello World!');
    return;
    HelloWorld();
    Each time you open Acrobat an alert box with "Hello World!" will appear.  So even without any PDF open one can perform or have a task done. With application level scripts, you can add menu item, tool bar buttons, or modify menu items, etc. So when you open Acrobat you could have a menu item to create a new blank PDF or add the JS API Reference to the "Help" menu item. And if you selected "Help => JavaScript API', the JS API Reference file would open, whether there is an open PDF or not.
    PDF files are opened at the application level, as the application needs to interpret the code of the PDF file and provide the necessary resources for displaying, calculating, linking, etc for the open PDFs. If you open a PDF pragmatically, you need to provide an object name to that PDF. Especially if you are going to reference that file with JavaScript.
    Within an open PDF there are various actions. The first is the document level scripts that are used to establish the environment in which that PDF will function. This could include special functions to sum values, compute date differences, perform special key stroke and formatting. There can even be test to see if there are any necessary application level functions available for use the the document.
    Within PDF document you can can fields, links, comments, etc. And these items only exist in the PDF document and rely on the PDF document for performing the various task or communicating those task the the application.
    By the way with the "HelloWorld" function defined in the application JavaScirpt folder, and PDF opened on that computer can have a button with the 'mouse up' action JavaScript of "HelloWorld();" for the code and any time that button is pressed the alert box that appeared when Acrobat was started will appear. But if you take that PDF to another computer that does not have that file nothing will happen or an error box will appear.
    See Getting Started - Developing for PDF by Dave Wright and look around the Planet PDF site.
    You also need to realize that Acrobat JavaScript does not run synchronously, so you do not always have the individual scripts running in the same order or speed so it is possible a script will not always start and end before the next script in line is started or ends. And if you have dependencies between these scripts you need to test to see if they are all met.

  • Please help with javascript issue

    Hi all,
    So ive got this piece of javascript -
    $("#verse_inscriptions").on("change", function() {
        var verse = $(this).children("option:selected").val();
        if(verse != "0") {
            $("#textarea").val($("#textarea").val() + " " + verse);
            calculateTotal();
    of this page http://www.milesmemorials.com/product-GH54.html What i need is to adapt it so that it will allow this function to happen whilst also inserting the same information into the textarea here -
    <textarea name="textarea2"id="textarea2"></textarea>
    So basically i have 2 forms, the first is where the customers make their choices/selections and the second form retrieves those choices and inserts them into form2 by 'onchange' attributes, but the piece of code above is stopping that from happening (only on this part of the form 'inscriptions and verses'and 'textarea' which as you can see are both interlinked).
    Can anyone help me with this? I appreciate any help.

    Sorry it's calculateTotal(); instead of processTextarea(); in the code above.
    The in the function calculateTotal you can add a piece of code to update #grand_total2:
    function calculateTotal() {
        $("#grand_total, #grand_total2").val(totalAmount.toFixed(2));
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Hello to all! Please help with the question from China!!!Thanks a lot!

    I am a real beginner on Java studing and I try to learn this all by myself.I had read some books translated from English format.But I dont think they were translated good enough.Sometime the meaning translated from English is totally different from what the Author want to express.So can you help to recommend some good English books for the beginner.I want to get start my studing on these books.Thanks in advance.

    I used Thinking in Java 2 by Horton. I see there's an upcoming edition covering the new version 5 of Java,
    http://www.amazon.com/exec/obidos/tg/detail/-/0764568744/qid=1103190687/sr=1-2/ref=sr_1_2/103-0972736-0816625?v=glance&s=books
    In addition to the above I also bought The Java Programming Language by Gosling and others. It's not a tutorial. Instead it offers much in-depth information on why things are the way the are in Java. I didn't use much at first and found it quite impenetrable, but now I use it all the time especially when answering so called "I have a doubt" questions at this forum. -:) I think any serious Java developer should have a copy but not necessarily when starting out. The Horton tome will keep you busy for a while. And don't forget the on-line tutorials. If find the Swing tutorial especially valuable.

Maybe you are looking for

  • ITunes doesn't launch automatically when iPhone is connected

    This used to work fine...I'd attached my iPhone 3GS to my MacBook via USB, iTunes would automatically launch and begin synching my iPhone. Then (I'm not exactly sure what happened...perhaps it was an update, or a spate of time when I was travelling a

  • Lock object for Purchase Order

    Dear Experts. I am searching the function module "ENQUEUE_   " , which is for locking & Unlocking the Purchase order(ekko-ebeln). Please help me. Thanks in advance, Regards, Rahul.

  • Samplerate problem using Analog In and Counter In from a NI 6259 USB. "Counter timeout" setting in DAQmx?!

    Hello, I got a fundamental problem with the correlation of the timer settings of the DAQmx driver in DIAdem DAQ. I dont know where the problem is located exactly but maybe someone can help me if I explain what happens: In my configuration I use some

  • Keychain and gpg-agent not getting along

    I have a problem with gpg-agent. I have been using the Funtoo keychain tool for a while, for my SSH keys exclusively. Works flawlessly - I log in, I call keychain, I type in my passphrases, and it caches my keys. Never get prompted for a passphrase d

  • Re: How can I disconnect skype account ?

    Hi, I have 2 Skype accounts, one for my laptop and one for my pc desktop. I wish to use only one my pc. to save a confusion I wish to delete the other. how do I go about it? Gentle help would be appreciated, thanks.