FAVICON.ico in BSP with link rel = "shortcut icon"....
Hi,
I built into my BSP a favicon.
<link rel = "shortcut icon"
href = "favicon.ico"
type = "image/ico">
Sometimes it is indicated
and sometimes not
Do you know why?
That is my Coding:
<%@page language = "ABAP"%>
<%@extension name = "HTMLB"
prefix = "HTMLB"%>
<HTMLB:content design = "DESIGN2003"
forceEncode = "ENABLED"
controlRendering = "SAP">
<link rel = "shortcut icon"
href = "favicon.ico"
type = "image/ico">
<HTMLB:document>
<HTMLB:documentHead/>
<HTMLB:documentBody>
<HTMLB:form>
<HTMLB:button id = "BU_ANM"
onClick = "ONINPUTPROCESSING"
text = "only a Test for favicon"/>
</HTMLB:form>
</HTMLB:documentBody>
</HTMLB:document>
</HTMLB:content>
Hello Eddy,
thank you for your reply.
The Icon is in the same place as the web page.
Now I use this:
<link rel = "shortcut icon"
href =
"/default_host/sap/bc/bsp/sap/my_bsp/favicon.ico"
type = "image/x-icon">
But the same problem.
When I call the Page from SE80 with F8 it is O.K.
But when I call the "ALIAS-BSP-Name" from the Browser - no Icon comes.
Sorry for my english - I hope you understand me...?
RoBu di AQu
Similar Messages
-
Hi,
I have a simple BSP application, where in when the user clicks on the button on the page, onInputProcessing is called and some data is obtained in a pdf document. Now I want to remove the button and want to execute the code on click of a link. When I click on the link, onInputProcessing is not called.
The current code, for the button is as follows:
Code for layout
<%@page language="abap"%>
<html>
<body BGCOLOR="#B5E1D2" >
<h2> To download the contact sheet, click on the button below. </h2>
<form method="post">
<input type=submit name="onInputProcessing(select)" value="Download Contact List">
<%
IF display_url IS NOT INITIAL.
%>
<script language="Javascript">
window.open("<%= display_url%>").focus();
</script>
<%
ENDIF.
%>
</form>
</body>
</html>
Code snippets or code modified for link would be very much appreciated.
Thanks in advance
JayHi Rainer,
Thanks for the reply. Mentioned below is the code that I have written.
Layout:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content>
<h2> To download the contact sheet, click on the link below. </h2>
<htmlb:form method="post">
<htmlb:link id="Trial" text="Download Contact List" reference="initial.htm" onClientClick="myFunction(select)" />
<%
IF display_url IS NOT INITIAL.
%>
<script language="Javascript">
window.open("<%= display_url%>").focus();
</script>
<%
ENDIF.
%>
</htmlb:form>
</htmlb:content>
OnInputProcessing:
event handler for checking and processing user input and
for defining navigation
DATA: fileUpload TYPE REF TO CL_HTMLB_FILEUPLOAD.
DATA: cached_response TYPE REF TO if_http_response.
DATA: response TYPE REF TO if_http_response.
DATA: guid TYPE guid_32.
fileUpload ?= CL_HTMLB_MANAGER=>GET_DATA(
request = request
id = 'myUpload'
name = 'fileUpload' ).
file_name = fileUpload->file_name.
file_mime_type = fileUpload->file_content_type.
file_length = fileUpload->file_length.
file_content = fileUpload->file_content.
case event_id.
when 'select'.
*CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING
*add_c_msg = 1.
cached_response->set_data( file_content ).
cached_response->set_header_field( name =
*if_http_header_fields=>content_type
value = file_mime_type ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid INTO display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response ).
RETURN.
*ENDIF.
*display_type = 'convertnew'.
*IF display_type = 'convert' OR display_type = 'convertnew'.
data: l_pdf_xstring type xstring,
lt_lines type table of tline,
ls_line type tline,
l_pdf_len type i.
data: output_options type ssfcompop,
control_parameters type ssfctrlop,
output_data type ssfcrescl,
devtype type rspoptype.
data: lt_sys type table of usr01.
data: lt_sys1 type usr01.
control_parameters-langu = sy-langu.
control_parameters-no_dialog = 'X'.
control_parameters-getotf = 'X'.
select * from usr01 into table lt_sys.
lt_sys1-bname = sy-uname. "userid. "sy-uname.
INSERT lt_sys1
INTO TABLE lt_sys.
call function 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
IMPORTING
e_devtype = devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
others = 5.
set device type in output options
output_options-tdprinter = devtype.
call function '/1BCDWB/SF00000047'
EXPORTING
user_settings = space
control_parameters = control_parameters
output_options = output_options
IMPORTING
job_output_info = output_data
TABLES
zsystems = lt_sys
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
others = 5.
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = l_pdf_len
bin_file = l_pdf_xstring
TABLES
OTF = OUTPUT_DATA-OTFDATA
LINES = LT_LINES
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
others = 5.
if sy-subrc EQ 0.
CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING
add_c_msg = 1.
l_pdf_len = xstrlen( l_pdf_xstring ).
cached_response->set_data( data = l_pdf_xstring
length = l_pdf_len ).
cached_response->set_header_field( name =
if_http_header_fields=>content_type
value = 'application/pdf' ).
cached_response->set_status( code = 200 reason = 'OK' ).
cached_response->server_cache_expire_rel( expires_rel = 180 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid '.pdf' INTO
display_url.
cl_http_server=>server_cache_upload( url = display_url
response = cached_response )
ENDIF.
RETURN.
*ENDIF.
endcase.
What happens is that on clicking of the link, the code in OnInputProcessing is not being executed.
Please let me know how to rectify the code.
Jay -
Favicon.ico on custom domain with .mac?
I get that there's no direct support for favicon's -
So what I've done is added the favicon.ico file to my
domain in the root and site directories on my iDisk–
but when I access the site it still shows the blue apple
network gel as the favicon. I've even tried adding the
shortcut code directly to the HTML- no luck.
Also, is there anyway to add 'title' tags to a page?
That seems pretty basic...
Also, Also - where the heck is the local copy of the
site on my drive?
Thanks!So what I've done is added the favicon.ico file to my
domain in the root and site directories on my iDisk–
Create a favicon and add it to the root of the webserver.
Then every webpage should have this code in the HEAD of the page. Something like:
<link rel="shortcut icon" href="/wyodor/apple-touch-icon.png" />
It cannot be entered in iWeb. You need a HTML Editor.
Also, is there anyway to add 'title' tags to a page?
The title of a webpage is based on the large textbox at the top of each iWeb page. It's already there. You do not need to add it.
Also, Also - where the heck is the local copy of the
site on my drive?
~/Library/Application Support/iWeb/domain.sites2
Where ~ means your homedirectory -
Favicon.ico image does not display consistently for our application,
Hi,
We have configured a favicon.ico for our application as below code snippet and referring to the favicon.ico image correctly. The icon file is available in our war file post deployment. The problem is some times it displays correctly and sometimes it does not display correctly.
<af:outputText value="<link rel='SHORTCUT ICON' href='#{facesContext.externalContext.requestContextPath}/images/favicon.ico'/>" id="favicon" escape="false"/>
Can anyone point to any issue related to browser caching or application server caching and any possible fix to this intermittent behavior.
regards,
Chandra.Browser caching might be a problem, but we can't help as it is a browser issue. All I can say is to clear the browser cache and see if the problem can be reproduced. If yes it doesn't look like a browser problem. Then you have to check if you are connection via proxy which might cache images too. Ask your network admin for help then.
Do you see this problem only with one browser? Have you check other browsers?
Timo -
I have tried numerous .ico file makers and am using the code <link rel="shortcut icon" href="/favicon.ico" /> in the <head> section and the favicon.ico sits above the index file, but it is not showing up on the tab in Firefox or IE. I have also tried numerous designs, as I thought that might be the problem -- here are a couple and . What am I doing wrong? I have tried everything and Googled everything. I also use PC, but I hope that doesn't stop the Mac users from helping me.
Thank you Jon. As I mentioned to Nancy, the Favicon finally showed up this morning. But also thank you for another time saving piece of advice that saved me a lot of time and effort and is not mentioned anywhere. You are so right, "There's really no reason to add the code in the <head> if the favicon.ico is in your site root. Simply placing it there will do the trick in all browsers." I only put the code on my index page because I wasn't sure it would ever show up, and lo and behold, when it finally did this morning, it did on all pages and they had no code.
It is unfortunate that on all the websites (and I read what felt like all of them) dealing with Favicons, no one mentions these points. It's simple
create the 16px by 16px favicon.ico
Place it in the site root
Empty your cache and bookmark the page
Wait -- it will show up, possibly the next day.
Margaret -
Why is favicon.ico in Safari 5.0 not showing?
I have added a faviocn.ico to my website. It shows in all browsers but Safari 5.1.1. Does anybody have an idea?
If anyone else has this question. Do you get a broken favicon (a jittery favicon) or none at all (standard blue sphere)? In the first case try to change to another ico file. It is something about the colors. I used http://tools.dynamicdrive.com/favicon/ and a transparent png as source and git it to work on Safari 5.1.7 where i hade a broken one before. If you get none try adding type="image/x-icon" to your link rel="shortcut icon" tag.
-
Put favicon.ico in SDN's Webserver root
Please can you post how to do this (place a favicon into the server root) for EP6.0 SPS14, we are currently looking how to do this.
Thanks
Will
Message was edited by: Craig CmehilWilliam
Adding it to a particular directory is not enough. It has to be added to the html code of the pages. Following tag needs to be added in the <head> section of pages
<link rel="shortcut icon" href="http://sdn.sap.com/favicon.ico" />
So essentially you will have to modify the page layout or something similar. Will try to provide a more detailed answered sometime this week.
- Pankaj -
<link rel="SHORTCUT ICON" href="
http://www.mhaarizona.org/favicon.ico"
type="image/x-icon" />
or
<link rel="SHORTCUT ICON" href="Mental Health America of
Arizona/favicon.ico" type="image/x-icon" />
Thanks in advance.You're welcome.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"MaryLawsonLives" <[email protected]> wrote
in message
news:fsoi3t$csu$[email protected]..
> <link rel="SHORTCUT ICON" href="
http://www.mhaarizona.org/favicon.ico"
> type="image/x-icon" />
> or
> <link rel="SHORTCUT ICON" href="Mental Health America
of
> Arizona/favicon.ico"
> type="image/x-icon" />
>
> Thanks in advance.
> -
Where do we put the favicon.ico?
I know that we have to put it in our file in idisk but where exactly?
Thank you
OdetteIf you're hosting your site with MobileMe and have a domain name which you're forwarding with CNAME forwarding you just put the ico file in your iDIsk/Web/Sites folder.
If you're hosting to a 3rd party server you put the file in the same folder/directory that you upload your site to.
If you're hosting your site to MobileMe without a domain name put the favicon.ico file in the iDisk/Web/Sites folder and add the following code to an HTML snippet on each page:
<script type="text/javascript">
var head = parent.document.getElementsByTagName("head")[0];
var favicon = parent.document.createElement("link");
favicon.rel = ("shortcut icon");
favicon.href = ("http://web.me.com/your_MobileMe_Account_name/favicon.ico");
head.appendChild(favicon);
</script>
Thanks to Koeklin from this topic:
http://discussions.apple.com/thread.jspa?messageID=11234670#11234670
It's a one time addition to each page of your site and no post publication editing of the site's pages are necessary.
OT -
Hi,
I have a BSP with MVC design.
I assume that the URL link to the application is the URL I see when I go into the Controller page under the BSP in SE80.
Is that correct?
The problem is that when I take that URL and copy paste it into a web browser, I get the first view but when I click on any button, the controller class is not called.
If I do a right click on the BSP and select the TEST option, all is working perfectly.
Do you have any idea why this is happening or do I do something wrong?
Thanks,
ItayHi Stefan,
Same issue i have as well.
My Understanding is, in NWBC desktop, if you open a non sap (eg: html) page, NWBC becomes an IE Browser.
That means you are now out of SAP for that tab (with html page) and whenever you try to launch any SAP transaction (using the method from HTML) it will launch in a new window and ask for Login.
May be Experts like Samuli Kaski & Melinda Ludanyi can put some light on it.
But, I have one more solution for this which is partially working in my case. May be helpful in you case as well.
Issue: From some SAP transaction in NWBC (say tab A), you are launching the html page (say tab B) and then want to launch another SAP transaction (Say tab C) from html.
Solution: Embed the HTML in SAP using HTML Viewer class and launch SAP custom transaction using the interface IF_LSAPI. It will launch it in new tab as a sap transaction with your html page.
Now if you want to launch the SAP transaction from your html page (Which is embedded in SAP custom transaction) you can use HTML Viewer class Events and you can pass parameters as well. Re use the same interface IF_LSAPI and launch it in new tab
In my case i am facing problems as the web developer has so many things on java script and they are not working properly. He is working on it and i am hoping it will be fine.
Regards,
Nik -
Question
How do I put a Shortcut Icon on my Desktop linking to a certain Webpage, like I could do with I.E./Google? Where do I find "Create Shortcut' ???Hey, Dynamite !
Thanks so much for that ... what a 'dynamite' solution. It's so easy. I don't know how you people know all of these things ! But one last thing if you can help me - I've just switched over to Mozilla/Firefox from I.E., and now I cannot open my Hotmail from Mozilla/Firefox. I log in, it goes to my 'Inbox' page, but when I click on an Email letter to open it, nothing happens. I can't even go into 'Drafts' or 'Delete' or anything.
MitziB. -
Help with favicon.ico!
I'm using SSL with tomcat and I'm having problems with firefox. When I log into the site using j_security_check I get forwarded to favicon.ico. IE doesn't have this problem, only firefox. I've done a little reading and I've seen people fix it under apache, but I can't find out how to make the change with tomcat.
help!And, so, Merlin, what, in your infinite wisdom, led you to post this question in a Java forum?
Mu
Baron Samedi -
How do I get my favicon.ico to show in my site with firefox browser?
I uploaded my favicon.ico to the root directory, it shows in Chrome, but not in firefox. I've cleared the cache, still not appearing, yet when I type mydomain.com/favicon.ico it appears in firefox.
The problem is usually that the file size is too large or there are multiple images (layers) in the file or it is an unsupported format.<br />
I can't tell more about without inspecting the favicon. -
When I drag a favicon to my desktop it becomes a Firefox shortcut icon instead!
I know that you can create a simple shortcut to a web page by dragging the favicon icon for the page from the top bar to the desktop. My problem is that whenever I attempt to do so, I end up creating a shortcut that has the firefox symbol -- the unique icon of the website fails to carry over to the desktop. I am not having the same problem in History or in Bookmarks, just my desktop.
If you drag a link or favicon on the left end of the location bar onto the desktop to create an internet shortcut then that shortcut gets the icon of the default browser.
If you want a different icon (favicon) then you have to assign that icon yourself to the desktop shortcut (right-click: Properties).
You can usually get the favicon if you append "favicon.ico" to the main domain of a website (e.g. http://www.mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder or see if you can find it in "Tools > Page Info > Media". -
Safari stops loading many pages: ../favicon.ico not found
Recently Safari doesn't complete the loading of many pages.
The status bar reads for example ... completed 34 of 35 items.
In some cases the page appears.
When I click a sub-topic on the page (i.e. in a forum) the link fails to load.
If I then click the stop/reload the selected link shows up, but fails to show the pictures (i.e. also incomplete)
In the activity window of Safari
http://www.......at/favicon.ico is listed as not found
Could there be a connection??
With Firefox these pages open without a problem.
My MacBookPro loads them without a problem using Safari over the same network.
I would appreciate your help.
Thanks,
TOM from Innsbruck
Dual 2.3 GHz Power PC G5 2GB DDR SDRAM Mac OS X (10.4.8) Airport Express to router to ADSL modemHello Starman!
Good news: Thank-you for the quick reply
Bad news: it didn't help.
I have tried most of the recommended tricks - trashing:
com.apple.Safari.plist and
com.apple.quicktime.plugin.preferences.plist
I have reinstalled Safari through the MacOSXUpdCombo10.4.8PPC.
I have tried both the Universal and the PPC version.
At the moment I am using the Universal 2.0.4 version.
There is no difference. The problems remain the same.
Any other suggestion?
Thanks,
TOM from Innsbruck
From the activity window (I added the unusual comments in the second column since they don't copy):
http://www.spur-1-team-mosel.de/Forum/index.php
:: 28 of 29 items
http://bilder27.parsimony.net/forum66083/amtn.jpg
http://bilder27.parsimony.net/forum66083/st.JPG
http://www.spur-1-team-mosel.de/favicon.ico
:: not found
http://www.spur-1-team-mosel.de/Forum/images/pixel.gif
http://www.spur-1-team-mosel.de/Forum/index.php
http://www.spur-1-team-mosel.de/Forum/wbb3/cellpic.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/icons/icon14.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/icons/icon16.gif
:: 0 bytes of ?
http://www.spur-1-team-mosel.de/Forum/wbb3/icons/icon2.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/icons/icon3.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/link.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/logo.jpg
http://www.spur-1-team-mosel.de/Forum/wbb3/minus.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/off.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/offclosed.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/on.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/online.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/stats.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_calendar.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_chat.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_database.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_faq.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_linklist.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_members.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_pms.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_search.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_start.gif
http://www.spur-1-team-mosel.de/Forum/wbb3/top_usercp.gif
http://www.spur-1-team-mosel.de/gtchat95/cgi-bin/chat.pl?template=roomusers_js
Dual 2.3 GHz Power PC G5 2GB DDR SDRAM Mac OS X (10.4.8) Airport Express to router to ADSL modem
G5 Mac OS X (10.4.8)
G5 Mac OS X (10.4.8)
Maybe you are looking for
-
The "recently Bookmarked" item disappeared from the Bookmarks pull down menu.
-
Does anyone know how to output mono tracks to a single output. When I try to output a mono signal, all my outputs are paired i.e. to outputs 1-2, 3-4 etc Is is possible (it must surely be!) to do this?
-
Quicktime won't play files until I click play
Running QT 7.6.6 on windows XP. Has anyone seen this? If I double-click on a file (for example a lossless m4a file), QT fires up but instead of playing the file it just sits there doing nothing with the hourglass waiting there. When I press play, it
-
Fusion Middleware - Installing Forms & Reports Developer in separate server
Hi, I installed Forms & Reports Server (without developer tools) on one server. Now I want to install only Forms and Reports developer in another server. Can anybody tell me how to achieve this or from where I can get some reference document particul
-
Bug? re: SFX in 10.1 / constant work-around
When I first installed FCPX 10.1, I noticed my SFX and GarageBand elements were missing in the music and sound-browser. I learned a work-around to solve this. (from this user group) Except, as it stands now... Every time I quit the FCPX app, I have t