Button and JavaScript link (help)

I would like to know how to make a link to open in to a new
window and..., I have been using javascript links to open images in
small windows; <a href="images/samples/SampleSC.gif"
onclick="return popitup('images/samples/SampleSC.gif')"> These
links work in the html, and I would like to add this link to a
button(or something) in flash 8
The following is in my html to make the links work, but if I
just get the above link somehow imbedded in to a button I think it
will work from there
<script language="javascript" type="text/javascript">
function popitup(url) {
newwindow=window.open(url,'name','height=490,width=720,scrollbars=yes');
if (window.focus) {newwindow.focus()}
return false;
</script>
I am so new to this. I have tried adding the following to the
action script but it did not work;
homepage_btn.onRelease = function () {
getURL("
http://www.macromedia.com",
"_blank");
I found the following ways to do this
http://www.abcpchelp.com/temp/URL2.htm
but either I did not know how to use them or they did not work
The flash file I am working on is here:
http://www.msresume.com.au/Default1Draft.aspx
(the links will be in the sample thumbnails)
Thank you, your time is appreciated!

michael- wrote:
> I would like to know how to make a link to open in to a
new window and..., I
> have been using javascript links to open images in small
windows; <a
> href="images/samples/SampleSC.gif" onclick="return
> popitup('images/samples/SampleSC.gif')"> These links
work in the html, and I
> would like to add this link to a button(or something) in
flash 8
>
> The following is in my html to make the links work, but
if I just get the
> above link somehow imbedded in to a button I think it
will work from there
>
> <script language="javascript"
type="text/javascript">
> function popitup(url) {
>
newwindow=window.open(url,'name','height=490,width=720,scrollbars=yes');
> if (window.focus) {newwindow.focus()}
> return false;
> }
> </script>
>
All you need is one simple line in flash an none of the HTML
stuff.
getURL("javascript:n_name=window.open('page.htm','thewin','width=720,height=490,scrollbars =yes');void(0);");
Take note tho, this might not work tested locally. You need
to upload to server and
test it online.
Now, if you have multiple windows, change the "thewin" to
something like "thewin1" "thewin2" etc...
If you keep requesting window with same name, you end up
loading other content into it.
New name assure new object and new window made.
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • How to connect one page using button and by link in BSP

    how to connect one page using button and by link in BSP

    hi,
    use on 'onclick' functionality.
    1. In layout, onclick = 'NEXT_PAGE' of the button
    2. Capture the event in onInputprocessing,
    DATA: event_id TYPE REF TO  cl_htmlb_event.
    case event_id.
    when 'NEXT_PAGE'.
                navigation->goto_page( 'URPAGE URL' ).

  • JSF Command Button and Command Links

    The main page of my JSF application has a Save button and Command Links. After making any changes on the main page the user should click Save before using any of the Links. Most of the time almost all users do this. However, some users are making changes then clicking a Link, thereby losing their changes.
    I could always execute my save method in the backing bean when a link is clicked, but, most of the time this would be doing a lot of processing which usually would not be necessry.
    Is their some way to check if any changes have been made and then doing the save only when necessary?
    Regards,
    Al Malin

    Anybody?
    What would be beneficial is something like this. If somehow it could be determined if any of the JSF fields on the page were modified. Then, in the backing bean method that handles the ActionEvents for the links, I would check if changes were made and, if so, call my save method.
    In other words is it possible to determine, in the backing bean, whether or not JSF fields have changed?
    Regards,
    Al Malin

  • How do i unfreeze my ipod when ive already tried the menu and select button and that didnt help?

    how do i unfreeze my ipod when ive already tried the menu and select button and that didnt help?

    How long did you press and hold both the Select (Center) and Menu buttons together?  Have you tried doing this procedure more than once?  Is the hold switch in the Off position?
    If nothing else, let the iPod's battery fully drain. Then charge it back up again.
    B-rock

  • We have been having a problem with newsletters for a client. The newsletter works fine except if we add a button and/or link to the top zone on that newsletter it blows up ONLY ON iPhones!

    We have been having a problem with newsletters for a client.
    The newsletter works fine except if we add a button and/or link to the top zone on that newsletter it blows up ONLY ON iPhones!
    This happened last month too. It seems to be related to length of the newsletter too. It works on every device except iPhones - so weird.

    Hi, is anyone else experiencing i-phone only problems on email campaigns? not bashing Apple, just having issues where our newsletter are only having issues on iPhones

  • Re deleting Play Movie button and associated links.

    Hi - thanks in advance for any help to a newbie.
    I have created an iDVD5 file from iMovie5. All went well with Chapter markers etc all coming through into my chosen theme. I started to customise the theme to my liking and noticed in the map area a file called 'Beginning' which was not one of my chapters. I saw that it was the start of the movie which I already had created a chapter marker for, and so I deleted it, thinking it superfluous. Subsequently, I noticed that the 'Play Movie" button had disappeared from the opening screen. The chapters are all intact and I can access and play these in the usual way. I can't, however, opt to play the full movie from the start because of no button or underlying link. Is there a solution?

    Hi, Laureid,
    Welcome to the discussions!
    Glad you are using iDVD and making your project from iMovie! You have made an error with your chapter markers, and unfortunately, you would have had no way of knowing that.
    You will have to recreate your DVD project. Go back into iMovie and delete your beginning chapter marker. As you have seen, iDVD makes the beginning chapter marker for you. Your movie will not play correctly if you do not let iDVD do this for you.
    Relaunch iDVD and create the project again, then import your movie into the new iDVD....or you can use the "Create DVD" button in iMovie if that is what you did the first time and it worked for you. This time you should have all your chapter markers as well as the beginning one. You can easily rename that first marker in iDVD's scene selection menu, so that you can have it the name you wish instead of 'Beginning.'
    Your movie should play and burn to DVD just fine now.
    Good luck, and post back if this doesn't work.

  • I used to open, bbc radio 2, with a left click on the 'listen' tab? this now longer responds, I have to now right click the mouse button and open link in a new tab? whats wrong

    I used to be able to open BBc Radio 2 via the 'Listen' link with a left click of the mouse button, this nolonger works, I now have to right click the link and 'open link in a new tab'
    I must have disabled something?
    If you can help then please make it easy for me to understand.
    Thanks
    Regards
    Rj

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • Color Buttons and YouTube link

    Hi,
    in the increasing amount of apps, interactive PDFs and swf e-brochures one has yet again so small hiccups, where you
    desperate because you often about dr. google does not find solutions. But maybe you can help me?
    Owned buttons with mouseover from gray to blue to remain blue when you click activation.
    Unfortunately I do not get out that you can help me?
    I also have a hyperlink set, the linked directly to a movie on youtube. I give the link directly into the browser one,
    it works. As a hyperlink set, and swf in html, it did not work. What am I doing wrong?
    Thanks in advance & best regards
    Lil.

    Hi,
    Thanks for your answer!
    Sorry, I've probably put a bit unlucky me. Of course I put the buttons and buttons in
    InDesign with functions and gimicks, but the output is a html swf file (e-brochure for web).
    But I have tonight found a solution that works great!
    Thank you! LIL.

  • Radio button with javascript - - Please HeLP !

    Hi,
    I have the following code
    My question is:-
    Q : Clicking on Submit button. gives a javascript
    message "Please make a selection" even though when I selected a radio button
         I have haspmap which displays possible answers to a question in a radiobutton type. When submit is prssed, I like to check whether a selection is made or not. and if not, I want a message shown. And when selected. I want page to prcede to processSurveyInfo.do
    Please help
    <script language="javascript">
    function checkRBtn()
         var name = document.forms[getNetuiTagName("studentmultpChcform", this)][getNetuiTagName("rbtn", this)].value;
         if ((name==null) || (name=="Undefined")) {
         alert("Please make a selection");}
         else {
         document.forms[getNetuiTagName("studentmultpChcform", this)].method="POST";
         document.forms[getNetuiTagName('studentmultpChcform', this)].action="<netui:rewriteURL URL="/TrainingActivity/Administration/SurveyFile/processSurveyInfo.do" />";
         document.forms[getNetuiTagName("studentmultpChcform", this)].submit(); }
    </script>
    <table align="center">
    <tr>
    <td>
    <netui:button value="Next-->" type="submit" styleClass="commonButtons" onClick="checkRBtn(); return false;" tagId="nq"/> </td>
    <td>
    <netui:button value="Finish" tagId="finbtn" action="fwdfinish"/> </td>
    </tr>
    </table>
    <table align="center">
    <tr>
    <td>
    <netui:button value="Next-->" type="submit" styleClass="commonButtons" onClick="checkRBtn(); return false;" tagId="nq"/> </td>
    <td>
    <netui:button value="Finish" tagId="finbtn" action="fwdfinish"/> </td>
    </tr>
    </table>
    please help me out.
    Thanks
    -Raza-

    You need to write a custom script and it's location will depend upon when you want the script to execute.
    Radio Buttons and Check Boxes have a string value of "Off" when none have been selected and take the value assigned to the field when checked.

  • About XML/XSL and Javascript : Plz Help Urgent

    Hai , I am developing one module which invloves XML database ,XSL and Javascript.
    In this I want to transform XML data to XHTML form using XSLT .,
    I have done this ,(using xsl templates ,In my form two radio buttons one dropdown box and two text boxes are there .).
    All the information which ever is displayed coming from XML .,
    But I want to validate this elements (which are in xslt ,ie checking text box is empty or not ..)
    Where I have to add script in XSL .,
    Plz give simple example on this ,
    I am sending this code ,plz have a look at this ,,
    XML -----+ ---XSLT---------------> XHTML(HTML) (where validation is required)*
    Hotels.xml
    ==============>
    <Services>
         <Service>
              <Hotels type="radio" title="Hotel" groupname="service" default="true"/>
              <HotelsFlights type="radio" title="Flight+Hotel" groupname="service"/>
         </Service>
         <Hotels>
              <Destination title_d="Destination :">          
                   <DestinationPlace type="OPTION" id="" title_d="Select Destination" value_d="Select Destination" defalut="true"/>
                   <DestinationPlace type="OPTION" id="" title_d="Aruba" value_d="Aruba" />
              </Destination>
              <HotelChoice title_hc="Hotels :">
                   <choice type="OPTION" id=" " title_h="AmsterDam Manor Beach" value_h="AmsterDam Manor Beach"/>
                   <choice type="OPTION" id=" " title_h="Wyndham Aruba Beach" value_h="Wyndham Aruba Beach"/>
              </HotelChoice>
              <Dates>
                   <CheckIn type="INPUT" title_dt="Check In :" id="chkin" name="chkin" size_dt="10" maxlength="10">mm/dd/yyyy</CheckIn>
                   <CheckOut type="INPUT" title_dt="Check Out :" name="chkout" size_dt="10" maxlength="10">mm/dd/yyyy</CheckOut>
              </Dates>
              <RoomNos title="No.of Rooms :">
                   <room type="OPTION" id="" titl="1" valu="1"/>
                   <room type="OPTION" id="" titl="1" valu="2"/>
                   <room type="OPTION" id="" titl="1" valu="3"/>
              </RoomNos>
              <Submit tile="Search :" type="submit" id="search" value="Search"/>
         </Hotels>
    </Services>
    Hotels.xsl-
    ------------->
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/">
         <html>
         <head>
         <script language="javascript">
         function RadioFunc()
              var result;
              alert(" Radio ");
              result +=document.write("<TABLE >");
              result +=document.write("<TR><TD>"+'Praveen'+"</TD></TR>");
              result +=document.write("</TABLE>");
              alert("Result "+result);
         function validateForm()
              alert("Before validating");
              var chkindate= document.getElementById(chkin).value;
              alert(chkindate);
         </script>
         </head>
         </html>
         <xsl:apply-templates/>
    <xsl:if test="@value_d='Select Destination'">
                        alert("Please Enter Destination");
              </xsl:if>
    </xsl:template>
    <xsl:template match="Services" >
         <form name="myform" action="two.jsp" method="get" >
              <table bgcolor="lightgreen" width="350" height="200" border="1" >
              <tr><td><xsl:apply-templates/></td></tr>
              </table>
         </form>
    </xsl:template>
    <xsl:template match="Service">
         <table border="0" align="center" valign="top"><tr>
         <xsl:for-each select="*">
              <td align="left"><xsl:value-of select="@title"/></td>
              <td align="center">
              <input type="{@type}" onClick="RadioFunc()">
                   <xsl:attribute name="Name">
                        <xsl:value-of select="@groupname"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
                   <xsl:if test="@default='true'">
                        <xsl:attribute name="checked"/>
                   </xsl:if>
              </input>
              </td>
         </xsl:for-each>
         </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/Destination">
    <xsl:value-of select="@title_d"/>
         <SELECT id="dest" name="dest">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_d"/>
              </xsl:element>
         </xsl:for-each>     
         </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/HotelChoice">
    <xsl:value-of select="@title_hc"/>
    <SELECT id="hcid" name="hcid">
         <xsl:for-each select="*">
              <xsl:element name="{@type}">
                   <xsl:value-of select="@value_h"/>
              </xsl:element>
         </xsl:for-each>
    </SELECT>
    </xsl:template>
    <xsl:template match="Hotels/Dates">
    <table><tr>
    <xsl:for-each select="*">
              <td>
                   <xsl:value-of select="@title_dt"/>
              </td>
              <td>
              <xsl:element name="{@type}" >
                   <xsl:attribute name="size">
                        <xsl:value-of select="@size_dt"/>
                   </xsl:attribute>
                   <xsl:attribute name="maxlength">
                        <xsl:value-of select="@maxlength"/>
                   </xsl:attribute>
                   <xsl:attribute name="value">
                        <xsl:value-of select="text()"/>
                   </xsl:attribute>
              </xsl:element>
              </td>
    </xsl:for-each>
    </tr></table>
    </xsl:template>
    <xsl:template match="Hotels/RoomNos">
    <table align="center"><th>Travellers</th>
    <tr><td><xsl:value-of select="@title"/></td>
    <td><SELECT id="rooms" name="rooms">
              <xsl:for-each select="*">
                   <xsl:element name="{@type}">
                        <xsl:value-of select="@valu"/>
                   </xsl:element>
              </xsl:for-each>     
    </SELECT>
    </td></tr>
         </table>
    </xsl:template>
    <xsl:template match="Hotels/Submit">
         <table align="center" border="0" >
         <tr>
         <td align="center">
              <input type="{@type}" onclick="validateForm();">
                   <xsl:attribute name="value">
                        <xsl:value-of select="@value"/>
                   </xsl:attribute>
              </input>
         </td>
         </tr>
         </table>
    </xsl:template>
    </xsl:stylesheet>
    ======================================================

    Hi
    This is not the forum for this type of question ...sorry. Try the XMLDB forum, XML DB
    Tim

  • Ipod touch won't turn on, tried holding the 2 buttons and still nothing help!

    I need help in getting my ipod touch to turn on. I tried holding the 2 buttons and it wont turn on.

    I would put it into a recovery mode to fix it. Try these steps:
    1. Unplug the touch from your computer
    2. Hold the Sleep/Wake switch until you see the red slider and turn the iPod off. (Note: this may not work and if it doesn't go to the next step.)
    3. Start iTunes
    4. Hold down the Home button and continue to hold it down while you plug your touch back into your computer.
    5. Continue holding it down until iTunes gives you a - "device detected in recovery mode" message.
    6. Follow the onscreen instructions to restore your iPod.

  • Make a read-only text field open by using button and javascript

    Hello
    I have a form with text fields that I will pre-populate with data. The text fields will be read-only by default. I want to make it so that when a user wants to make edits, he will need to click on a button and in turn, the text field's background will turn gray and he can make edits to the text field. I can already make the background turn gray but I cannot make the text field open.
    This is the code that will run after the button is clicked:
    color.ltGray = new Array("G", 0.75);
    this.getField('TestField').fillColor = color.ltGray;
    this.getField('TestField').access = "open";
    The text field's background turns gray but it is still read-only. Any ideas?
    Thanks in advance!

    Here's the online version of the Acrobat JavaSript documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/wwhelp/wwhimpl/js/html/wwhel p.htm?href=JavaScript_SectionPage.70.1.html&accessible=true
    It's also available as a PDF in the Acrobat SDK.
    Regarding your other question about adding a PDF to another, do you want to add it as an attachment, or add the pages from one PDF to another?

  • My phone wont turn on ive tried holding the sleep and home button and nothing happened help?

    i turned my phone off and it wont turn on ive tried holding the sleep and home button and nothing happened...i plugged it in to my computer and i didnt connect to itunes help

    The two first choices are to reboot by holding both the power and home buttons until the apple logo appears, that can take up to half a minute.  If that does not work, then more drastic is to restore using the recovery mode to connect to a computer running iTunes, described in http://support.apple.com/kb/HT1808 and summarized as:

  • Had problem with bookmarks, history, back button and google links not working.

    For the last five days i've had problems with firefox. First, i noticed that it was running incredibly slowly and then that all the links in the google search were not working. Then i noticed that neither was the history, bookmarks or back button. I went on to facebook chat to ask for help. First, I was told to reinstall firefox, which didn't work. Then i was told to do a "clean" install where you rename the old firefox folder in the programs folder so that it makes sure when it's installed that everything is new and nothing is corrupted. That didn't work either. I then disabled my antivirus software and firewall to see if that was causing the problem. It was not. Then I installed an anti-malware program to remove any adware or spywar,e which it did remove from my computer, but it didn't solve the problem. The chat person was at a loss and I don't blame him/her because so was I.
    The reason I'm writing this is in case anyone else has the same problem. The only way I solved it was first by uninstalling and making sure to check the little box asking if you want all personal data and such associated with firefox also removed (which removes cookies as well) and then I finally thought to delete all the cookies from the rest of my computer also. Once all the cookies were gone and i had fully uninstalled firefox and personal data, I reinstalled it with a newly downloaded file and it is once again functioning properly. Hope this is helpful to anyone who's been ripping their hair out. :)

    '''I have the same problem!!
    But in my case, not just Google links.
    The problem happens with all the websites links.
    Please...
    Help us!!
    Thnx'''

  • Page Fragment and javascript - need help please

    Hi all..
    I have a page fragment (being used as a header) and am trying to get a text field in this page fragment to recieve a value from a javascript (that is embeded in the page fragment).. see the example below..
    --------------PageFragment1----------------------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid; width: 400px; height: 200px" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://www.sun.com/web/ui">
    <f:subview id="Fragment1">
    <ui:textField binding="#{Fragment1.textField1}" id="textField1" style="position: absolute; left: 180px; top: 30px; width: 165px; height: 15px">
    <SCRIPT>
    var d = new Date();
    document.getElementById("Fragment1:textField1").value = d.toLocaleString();
    </SCRIPT>
    </ui:textField>
    </f:subview>
    </div>
    My problem is that doesn't matter what I do I cannot set the textField1 value from the script. For the actual application it does need to be a javascript - does anyone know how to do this on a page fragment as opposed to a plain page...
    The actual error I get is on the client side and it states that document.getElementById is null... :( someone please help.
    Thanks in advance.

    You probably need to prepend "form1:" to the id (or whatever your form's id is) One sure fire way to figure this out is choose view source in your browser and search for the target field.

Maybe you are looking for

  • IPhone 3G Not recognized by latest iTunes version

    It's been a while (MANY MONTHS) since I updated / synced my iphone 3G.  But I just updated my iTunes and now my iphone 3G isn't even showing up in iTunes.  I've got Windows 7 64-bit on my pc & my phone shows up there in "Computer".  I've since remove

  • XSLT Transformer xmlns namespace problem

    Hi, I have the following xml document <PIPEDocument Version="2.0" DocumentReferenceNumber="2001" CreationDate="2002070401251212245"      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"      xmlns="http://www.oeb.gov.on.ca/">      <MarketPartici

  • Creating trees, step - by - step

    anyone know how to make a tree easily or have some step by step instructions. i am trying to create a tree that will show project number then level down to task number and then subtask number. projects , tasks, and subtasks are on seperate tables. Ed

  • How do i put a photo on a scession file with logic

    How do i Use a photo on the movie part like the demo version numbers in logic pro 9.0

  • Duplicate Records Found?

    Hi Experts,    Is there any Permanent solution for Duplicate Records Found?     Info Package> only PSA subsequent Data Targets- Ignore Duplicate Records. Can u explain clearly for this Issue to close Permanently. Note : Points will be assinged. With