HTML Link ( a href)- wrong behaviour

Hello,
This simple code
<a href="javascript:$('.div-feedback').fadeIn();">
doesn't work in my newest version of firefox 29.0.1. it works on chrome just fine as it should.
rather than interpret as javascript, it reads as an url (opens the page "javascript:$('.div-feedback').fadeIn();" which is wrong of course)
Do you have an idea why?
Thank you
Gonçalo

Actually, the ''href'' attribute is supposed to direct the browser to a new URL, etc., not run a script. Instead, use the ''onclick'' event attribute:
''<a onclick = “$('.div-feedback').fadeIn();”></a>''.
Happy coding!

Similar Messages

  • HTML links won't display in Dynamic Text Field

    I am loading external text files in dynamic text fields on my
    webage. These texts contain html links (<a href="page.html"
    target="_blank">Click Here</a> and I have "render as HTML"
    on and "selectable" off in my dynamic text field. Also, I am
    loading a CSS file. Not only do I not have a hand cursor, but I do
    not even have any of the text from that piece of html code down.
    What is going on with this? Please respond asap, as I have been
    struggling with this for a day now. Here is the Actionscript for
    loading the CSS:
    var flash_css = new TextField.StyleSheet();
    flash_css.load("styles.css");
    flash_css.onLoad = function(success:Boolean) {
    if (success) {
    zloc_txt.styleSheet = flash_css;
    } else {
    trace("Error loading CSS file.");
    var zloc_lv:LoadVars = new LoadVars();
    zloc_lv.load("zloc.txt");
    zloc_lv.onLoad = function(success:Boolean) {
    if (success) {
    zloc_txt.text = this.content;
    } else {
    trace("unable to load text file.");
    zloc_txt.html = true;
    zloc_txt.editable = false;
    _global.styles.TextArea.setStyle("backgroundColor" ,
    "transparent");
    _global.styles.TextArea.setStyle("border styles" , "solid");
    Here is a sample of the text file code:
    &content=<span class="headline">Northwest Arkansas
    Locations</span>
    121 Main St.
    Russellville, AK 77801
    (626) 111-1111<br />
    <html><a href="
    http://www.mapquest.com"
    target="_blank">Click Here for Driving
    Directions</a></html><br />
    Thanks for the help,
    Chuck

    The error is here:
    zloc_txt.text = this.content;
    Even if you rendered the textfield as HTML, you still need to
    tell flash that the variable you are inserting is HTML. Therefore
    you need to use the htmlText property.
    zloc_txt.htmlText = this.content;

  • HTML link, IE8

    Hi!
    I've made (with help) a flash which displays quotes from a txt file. Few of them are html links (<a href="... etc). It works without problem if I check it with Google Chrome, but IE8 won't open the links. I've no idea what could be the problem. Microsoft support just passed the question. Though I think it's browser related, I wondered if anybody had the same problem.
    YvorL

    With no offense.
    Anyone, idea?

  • HTML Link -AS2 fine, AS3 weird behaviour

    Hi Guys, I'm working on a project at the moment, and am
    seeing weird behaviour with the way my swf handles html links
    inside dynamic textboxes. When rendered as a AS2 file, the link
    works on a release as expected. When its inside a AS3 file the link
    will only work if the user right click and chooses 'open in new
    window' was there a change in behaviour how AS3 handles these
    links, or is there now an declaration needed to be made to allow
    these link to have the old behaviour?
    The project calls for xml data and embedded in that is a html
    link. Originally I thought it might have been the way I'd formed
    the xml so I tried with a hardcoded version instead (dynamic
    textbox, add text -> highlight -> add link through properties
    tab). But I still see the same behaviour between the as2 and as3
    versions.
    Any help would be greatly appreciated.
    Cheers.

    Actually, the ''href'' attribute is supposed to direct the browser to a new URL, etc., not run a script. Instead, use the ''onclick'' event attribute:
    ''<a onclick = “$('.div-feedback').fadeIn();”></a>''.
    Happy coding!

  • 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:link problem with Mozilla vs. IE

    Hello,
    I am experiencing the following situation.
    In IE the following segment of code works properly:
    <td>
    <table border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
         <html-el:link action="zone3/g036Play">
         <td><html-el:img srcKey="detailsLeft2" bundle="ZONE3_IMAGE_RESOURCE_KEY" border="0" width="17" height="18"/></td>
         <td class="details"><bean-el:message key="couponsHistory.details" bundle="XLTS_MESSAGE_RESOURCE_KEY"/></td>
         <td><html-el:img srcKey="detailsRight2" bundle="ZONE3_IMAGE_RESOURCE_KEY" border="0" width="9" height="18"/></td>
         </html-el:link>
    </tr>
    </table>
    </td>BUT in Mozilla the link doesn't work
    On the other hand, i found out that if i place the <html:link> tag outside of the table, then the link will work properly for mozilla but won't work for IE.
    Is there a way i can work this problem around?
    Thank you very much in advance.
    Frini

    ok, sorry, my mistake, i was looking at the wrong fragment of code.
    It output the HTML code:
       <td><a href="/XltsWeb/zone3/g036Play.web"><img src="images/xlts/details_left_lottery.gif" height="18" width="17" border="0"></td>
       <td class="details">Details</td>
       <td><img src="images/xlts/details_right1_lottery.gif" height="18" width="9" border="0"></a></td>which still doesn't work in Mozilla as a link...
    But if i place <html:link> outside the table and inside TD, i get:
    <td>
      <a href="/XltsWeb/zone3/g036Play.web"><table border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
      <td>
       <td><img src="images/xlts/details_left2_lottery.gif" height="18" width="17" border="0"></td>
       <td class="details">Details</td>
       <td><img src="images/xlts/details_right2_lottery.gif" height="18" width="9" border="0"></td>
       </td>
       </tr>
       </table></a>
    </td>and works in Mozilla, BUT no, none of the above works in IE!!!!!!!!!!!!!!!!!!!!!
    The only code that works in IE, is the first that i posted!!!!

  • HTML Link to Product Revenue Detail Page

    I have a simple table report developed for the Product Revenue.
    Help me with either "Custom Text" using ActionLink or a HTML Link for navigating to Product Revenue Page.
    I tried following link
    http://"@[html]"<a target=_blank href=https://secure-ausomxafa.crmondemand.com/OnDemand/user/RevenueDetail?OMTHD=RevenueDetailNav&OMTGT=RevenueDetailForm&RevenueDetailForm.Id="@">"Click"
    Thanks
    Edited by: user648222 on Jan 22, 2009 7:54 PM

    Try this:
    'Product Detail'
    the product revenue needs the Opty ID to be passed into it. If this doesn't paste properly email me at alex.neill@{see profile} and I'll email it to you.
    cheers
    Alex

  • How do I add an html link/banner to a page in my flash website?

    I purchased a flash website template and am in the process of editing my main.fla file.  In order to get listed on an advertising website with a higher rating, I have to place a reciprocal link to them on my site.  However, I cannot figure out how to place an html link/banner on my site for other businesses.  If I paste the html code in a text box, all that shows up is the html code rather than the image and link it is meant to generate.  Please help!

    Flash only supports a small amount of html in text areas.  If what you re trying to include is within what it supports, then you assign the text to the textfield using the htmlText property of the TextField...
    tfield.htmlText = "<a href="...">link</a>"; // will display "link" as a link

  • Is there a way to include html link with applet?

    I am thinking of writing an applet that would be useful to others, which I would provide for free. In return I would want a link from the pages that use the applet. It is important that the link is search engine friendly, a pure href html link that will provide google page rank to me.
    Is there a way to include such a link with an applet so that it can't be removed?

    No. You can't force other sites to change their content.

  • Can I use a report item as a parameter in an html link.

    I have a report (build using the Query Wizard) that selects and
    shows data from a database on a seperate system (via a database
    link). The first column of the report gives an ID Number that I
    want to use as part of an html link to display the full details
    of the item.
    So if the item on the report has a value of 123456 I want my
    html link to create a url of http://system/plsql/show_details?
    thingid=123456
    Any ideas?

    We are using dynamic pages to accomplish that goal. The links
    actually go to items/folders within portal, but it would be the
    same thing.
    I have found using the combination of links and reporting tools
    to be very limited on the site when it comes to trying to create
    links to things other than forms or other reports. That is
    probably 90% ignorance on my part, but I have not been able to
    accomplish this in any way other than a dynamic page.
    Any suggestions on building a dynamic link within a portal
    created report to a portal page/item would be appreciated.
    I have also tried to concatenate in a <a href> tag in a SQL
    Query based report, but generally errors. We have also created
    a view that creats the link for us, that could be another option
    for you, if the link is static.
    Good Luck and hope my ramblings make sense.
    Brian

  • Adding a html link to a carousel

    i have followed a tutorial to build a flash craousel and have had no problems in building that.  i wanted to add a html link to a section of the carousel but everything i have tried up to now has failed.  All the information is passed through to the carousel from an xml file and everything works fine except for the link.
    i have slightly modified the tutorial so i have an extra box on the information page which holds the web address for the site they are looking at in the portfolio.  i have the address showing up but i cannot use the text as a link.
    the box that i am putting it in is a dynamic text box which has been set up with the following settings
    theLink.html = true;
    theLink.htmlText = t.Link;
    so as far as i know these are set to be able to handle html tags/code but they are not playing games.
    i have tried to pass the link through to the swf file from the xml file with the following code but this just seem to break the whole application.
    Link="<![CDATA[<a href='http://www.acmeart.co.uk/pip_new']]"
    to view how i have the file working upto now please view the link below.
    http://acmeart.co.uk/carousel
    i feel the problem is not with the flash application but more with how i am trying to pass the html link over to the application from the xml file.  i will attach the xml file to the post.

    What I had in mind was to place the link inline in your text. Something like this:
    <item name="valley" full="assets/valley.png"
            title='Book - CD ROM'
            body='This product was a Shockwave holiday card. It began as a jigsaw puzzle. As the puzzle was solved, it opened and displayed the holiday greeting. &lt;a href=&quot;http://www.amazon.com" &gt;Purchase a copy.&lt;a\&gt;'>
        </item>
    The url is right in the text. The html markup is escaped as html entities.

  • How to include HTML link in BI Publisher Report?

    Hi,
    I am trying to include an HTML link in a BI Publisher report. But I get the HTML Code, not the link.
    I have put this in the Data Set SQL Query:
    select id_constancia, rfc, apellido_paterno, apellido_materno, nombre, e_mail_empleado,
    'a href="http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:'||ID_CONSTANCIA||'">CITA</a ' as liga_cita
    from geiq_constancias
    where entregada = '0' and sust_rh = '0'
    And I have included the field LIGA_CITA in the rtf template,
    But I get this in the HTML output:
    =======
    Please clic on the link below to log into the system:
    a href="http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183">CITA</a
    =========
    (I removed the beginning and ending '<''>' to prevent the text to be shown as a link)
    I have put the property "Make HTML output accessible" to TRUE in the report configuration, but nothing changes.
    Does anyone know how to make this work?
    Thanks.
    Francisco

    Hi Francisco,
    Note:
    your xml should only have
    <URL>http://dbxserver.dbxprts.com:7778/pls/apex/f?p=134:1:::NO::P1_ID_CONSTANCIA:1183</URL>
    Show me your sample XML , i can help you.
    What is your expected output ? PDF or HTML ?
    here it is.
    option1:
    If the XML data includes an element that contains a hyperlink , then you can use that element to create dynamic hyperlinks at runtime.
    a. insert hyperlink from word menu
    b. In the Type the file or Web page name field of the Insert Hyperlink dialog box, enter the following syntax:
    c. {ELEMENT_NAME_WHICH_HAS_URL_LINK}
    where ELEMENT_NAME_WHICH_HAS_URL_LINK is the xml data element name
    option2:
    create a form field, you can add it
    <fo:basic-link external-destination="http://www.google..com">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link external-destination="{ELEMENT_NAME}">
    <fo:inline text-decoration="underline">google Link</fo:inline>
    </fo:basic-link>
    or
    <fo:basic-link>
    <xsl:attribute name="external-destination"><xsl:value-of select="ELEMENT_URL"/>
    </xsl:attribute>
           <xsl:value-of select="LINK_NAME"/>
    </fo:basic-link>

  • Having problems passing more than one parameter with html:link tag

    Hi guys,
    for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
    For ex: I have in the database User1, User2 and User3. I would like to have a result like:
    User1
    User2
    User3
    Instead of it I have the result like:
    User1
    User2
    User3
    User1
    User2
    User3
    User1
    User2
    User3
    What I�m doing wrong? Could somebody help me please?
    Thank you in advance
    There is a snippet of the code, which I�m using in jsp:
    <code>
    <logic:iterate id="root" name="user">               
                   <%
                        java.util.HashMap users = new java.util.HashMap();
                        params.put("user",root);
                        pageContext.setAttribute("usersName", users);
                   %>
                   <html:link name=" usersName " scope="page" page="/name.do">
                        <logic:iterate id="folder" name="user">
                             <bean:write name="folder" /><br>
                        </logic:iterate>
                   </html:link><br>
                   </logic:iterate>
    </code>

    Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
    You have a nested loop structure here.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name=" usersName " scope="page" page="/name.do">
        <logic:iterate id="folder" name="user">
          <bean:write name="folder" /><br>
        </logic:iterate>
      </html:link><br>
    </logic:iterate>Both loops iterate over your "user".
    Your first loop loops over each user.
    Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
    If you have 4 users, you would have 4 groups of 4.
    I only see you setting one parameter: "usersName" What other parameters do you need to pass?
    At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
    <logic:iterate id="root" name="user">
      <%
        java.util.HashMap users = new java.util.HashMap();
        params.put("user",root);
        pageContext.setAttribute("usersName", users);
      %>
      <html:link name="usersName" scope="page" page="/name.do">
          <bean:write name="user" /><br>
      </html:link><br>
    </logic:iterate>

  • Html link to pdf works ok on mac but not on ipad. adobe reader for ipad downloaded.

    HTML link to pdf works ok on Mac but not on ipad. Adobe Reader for ipad downloaded. What's wrong?

    Hi pwillener,
    Thank for reply. The pdf’s are in a subfolder “PDF” of the folder holding the web page. The web page itself uses
    . This works in full size computer browsers but not in an iPad.
    My excursion through the search engine has produced the idea of adding #page = requesting page to the URL but I have not had time to try it perhaps without the = sign.
    Bryan

  • Colors of html:link is not consistent

    Hi,
    I am using html:link in jsp for showing the links.
    <html:link href="test.do" params="testParams" styleId="testlink" styleclass="testurl" />
    while running the application and the link is visited, color of the link gets changed from blue to black. But when I go to next screen and come back, link color changes back to blue or sometimes shows as black. Its not consistent.
    I thought of writing code in css. I am not sure how to do it.
    Please help me how to make the color of the link consistent. Once visited, it should be black or else blue.
    Thanks & Regards,
    Nasrin.N

    on your web page, if you click "View Source" does it show things in plain old HTML format as in Some Link Text ?
    If it does then the above code I posted should work.
    The selector "a" in the above code matches all anchor tags in the page, so there's no need to specify a class or an id , for the anchor tags.
    But if you want only some links to be colored a certain way then you would add a class , or an id (which ever is appropriate) to those links.
    If you assign a class then the CSS would have to include the class of that anchor tag.
    So it would be something like
    a.classname:link{
    CSS is very simple, it could be learned in just one to two days, here's a good tutorial: http://www.w3schools.com/css/default.asp

Maybe you are looking for

  • Getting list of pageids  and list of tabnames??

    Hi All! I am on windows 2000. i have portal deployed. how do i get list os all page-ids and list of all tabnames(including subtabs) on a particular jsp(portal) page, using the java pdk api?? A sample code will really help! thanks, sa pa

  • I want to know when the Firefox 27.0 that's not beta version will releases on Windows.

    I know the Firefix beta has been released for Windows on last week. So in the futere, the Firefox beta version will be just Firefox. Do you understand about my saying? I'm sorry for my poor skill making grammer. But I would like to know the date that

  • Can I move genius playlists from imac to ipod?

    I have great genius playlists on my imac...can I get them on my ipod classic?

  • BDC recording

    Hi , There is a flat file in the application server containing some fields of header and the item of the sale order. Ex: VBELN, PO number, PO order type, Completed Delivery indicator  at header level. Vbeln, posnr, sales type, Partial delivery indica

  • With 3g, I keep getting "server not responding" on my iPad2...what do I do?

    at home, where I do not have WIFI, I have been unsuccessful for the last day to get an internet connection via 3G. Getting emails is  not a problem, but when I try to access the internet, all I get is "server not responding".....do I contact ATT or i