Interaktiver Flash-Katalog mit Javascript Befehlen statt URLs?

Ich muss in einem interaktiven Flash-Katalog die Artikelnummern der angebotenen Artikel als Hyperlinks darstellen und zwar in der Art, dass ein Klick auf die Artikelnummer ein Popup öffnet, in dem der Besucher seine Bestellung dieses Artikels näher spezifizieren und die Bestellung absenden kann. Das Popup soll also den gewählten Artikel noch einmal detailliert zur Bestellung präsentieren. Dazu wäre es am besten, eine kurze Javascript-Sequenz anstelle der URL hinterlegen zu können. Kann mir da jemand einen Tipp geben, wie das gehen kann? Oder vielleicht eine Alternative, um des gewünschte Verhalten zu erreichen?
Mit freundlichem Gruß
moebius_tm
Sorry Folks, I'll try to translate this into english as well as I can:
I've got to make an interactive Flash-catalogue from an Indesign document. A click on an item number should bring up a popup window, presenting the choosen item for ordering in detail. Best way to do this would be to give a short JS sequence instead of a URL. Any suggestions? Or perhaps an alternative way to get the desired behavior?

Similar Messages

  • Is there a way to run javascript in the url in FF6?

    With the introduction of scratchpad to FF6 the javascript in the url is filtered out and will not execute.
    The only way i have been able to run js scripts is to use the scratchpad even if it's a one line thing that i need.
    I went into about:config and typed javascript into the filter then changed the browser.urlbar.filter.javascript configuration from true to false, nothing changed.

    Running javascript: in the urlbar is no longer supported in version 6 for security reasons. Users were installing malware. Please use the scratchpad.

  • While executing ObjectTag in flash.htm, a javascript error occurred

    I'm attempting to place a SWF file in an editable region on a page created from a template.  I get the error: While executing ObjectTag in flash.htm, a javascript error occurred.  I saw on another sight that someone found the problem which was editable regions remove the head tag information.  But I do not know how to enter this info.  I tried just putting  a </head> and a head and body tag in code view inside the name region but this did not work. Any help would be appreciated.

    Main.dwt
    <!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>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- TemplateBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- TemplateEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- TemplateBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- TemplateEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    </html>
    Index.htm
    <!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"><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #00C;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    #container {
    background-color: #FFF;
    width: 900px;
    margin-right: auto;
    margin-left: auto;
    #flashbanner {
    background-color: #FFF;
    height: 350px;
    width: 900px;
    #title {
    background-color: #FFF;
    height: 35px;
    width: 900px;
    #navtop {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer1 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    #navleft {
    background-color: #FFF;
    float: left;
    height: 1200px;
    width: 250px;
    border-right-width: medium;
    border-right-style: solid;
    border-right-color: #00C;
    #mainbody {
    background-color: #FFF;
    height: 1200px;
    width: 646px;
    float: left;
    #spacer2 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    clear: both;
    #navbottom {
    background-color: #FFF;
    height: 100px;
    width: 900px;
    #spacer3 {
    background-color: #00C;
    height: 20px;
    width: 900px;
    -->
    </style></head>
    <body>
    <div id="container"><!-- InstanceBeginEditable name="flashbanner" -->
      <div id="flashbanner">flashbanner</div>
    <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="title" -->
    <div id="title">title</div>
    <!-- InstanceEndEditable -->
    <div id="navtop">nav top</div>
      <div id="spacer1"></div>
      <div id="navleft">nav left</div>
      <!-- InstanceBeginEditable name="mainbody" -->
      <div id="mainbody">mainbody</div>
      <!-- InstanceEndEditable -->
      <div id="spacer2"></div>
      <div id="navbottom">nav bottom</div>
      <div id="spacer3"></div>
    container</div>
    </body>
    <!-- InstanceEnd --></html>

  • If WDA will be able to call a Flash island, and Flash can call javascript

    In this thread here:
    How would/should you invoke a javascriptable applet from WDA or WDJ?
    Thomas said that an upcoming release of WDA will let WDA call Flash "islands".
    Since this link:
    http://www.adobe.com/devnet/flash/articles/external_interface.html
    says that Flash can invoke javascript,  won't it be possible for WDA to call an applet indirectly by calling Flash and letting Flash call the applet ?
    djh

    Anton -
    I asked Thomas Stout to describe exactly what he's doing with Flex and JMol, and I'm posting his response just to be sure that there is no way (other than the portal) of duplicating what he is doing using WDA.
    Here's his response:
    Backend (linux):
    - we have a "database" of crystal structures in flat-file directories (for example,
    weekly rsync's from the PDB)
    - we parse those with perl scripts into an XML table with tagged data that we
    feel is relevant
    Flex:
    - the Flex app is constructed to load that XML file and display the data in a
    table.  We exported that code from Flex into an HTML table, which provided
    the basic page with a Flash movie of the Flex app embedded (See the attached
    screenshot from a development version of our web page: it's the horizontal
    rectangle at the top of the page).
    webpage:
    - we then built of the Jmol functionality into the lower half of this web page.  The
    table entries at the top are sortable on any column and filterable via the text
    box.  Once a line in the table is selected, the "Load" button passes the
    accompanying structure to the Jmol applet and all of the Jmol "tools" become
    active in the lower half of the page.   There is no communication in the reverse
    direction (can't think of why you would want to!).
    - BTW, the web page does not use "frames" -- I'm personally opposed to them --
    but it is all constructed within a table.  The Flash movie is in a table cell that
    spans two columns, the Jmol app is down a row and in the left hand (wider) cell,
    while the selectable links on the right are all in the right-hand cell.  The page is
    an amusing gmisch of HTML, javascript and JmolScript all fighting it out
    together.....    :)

  • Safari browser does not detect Adobe Flash and/or JavaScript.

    Hello,
    I have Safari and Firefox loaded on my Mac. My Firefox browser detects Adobe Flash Player and Javascript is enabled, but my Safari browser doesn't seem to detect it although it is definitely loaded and installed on the computer. I can watch/see videos on youtube and see flash-enabled content on websites using firefox browser, but my safari browser cannot. Is there anything else I can do to fix this? I went and checked that I have javascript enabled in my preferences for the Safari Browser.
    I have reinstalled the latest version of flash player on my computer several times. But, when I go to a website like youtube, all it tells me is that either my Javascript is disabled or I have an old version of Flash player. I've repeatedly installed the newest version. I need help with this. Thanks.

    No it doesn't work now. I uninstalled Flash, reinstalled, unclicked the javascript buttons in safari preferences, restarted, everything, and still I can't play vids in sites like youtube.com.

  • Flash Player and JavaScript

    Hi,
    I am the creator of the
    Virtual Cutter.
    This is a website that can be used to create clips and playlists
    for a large number of streaming video formats, and currently
    supports the Windows Media Player, Real Player, Quicktime Player
    and Kasenna Broadband Player. I am now looking to support the Flash
    Player as well, or, more accurately, Flash-specific file formats
    such as swf and flv.
    As I am not a Flash programmer and do not know much about
    Flash files, I hope to find answers to the questions I have about
    this issue in this forum.
    To use the architecture of the Virtual Cutter, I need to
    access the Flash Player using JavaScript.
    1. Is there a JavaScript function to get the current position
    of the videofile? Something like flashplayer.getcurrentposition
    2. Is it possible to add buttons to start, stop, pause,
    rewind the file?
    Off course, to play a clip, it must be possible to play a
    file from any position in the file. The Virtual Cutter therefore
    generates (depending on the player) an .asx, ram or.smil file, that
    contains parameters for start point and end point/duration.
    3. Is there a similar file format that I can use to play only
    a selection of the Flash file?
    4. Is is possible to create a playlist, so a sequence of
    clips can be played?
    5. What Flash-specific file formats could be processed?
    The Virtual Cutter is an Open Source project. If anyone is
    interested in working together on this, please contact me.
    Best wishes,
    André Rosendaal

    No Flash for iPads, iPhones, or iPods
    Here's why there's is no Flash available for iDevices or other mobile devices. Adobe was unable to provide a product that was suitable to the needs of battery powered mobile devices used for Internet browsing. Existing Flash technology used too much memory, ate battery life, and was buggy. Simply put Flash did not work well on mobile devices.
    Apple's Steve Jobs led the escape from Flash dependency when Apple introduced the iPhone, and later introduced the iPad. There was a hue and cry over the omission. Time proved Jobs was right on target.
    So this is why there is no Flash for your iPhone or iPad or iPod nor for most SmartPhones. Flash has been abandoned by many sites in favor of supported technologies such as HTML5 or by providing their own custom app.
    Here is Steve Jobs official comment on his momentous decision to omit Flash from iDevices: Steve Jobs on Flash.
    Here is Adobe's later announcement to cease development of Flash for mobile devices: Adobe on Mobile Flash. Adobe is not providing Flash for Apple iOS devices, and they no longer provide Flash for any other cellular phones. Flash is officially gone.
    Now, you are not necessarily out on a limb. There are some apps that can display some Flash, but don't count on there ability to display anything using Flash.
    A sample of Apps that can display some Flash content:
      1. Puffin
      2. SkyFire
      3. Photon Flash
      4. Browse2Go
      5. Swifter
    Also, note that many sites that use Flash provide their own app for accessing their material. So check with your favorite sites and find out if "there's an app for that."

  • Custom JSP, Javascript (Ajax) request.url

    Hi,
    Im very new to java. Maybee Im not in the right forum :-/ could be a tomcat question.
    I create a custom jsp for teaming and trying to load some information from database.
    Using javascript(Ajax) request.url to call "get.jsp" to load from db.
    PHP Code:
      var url="companyDetails.jsp?companyId=" +tmp
                       http.open("GET", url, true);
                       http.onreadystatechange = callBack; 
    On my development machine everything right. But on teaming prod we get a 404.
    Placing the *.jsp files in the clustom_jsp folder.
    Q1: Maybee I tried wrong URL ?
    Q2: May I have to use webServices like SOA ?.
    In this case Is the Ajax call = a WebService ?
    Q4: Or I have to auth over url at server level.
    Thanks
    *T

    Originally Posted by tbrinkmann
    re...
    are there some teaming, vibe jsp, java application programmer in case of custom application programming in the forum ?
    Ore only admins and users ?
    Thanks
    *T
    Maybe you will get better answers here: Kablink Vibe
    Thomas

  • Probleme mit Javascript und Formularfeldspawning (Nachträgliche Seitennummerierung)

    Leider habe ich denselben Post bereits im Epaper-Forum gepostet, doch eigentlich gehört er hierhin. Sorry für den Spam.
    /begin
    Hallo zusammen,
    nach einiger Eingewöhnungszeit habe ich ein kleines Javascript für Acrobat 4 geschrieben, dass über ein Template ein Formularfeld in das Dokument Spawnt und dann nach der totalen Seitenzahl hochzählt und die Felder befüllt.
    Soweit klappt die Paginierung ganz gut, Aaaaber:
    Bei bereits gedrehten Dokumenten dreht Acrobat die Felder mit. Die Seitenzahlen erscheinen so um 90,180 o. 270 Grad gedreht. Auch das wäre nicht so schlimm, da man ja auch das zu spawnende Template drehen kann, allerdings hat man dann spätestens bei "Mischformatigen" Dokumenten, die teilweise gedreht wurden, teilweise nicht, wieder dieses Problem. Dasselbe Problem existiert für die Versionen 4, 4.05, 5 und 5.05.
    Auf der Suche nach ähnlichen Tools habe ich zwei drei kleine Freeware.prg. bzw. Code-Snips gefunden, die ähnliche Zwecke wie mein Code verfolgen und ALLE dieselben o. erwähnten Probleme aufweisen.
    Kann man das irgendwie per JS umgehen ? Irgendwie schaffen es die kommerziellen Tools ja auch ;) (Wenn sie auch nicht per JS gecodet wurden).
    Zweites Problem:
    Über ein Template erzeugte (gespawnte) Formularfelder lassen sich trotz korrekter Einstellungen nicht drucken. Sobald man den Inhalt oder die Position modifiziert oder sogar bloß einmal das Feld mit Mausklick rot markiert, werden die Felder jedoch wieder gedruckt. Wie kann man das umgehen, ohne zu Fuß tausende von Formfeldern zu modifizieren/klicken ?
    Beide hier erwähnten Sachen halte ich persönlich für einen Bug, der schmerzlicherweise in der neuen Version noch nicht behoben ist. Wer viel mit Javascript und Spawning arbeitet, den stören diese Bugs empfindlich.
    Gibt es zu dieser Problematik vielleicht eine offizielle Verlautbarung, oder möglicherweise eine Aussicht auf Behebung in Acrobat 6?
    Dankeschön für jede Antwort,
    Josef Kraus
    /end

    Einerseits ist das Problem, dass es nicht empfohlen ist, den Adobe Reader unter Linux zu installieren, da er Sicherheitslücken aufweist. Privat kann ich das verantworten, in einem Unternehmen nicht.
    Andererseits: Außerdem, was wird sein, wenn Adobe Acrobat updated? Dann ist eventuell der alte Adobe Reader unter Linux nicht mehr kompatibel?
    Wir haben bereits zahlreiche Formulare gemacht und wollen noch weitere Papierformulare umstellen mit dem Adobe Acrobat unter Windows. Die Frage ist auch, sollen wir das tun oder nicht? Weil die Gefahr besteht ja in 1-2 Jahren, dass unter Linux die nicht mehr funktionieren.
    Was wird sein, wenn der Adobe Reader unter Linux nicht mehr die Funktionalität hat, die er jetzt hat? Sprich Berechnungen und Eingabeüberprüfung nicht mehr gehen? Gibt es dafür schon Überlegungen?

  • Flash jumps when javascript change height of container DIV

    Flash jumps down, when you change(make bigger) the height of contaner DIV.
    I've narrowed the problem down to the simple code
    &lt;div id="layer" style="width:700px; height:45px;" onclick="
    this.style.height='225px' ">
    <embed src="test.swf" wmode="transparent" width="100%"
    height="100%"></embed>
    &lt;/div>
    No matter what SWF file is used, if you click on the flash(DIV) the
    javascript will change the height of the DIV and the flash will jump
    down.
    The quick fix is to remove the wmode="transparent", but if I need the transparency I cannot do that.
    Example - http://f-source.com/firefox4_flash_bug/

    You need to add 'px' to the height:
    <pre><nowiki>function resize() {
    height = document.documentElement.clientHeight;
    imgheight = Math.round((height / refheight) * 530);
    document.getElementById('Image1').style.height = imgheight+'px'; //background height
    setTimeout("resize()", resize_delay);
    }</nowiki></pre>

  • Flash and a Javascript tagged URL

    I was sent a link for a 360 panorama, which I am linking to
    inside my flash movie. When I use the JS script tag, it get an 404
    error. When I strip the URL out of what I was sent, it gets to the
    server looking for the 360 Pan, but will not show it. It seems to
    see the information in the JS file however.
    Here is the test page
    link. Button 1 has the JS script tag, button 2 has the naked URL.
    How much information does Flash need to handle a link tagged
    with JS? Below is the original tag I was sent.

    Found another thread:
    https://support.mozilla.com/en-US/questions/861910#answer-232406
    and tried clearing the cache and the cookies, and amazingly, everything appears to be working for me now! :)

  • Flash CS3 HTML/Javascript template files

    Has anyone heard of the javascript file that flash cs3
    produces causing .swfs to behave differently between browsers? It's
    happening to me and can't figure out why. If I use the basic of
    html to get the .swf to work, it behaves properly. When I use the
    CS3 HTML template chosen from publish settings, the file doesn't
    work properly in Internet Explorer but still works in Firefox and
    Safari. Anyone ever hear of problems with this code?

    Todd Bluewater;
    Hard to guess based on the information provided. Is
    index.html
    configured as a home page name on that particular server? Can
    you provide a
    url to check? -Tom Unger

  • Capture onclick event on flash object using javascript

    May the admins forgive me if this is in the wrong forum.
    How to capture the onclick event on a web page when the click
    happens on an embedded flash object?
    You can't. At least not in IE. For some arcane reason either
    microsofts developers or the flash guys decided to overrule the DOM
    in IE.
    So the onclick event is never fired, in any browsers, when
    the user clicks an embedded flash object like this:
    However there's a workaround. Add the wmode="transparent"
    parameter. This make the onclick event okay in Firefox, but still
    not IE - where the flash movie is transparent the click event
    fires, but only those places.
    Instead use the onmousedown and onmouseup events which fires
    anywhere on the flash.

    >
    I tried each of the following in the the Element HTML Form Element Attributes for the File Browse item:
    onClick=javascript:alert(this.value);
    onClick=javascript:popupURL('http://www.google.com');
    onFocus=javascript:alert(this.value);
    onChange=javascript:alert(this.value);And what happened?
    [A few points on good practice:
    1. In the XHTML normally used in APEX 4.0 mark-up, all XHTML, including attribute/event handler names, should be in lower case: <tt>onclick</tt>, <tt>onfocus</tt>, <tt>onchange</tt>...
    2. Attribute values should always be quoted.
    3. The <a href="http://crisp.tweakblogs.net/blog/313/the-useless-javascript-pseudo-protocol.html">"javascript:" pseudo-protocol is evil</a>. There are a few places in APEX where we may have to resort to using it as URL is all we're offered to work with, but it's always better to use an event handler of some kind, either inline or (better) registered dynamically at runtime following the principles of <a href="http://en.wikipedia.org/wiki/Unobtrusive_JavaScript">unobtrusive JavaScript</a>. +It absolutely should not be used in inline event handlers.+
    So:
    {code}
    onclick="alert(this.value);"
    etc

  • Using Flash variable in Javascript problem

    I want Flash to load a rss feed and hand it to Javascript
    which will do the parsing and rendering. AFAIK Javaswcript can't
    load external documents and include them into the current html page
    for some security reasons. So I try this approach.
    I attached the code I have. My Problem is that Flash does
    pass the variable to javascript but the document.write overwrites
    everything else in the current html document.
    I don't want to work with popups for obvious reasons. The
    variable must be included in the _current_ document.
    Can anyone give me a hint how to get this working properly?

    What is happening is the XML file is getting cached by the browser.
    There are a few different ways to fix this, but this is what I have found to be the easiest.
    In the Actionscript, where the call to load the xml is, append a random string to the end of the call.
    so:
    (This is AS2 code - so a conversion is necessary if using AS3)
    myXML.load("http://path/to/xml.xml?r="+Math.round(Math.random()*99999999999999999999999999999999999999999999999));
    What this will do is tell the browser that you are calling a unique file every time you try to load the xml, which will forcefully bypass the cached version.

  • Newbie qs. how to find duration or set position (in time) of a flash movie from Javascript?

    I am trying to control the Flash player browser plugin from
    Javascript.
    - I need to set the start position to play, based on time.
    example, setPosition(10 seconds)
    However I notice that the flash player API is based upon
    number of frames.
    for example, the methods TotalFrames() and GotoFrame() are
    based on frame number.
    How do I convert it to time? I don't see a frame rate
    variable.
    I don't see a call to access this - but the duration of a
    clip is always shown near the slider
    - can I also query the duration from the player?
    - I also need a callback into my Javascript object when an
    event occurs - for example,
    when the player stops playing because it is stopped by the
    user. Should work on earlier versions than Flash 8.
    Any help appreciated.
    thanks,
    Anil

    no replies?

  • Flash CS5 Newbie - Need help adding URL link to animated banner

    I apologize if this is a very basic question, but I am a newbie at designing in Flash. I have created a basic animation in Flash CS5 and I need to add a clickable URL link to it. I've tried a few tutorials that looked promising, but none of them solved my problem. I've tried a number of things including converting parts or all of the images to simple buttons or movies and linking them that way as well as typing in code for ActionScript 2 and 3, none of which were successful. The animation plays correctly when viewed in my browser, but when I click on it, the link does not work. I would prefer that the entire banner be clickable to take viewers to the linked website rather than using hyperlinked text. Also, when I open the Code Snippets window, it is empty, no matter what image or frame I've selected. Do I need to import code snippets from somewhere or am I simply going about things the wrong way? Any help is greatly appreciated!

    It all depends whether you're decisively using AS2.0 or AS3.0 .
    In the latter, you would need to use a URLRequest() method in conjunction with a navigateToUrl() call (not sure the exact syntax for navigate to Url, it might be a capitalized "URL" in the method but the request takes a String argument such as http://www.adobe.com)

Maybe you are looking for