HTML DB OnClick Javascript

Hi everybody,
At the end of my link, I add "TARGET=BLANK" to open a new window and
With OnClick Javascript, I have window.blur() window.print()
Is it possible to combine those window ?
Thank you. Bye.

Thanks Vikas,
I will explain to you. I work with version 1.6. I have a navigation bar entry name "Print Version". When I click on this entry: I want a new window appears and get the focus on this new page. Also, I want to get the printer options popup. On my link, I put a TARGET=BLANK at the end to open a new window. Also on "OnClick Javascript'', I wrote window.blur() window.print(). Window.blur() to get off the focus on the current page and give it to the new window. After this, with window.print(), I want the printer options to popup. My question is: Is it possible to combine many window.xxxxxx.
Thank you. Bye.

Similar Messages

  • Nav onclick=\"JavaScript:GoNav with Filter in the target

    Hi together,
    I defined two requests. In the first request I call the secong with the following command:
    @[html]"<font class=Nav onclick=\"JavaScript:GoNav(event, '/shared/Entwicklung/Validierung/KNE/KNEB', '- KNE Gesamt Person', 'Person Kurzbezeichnung','"@"'); \"> "@" </font>" ;;@
    The second Reqest is prompted by 'Person Kurzbezeichnung'.
    BUT! the filter isn't populated :-(
    What I did wrong?
    Regards,
    Stefan

    a blank to much in the ' "@" ' and it will not work :-)
    I found it.
    Regards,
    Stefan

  • Onclick javascript throws addtional characters

    HI,
    I tried below
    In column properties>>data format>>custom text format
    [html] {span class=\"Nav\" onClick=\"javascript:PortalPageNav(event,'/shared/report/DASHBOARD','page 1','Param PL','"Pl Line"','@')\">@ {SPAN>
    </span>
    when i try to export report in excel i can find addtional special characters-@ ';">
    my result comes like this
    @ ';">name1
    @ ';">name2
    can i know what is wrong in above code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    but when I click the add button on a particular item all 3 of the
    items are added to my shopping list. Can anyone tell me why? and if so how > > can I resolve this problem?I don't think that clicking the button is what is causing your problem. The following line of code is the problem:
    <td><a href="#"><img src="images/add.gif" width="47" height="19"
    border="0" name="addButton<%=product.getItemId()%>" id="<%=product.getItemId()%>"
    onMouseOver="MM_swapImage('addButton<%=product.getItemId()%>','','images/add_hover.gif',1)"
    onMouseOut="MM_swapImgRestore()"
    onclick="<%/*addNewItem(product.getItemId());*/ list.addItem(new Integer (product.getItemId()));%>
    window.parent.location.reload(false);"></a></td> When you are trying to create the onClick, you are invoking list.addItem. You are doing this for each item. By the way, I don't think the resulting onClick will actually do anything. It will evaluate to the item id and nothing will happen. You need to trigger a request to the server here (e.g. by submitting a form and including the correct item id).

  • Navigation Bar OnClick JavaScript Problem

    I tried to create a Navigation Bar to pop up a online help documentation. The sample application can be seen at
    http://apex.oracle.com/pls/otn/f?p=27294:1
    When I debugged the application, I found that the link of Help Navigation Bar points to "http://apex.oracle.com/pls/otn/f?p=27294:#:432121301146634::NO:::"
    not as what I defined on OnClick JavaScript for the navigation bar. The Help Window won't pop up.
    Please help. Thanks.

    Have a look at the following post:
    how to create a popup help page in html db

  • Hi, We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1. When we try to download a file(.pvw file) in that application safari throws "Download failed" error. Please suggest what needs to be done.

    Hi,
    We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1.
    When a file url is clicked instead of asking for Save or Open or Cancel options, the file gets opened on IPad by default.
    Is this default behaviour which cannot be changed or can it be configured to ask user preference?
    When we try to download a file(.pvw file -> a model file) in the above application, safari throws "Download failed" error.
    Please suggest what needs to be done.
    Regards,
    Pramod

    Safari on an iPad in general does not allow downloading of files. That's a safety precaution in the iOS SDK to keep unauthorized content off of iOS devices. Safari will open from the web site file types that it can handle, but direct downloading isn't normal behavior, and I don't believe the behavior can be changed, though you can try asking in the developer forum, either here or the one to which you have access as a member of Apple's iOS developer program.
    Regards.

  • How to include HTML file in JSP using HTML elements or Javascript?

    Hi,
    I have around 15000 static html files one for each item which we display each upon invoking an item.The HTML file should be part of a JSP file.
    Please note that the name of the HTML file is determined dynamically
    Placing all the HTML files within the web application does not give us good performance so i would like to put all of them in the webserver.
    I am not able to include the file in the JSP using the jsp:include attribute if i place the HTML files in the webserver ,
    in order to do that i think should use either HTML element or javascript to include the HTML in the JSP.is there any alternative to <Jsp:include>
    Does anyone have an idea how to include the HTML file and take advan tage of webserver?
    Any ideas are appreciated

    What you need to do is simply read the HTML file from the disk and dump it out to the outputstream. It really is that simple.
    There's no reason you need to include all 15000 files in the actual WAR, you can place those files any place handy that is easy for the application to see (in another directory, or accessible from a file server if you have multiple front ends).
    Then, just write a utiility function that takes the output stream (i.e. the 'out' JSP variable), and the file name, read the file, and write it to the stream.
    If you start noticing performance issues, then you can try doing some caching, but truth is your OS should be doing that for you.
    But, truth be told that's the only practical way to do it.
    Another solution would be to use JavaScriipt and XMLHttpRequest (i.e "AJAX") to load the file at the client side, and simply replace a tag with the results.
    That's also pretty trivial to write, any web site talking about AJAX should give you hint there.
    Of course, that won't work for folks who have JavaScript turned off, or some other incompatible browser, whereas the server side solution obviously works everywhere.

  • Hide an HTML button using javascript

    Hi,
    I need to hide an html buttton using javascript. I have an radio button with values "YES" and "NO". If is select NO then i need hide the button without refreshing the page. Can anyone suggest me how to hide an button using javascript.
    Thanks
    Prashanth

    Prashanth,
    The exact solution will vary based on a few factors. The basic idea is to place an event handler on the radio button item that calls a function to hide/show the button. You might also want to call that function when the page loads too.
    If you put an example page on apex.oracle.com and provide the workspace/username/password I'll take a look. You can create a new account for this purpose.
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • CommandLink onclick JavaScript

    How to add onclick JavaScript to commandLink ?
    Why commandButton has onclick method, but commandLink hasn't ?

    When you use <h:commandLink>, the JSF implementation must write the "onclick" event handler so that the form it belongs to is submitted with enough info to tell which link was clicked. If you could add your own code for "onclick", it could potentially disable the main functionality of the <h:commandLink>. Use <h:outputLink> instead if you want to override the "onclick" behavior.

  • OnClick javascript.

    L.S.
    I implemented a master-detail relationship in my app using the following lines of code in the onClick Javascript property of a hyperlink in a table:
    window.open(�/Fitwise/faces/OnderneminDetails.jsp?idBedrijf=#{currentRow.value[�bedrijf.idBedrijf�]}�, �_blank�, �height=432, resizable=yes, scrollbars=yes, toolbar=yes, width=576�); return false;
    This works fine. In the details page I get the idBedrijf from the parameter and set it as the value of a private property idBedrijf with its own getter and setter methods.
    Now I would like to open another window when the user clicks an ImageHyperlink in the detailspage. For this to work properly I have to transfer the idBedrijf to that page. I used the following lines of code in the onClick Javascript property of the ImageHyperlink:
    window.open(�/Fitwise/faces/ODLesrooster.jsp?idBedrijf=#{getIdBedrijf()]}�, �_blank�, �height=600, resizable=yes, scrollbars=yes, toolbar=yes, width=800�); return false;
    This does not work. I suppose it is the getIdBedrijf() bit of code that is wrong, what do I have to replace it with to get the onClick thing working.
    Thanks,
    Annet.

    Thanks for your reply yossarian,
    I replaced the Image Hyperlink with a Hyperlink and got the code working. However I cannot figure out why it does not work when I use an Image Hyperlink. I replaced the code with the simple window.close(); return false; bit of code,of which I am sure it works fine with a Hyperlink, but when I run the project, clicking on the Image Hyperlink does not have any effect at all. I did use an Image Hyperlink with an action event on another occassion, but, since I would like to open a new window, I would rather use the onClick javascript option to implement this behaviour.
    Any ideas what the problem is?
    Thanks,
    Annet.

  • OnClick JavaScript error

    I have made several changes to my nav bar through Fireworks
    and exported, which I have done a million times, but this time when
    I inser Fireworkd HTML image it gives me the following message:
    While executing onClick in Fireworks HTML.htm, the following
    JavaScript error occurred:
    At line 438 of File C:\Program Files\Macromedia\Dreamweaver
    MX 2004\Configuration\Shared\MM\Scripts\InsertFireworksHTML.js":
    TypeError: menuFn.match(searchPatt)has no properties.
    I should tell you we have two sites we are putting this in.
    One to test pages and one that is live.
    Any help would be great!
    BigD

    Don't use FW menus.
    You can try this simple fix -
    Quit DW.
    Find this folder -
    C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    (these folders are normally hidden - you may have to use
    Explorer > Tools >
    Folder Options to unhide them)
    or on Mac -
    Library/Application Support/Macromedia/Dreamweaver
    8/Configuration/MacFileCache-*.dat
    and delete it.
    Restart DW. Works better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "BigD05" <[email protected]> wrote in
    message
    news:es6jpt$551$[email protected]..
    >I have made several changes to my nav bar through
    Fireworks and exported,
    >which
    > I have done a million times, but this time when I inser
    Fireworkd HTML
    > image it
    > gives me the following message:
    >
    > While executing onClick in Fireworks HTML.htm, the
    following JavaScript
    > error
    > occurred:
    > At line 438 of File C:\Program
    Files\Macromedia\Dreamweaver MX
    >
    2004\Configuration\Shared\MM\Scripts\InsertFireworksHTML.js":
    TypeError:
    > menuFn.match(searchPatt)has no properties.
    >
    > I should tell you we have two sites we are putting this
    in. One to test
    > pages
    > and one that is live.
    >
    > Any help would be great!
    >
    > BigD
    >
    >

  • Html:link and javascript

    Maybe I'm asking the wrong question, how do you execute JavaScript within a <html:link> tag in Struts. I simply want to execute a collapse / expand divs with an onclick attribute in the <html:link> tag.
    Can this be done with some other tag?
    TC

    and why didnt u try putting the onlick tag ?
    <html:link href=# onClick="myJSfunction()">Rohit</html:link>
    -Rohit

  • HTML Dateien mit Javascript nachladen

    Hi, ich habe über das FileStream-Objekt neue HTML-Dateien nachgeladen die zur Laufzeit eingebunden werden.
    Die (Strings) werden dann über innerHtml in die Application geladen und angezeigt.
    Doch leider funktioniert selbst ein...
    <input type="button" onClick="alert('foo')" value="submit" />
    oder
    <a href="javascript:alert('foo');">buu</a>
    ... und alles andere was ich ausprobiert habe nicht...
    Hat jemand für mich eine lösung, oder ein hinweis auf das Problem?
    EDIT: Es geht übrigends um Adobe Air...

    reggaeManuRu wrote:
    EDIT: Es geht übrigends um Adobe Air...
    Die englische AIR - Hilfe sagt im Kapitel "HTML Security" folgendes:
    Restrictions on using the JavaScript eval() function and similar techniques
    Using the javascript URL scheme (as in href="javascript:alert('Test')").
    Code in the application security sandbox can only use these methods while content is loading
    Ansonsten habe ich diese Technote (allerdings zu AIR Version 1.0) gefunden, in der steht, dass "Unsupported URL schemes are not intended to execute in Adobe AIR"
    Vielleicht helfen diese Hinweise ja weiter ;-)

  • HTML-DB OAE Javascript to close current window and open a new window

    Hi everybody,
    We work with 1.6.
    What we want is to close the current window and open a new window with the URL mentionned in the window.open('http://www.cf.qc/pls/portal/PORTAL.....,'newwindow').
    The new window opening fires only once although we call it many times.
    Our javascript is:
    function closeTest()
    { alert('closeTest');
    if('&REQUEST.'=='QUITTER2'){     
    w = window.self;
    w.opener = w;
    w.close();
    window.open('http://www.cf.qc/pls/portal/PORTAL.home','newwindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
    We call it on our application attributes :
    OnLoad="closeTest()"
    Thanks. Bye.

    Try this on for size:
    I have included two functions.
    windowRebuild() - opens a new window, maximizes it based on the screen size, removes all toolbars, and then closes the old window.
    myLocation(appName, pageName) - builds a url referencing an HTMLDB application, specfic to what server you are currently on. Very useful when you have an application on 3 different servers(dev, test, prod servers), you wouldn't want the server name hardcoded if you plan to export the app to another server.
    Also, you need to be careful when using &APP_ID. I am not completely certain how that is resolved at runtime, but I've found it only works when the javascript is in the HTML Header of a page and not stored in the template of the page.
    <script language="JavaScript1.1" type="text/javascript">
      This functions is for internal application use.
      Examples of myLocation:
      url = myLocation('&APP_ID.', 'APP_PUBLIC_PAGE');
      url = myLocation('MY_APP_ALIAS', 'MY_PAGE_ALIAS');
      url = myLocation('184', '10');
    function myLocation(myApp, myPage){
      var myHost = location.host;
      var newURL;
      newURL = 'http://'+myHost+'/pls/htmldb/f?p='+myApp.toString()+':'+myPage.toString();
      return newURL;
    /*  Function windowRebuild()
    *   This function will open a new window and close the old window.
    *   This function will also maximize the new window and remove all toolbars.
    function windowRebuild(){
       if(window.name != 'myAppWin'){
        var url = myLocation('&APP_ID.', 'PAGE_ALIAS');
        var myWin = window.open(url,'myAppWin','toolbar=0,scrollbars=1,menubar=0,status=1,resizable=1,location=0');
        window.opener = 'x';
        window.close();
       if(window.name == 'myAppWin'){
        window.moveTo(0,0);
        window.resizeTo(screen.availWidth,screen.availHeight);
    </script>Let me know if that works or you need some more explanation.
    Chris

  • How can I convert iWeb page to html with NO javascript for email campaign?

    I have a holiday greeting I made in iWeb '09 for my business. The service I'm using to use to manage my mailing list wants me to strip all javascript code from the page so it is not seen as spam when it is emailed.
    How can I convert the page made in iWeb to an html page with no javascript?
    Thanks

    How can I convert the page made in iWeb to an html page with no javascript?
    You cannot. There will be nothing left. iWeb pages rely a lot on JavaScript.
    Use a template from Mail.app. Or create such template. These are simple TABLES and have no JavaScript in it.
    Do Cmd-Shift-G in the finder and type :
    /Library/Application Support/Apple/Mail/Stationery/Apple/Contents/Resources/
    Open one of the folders and open each successive folder until you see files like Picnic.mailstationery.
    Right-click to show the package content.
    Then navigate thru Contents, Resources until you see the files and images you need.
    Edit them to your hearts content.
    Double-click the file Picnic.mailstationery and it will open in Mail.app for further processing.

  • Can I make an Imageboard in a HTML page (using JavaScript)?

    Hello all.
    Just like to say that this is my first post on the Adobe forums!
    Anyways, I've started a website project in Dreamweaver CS6 (full version) and will probably be using Photoshop (CS6) for some parts of the site too. It's gonna be pretty basic but I want to make an imageboard (with JavaScript? I'm not sure...) where users who have logged in can post an image on the feed with a comment/caption to go with it.
    How can I do this? Can anyone point me to a good tutorial on how to make this? Do I do it with JavaScript on the HTML page? (P.S. I am mildly experienced with HTML).
    Thanks in advance!

    Unfortunately, there isn't anything in DW that can do this type of thing for you, although if you were to learn php and mySQL you definitely could use DW to create a site with those types of features.
    There's actually quite a bit that goes into that kind of thing, more than just basic code, you need to think about security especially if you plan to allow someone to upload files, potentially infected with viruses, to your server.
    If you're talking about creating a basic forum (being able to start topics, post pics and comments), there are a lot of free and paid solutions available online. Certain hosting companies even give you basic forums you can add to your site by following the instructions on their pages.
    Unless you have a lot of time on your hands to learn all the ins and outs of PHP and the security necessary to keep your site and server safe, I'd suggest going that route.

Maybe you are looking for

  • The webpage (absa.co.za - internet banking) does not display completely, data is omitted on the left hand side. Works fine in IE.

    Since it is a secure site, I cannot copy the page to the desktop for you to view. There is a column of choices on the left hand of the screen that is not visible on this notebook (LG ES30) which is a week old. The page works fine on this machine in I

  • Does anyone know of a Podcasts app substitute?

    Does anyone know of an approriate app that I can use in place of Apple's Podcast app that WILL NOT require access Wifi or Celllar Data? When podcasts used to be part of the Music app, I LOVED listening to podcasts.  I actually became information junk

  • Buttons in ActionScript 3 ?!?!?!

    hi... I'm trying to make a sound controller in actionscript 3. I used to do this nicely in actionscript 2, but know it seems that nothing works as in "the old days"... I created a button and tried to add actionscript to it but it doesn't let me :-( H

  • "program too large" on package compile

    Hi, I am trying to compile a package (which has around 3000+ lines), and I am getting an error "program too large". I believe I would need to split into 2 packages, but is there any other solution than splitting the code? I am building a dynamic pack

  • Suddenly extremely slow Time Machine backups on Time Capsule

    My Time Machine backups on Time Capsule have been pretty good in the last few months. In the last week or so I am seeing painfully slow backups. It's not the preparing or the finishing phase, it's the backup itself. Data transfer for other apps is fi