Basic 3D in Java Script

Hi,
I'm looking for a simple .dir example in Java Script to start with.
Somthing like creating a hard coded textured triangle and rotating it in 3d.
Thanks

Here is the sample of a 3D textured triangle with hard coded coordinates.
Thanks to Noisecrime & G.U.Y. for the help.

Similar Messages

  • Problem with Java Script after upgrade from BW 3.5 to BI7

    Dear Colleagues,
    We're facing the issue with Java Script after upgrade of BW 3.5 to BI7.
    Just after update we checked the basic functionality and it occured that some of web templates that use Java Script don't work. They generate seelction screen, but after selection the screen becomes blank without any error messages.
    We're currently stucked since web templates weren't converted to BI7 version so they should work exactly as before the upgrade.
    We compared the Java code with other environment that was not upgraded - it's perfectly the same.
    The only explanation that comes to my mind is that some Java Script settings on the server level were changed during the upgrade but I have no idea where I can check that.
    Thanks in advance for any suggestions,
    Andrzej Bobula

    Hi Deepu,
    Thanks, it was great to read your reply and then few minutes later talk to you live on SDN Day!
    Unfortunately, http cache clean-up did not help. But there is another funny thing I found - for exactly the same 3.5 webtemplate html code returned from WebAS 3.5 was different then from 7.0.
    Unfortunately, this editor does not allow to paste complete code, even in CODE brackets, but here are main differences:
    <b>3.5</b>
       if (navigator.appName == "Microsoft Internet Explorer")
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=GET_TEMPLATE"
    name="Content">
    and
    <b>7.0</b>
       if (navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=8&REQUEST_NO=0&CMD=GET_TEMPLATE"
    name="Content" 0nLoad="javascript:loadTitle()">
    (I intentionaly put 0 i/o o in 0nLoad, otherwise Forum's editor does not accept the text.
    How about SAP's claim that technical upgrade from 3.x to 7.0 changes nothing?
    Regards,
    Vitaliy

  • How to create a class using java script..

    Hi all,
    Iam new to java script and I tried out the following program but its not working..I basically created a class just like a java prog' but Iam not getting any output or error.Iam attaching the code below.
    If I created one function inside the script and create one object its working fine but what should I do when I have a lot of function??so I created a class and put all the function and created an object but its not working..
    Do let me know what changes should I do..Iam attaching the code which I had written. or give me an example of how to create a class with couple of functions using JAVASCRIPT
    Thanks
    Avis_su
    <html>
    <head><title>JSP Page</title></head>
    <body>
    <SCRIPT language = "JavaScript">
    <!--
    //Created classes
    class book
    var title: String;
    var author:String;
    function author()
    doucument.write("Author is " +this.author);
    function tile()
    doucument.write("Title is " +this.title);
    function printall()
    var counter = 0;
    function author();
    function title();
    var chapters = Array[String];
    for(chapter in this chapters)
    counter++;
    document.write("Chapter" counter" :"+this.chapters[chapter]+"<br>");
    var thisbook = new book()
    thisbook.author = "Sivagami";
    thisbook.title = "MS in CS giude";
    thisbook.chapters = new Array[10];
    thisbook[0] = "Prepare to Excell in all ";
    thisbook[1] = "Learn to be happy";
    thisbook[2] = "Learn to be healthy mentally emotionally physically";
    thisbook[3] = "Siva and Subbu along with kidssssss will be successful in future";
    thisbook.printall();
    //-->
    </script>
    </body>
    </html>

    Run this program to get your answer:
    public class AnswerToYourPost {
    public static void main(String args[]) {
    System.out.println("TRUE/FALSE: This question
    ion belongs on a Java forum.\n"
    + "ANSWER: " + ("Javascript" == "Java"));
    }Since when do we compare objects for equality using operator == ?

  • Java Script Error while deploying a Model with Value Help

    Hi,
    I am using EP 7.0 SP 10.
    I am trying to deploy a model which includes the Value Help for an Input field, and i am trying to deploy this model.
    The model compiles successfully, but gives a Java Script Error while deploying the model,
    ! Error on Page
    When Click on this java script error, it shows that ,
    Line:14985
    Char 1: Error
    object does n't support this property or method.
    code
    URL: <serverhost>/VCRes/WebContent/VisualComposer6.0/bin/223334.htm?24102006.1712.
    The Same model works in dev server, and it fails in the production server.
    Thanks and Regards,
    Sekar

    Hi jakob,
    Thankyou for your quick response.
    I did a basic model with the help of a documentation which i got from this forums.I created a iView and from there i used Bapi "BAPI_SALESORDER ".
    I created a Input Form and a outpot form (table view).I tested model and am able to get the output.but when i try to deploy it is giving me the error.
    And i think am not paring any formulas here.
    Please guide me.
    thanks and regrads
    Pradeep.B

  • Can I balloon engineering prints in Adobe Reader or Acrobat? Create a dynamic stamp w/ Java Script?

    I am trying to establish a very simple way to balloon prints with character numbers; below I have uploaded an example screen shot.  My end goal is for the user to select a dynamic stamp (a circle with a number in the center) and it start numbering with 1 and then increment by 1 yet the user is placing each balloon in its respective location, resetting for each PDF document, one addition would be to allow the balloon numbers to be edited like a text box after they have been created in case there is an error in balloon placement etc.  Is this possible? I have programming experience in other languages, but have only built a few dynamic stamps with time stamp information provided by java script code.
    Any assistance is greatly appreciated!

    Yes it's possible with dynamic stamps, but the code is rather messy as it has to keep a running total.
    See http://www.pdfscripting.com/public/department53.cfm for some samples (and the definitive book on creating your own dynamic stamps), and Rick Borstein's blog for some basic samples that put exhibit numbers on legal documents.

  • Problem when placeing a java script

    HI Im trying to place a fotomoto java script onto one of the pages on my site. Its a script that overlays a buy option for the photos on my site. When i put the script onto the page the picture orientation moves. I created the site in adobe muse. I have no idea how to fix this issue. I was told the following by fotomoto customer support.
    "Fotomoto works by targeting any IMG tags that are within a DIV and it inserts a new DIV with the class "FotomotoToolbarClass" below the DIV that contains the image. When it does so on your page, it visually affects the layout of your page, in a sense magnifying the issue with the DIV structure."
    Any help would be amazing

    Your error occurs because java can not find a file named InsertSuppliers.class in the Classpath. there are 3 basic ways to make this work. Assume you compiled InsertSuppliers so that the InsertSuppliers.class file is in a directory c:\myjava (I am assuming Windows).
    1. Do not set your System Classpath. CD to the c:\myjava directory. Enter "java InsertSuppliers"
    2. Set your System Classpath = .;c:\myjava and enter "java InsertSuppliers" from any directory.
    3. Enter "java -classpath c:\myjava InsertSuppliers" from any directory.
    Of course, none of these will work if InsertSuppliers.class file doesn't exist in c:\myjava. And remember that class names are case sensitive.

  • Java Script: Form Submit issue.

    Is there a way where I can submit two forms ?
    Thats is submit 2nd form only when the first form is submitted.
    I tried this it works.
    function formSubmit(){
    document.form1.submit(); //Submit First Form
    alert(); //This will stall the execution thus form2 will not be submitted till I click on OK
    document.form2.submit();
    }But If I dont put an alert in between, only the second form is submitted.
    If I put a delay of say 3 seconds in between then it will throw a SOCKET CLOSED error in the action event triggered due to first form submit.
    Well Basically when the Alert pop's up the parent page "STALLS" and thus the form2 does not submit till I click on OK, Is there a way I can stall the browser/Parent JSP page using JAVA SCRIPT ??

    Relax people... Ok I will move my querries else where :) ..
    But whats wrong if somebody can provide me an answer ? I am sure most of you know java script , if you dont know then don't answer simple as that.
    You do know that Sun did not create JavaScript, right? So the Sun forum sites may not be the best place to look for a JavaScript forum " {code} 
    You mean to say if something is not from sun I am not supposed to ask a question on that, I agree that this is JAVA Programming forum.
    Peace,.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Free java script and quicktime dwonloads

    how do i download quick time and java script on my macbook pro

    Hey luc beeckman!
    I have a couple of links that may be helpful for you:
    Java for OS X 2013-005
    http://support.apple.com/kb/dl1572
    Quicktime is already installed on your computer since it is native to OS X, but you can find more information about it in the following link:
    Mac Basics: QuickTime Player
    http://support.apple.com/kb/ht4024
    This last link that I have for you will guide you to the preferences for Java and Javascript in Safari:
    Safari 6 (OS X Mountain Lion): Security preferences
    http://support.apple.com/kb/PH11886
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Business Objects Dashboard External HTML/JAVA Script Link - User Authentication Depolyment Q

    <p>Hello,</p><p>I have a rather unstructured problem here and am relatively new to Business Objects Enterprise. </p><p>We have users who are authenticated through Business Objects. The login sets their access levels and permissions. In addition to the BO reports, we would also like to link through BO Dashboard a JAVA Script webpage.</p><p>The JAVA Script and Business Object software sits on the same webserver.</p><p><strong>The problem is that through BO Dashboard and also an external URL link we can only pass a static link (i.e. /some directory/some doc.html) and not a dynamic userid with the URL, which changes based on the user (i.e. /some directory/some doc.jsp?UID=user1).</strong></p><p>The solution might be to insert a Business Object API call that can determine the user who is currently logged in? Or, if there is some way around the static html link through Business Objects Dashboard?</p><p>Any ideas or thoughts would be deeply appreciated.</p><p>Thanks,</p><p>Joe</p>

    Are you setting Business Objects up as an external application?
    If so, what parameters are you using to set it up?
    Based on the fact that you're seeing the basic auth dialog, you probably need to specify
    that it's using basic auth -- not GET.

  • Should I get java script?

    New computer, new to Mac, new printer (Brother MFC 7860DW).
    D/L drivers, software, etc from Brothers' site. Firmware requires Java Script and when I run it to see if it is on this machine, it appears not!
    In Terminal App I type in   "java -version" and TO RUN JAVA COMMAND LINE YOU NEED TO INSTALL A JDK.
    I switched to Mac in order to NOT do such; if I wanted to put up with such fol d' rol I could have stuck to Windows!
    So now what? Do I have Java? Do I "need to install a JDK" and when I go to Oracle there are three Javas and the JDK looks even mroe complicated than the "end user" java!
    I got a few cuss words for all that, but I'd rather not!
    TIA,

    Rommy,
    I copy your page to page 2 as I don't want to mess up with your code. Please take a look at it. Again, there might be other easy way to do this. I am also a learner, so, if there is better way, please share with me as well.
    What I have done was,
    1. Create a hidden variable for display status for Form region
    2. add a button in the report region to basically add new customer
    3. when that button click, set the display to 'SHOW'
    4. add conditional display in the form region to display if the display status variable is 'SHOW'
    5. add conditional display in report region to display if the display status variable is not 'SHOW'
    6. add a process to change the value of display status to 'HIDE', and that process will execute only when user click on either 'CREATE' or 'APPLY CHANGE' button
    7. modify the cancel button to set the value of display status variable to 'SHOW'. that way when user click on cancel in the form, it should display the report again.
    HTH.
    SHY

  • Yelp is not working properly, and I have been advised to enable cookies and Java Script. I have been trying for 1 hour using suggestions that don't work. Help.

    Someone suggested to go to firefox > options> content > and then there is supposed to be a button that enables Java Script. It is not there. Where did it go, please? The cookies problem I have no idea how to address. Have not gotten past the Java Script problem yet. I have updated Java many, many times in the past couple of months at the suggestion of Avast.

    You can check on the <b>about:config</b> page if the javascript.enabled pref is set to true.
    *http://kb.mozillazine.org/about:config
    You can try basic steps like these in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Do I need to pay anything to Adobe if I inject java script using some open source library?

    Hello,
    I want to restrict PDF reader to achieve Digital Rights Management (DRM).
    Do I need to pay anything to Adobe if I inject java script to achieve so using some open source library?
    Basically I want my PDF documents to be restricted such that I can: 
    Limit printing
    Prevent screenshots
    Restrict access by license expiry date
    Restrict distribution of downloaded PDF (i.e. the document should run on specific machine only)
    Restrict copy and paste within PDF document
    I came across below links from which I suspect Adobe expects one to pay if he/she attempts to restrict reader functionality in some way?
    http://www.adobe.com/devnet/reader/topic_drm.html
    http://www.adobe.com/devnet/acrobat/overview.html
    Am I correct in my assumption?

    I think it is a vain hope to imagine you could implement DRM via JavaScript. Remember it can be turned off.
    Printing is either enabled or disabled according to document security.
    Working with PDFs does not require permission from Adobe but
    * adding functionality to Adobe Reader definitely does; a DRM development license is a major investment.
    * if the file is Reader-enabled, all third party tools will disable that.

  • How to learn java script in indesign

    Dear Sir,
    I am a template designer, I am interesting on Indesign scripting but I don't know basic knowledge in software languages. So Please help me which languages i should learn for indesign scripting. (some of them saying C language is must). Is c language is essential or Shall i go directly with java script. And also i want Beginners indesign scripting guide (not advanced) and give me some tips how should i develop skills in a short period. Please advice me.

    +1
    What we call here "InDesign JavaScript" (DOM+language) is syntactically based on Adobe ExtendScript, which derives from E4X (ECMAScript for XML) and ECMAScript itself. (JavaScript is known as an implementation of the ECMAScript standard.)
    In short terms, "InDesign JS" as a language should somewhat implement the ECMAScript and E4X specifications, i.e. ECMA-262 and ECMA-357:
    1) http://www.ecma-international.org/publications/standards/Ecma-262.htm
    2) http://www.ecma-international.org/publications/standards/Ecma-357.htm
    It is true that the JavaScript's syntax and conventions contain familiar echoes from C or even Java, but these languages are definitely different on the semantic level and I really don't believe it's a good idea to learn C before learning JS.
    Here are a few links I would add to this discussion:
    The basics:
    – Eloquent JavaScript (Marijn Haverbeke): http://eloquentjavascript.net/
    – JavaScript Guide (MDN): https://developer.mozilla.org/en/JavaScript/Guide
    – Douglas Crockford on JavaScript: http://javascript.crockford.com/
    Advanced articles and resources:
    – Peter Michaux (see "JavaScript Language"): http://peter.michaux.ca/
    – Learning Advanced JavaScript (John Resig's tutorial): http://ejohn.org/apps/learn/
    – Higher-Order JavaScript (Sean M. Burke): http://interglacial.com/hoj/hoj.html
    – Annotated ECMAScript 5.1 (next spec., in the making): http://es5.github.com/
    @+
    Marc

  • I'm trying to download Firefox 4 onto Windows 7 platform. I keep getting an error message that says Java script has an error in Chrome ? Unable to complete download. Constant ahngs & freezes

    I am running on Windows 7 platform. I tired to download the latest Firefox 4 release. Each time, I get the message that "there is an error on line 20 in Java script Chrome that is preventing the download from continuing. I've run Fox in safe mode & still get the same message.

    Your More system details list shows that you use Firefox 4:
    *Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
    Are you trying to (re)install Firefox 4 or do you get that error if you start Firefox?
    Do a clean (re-)install:
    * Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 4.0: http://www.mozilla.com/firefox/all.html
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data if you uninstall the current version.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    If that still doesn't work then create a new profile as well.
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    * http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Help me debug my java script

    I have a form with fields named 1 to 18.  The user will enter 4 digit numbers in the fields and then hit a button that will run a java script.  This script will encrypt each of the 4 digit numbers we call codes.  The encryption is basically taking the first digit of the code and incrementing it by 1.  Then doing the same with the second digit and then keeping the last 2 digits unchanged.  So if they enter 1234 then hit the encrypt button the return is 2334.  Entering 9012 will return 0112.  The script below that my son wrote for me doesn't work.  No change occurs when the button is hit.  Any ideas why it doesn't work?
    var code;
    var i;
    for (i=1;<=18;i++)
    code=this.getField(i.toString());
    if(code.length==4)
    code=((code[0]*1+1)%10)toString() +((code[1]*1+1)%10).toString()+code.slice(2);
    this.getField(i.toString()).value=code;

    'toString()' is a method of the string property. You first need the value of the field before you can use the 'toString()' method.
    If you want to keep the leading zeros for the entered data you need to use the 'valueAsString' property of the field object.

Maybe you are looking for

  • 2012 Macbook Pro 15" doesn't recognize VGA monitors plugged into displayport

    We have a 2012 Macbook Pro 15" (and a 2010, and a 2011).  The 2012 doesn't recognize VGA/DVI (old) monitors plugged into it, but it does recognize new DVI monitors. What gives?  I'm not even sure how to diagnose or attempt to treat this. 2012 Macbook

  • Mavericks Server-Need to get PHP and website working.

    Folks, I am not sure what to do here.  I am trying to get a website (jetphoto aka jpserver) working on our Mavericks server and I just don't know what I am missing.  I am trying to get it working on our local network before over the internet. I place

  • Option to set 'all calls' on by default

    I've been told there's an option in CUCM 9.1.2 to set 'all calls' on by default, as opposed to the user having to activate it themselves.  I'm trying to find where to enable it at, but I'm not seeing it.  Has anyone come across this or am I losing my

  • CS4 Drop Shadow Troubles

    I can't seem to get a Drop Shadow to show. I choose the Layer, add a Layer Style via the Effects button. It shows in the Layers Palette but not on my photo Thanks! Sherry Using Win Vista with all updates and all PS updates current

  • DILogger logs only a few lines

    Hi experts, My B1TE DILogger logs only a few lines. I started using the B1DILogsReader. I added the standard config to my Add-On directory: <log>   <DILogger Mode="DI" Activate="1" MaxFileSize="5" MaxNumOfMsg="1" DaysToDelFile="30">     <Components D