CS javascript books

I'm learning scripting. I don't suppose there are many books on the subject of javascriping for photoshop? I've avoided the Official JavaScript Reference as that's available as a PDF. I finally tracked down a copy of Photoshop CS2 Speed Clinic, but it's very thin on the subject of scripting -it almost mentions it in passing; rather than the nuts and bolts of scripting which is what I'm after. I realised that this is a niche area but I expected to find a bit more on the subject.
Cheers

The only book I know about for scripting Photoshop is old( Photoshop 7 ).
When creating javascripts for Photoshop you need to know the 'core' javascript. Data types, native classes, syntax, etc. and you need to know the Photoshop DOM. The problem I have with most javascript books is they are written for web developers and cover javascript and the browser DOM as if they where the same thing.
You can find a reference to the Photoshop DOM in the javascript scripting guide that ships with Photoshop. For javascript I would recommend "JavaScript: the definitive guide" By David Flanagan.
You can find some online javascript core references at http://www.croczilla.com/~alex/referenc  ... index.html and  http://www.croczilla.com/~alex/referenc  ... index.html   I also like http://www.w3schools.com/js/default.asp
I think at some point you are going to have to stop avoiding the official javascript references from Adobe.

Similar Messages

  • Javascript book recommendation

    Hi everyone,
    I've been using Applescript for about a year and have found Applescript 1-2-3 to be a very helpful resource.
    Does anyone have a recommendation for a book that would introduce me to Javascript?
    I would mostly be scripting InDesign and other apps in the Adobe Creative Suite.
    I have the scripting tutorial PDF from the Adobe website but would like another resource if anyone has suggestions.
    thanks!

    Must read: http://oreilly.com/catalog/9780596528171
    If that's the same as http://oreilly.com/catalog/9780596559601,
    shouldn't the duplication be corrected?

  • Printing different URL with javascript

    I am trying to print a URL using javascript but i do not want to print the current page. I have searched google, this forum and a javascript book and can not seem to figure it out. To exlplain in it generic terms i want to be on one page and tell it to print another. Reason being, I am looking at an overview page and want to print a report made in Oracle reports, (Yes I could load the report and print it but i want to print multiple reports from one button)(The reports do work and are valid) Here is a rundown of what I am doing.
    From a button i am calling a 'url' with the following code:
    javascript:V_PRINT('P50_CUSTOMER_ID','P50_YEAR');
    And then in the html header i have the code: (printing same page twice, just an example)
    <script language="JavaScript" type="text/javascript">
    function V_PRINT (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url1;
    var url2;
    url1 = 'http://www.google.com/search?hl=en&q=' + formVal1 + '+' + formVal2;
    url2 = 'http://www.google.com/search?hl=en&q=' + formVal1 + '+' + formVal2;
    url1 = print();
    url2 = print();
    </script>
    This code just prints the current page. I know I am calling print incorrectly and thats where i need the help. Of course I might just be approaching it all wrong. Either way I hope someone with javascript knowledge can help.
    Thanks

    Hello,
    To print a page it has to be open in the browser since all it does it call the browsers print dialog.
    Here is one solution http://www.irt.org/script/508.htm and you can also try a iframe instead of a regular frame.
    If it's crossdomain request like your example here that might cause problems as well. There might be additional problems.
    Carl

  • Is this HTML? Javascript? Or a Dreamweaver function?

    I am trying to learn javascript and I don't really know all commands in HTML, so does the following utilize any js or is it straight html?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>A Simple Rollover</title>
    </head>
    <body bgcolor="#FFFFFF">
        <a href="next.html"
          onmouseover="document.arrow.src='images/arrow_on.gif'"
          onmouseout="document.arrow.src='images/arrow_off.gif'">
        <img src="images/arrow_off.gif" width="147" height="82" border="0" name="arrow" alt="arrow" /></a>
    </body>
    </html>
    It's from the quickstart Javascript book and cites it as the first example of how to do a (poorly done) rollover.
    I understand fully it's not the way to do a smart rollover, but as the first building block in the chapter, Id like to know more about it.
    I don't recognize 'document.arrow.src' as HTML. The book also says, be sure to put (name="arrow") or js won't recognize what it is
    supposed to change... which is confusing since this script here works without a javascript code anywhere.
    So does it use a little javascript, if so, what? If not, and it's all HTML, then why name="arrow"? Is it complex HTML? Is it HTML but a building block of js?

    So the code I listed is Javascript-embedded?
    It's a Javascript event handler.
    Is...
    onmouseover= "document.arrow.src='images/arrow-on.gif'"
    ...all Javascript? Or just the "document.arrow.src"?
    All of it.
    Onmouseover is a Javascript event handler.
    It's a self-contained Javascript snippet which tells a Javascript-enabled browser to "listen" inside the <a> tag for the presence of a cursor. Once the cursor hovers there the document.arrow.src behaviour is fired. That's all there is to it.
    (im still cloudy on how an HTML doc can activate JS, but since I don't seem to be getting that answered, I guess I have to move on)
    I'm not clear on which bit you're unclear on :-)
    A Javascript event handler simply sits inside a HTML tag waiting for certain conditions to occur: onmouseover, onmouseout etc.
    (I know you can embed CSS, but you have to typically call it in the head, right? And then go inline once you've done that. Right?)
    You seem to be struggling with the distinction between embedded and inline.
    An embedded CSS stylesheet is a collection of one or more CSS rules in the <head>. They're activated with the presence of "class=" and/or "id=" attributes in HTML tags.
    Inline CSS starts and stops inside the HTML tag; as do Javascript event handlers.
    e.g. <p style="background: blue; color: white;">A new background and font color with inline CSS</p>

  • Suggest a good book for learning?

    Hey, all.
    Trying to get into the automating/scripting thing as I've started a new job that has to do a lot of versions of similar animations/illustrations. I'm no programmer, but have had some success with simple AppleScripts in Illustrator and Photoshop, but After Effects doesn't like to play nice with AS. So I figure I may as well focus my efforts on ExtendScript/JavaScript to work with all the apps, be cross-platform, plus help with my limited Expressions knowledge.
    So can anyone suggest some good books for learning the JavaScript language? I've done online tutorials, which have helped a little, but just a big ol' consolidated JavaScript book, teaching the structure and syntax from the beginning (again, not a programmer by trade) would be best for me. Thing is, 95% of the books I've looked at are focused on web design, which I'm not that interested in. I'll use one if the core JavaScript teachings are well-presented and I can just ignore the web stuff; just don't want to buy a book that I'm only going to read half of and not learn everything I need to.
    All suggestions welcome, and thanks in advance.

    Hi there - lots of resources...
    Look up "eloquent javascript" online for a pdf.
    Javascript - The Definitive guide
    NewThinkTank on youtube
    Codeacademy
    Then it's the scripting guide for the other half.

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading the changed files to my live  site?  Am I able to access my existing wordpress database with  dreaweaver?  I have imported it to my testing server/database but still  seem to be having trouble establishing a connection with it (think maybe  my folder hierarchy might be off).
    macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
    "nwm" is the name of the folder that I have copied all of my site  files to and the folder I have dreamweaver pointing to.  "wp" is what I  have all of the wordpress files in (the ones I copied from my yahoo  server - including all my current theme files etc.)
    I am trying to put the info into the mysql connection dialog box:
    Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
    MySQL Server: mysql
    User Name: *****
    Password: *****
    Database: wp
    and am getting this message
    MySQL Error#: 2013
    Lost connection to MySQL server at 'reading initial communication packet', system error 61
    did some google seaches of the error.  Tried turning off the  firewall, and the advance tab allow mysql incoming  (there were 2 one  was allow one was not allow.  I changed both to allow)
    Cant really find anything on yahoo to help me out.  Looked in  phpmyadmin database named wp: wp_users to get the username and password  (which due to previous look for help - I think the password was  encrypted cuz it looked like a bunch of mumbo jumbo and am fairly  certain I know the correct password).
    Any help would be greatly appreciated!! I spent $50 on live chat  last night trying to resolve the issue only to find out at the end that  the guy really didn't understand my problem and doesn't have  dreamweaver.  I have also watched countless videos on Lynda.com and have  been thru forum after forum.  While this problem is only a couple weeks  old since I just got CS5.  I have been having trouble making any  headway learning php since I cant seem to make it past the set up  parts.  I have done the php / mysql essential training on lynda.com with  relative success except that I really dont want to work with any more  exercise files so I didn't go on to the beyond the basics. I recently  went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the  first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start  integrating things into my live sites.  I am also trying to work my way  thru the learning php, mysql, javascript book by o'reily media by robin  nixon (as fun as reading a math text book) can't get thru it since I  can't relate any of it to my current sites/needs
    I am on MacBookPro OSX 10.6.6
    Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
    Tested the testing server and is working
    Just installed dreamweaver cs5
    have been using wordpress online to create and edit posts (recently  upgraded to 3.? whatever the latest update was online which I believe  update the files on my yahoo server?)
    Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
    Am I expecting the impossible?

    If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
    I have done all of those steps.  I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin.  When I hit live view I get one of couple of errors.
    1.  "One is that the dynamic related files could not be displayed due to an internal server error"
    At some point I was able to view some sample files inside dreamweaver.  But I would like to be able to view my real site files.  I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location).  And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
    I have been thru this so many times with so many different tutorials I am losing track of what is what.
    2.  Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time).  And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive.  Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files.  Would I re- import everytime I want to work on it to get current database?
    I am trying to be clear.  I listed all the specs I could think as listed  in your "how to get help fast post" (yes I read that at least twice  too) of all of the steps and possible reasons for my problems.  I also  thought that the forum was on a seperate site so I didn't think it would  count as a duplicate.  I am frustrated to tears and am feeling  incredibly stupid that after all this time and all these tutorials yes  you are right I obviously am not understanding what is going on which is  why I am on this forum.

  • Making a JSP Form read only based on the form value present in DB

    I need suggestions/examples as i am newbie into java stream.
    I have two JSP pages 'Add Page' and 'Edit Page' .
    Add Page -> In add Page,I have many text boxes,select drop-downs options. In one select drop-down I have values as Locked and open .I can save this page contents in DB by entering those form values.
    Edit Page -> In eidtPage,once saved in DB, based on 'select drop-down- Locked and open' If it is locked i have to make all the fields (text boxes and select drop downs) as read only and if it is open i have to make it editable.
    I am taking all the values from DB,setting to 'form bean' and then setting up the values in session and forwarding it to JSP page to populate there .I am using beehive net UI tages in JSP. Please help me out.

    Not sure I'm following what you want, but this might help:
    In your select tag, put something like an 'onchange' event that calls a javascript function. In the javascript function it you add code to enable or disable your other fields based on the item selected from the drop down box.
    To determine what item was selected in a select tag, you write something like the following. I'm not sure of the exact syntax. You can look it up in a javascript book:
    var optionSelected = document.forms[0].selectTagName.options[document.forms[0].selectTagName.selectedIndex].value;
    To enable or disable a textfield, search for this in google:
    'jquery disable input'

  • Doubt in Document in Template

    Hi All,
    I am the beginner. I am studying through "InDesignCS3_ScriptingGuide_JS".
    In page no 13, there is script 'save a document as a template'
    Below script i am not able to understand, Can anyone explain it breifly if you willing.
    Lines are below.
    var myFileName;
    if(app.activeDocument.saved == true){
    //Convert the file name to a string.
    myFileName = app.activeDocument.fullName + "";
    //If the file name contains the extension ".indd", change it to ".indt".
    if(myFileName.indexOf(".indd")!=-1){
    var myRegularExpression = /.indd/gi
    myFileName = myFileName.replace(myRegularExpression, ".indt");
    Thanks in advance for all you read my scripts.
    Thanks
    BEGINNER

    well..
    the script is very well commented..
    if(app.activeDocument.saved == true){
    checks if the current active document is saved. This is important because "Unsaved documents have no full name".
    myFileName = app.activeDocument.fullName + "";
    the fullName property of a document object returns a File object. This line converts that File object to a string (-containing the full path including the file name). The implementation is a bit unorthodox (don't think you will find it in many JavaScript books), but it works. Another way of doing it is: myFileName = app.activeDocument.fullName.toString()
    if(myFileName.indexOf(".indd")!=-1){
    checks if the string previously obtained contains ".indd". the indexOf() method of the String object returns -1 if the search string is not found. The problem here (and in the next lines) is if the file name is somenthing like: "myStrangeFile.indd.modifiedByStupidUser.indt"
    for the rest of the lines I direct you to any general JavaScript beginner tutorials/books. A good reference: http://www.javascriptkit.com/jsref/

  • Coldfusion and Livecycle development

    Being a (intermediate) Coldfusion developer - addressing SQl and CF queries to an ODBC database (Access) and using Livecycle Designer ES for the first time (Acrobat 9 Pro)... I'm trying to plan the best way to fuse these programs together for a project I'm working on. I'm not fluent with Javascript but can somewhat 'backwards engineer' a script. Not being fluent in Javascript makes me a bit hesitant to even use Livecycle forms in the first place - I'm more used to doing all this with CF and SQL on an internet server...
    A couple of the main reasons I'd like to use Livecycle are - the ability to set up some of the forms to run client-side and using a security (ID) key for form submissions back to the server (as well as the capability to 'hash' the data back to the server with encryption). Security features within the PDF invironment are what attracts me to Livecycle forms as well as user interactivity in building the form client-side, as in expanding forms and fields or buttons being visible or hidden depending on the user's choice.
    Since Access (2007) can export a table's fields as an XML schema file (from what I've found, needing to re-save this file as an XSD file) for insertion in the Livecycle form - This makes it handy to set up the form to run client-side and not have to address the server-side database everytime a user choice is made on the form, before form submission back to the server.
    So... Providing that I don't have to become a JavaScript guru, the following is the 'meat' of this posting - a scenario in (wondering how to get) Livecycle, Coldfusion, SQL, XML and Access all working together:
    Livecycle forms set up with an XSD schema provided from Access (the schema within the saved form as a PDF Dynamic XML form) / On validated form completion by the user (client-side) the submit button, after user Key entered, submits to a Cold Fusion (hidden) action page on the server containing CF and/or SQL database insertions, updates, etc. that, after the queries run, 'bounces' the user to another client-side PDF.
    Would this scenario work? Am I thinking right on this in mixing Livecycle data with Coldfusion and SQL in this way?
    I'm not sure how a CF action page would deal with the data coming into it encrypted (maybe with setting variables) or if the CF action page retains the security set by the PDF page before it bounces the user back to his/her client-side Acrobat Reader... as well as running queries from a CF action page that pulls data from the database and sends back to the user's next PDF as encrypted data.
    Also, I'm not sure how the Access generated XML schema treats fields in the database that have a space in the field name, as in a field named "First Name". Some of my table fields are to be updated with an uploaded delimited text file coming from (admin permitted) users - my table fields Have to be set up in Access to match the user's field names. Field names that are merged together in the XML schema wouldn't match up when sent back to the database although I guess you could set variables for this as well on a CF action page.
    Should I just forget using Coldfusion and try to do this all through direct database insertion and form filling through the Livecycle PDF forms? (And purchase a JavaScript book to learn yet another language before deadline time?)
    In not knowing JavaSript, I'm having a bit of a mental block in learning Livecycle. I had hoped that the JavaScript would be written as you set up button properties, assigned on-click events, structered the subform heirarchy and so on and then, in Livecycle's scriptwriter assign an 'initialize' or 'click' and a function from the "fn" button (that only offers a few choices). I really need to know how to write Javascript myself, don't I? (This is probably obvious to all - "yes, dummy, you need to know how to write JavaScript for Livecycle.) I guess I'm missing something in the help files and tutorials... You can sure tell I'm self taught, huh...
    I would do this all with just CF anyhow with application files and session management with cookies and so on but with security concerns it seems PDFs can easily enough be set up in a pretty secure environment. The PDF security as well as client-side user interaction with dynamic PDFs are what attracts me to Livecycle PDFs. There's not too much of a learning curve for building Livecycle PDF forms except for having to learn JavaScript with a deadlined current project maybe being too much for me.
    Livecycle or Coldfusion or both programs together? Especially for the security concerns. There doesn't seem to be a whole lot of info on CF and Livecycle running together - at Adobe or with googling - at least not on a novice or intermediate level.
    Anyone's thoughts or comments on this? I'll post this in the Coldfusion forum as well if y'all think it may benefit forum users there as well.
    Thanks for input on this...
    - es
    [email protected]

    I've been using the Portlet tool kit for quite a while. I run
    websphere test server right on my desk top and I manually deploy my
    cfc to there. When the devlopment is done, I place my new cfc in to
    cfportlet.war file and update the portlet through WS.

  • Another beginner question about targeting functions

    I've read what I thought was an excellent thread about scope in EA, but I'm still not getting some of the basics (btw the thread was http://forums.adobe.com/message/5287753#5287753).
    I have "slides" in the symbol library and in the main composition compositionReady script I've set up a generic script for playing back sound. That script works fine when I bind it within the compositionReady script to a symbol and click, so I know the funciton itself is fine. My question, I'm programmatically loading the slides from the library as I go along and want to use the generic function I created in the compositionReady script, but I can't seem to create the proper syntax to call the script. Here's some that I have tried. What is the correct syntax? The script is on frame inside the slide symbol.
    //sym.getComposition().getStage().playSound();
    //sym.getComposition().playSound();
    //Edge.getComposition("CER_1").playSound();

    Thanks for having a look. Yea, it's getting to the script fine but it doesn't like the syntax. Console always indicates javascript error, which is what happens when Edge throws an exception because it doesn't know what to do. The article that Elaine posted on above gives me the sense that it might be best to change the function to a variable, then it would be in scope to call but I have parameters I'd like to pass with it and I don't think  I can pass a parameter with to a variabalized (word?) function. I know it's just me moving from ActionScript to Edge JavaScript and scope. Whereas I could always find a homebase in ActionScript with the stage, it seems that the stage in Edge is just another symbol and calling a function within the stage is never getting there. Elaine hints at putting outside the stage closure and it would be accessible, which, of course, has led me to start readying JavaScript books and learning more about scope etc. It seems like that is life as a developer. I  dont' get that, oh, better take a day or two to  understand that concept, oh, that function works now, next problem. ;-)

  • Bridge scripting learning curve

    I must admit I was a little confused when I first looked at Bridge scripting. I had some background writing photoshop scripts. This forum is an excellent resource to supplement the documentation.
    Anyway, I have figured out everything I needed to port a script from photoshop that creates subfolders in the current active bridge folder, opens a dialog to get resizing and beveling parameters, applies those parameters to resize and bevel the selected bridge thumbnails and saves the jpgs in the subfolders.
    Bob - thanks very much for your help getting me pointed in the right direction. I even have the ESTK working. You are the man!
    Rory

    First off, JavaScript and Java are vastly different. There are a number of JavaScript books out there. I don't have a recommendation for one, but I am sure someone else on this forum does.
    Probably the best way to get started for you is to write a script for Photoshop that does what you want to one image. Bridge doesn't do any of the image manipulations itself. Bridge allows you to select sets of images, and then start a script that will execute in Photoshop. So the first step is a working Photoshop script. Once you have that, you can create a menu item in bridge to run the script, you can use the BridgeTalkIterator object I wrote to easily execute your photoshop script from bridge on all the selected files.
    I hope this helps.
    Bob

  • Developing JSP pages using Eclipse 3.6

    i want to build a web application using JSP pages and oracle 11i databse, so i install and configure eclipse 3.2.2 and i installed the plugin to support creating a dynamic web project and i have installed jboss 6 to be the server.
    so on the eclipse i clikc new "dynamic web project" , then inside this new project i create a new JSP pages , then i write a simple code inside the jsp and i run the project using jboss and every thing went smootly.
    but let say now that i want to develop a more complicated pages to add buttons , to have tabs on my page.
    1. so my question is does eclipse provide a visual develpment tools ot plug-in for developing JSP?
    2. where i can find some good tutorilas regarding developing JSP using eclipse 3.2.2
    Thanks
    Edited by: 812643 on 20-Nov-2010 17:42

    Confusing isn't it? You can post questions here for specific problems you need to solve and usually get an answer (eventually). However, asking for which technologies are better will probably only provide you with biased opinions. There are many alternatives, each providing its own trade offs. I suggest searching google for articles from respected sources such as 'theserverside' rather than depend on individuals. Also, limit your search to articles that are no older than about 1 year. Lastly, try to stick with technologies that are used by the bulk of the developers and are considered almost an industry standard. No point learning some good yet obscure technology.
    As far as not considering a career as a developer, I suggest you stick to it no matter what. Anything you want to be good at takes years of practice and study
    (http://365pwords.wordpress.com/2009/01/25/practice-practice-practice-the-theory-of-10000-hours).
    No one has a 'knack' or is born good at it (even if they claim to be), and everyone experiences frustration (20 years later, I'm still frustrated!). You advance by making countless mistakes, and refactoring over and over again. Ignore anyone who discourages you no matter what.
    I think your quest should be limited to what you should learn when just starting out and not what is the best technologies for experienced users. Personally, I think learning JSP/Servlets is foundation that you should know well before considering alternatives. Also, many alternatives are based on extending JSPs and therefore you should know them well. I've always used JSP and not alternatives, so I can't comment further on that topic.
    If your just starting out in web design, here are my recommendations (in roughly this order):
    java -book (search amazon.com for books and reviews of what others have said in them).
    practice compiling java classes from the book on the dos command line and using a text editor before moving on to
    an IDE.
    Eclipse IDE - just an on-line tutorial may be ok. Learn to compile code, run it, debug it.
    JSP - book
    Servlets - book
    JUnit - just an on-line tutorial may be ok
    JSTL - just an on-line tutorial may be ok (use JSTL with JSP, not scriptlets)
    XHTML - just an on-line tutorial may be ok
    Javascript - book
    CSS - on line tutorial may be ok
    Tomcat - just an on-line tutorial may be ok. You can move onto JBoss, etc later.
    JDBC - book
    A free database such as Oracle Lite or MySql installed. Learn how to create tables.
    MVC design - read up on separation of concerns on a design (presentation,control,business, and database layer).
    SQL - book
    JQuery - book
    Hibernate -book
    Spring framework - book (only after creating an MVC web application with a single servlet as the control layer)
    AJax

  • How to prevent re-loading the jsp before servlet execution gets over

    Hi,
    From jsp, I am calling a function in js. From javascript function, I am calling a servlet in background frame after doing client-side validation. Before the servlet execution gets over, javascript function is getting over and it starts reloading the jsp again.
    I want to restrict the re-loading of jsp till the background servlet execution gets over.
    In background servlet, I am doing query execution.
    Its urgent. Please help me with this question.
    Thanks in advance,
    Sri

    For the time being, one suggestion would be to time how long the sql statement takes to execute. Lets say 1.5 seconds.
    Go into your javascript function and add say a 1.5 + .5 = 2.0 second delay before the javascript function completes (submits the page).
    This is a temporary fix. I doubt there is a better fix to this without knowing a great deal of AJAX and how it handles asynchronous communications.
    I don't know what the javascript function for creating a 2.0 second delay, but I imagine there is one in a javascript book.
    Once you implement the temporary fix above, I suggest you redesign your project to avoid these asynchronous problems by treating
    all your JSP pages as simple display pages and not embed any business logic in them (or in the javascripts). All processing should be done back on the server via servlets.

  • Simple Rollover?!

    Ok, I am working through a Javascript book and the rollover chapter starts with a simple HTML rollover.
    I am baffled why it isn't working. I've never really used HTML for rollovers.
    It is just showing my 'arrow_off' and wont change to 'arrow_on'
    What gives?
    My code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    <body bgcolor="#FFFFFF">
    <a href="page.html"
            onmouseover="document.arrow.src='/arrow_on.jpg'"
            onmouseout="document.arrow.src='/arrow_off.jpg'">
    <img src="/arrow_off.jpg" width="100" height="50" border="0"
    name="arrow" alt="arrow" />
    </a>
    </body>
    </html>

    Try adding this into the <head> section of your page
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>

  • How to export book pdf using custom presets for all book files in indesign using javascript

    How to export book pdf using custom presets for all book files in indesign using javascript.

    Hi jackkistens,
    Try the below js code.
    Note: you can change your preset name in below (e.g, Your preset name).
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "Your preset name", myBook.bookContents, "Book_PDF", false);
    example:
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "[High Quality Print]", myBook.bookContents, "Book_PDF", false);
    thx,
    csm_phil

Maybe you are looking for

  • Update BSEG-KIDNO

    Hi, There is a requirement to update the field BSEG-KIDNO not only for customer and vendor item but also in GL line item in an accounting document. Any advice on how to make this possible? It seems that I can't find userexit for this. I'm looking on

  • Best practices for deploying an IPS ?

    Hi all Im thinking of putting an IPS on my network, my question is what should the approach be to this, my thinking was to run it in monitor mode to get a baseline etc for a few weeks, then switch on inline mode. I hear there are different types of p

  • Java script on tablet

    i am trying to use adobe reader for work with fill boxes that have java code to do math and auto populate other boxes but the java does not seem to work on the tablet works fine on all other devices

  • Blank Disc in drive did not register as being in the drive and so I can not eject it even the ^ button does not do anything.

    Blank Disc in drive did not register as being in the drive and so I can not eject it and even the ^ button does not do anything.

  • Getting records based on rownum

    hi all, i am using db 10g. i have written a query like below to get the first record. select col1,col2,col3 from table where col1 = 'C' and rownum = 1;so i am able to get the first record. but if i give rownum = 2, i am not getting any record eventho