External site linkage

okay I am super new to Flex, so please forgive my slowness
and ignorance.
I am trying to design a site that will allow users to access
external websites (like on a link page).
The HTML syntax for this is <a
href="www.googl.com">Google Search</a>
In my code I tried:
<mx:HTTPService id="nappylo" url="'
http://www.nappylocs.com'">
<mx:Text text="Nappy Locs" color="#d58743" y="123" x="24"
fontSize="12" fontWeight="bold"/>
</mx:HTTPService>
* What am I doing wrong ... help me please!

Use URLRequest together with navigateToURL.
_self Specifies the current frame in the current window.
_blank Specifies a new window. This new window acts as a
pop-up window in the client's browser, so you must be aware that a
pop-up blocker could prevent it from loading.
_parent Specifies the parent of the current frame.
_top Specifies the top-level frame in the current window.
------------------- sample code ------------------------
<?xml version="1.0"?>
<!-- wrapper/SimplestNavigateToURL.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import flash.net.*;
public function openNewWindow(event:MouseEvent):void {
var u:URLRequest = new URLRequest("
http://www.nappylocs.com");
navigateToURL(u,"_blank");
]]></mx:Script>
<mx:Button label="Nappy Locs"
click="openNewWindow(event)"/>
</mx:Application>

Similar Messages

  • How to I get an FLV Skin to display on external sites?

    This is thee most frustrating thing! I've been trying to get
    my FLV skin to display on other sites when embedded, but the video
    is the only thing that shows up. There are no play back controls;
    nothing! I can view things just fine on my site (so that is NOT the
    problem) – it's just not displaying on other sites.
    I am using an FLV component and I do have all the necessary
    files loaded in the same folder. It's just when I try embedding the
    SWF file on an external site, the only thing that shows up is the
    video w/ no controls or skin.
    Is there embedding code to include the second SWF file?
    OR
    Is there a better way in creating a SWF file that includes
    the FLV component? ActionScripting or something that needs to be
    added???
    If so, please explain! I got ALL DAY AND NIGHT! This is
    driving me up the wall. There is NOTHING on the web that talks
    about this.
    Thanks!!!!!

    I found a link which informs that not all servers allow the MIME type for "f4v" files. . .
    http://forums.devshed.com/flash-help-38/how-do-i-make-f4v-files-play-in-a-web-610155.html
    Also, when I tried inserting a FLV object using Media>FLV the menu option only allowed me to insert FLV files, not F4V files.  So that comes back to the issue of what type of container you would be using since the Dreamweaver FLV container does not support F4V.

  • How to pop up a new browser window to point to an external site

    Please help. we want to popup an new browser window when click on a button and the new window is pointing to an external web site.
    I can make it work to point to an external site in the same window. But that is not we want to.
    I do see some old posting about this but it does not work for us.
    Please anyone knows the detail of the steps and code, probably including any environment setting/configuration if required, response to this thread.
    thanks a lot in advance!
    ggu

    ggu,
    This is a gimmicky solution but it works and is reusable. Copy your button template and rename it POP_UP_BUTTON. Get rid of the #LINK# substitution string and replace it with:
    window.open('#BUTTON_ATTRIBUTES#')Put the URL you want to go to in the attributes section of the button. Put something like "TO_<DOMAIN>" in the button request so it is not totally gibberish and irrelevant. This would be much nicer if the apex engine did not include the "apex.submit()" code inside of the #LINK# substitution string. Or if they provided a second substitution string just for the URL specified.
    Here is the old code:
    <button value="#LABEL#" onclick="#LINK#" class="button-default" type="button">
      <span>#LABEL#</span>
    </button>here is the new code:
    <button value="#LABEL#" onclick="window.open('#BUTTON_ATTRIBUTES#')" class="button-default" type="button">
      <span>#LABEL#</span>
    </button>Cheers,
    Tyson Jouglet
    Edited by: Tyson Jouglet on Jun 17, 2011 8:50 AM

  • Dynamic link to an external site?

    Hi There
    Has anyone any ideas where I'm going wrong here, it seems like it should be easy to me but all the settings I've tried don't make any difference.
    I'm using Dreamweaver CS3 on Mac running Snow Leopard and I've set up a phpMyAdmin database.
    One of the database fields called 'website' contains a list of stockists website addresses. I want to have a dynamic text link that opens up the stockists website in a new window when the text is clicked. So I'm doing this...
    <a href="<?php echo $row_recordset1['website']; ?>">CLICK HERE</a>
    This opens up a new window but instead of forwarding to the chosen website e.g. www.external.com
    It keeps my existing website url at the front of the link so I'm getting something like...
    http://www.mysite.com/www.external.com
    Anybody any ideas how I can tell the link to lose the bit at the front?
    Many Thanks

    Hi
    Thanks a lot for your reply, I wanted to open the external site in a new window and hence I have the following path as my URL
    javascript:window.open('http://#COL09#','name','height=400,width=800');
    This opens the oracle site in a new window , but at the same time my apex browser renders a blank page with [object Window] printed on the browser window.
    Can you please tell me what is happening.
    Thanks.

  • Track No. of times link to external site is clicked on a page

    Question:
    Our client strongly promotes another business on their site with a large button to click through to that business' url, which then opens in a new window. Is there any way in the reporting section of BC that our client can prove how many times visitors have clicked this link? i.e. a way that they can show how frequently referrals have come from them?
    This kind of link click through tracking is obviously possible in eNewsletters - but what about on actual webpages?
    Answer:
    One way you could do it is by utilising the ad rotator module.
    You can add the html to it then add the module code to your page and it will report on total impressions and click throughs to the link specified.
    Then you can also have data on the conversion rate.
    Another way would be to send your visitor to a page on your site that is redirected to the external site automatically. That way you can still track it.

    Hi Mario
    Just found your post after posting a similar / related question (mine has to do with tracking click-throughs from within a secure zone)
    Am interested in your statement
    'Another way would be to send your visitor to a page on your site that is redirected to the external site automatically. That way you can still track it'
    Could you explain exactly how to track using page-redirects?
    Many thanks
    Maggie

  • When I link to an external site, the link does not work, if I right click "Open in new tab" the link works.

    When I link to an external site, the link does not work, if I right click "Open in new tab" the link works.

    I have not changed any of my preferences and they look like they are as I would have left them.
    I tried resetting Firefox and deleting the preference file, no change.
    By the way, I hate that the tabs are on top and not where they belong above the pages they are for. There should still be a way in Firefox to put them back without having to use an add-in.

  • Submitting forms to external sites

    Hey All
    Is it somehow possible to submit forms to external sites using NETUI
    form tag? In this case its a card-payment server that needs alot of info
    stored in my controller.jpf. The easiste way to access this, is through
    NETUI tags. Unfortunatly it seems that NETUI form only submits to the
    internal controller?
    How can I solve this?
    Oliver Billing

    Hi
    As a workaround you can use java script.
    <netui:html>
    <head>
    <script>
    function changeAction(){
    var myForm = document.getElementById(getNetuiTagName("myForm"));
    alert(myForm);
    myForm.action = "http://google.com";
    myForm.submit();
    return;
    </script>
    </head><body>
    <netui:form tagId="myForm" method="post" action="begin">
    <netui:button type="button" onClick="changeAction();" value="OK" />
    </netui:form>
    </body>
    </netui:html>
    Thanks
    Vimala

  • When using a link to an external site

    When using a link to an external site in Muse, how can I have the browser open a new (second) window for that site?

    Hilite your text, click on the blue word 'Hyperlinks" and check the box 'Open the link in a new .......'

  • Passing values to APEX items from external site

    All,
    Is it possible to pass values to APEX page items from an external web site?
    For example, I have an external web site where users type in a username and password into fields. When they click the 'log-in' button in the external site, I would like to have those values passed to the APEX log-in page. If possible, I would like to have the APEX log-in occur 'invisibly' and the user taken directly to the home page of the app. If that's not possible, it would be nice to simply have the 'user name' and 'password' fields filled in on the APEX side.
    I'm using APEX 3.0.
    Thanks in advance for any help!
    Alex

    Hello Alex,
    >> Is it possible to pass values to APEX page items from an external web site?
    The general answer is yes. You can use the f?p syntax to set the value of any APEX item - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#sthref185 .
    In your specific example, the main question should be is it wise? The mere fact that you are using a login process suggests you have something to protect in your application. The f?p syntax uses a plain text for the items’ value, which means that the user name and password will be completely exposed.
    Regards,
    Arie.

  • Security with HTML from External Site

    I am building an application that pulls HTML content from an external site (RSS feed) and placing that content into my Flex application.  The content of this HTML is controlled by another developer at another company.
    After pulling back the HTML I am setting it as the htmlText attribute for an <mx:Text> box.
    Is this safe?  Since I don't control the source HTML content I'm concerned about the content having cross-site scripting attacks in it.  Links or things that execute arbitrary javascript onclick.  Is there any way to ensure that the HTML coming back can't be used to execute any JavaScript or ActionScript?
    Thanks,
    ..Jordan
    Jordan | Yodlee Product Management
    Launch your Flex-based financial app in the Yodlee FinApp Store - http://www.finappstore.com

    I have come up with a two-part solution which I think solves my problem.
    1) Flex automatically removed all intrinsic elements from the HTML:
        <mx:String id="inputString">
             <![CDATA[
             <a href="#" onclick="alert('hi');">Onclick alert</a><br/>
             <script>alert("Your text in the alert function.");</script>
             ]]>
         </mx:String>
         <mx:Text id="inputText" height="100%" width="100%" htmlText="{inputString}">
    The value of inputText.htmlText is the following (notice there is on “onclick” event as Flex automatically cleans out intrinsic events:
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">        <A HREF="#" TARGET="">Onclick alert</A></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">        alert(&quot;Your text in the alert function.&quot;);</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">        </FONT></P></TEXTFORMAT>
    2) So all I need to do is remove the "bad" links which is done like so:
    public function makeSafeContent(content:String):String {
    var safeContentStr:String = content;
    var myPattern:RegExp = /javascript/gi;
    safeContentStr = safeContentStr.replace(myPattern,"<span>javascript</span>");
    myPattern = /asfunction/gi;
    safeContentStr = safeContentStr.replace(myPattern,"<span>asfunction</span>");
    myPattern = /event/gi;
    safeContentStr = safeContentStr.replace(myPattern,"<span>event</span>");
    myPattern = /vbscript/gi;
    safeContentStr = safeContentStr.replace(myPattern,"<span>vbscript</span>");
    return(safeContentStr);
    Jordan | Yodlee Product Management
    Launch your Flex-based financial app in the Yodlee FinApp Store - http://www.finappstore.com

  • Building Links to external sites

    Newbie question:
    When making a link to an external site, how do you keep your
    own page on the desktop. The default mode loads the external page
    but does not preserve your page.
    Thank you.

    Make the link have a target of "_blank", e.g.,
    <a href=''
    http://www.example.com"
    target="_blank">
    and it will open in a new window. Note that the target
    attribute is
    deprecated, and its use will cause a page with a strict
    doctype to fail
    validation.
    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
    ==================
    "Sayulitasurfer" <[email protected]> wrote
    in message
    news:f2nibl$5hc$[email protected]..
    > Newbie question:
    > When making a link to an external site, how do you keep
    your own page on
    > the desktop. The default mode loads the external page
    but does not
    > preserve your page.
    > Thank you.

  • Link to external site

    Hi,
    I have a table with one of the column containing links to an external site. This url is saved in the database.
    On clicking the link I want the user to be taken to that site in a new window.
    Please let me know the standard way in OAFramework.
    Thank you,
    Arun

    Hi,
    Thank you for the reply. I tried this earlier, but the link from the db is an absolute URL and having {@urlfromdb} opens a window with the following url
    http://oaappserveraddress/OAHTML/http%3A%2F%2Fwww.google.com%2Fig
    In the above case, the url happens to be http://www.google.com/ig
    This url is not a constant and each holds a different url pointing to external and other internal portals.
    I have two things:
    1. to open the url in a new window without the base url of the OA App.
    2. to avoid the encoding that happens (notice the %3A%2F in place of ://)
    Your help is appreciated very much
    Thank you,
    Arun

  • Link in the video to a external site

    Hello, I want to link places in the video to a external site.  Does adobe have tools for this other than flash?  I was hoping that PP would offer function for this....

    I don't believe the video file itself can contain a link.  It's usually the player that handles that type of functionality.

  • Embedding Flash SWF Skin in External Site

    I posted this under the Flash forum as well. My Flash video
    displays correctly on my server, however, if I try embedding my
    Flash SWF file on an external site – just as you would with
    YouTube – the skin does not transfer. The video is the only
    thing that displays.
    I understand when using components that 2 SWF files are
    created when published – SO with that said, is there an HTML
    embedding technique to display both the video w/ the skin? If not,
    is this something that needs to be corrected within the Flash file.
    Any thoughts?

    I have this in front of the trace:
    myvars.onLoad = function(success){
    When I put in the full URL to the attachment on the Google page (i.e., something similar to "myvars.load("https://sites.google.com/a/..../home/department-sites/sales/variables.txt,");" - instead of just "myvars.load("variables.txt");", it doesn't work. So right now its set to just "variables.txt" and the swf file is in the same root location as the variables.txt file on the Google page. I also have a copy of the variables.txt file in the same local directly in which I am running the flash file for testing. So I think when I run it in debug mode, its referencing the variables.txt file in the local directory, rather than the one stored as an attachment on the Google page.
    That's what seems so weird...it runs locally in debug mode...but not when I embed it on the Google page. I can also get it to work if I explicity define the variables in the flash file, rather than rely on the external text file. That's the only time I can get it to work on the Google page.
    Thank you for your help!

  • JAAS requiring re-authentication when returning from external site.

    Our Struts web application uses another application for some of its functionality. When the authenticated user clicks on the link, a cookie is set with some user info and the user is redirected to the external site. The user interacts with the external site and then the site redirects the user back to our site (to a previously unvisited, secure action). Unfortunately, the user is being prompted to authenticate again, even though they have already done so. The strange part is that this behaviour only exists the first time a new browser is opened (both IE and Mozilla). Subsequent visits to the site (after properly logging out, and logging back in) do not cause this problem. The other strange part is that when the user returns to the site and is prompted to authenticate, the login module that we are using logs a message that it is checking the user info against the allowed roles, and the user does, in fact, already exist.

    Nevermind. This was a stupid mistake on my part. I was accessing the site from localhost but the external site was returning to the actual URL. My bad.

Maybe you are looking for

  • Ipod will not sync to itunes, just stops half way and freezes the computer

    my ipod has suddenly stopped syncing to itunes half way through and freezes the computer. it is not the songs because they sync to my phone. how can i fix this?

  • Printer won't print black ink; have already replaced printhead 1 month ago

    My Office Jet 6500 e709n stopped printing black ink first part of December. I followed all the instructions on the HP site and cleaned printhead several times, replaced ink with new cartridges and ended up replacing the printhead and purchased from H

  • Nokia 101 music player play only first 20 songs

    hi friends ... i have a problem...whenever i download songs in my memory card,my music player play only first 20 songs,and other songs show me format error.... please help me what can i do with this ???? Moderator's notes: Moved into it's own thread

  • Custom post_upgrade hook?

    Something like `customizepkg' but with respect to binary package, sort of additional `post_upgrade' hook. I.e. I would like to change some package configuration automatically after upgrade. For an example:   - changing "hello message" for several uti

  • Some trouble IN  PROC

    When I make oracle sample PROC program, display as fllow: [oracle@linux8 demo]$ make -f demo_plsql.mk make: `/oracle/product/9.2.0/lib/libclntsh.so' is up to date. My enviroment is Redhat 8.0 with oracle 920 Who can help me!