HTML a href Attribute in Safari

I have set up my personal homepage using a number of HTML a href attributes inside a table, so that when I click on one of these, it will take me down to the appropriate anchor defined by HTML a name. This works fine in Firefox, but does not seem to work in Safari 3.2.1. In Safari, it simply stays put and does not take me down to the appropriate anchor.
Example of my HTML:
<tr>
<td>Favourites</td>
<td>Airlines</td>
<td>Architecture</td>
<td>Art, Images, Pictures, Photography & Posters</td>
<td>Books, Book Stores, Literature, Literary Societies</td>
<td>Cars</td>
<td>CCCV</td>
</tr>
Airlines
Cathay Pacific
Qantas
Frequent Flyer
Singapore Airlines
Virgin Blue Australia
<hr>
Architecture
Monument Environments
<hr>

Hi Alex,
Have you tried dropping the <base> tag in the header? That should make the named anchors load quicker as well as the browser won't attempt to re-download the page all over again.
Also, your DOCTYPE declaration seems a bit out of date. I don't think it's affecting anything as such but you might want to update it. I only mention it as the W3C validator check [marks it as being problematic|http://validator.w3.org/check?uri=http%3A%2F%2Fmembers.optusnet.com .au%2Falexcywong%2F&charset=(detect+automatically)&doctype=Inline&group=0].
I should note that I can't actually test that recommended change above in Safari as I'm not on a Mac at the moment, but it does help with a browser that uses WebKit on my current machine.
Hope that helps.

Similar Messages

  • Can I get Href attributes in HTML page ?

    Can I get Href attributes in HTML page ?
    I want to get HTML's table include href.
    I want to get columns "item", "item href", "value" from below table in a HTML web page.
    <table>
    <thead>
    <th>item</th>
    <th>value</th>
    </thead>
    <tbody>
    <tr>
    <td><a href="http://xxx.com/blue">item blue</a></td>
    <td>10</td>
    </tr>
    <tr>
    <td><a href="http://xxx.com/red">item red</a></td>
    <td>20</td>
    </tr>
    </tbody>
    </table>
    Regards,
    Yoshihiro Kawabata

    Hello Ben, I'm using some methos Web.Contents+Text.FromBinary+Text.Replace+Web.Page for href on HTML.
    source1 = Web.Page(
    Text.Replace(
    Text.Replace(
    Text.FromBinary(
    Web.Contents(url)),
    "href=""",
    ">"),
    "q=xx"">", "q=xx,")),
    This query transform href attribute to text in specific HTML.
    Original:
    <table>
    <thead>
    <th>item</th>
    <th>value</th>
    </thead>
    <tbody>
    <tr>
    <td><a href=http://xxx.com/blue?q=xx>item blue</a></td>
    <td>10</td>
    </tr>
    <tr>
    <td><a href="http://xxx.com/red?=q=xx">item red</a></td>
    <td>20</td>
    </tr>
    </tbody>
    </table>
    Result:
    <table>
    <thead>
    <th>item</th>
    <th>value</th>
    </thead>
    <tbody>
    <tr>
    <td><a>http://xxx.com/blue?q=xx, item blue</a></td>
    <td>10</td>
    </tr>
    <tr>
    <td><a>http://xxx.com/red?q=xx, item red</a></td>
    <td>20</td>
    </tr>
    </tbody>
    </table>
    Regards,
    Yoshihiro Kawabata

  • Firefox removes href attribute from anchor tag on copy paste

    Hi Support,
    I have a text along with the image used as a hyperlink as follows.
    "Sample Text.<a href="javascript:myfunction()"><img title="sample image" src="sample.gif" /></a>"
    When i copy the above text and paste it inside a HTML Control (for e.g. iframe), the control removes the href attribute of 'anchor' tag. It happens only with firefox and safari. It is working correctly in internet explorer.
    "Sample Text.<a ><img title="sample image" src="sample.gif" /></a>"
    Is there any solution for this.? Awaiting for sooner response
    Try clicking on the below link
    http://screencast.com/t/sXq6BcZvJB

    I tested this in Gmail compose, and what I see is: regular links (href="url") are preserved during copy/paste, but javascript links (href="javascript:") are dropped/cleared.
    I don't know whether this is by design. One place to research that would be [https://bugzilla.mozilla.org/].

  • Xsl value in html a href="" tag

    Hi all,
    I am converting the xml data to html using xsl file.In this I need to give link (<a href=") in html from the value of xml element.
    I assigned the value to a variable in xsl as vId and I try to use it in the href attribute.
    example:
    </xsl:value-of>>hello!!
    But xsl is not allowing this action.
    How to assign the xsl variable value to href attribute?
    Help me to slove this problem.
    regards,
    Selva.

    hai,
    y dont u try writing this code where u require <a href="     <xsl:element name="a">
              <xsl:attribute name="href">
    <xsl:value-of select="$vId"/>
    </xsl:attribute>
         </xsl:element>
    by doing so u will generate the tag dynamically

  • HTML select size attribute on iPad

    The HTML select size attribute specifies the number of visible options in a drop-down list. The example below will show all four entries on the drop-down, however nothing was shown in iPad.
    <html>
    <body>
    <select size="4">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </select>
    </body>
    </html>
    Is there a way that I can show all four entires in iPad?

    JimHdk wrote:
    BobTheFisherman wrote:
    JimHdk wrote:
    BobTheFisherman wrote:
    The size attribute is supported in all major browsers, except Google Chrome and Safari.
    Source: http://www.w3schools.com/tags/attselectsize.asp
    The size attribute is supported as usual in Mac OS Safari. In mobile Safari the size attribute does not produce a multiple element list but, rather, a pop-list with multiple elements. The appearance is different but the functionality is the same.
    Using your Safari browser --- Compare this result using Safari OSx http://www.w3schools.com/tags/tryit.asp?filename=tryhtmlselectsize results in 4 items in dropdown.
    and using your Firefox browser this result using FireFox http://www.w3schools.com/tags/tryit.asp?filename=tryhtmlselectsize results in 2 items in dropdown.
    You will notice that Safari does not support the size attribute of the select tag which in this case was "2".
    Message was edited by: BobTheFisherman
    The reason that Mac OS Safari displays 4 items in the example you cite is because the minimum number of items in a selection list that Safari will display is 4. If you try the following example where size is set to 5 and there are seven list items you will see that Safari does, indeed, support the size attribute (with the lower limit of 4).
    Here 5 is specified as the size and only 5 items (of the seven given) will be displayed.
    <html>
    <body>
    <select size="5">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    <option value="ford">Ford</option>
    <option value="mercury">Mercury</option>
    <option value="lincoln">Lincoln</option>
    </select>
    </body>
    </html>
    So it does not work. It only appears correctly if you want to display 4 or more in the dropdown box.
    As an aside, is this a Safari standard way of implementing the select tag with the size attribute? If so, maybe Safari users should rethink their bashing of Microsoft IE for implementing non-standard functionality. I'm not suggesting that you participate in that activity and I thank you for testing and explaining this Safari quirk.

  • Read Only and HTML Table Cell Attributes

    Hi Guys,
    I believe i have come accross a bug - i'm been working on a form that can be filled out and printed - when going into print for sake of the output looking nice i set the form element to read-only.
    As soon as an element such as a drop down box, text feild, text area, etc which display as "[selected value]" in plain text in read only mode, are changed to the read only mode apex seem to ignore the html table cell attributes.
    For example i have a id number in the top left and then a version number in the top right. Both use a text feild; the top left uses 'width="100%"' for it's HTML Table Cell Attribute to push the right cell to the right. and the right cell has 'align="right"'. Now this works fine when read only is off... but as soon as read only is on, both the width and the alignment are totally ignored, and i can't find any sign of them in the code.
    Because this is for printing; using the "disable" on the form element instead of "read only" function, isn't appropriate as disabled will make the elements faded and hard to read when printed, and keeping the elements as is will allow the user to edit information on the print screen - which is not appropriate.
    Is this a bug? Will it be fixed soon? Is there any work around?
    Cheers,
    Alex

    Use the "Read Only Element Table Cell(s) Attributes" in the Read Only region of the Item edit form.
    Scott

  • How to Apply a Graphic Element's "href" Attribute Value on a Graphic Frame

    I have a graphic frame, which I wish to fill with a graphic image. The graphic frame appears as an element in the Structure, as it has a tag attached, and that element has a legitimate "href" as a full path to a graphic file. In UI mode, I have to drag that element onto the graphic frame in order for the graphic frame to be filled with the graphic file. How do I perform the same action in JavaScript?
    TIA
    mlavie

    I thought I should provide an explanation for what I meant:
    I am aware, of course, of how to use "Place". The issue here is that I have a Page that is a template, which includes a Graphic Frame. I want to open the page, and then update the Graphic Frame element's "href" tag with the path of a graphic file, and have that file then appear in the Graphics Frame. By default, InDesign does not redraw the Graphics Frame when you change the value for the "href" attribute - you need to drag the parent element onto the Graphics Frame.
    TIA
    mlavie

  • Html will not display in safari

    hey folks, i have to create a webpage for a class. i used textedit to type up the code (and made sure it was in plain text). the page loads just fine in camino and firefox, however safari (and internet explorer) just display a blank white page (but i can still view the source code). it is very important that i get this to work for it to be graded, so any help will be awesome.
    p.s. it is saved as a .html

    hey folks, i have to create a webpage for a class. i
    used textedit to type up the code (and made sure it
    was in plain text). the page loads just fine in
    camino and firefox, however safari (and internet
    explorer) just display a blank white page (but i can
    still view the source code). it is very important
    that i get this to work for it to be graded, so any
    help will be awesome.
    p.s. it is saved as a .html
    hi:
    i tried the basic "hello world" thing in html in textedit, and the same thing happened: it showed the html but not the webpage. i also dragged the .html file over to the safari icon in the dock with the same results.
    i don't have a good answer as to why html written in textedit is doing this. maybe its the way textedit handles the underlying stuff, like ms word.
    or it could be the way safari and ie parse file written in textedit.
    go to http://www.barebones.com/ and download textwrangler. it's free, and html coded in textwrangler acts right in safari.

  • [BPEL 10.1.3.3] href attribute in SOAP body

    Hi,
    An interesting issue appeared for one of my clients.
    Whenever there is a "href" attribute in the xml contents of the soap call to the BPEL process, following error occurs:
    <faultstring>ORABPEL-04110Cannot insert attachment.The process domain was unable to insert attachent into the datastore. The exception reported is: 0Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.sql statement: BEGIN INSERT INTO attachment( key, bin ) VALUES ( ?, '0' ) RETURNING bin INTO ?; END; </faultstring>
    The thing is - href has a special meaning in SOAP and is related to binary attachments, but here it's just a plain attribute which happens to be named "href".
    My Questions:
    1) is there a way to disable this special treatment of "href" in xmlparser or bpel engine/process?
    2) is this an error on the part of the caller to use "href" and expect it to not be treated in any special way?
    Thanks and regards,
    Bartek

    Hi
    I saw this behaviour in 10.1.3.1 as well. We have just patched up 10.1.3.3.1 and was hoping this will be addressed. It was not. :-(
    You should be able to work-around the not-found error by just correcting the URL in your browser. You will notice that all that went wrong is that it now has the domain name in all lower-case and since this is case sensitive it fails.
    We have stopped using mixed-case/uppercase domain names for now.
    It seems like a console only issue as the deployed BPEL process was working fine and callable on the mixed-case URL.
    Hope this helps.

  • Xsl:include, dynamic href attribute

    Is it possible to use a xsl parameter or variable for the href attribute of xsl:include ?
    I tried
    <xsl:param name="xxx" />
    and then <xsl:include href="{$xxx}"/>
    or even
    <xsl:include>
    <xsl:attribute name="href">
    <xsl:value-of select="$xxx" />
    </xsl:attribute>
    </xsl:include>
    None of this works (I haven't tried with other xslt processors than Oracle).
    Any suggestions ?
    null

    I have attempted the same thing before as well. The only way I was able to dynamically build the xsl:include was to declare a new namespace e.g xmlns:out="output.xsl" in my XSL file and do something like the following:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:out="output.xsl">
    <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
    <xsl:varible name="xxx" select=" 'myFile.xsl' "/>
    <xsl:template match="/">
    <out:stylesheet version="1.0">
    <out:template match="/">
    <out:include>
    <xsl:attribute name="href">
    <xsl:value-of select="$xxx" />
    </xsl:attribute>
    </out:include>
    </out:template>
    </out:stylesheet>
    </xsl:template>
    </xsl:stylesheet>
    When applied to any valid XML document this produces the XSL file you are after as the output.
    To use this output against your intended XML source consider the following: A Java program can very quickly apply the above stylesheet to any XML source to get the output you want... then apply that XSL result to the actual XML document you are wanting to transform. From here you can do what you want with the transformed result.

  • Two HTML in one HTML Form Element Attributes........

    In my HTML Form Element Attributes i already have one *<INPUT readonly name="Customer Code"/>*, then i tried to add another HTML onmouseover="toolTip_enable(event,this,'Customer Code')" , i.e, like this both HTML in one Element Attributes +<INPUT readonly name="Customer Code"/>+ onmouseover="toolTip_enable(event,this,'Customer Code')" but its not working .
    how do i put both HTML in one HTML Form Element Attributes?
    Skud :(

    Hi,
    I think this is duplicate post
    Delete the symbol........
    What you try archive. Form element attributes is not place where you enter HTML. You enter only attributes there like
    onmouseover="toolTip_enable(event,this,'Customer Code')"PS: when posting code wrap it to {noformat}{noformat} tags
    Regards,
    Jari

  • Html 5 placeholder attribute and jsf 2.0???

    Hello,
    I need to use the html 5 placeholder attribute together with jsf 2.0. I noticed this is not included in the attribute for the jsf inputtext tag.
    Is there a way to circumvent this problem with jsf 2.0?
    Thanks in advance,
    J.

    872015 wrote:
    "unreasonable demands"?
    HTML 5 is in use and supported right now. That is not a reason to adopt an incomplete technology, that is only technology going yet again too fast for its own good. Do we really need a repeat of years of browser incompatibility problems?
    Asking a web based programming platform to realize that HTML is constantly in fllux and allow for the ability to add tags and attributes as needed is not unreasonable. It's unreasonable that JSF wasn't built with that in mind to begin with.JSF already allows that. They are called 'custom components' and frameworks like Richfaces and Primefaces are full of them. Core JSF is only the minimal framework specification and should stay as small and flexible as possible.
    >
    We've run into this same predicament. We're trying to write a progressive, modern mobile device interface and we're constantly running into JSF restrictions.So perhaps you shouldn't have used JSF, eh? It makes little sense to blame everything on the framework, you simply used the wrong tool for the job. Now all you can do is live with the consequences, or do a migration to a technology more suited to your needs.
    A decent web based programming language shouldn't have any say over the HTML. That should be fully modifiable by the developer. Then use a framework that is designed around this very concept. Play framework, Wicket, ... JSF is a stateful component based framework which was initially designed to not be anchored to a single markup format - hence it is as far away from the HTML/javascript as is possible. The fact that there is really only one choice of renderer at the moment is besides the point.

  • Parsing XML Node with href attribute

    Hi,
    I have the following XML that has to be parsed using JSP DOM. All fine except for one. The only problem that i have is when to parsing the Node with href attribute.
    I am using the following method, and it returned with weird result
    currNode.getAttributes() ====> the result is com.sun.org.apache.xerces.internal.dom.AttributeMap@111ae04
    currNode.getNodeValue() ====> the result is null
    currNode.TextNode ===> it returned *2*
    Can anyone please let me know what did I miss here? What should I do to parse the href attribute into the jsp page?
    The below is the xml.
    <MovieList>
    <Movie href="DarkKnight.xml">
       <head>
             <Title>Batman Dark Knight</Title>
             <Genres>
                   <Genre>Action</Genre>
                   <Genre>Sci-Fi</Genre>
             </Genres>
             <Description>Movie Details here</Description>
       </head>
    </Movie>
    </MovieList>Thanks

    I am not sure what "JSP DOM" is exactly. In the W3C DOM supported since SUN Java 1.4 if you have an element node and want to access an attribute value you can simply use String href = movieElement.getAttribute("href"); You might need to cast your Node to Element first e.g.Element movieElement = (Element)currNode;

  • Custom HTML Store Open Link in Safari

    Hi there,
    I'm working on Custom HTML Store.
    And today I faced with one problem.
    Is there any way to open html link directly in Safari or in standard DPS view (with back button and open-in-safari button)?
    Currently my link reloads HTML Store in UIWebView.
    I tried three different approaches:
    1) <a href="http://site/" target="_blank"></a>
    2) window.open('http://www.site/','_blank');
    3) window.open('http://www.site/','_system');
    But I didn't get result.
    Thank you!
    Best regards,
    Andrey

    Thank you for reply!
    Directly in Safari - yes, I agree.
    But in GQ US, GQ Italia I can see banners, which are working fine - they open standard DPS view (with back button and open-in-safari button) .

  • Change all spaces to underscores in href attribute

    Hello,
    I've just realised all my linked documents are referenced incorrectly in my HTML code: I've used spaces in the file names and didn't replace the spaces by %20 in the URLs in the code. After reflexion, I decided to rename all my files so they contain "_" instead of spaces (done now) and hence now need to update my links (<a href="...">) in the code.
    I've tried various combinations of specific tag/attribute, of regular expressions in the Find/Replace tool of Dreamweaver but I can't get it to do what I want. And I really don't want to do this manually.
    Is there way to search for href="(anything)(a space)(anything)" where (anything) can be a letter, a word or several words (with/without digit characters)? To replace the spaces, I'd then use something along the lines of $1_$2 where $1 = href="(anything) and $2 = (anything)".
    Emilie

    I answered the same question from someone else yesterday. In the Find & Replace dialog box, make sure you select Use regular expression.

Maybe you are looking for