Javascript code needed for "Add to Favorites" icon in Webhelp using RH8
Hi,
I have a huge problem in making the add to favorites icon click event associate with the appropriate code.
This was the code i used in the Inline Javascript tab:
<script type="text/javascript" language="JavaScript" src="showhide.js"></script>
<input type="image" value="Add to Favorites" onclick="window.external.AddFavorite(location.href, document.title);return false"
/="" name="AddTopicToFavorites_selected.gif" src="AddTopicToFavorites_selected.gif"
<script type="text/javascript">var BookmarkURL="http://www.geekpedia.com"
var BookmarkTitle="Geekpedia"
// If the browser is Internet Explorer
if (document.all)
// Add to Favorites (Internet Explorer)
window.external.AddFavorite(BookmarkURL,BookmarkTitle)
else
// Add to Bookmarks (Mozilla Firefox)
window.sidebar.addPanel(BookmarkTitle, BookmarkURL, '');
}</script>
Also in the onclick in the Edit tab, i wrote: window.external.AddFavorite(BookmarkURL,BookmarkTitle)
It loads the add to favorites window very well as in any IE..But since the static word Geekpedia is being used, it displays the same and also navigates to the static URL http://www.geekpedia.com".
I want to make it work dynamically...Please help me with any code change if any one has tried this before.
One other thing that got messed up with was this icon replaced all other icons in the output....but...if i viewed the whskin_tbars.htm, i could see that the default icons appeared below somwhere...and there was this Add to Favorites icon appearing at the top...I dont know why these icons have got misplaced,,,i want to align them all in the same line..
Please help me with this.....
-Nanditha
Hi,
A long story, but I will need some more time to sort this out:
Simple solutions:
- Change the var BookmarkURL="http://www.geekpedia.com" to your own URL, such as: var BookmarkURL="http://myhelp.com"
- Change the var BookmarkTitle="Geekpedia" to your name, such as: var BookmarkTitle="My help system"
- Do not insert an image trough the javascript tab, add it using the image options with the custom toolbar items popup. This will probably solve your image problem.
If you want to the URL dynamic, you need document.location.href, such as: var BookmarkURL = document.location.href; This however will get the adress of the current frame, which is whskin_tbars.htm.
If you want to get the Title dynamic, you will need document.getElementsByTagName('title')[0]; and then you need to retrieve the title, as: xxx.firstChild.data,: such as:
- var BookmarkGet = document.getElementsByTagName('title')[0];
- var BookmarkTitle = BookmarkGet.firstChild.data;
This always gets the URL and the Title of the frame you inserted the script in, which for the button toolbar is whskin_tbar.htm. When you insert this in any give topic, your bookmark will work fine, but will only call the topic, and not your skin.
If you only want the URL of your helpsystem, I suggest you just change the variables BookmarkURL and BookmarkTitle.
If you want to target the current topic from any other location, such as the title bar, you need to address the top frame and then the topic. I don't know which frame this is, but I will look into it. This may take me some time though, but perhaps someone else knows which frames to address.
Example for getting the url of your helpsystem dynamically:
var BookmarkURL= this.parent.document.location.href;
//Your projects main file does not have a title, so don't get it dynamically.
var BookmarkTitle="My help system"
// If the browser is Internet Explorer
if (document.all)
// Add to Favorites (Internet Explorer)
window.external.AddFavorite(BookmarkURL,BookmarkTitle)
else
// Add to Bookmarks (Mozilla Firefox)
window.sidebar.addPanel(BookmarkTitle, BookmarkURL, '');
Long story, if you have any further questions, just ask.
Greets,
Willam
Similar Messages
-
Changing Text for Add to Favorites Link
Does anyone know how we can change the label for the Add to Favorites link that is displayed on the page details icon?
We've searched all over assuming it is in a properties file somewhere but we have not been able to find it.
Thanks.
EP6 SP2Hi Robert,
Thanx for this. I was also looking for the same. I will check this out and see if it is working for me.
I have few queries:
1) Changing this will update all the iView/page toolbars of portal..right?
2) Can we include some more property in the Options of the iView toolbar such as a "mailto" link or something as "Feedback" which wil open up the Mail Client.
Or something else, basically any new link with some functionality associated?
3)I did the same kind of modification of changing the properties files on the appintegrator PAR file where it shows the message of "No Usermapping done.." if you havent done the UserMapping for a System and then trying to access the iView based on appintegrator...uptill here.its OK..i can modify the text to display my custom Text. But my req. is that can i display formatted Text here?
Such as a messge in 2 lines or some bold word etc. If i press enter in the message,it still appears in a single line and with \n\t...\n\t also gets displayed
Regards
Gaurav Gandhi -
Starting to learn ClickOnce.
Most documentation implies that ClickOnce runs on its own, and there is no mention of code needed to support it.
Then I find code samples in various discussions. I'm easily confused; can someone help me?
Is code needed to support ClickOnce? If so, samples please.
Thanks,
RKStarting to learn ClickOnce.
Most documentation implies that ClickOnce runs on its own, and there is no mention of code needed to support it.
Then I find code samples in various discussions. I'm easily confused; can someone help me?
Is code needed to support ClickOnce? If so, samples please.
Thanks,
RK
Hello,
In most cases, we don't need to add any code for clickonce, and it is quite simple to use the publish wizard, for example, right click on your project in solution explorer, then select Publish, next configure the settings for this deployment.
It will help you get much clear about clickonce that you could get what clickonce is and how we could get it work for our projects from the following guidance.
ClickOnce Deployment Overview
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have a daq card usb dux fast and I'm using linux zenwalk,
so please if any one has done a program on daq using comedi language or any language or any other related to it.
please send me the code and algorithm for it.
if possible a algorithm and code for general gui text icon programming to [email protected]
thanking you,Hi Vinay,
you know you're posting in a LabVIEW forum?
When you have questions on Comedi you should post in a Comedi-related forum!
Or read some papers/manuals like this, easily found by Google...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Code needed for "putting waveform graphs and 8bit images in the same window by Windraw"
Hi Micheal, please sent the code example for my question:"putting waveform graphs and 8bit images in the same window by Windraw" , thanks.
You can start from here ...
Hope that helps,
Michael
Attachments:
tester.vi 97 KB -
Add file type icons to links using CSS - DW CSS problem?
Hi,
I want to add file icons to links using CSS. How to do this
is clearly described in the article found
HERE.
A most useful feature I REALLY want to use
However the CSS code shown below is not recognized by DW CS3.
In the CSS Styles window shows "(no styles defined)". HELP!
Any tips/tricks/pointers would be appreciated.horse.badorties wrote:
> So DreamWeaver CS3 is NOT able to handle CSS 3?
Actually, it has been able to handle most of the CSS 3
selectors since
MX 2004, but it doesn't recognize these:
E[foo^="bar"]
E[foo$="bar"]
E[foo*="bar"]
E ~ F
Since they're all supported by IE7, Firefox, Opera 9.5, and
Safari 2,
there's a good argument for Dreamweaver to start supporting
them. Why
don't you submit a formal feature request to Adobe?
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
There are several others not yet supported by Dreamweaver,
but browser
support for them is non-existent, too. The four listed above
are the
most important.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Flash 8 Caption Code needed for Slide Show
I have a Flash Slide Show done in Flash 8. There's no xml
files attach with this file. I only use Action Scripting along with
this project. I'm trying to have a line of text showing as a
caption for each images. Do you know if I need to create and xml
file along with this document? Any help would be greatly
appreciated.
Thanks,
Attach Code
_global.numOfImage = 29;
url = "";
temp = 7;
check.swapDepths(20000);
for (var i = 1; i<=numOfImage; i++) {
mc = this.attachMovie("btn", i, i+100);
mc._x = ((i-1)%temp)*75+30;
mc._y = Math.floor((i-1)/temp)*46+450;
mc.oldx = mc._x;
mc.oldy = mc._y;
mc.point.loadMovie(url+"image/trail/image"+i+".jpg");
mc.onRollOver = function() {
this.fade.play();
check.target = this._name;
check.onEnterFrame = function() {
this._x += (this._parent[this.target]._x-this._x)/4;
this._y += (this._parent[this.target]._y-this._y)/4;
mc.onRelease = function() {
this._parent.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url+"image/original/image"+this._name+".jpg");
this._parent.onEnterFrame = function() {
if (screen.original.getBytesTotal() ==
screen.original.getBytesLoaded()) {
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this.onEnterFrame;
init();
function init() {
this[1].pressed = 0;
this.stopDrag();
this.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url+"image/original/image1.jpg");
this.onEnterFrame = function() {
if (screen.original.getBytesTotal() ==
screen.original.getBytesLoaded()) {
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this.onEnterFrame;
check.target =1
check.onEnterFrame = function() {
this._x += (this._parent[this.target]._x-this._x)/4;
this._y += (this._parent[this.target]._y-this._y)/4;
////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////I have a Flash Slide Show done in Flash 8. There's no xml
files attach with this file. I only use Action Scripting along with
this project. I'm trying to have a line of text showing as a
caption for each images. Do you know if I need to create and xml
file along with this document? Any help would be greatly
appreciated.
Thanks,
Attach Code
_global.numOfImage = 29;
url = "";
temp = 7;
check.swapDepths(20000);
for (var i = 1; i<=numOfImage; i++) {
mc = this.attachMovie("btn", i, i+100);
mc._x = ((i-1)%temp)*75+30;
mc._y = Math.floor((i-1)/temp)*46+450;
mc.oldx = mc._x;
mc.oldy = mc._y;
mc.point.loadMovie(url+"image/trail/image"+i+".jpg");
mc.onRollOver = function() {
this.fade.play();
check.target = this._name;
check.onEnterFrame = function() {
this._x += (this._parent[this.target]._x-this._x)/4;
this._y += (this._parent[this.target]._y-this._y)/4;
mc.onRelease = function() {
this._parent.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url+"image/original/image"+this._name+".jpg");
this._parent.onEnterFrame = function() {
if (screen.original.getBytesTotal() ==
screen.original.getBytesLoaded()) {
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this.onEnterFrame;
init();
function init() {
this[1].pressed = 0;
this.stopDrag();
this.attachMovie("loading", "loading", 10000);
screen.original.loadMovie(url+"image/original/image1.jpg");
this.onEnterFrame = function() {
if (screen.original.getBytesTotal() ==
screen.original.getBytesLoaded()) {
this.loading.removeMovieClip();
screen.gotoAndPlay(2);
delete this.onEnterFrame;
check.target =1
check.onEnterFrame = function() {
this._x += (this._parent[this.target]._x-this._x)/4;
this._y += (this._parent[this.target]._y-this._y)/4;
////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////// -
Code needed for a Navigational Attribute.
Hi Experts,
I have a requirement to update records on a Navigational Attribute of an Infobject in an DSO.
DSO A has key figures Region & 0calmonth. Data fields Price, Quantity, Place & Name. DSO B has key figures 0customer & Data Filelds Plant, Material etc. DSO B Plant's Navigational Attribute is Region /BI0/OIREGION.
Now, I want to link the Region of DSO A with the Navigational Attribute of DSO B with Region /BI0/OIREGION and update the values of DSO A in DSO B.
For this I want to write a code in the END ROUTINE. Please provide me with the code.
Thanks in advance,
With Kind Regards,
Kannan Jagadeesan.Hi,
data : begin of itab1 OCCURS 0,
Region type /BI0/OIREGION-Region,
OBJVERS type RSOBJVERS,
calmonth type /BI0/OICALMONTH- calmonth
END OF itab1.
select * from /bic/DSOaa00 into table itab1 * this is DSO A*
for all entries in DATA_PACKAGE
where /BI0/OIREGION = DATA_PACKAGE-/BI0/OIREGION..
loop at DATA_PACKAGE.
select /BI0/OIREGION
/BI0/OICALMONTH
from /bic/DSOaa00
into TABLE itab1
where /BI0/OIREGION = DATA_PACKAGE-/BI0/OIREGION
If sy-subrc = 0.
sort itab.
endif.
read table itab with key /BI0/OIREGION = DATA_PACKAGE-/BI0/OIREGION.
if sy-subrc = 0.
/BI0/OIREGION = ITAB1-Region.
endif.
this is the dry draft to read the oregion navigational object.
try to correct accordingly in your system and implement it.
hope this helps you
santosh
Edited by: Santhosh Nagaraj on Sep 16, 2009 2:01 PM
Edited by: Santhosh Nagaraj on Sep 16, 2009 2:05 PM -
EXPLAINATIONS FOR ALL OF THE ICONS THAT ARE USED IN CONJUNCTION W/ CONTACTS STATUS
It seems some of the icons used to tell you the status on your BBM contacts have changed. Is there anywhere you can go to get a complete list of what they all mean?
Does anyone know what the red square that has an "L" in the middle of it means??1. What version of BBM are you using, the new 5.0 version?
2. Can you show us a screen shot?
Try CaptureIt for a free BlackBerry device screen shot
For an OverTheAir download, take your BB browser to:
http://www.thetechmogul.com/CaptureIt/CaptureIt.jad
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Techniques needed for Automated (OLE) PDF Creation from Word using Adobe 9
My client currently uses Adobe 5, PDF Writer, Word and OLE automation to generate PDF files. This is done on a server. A queue of Word documents are read. A watermark is added via a VB Macro. Then, also via a macro (below) a pdf file version of the Word doc is generated. The pdf file is generated as temp.pdf, which the program uniquely renames later.
Unfortunately, Adobe 5 and PDF Writer cannot handle Chinese characters and now needs to. Seems like the process above cannot be the same with Adobe 9. How should I approach this server driven, pdf file generation from Word docs with Adobe 9? This is a 24 x 7 ongoing, 100s of documents a day process. It isn’t clear to me that PDF Writer is still an option. With Adobe 9 installed on a client, it is possible to save a Chinese character Word document using the Adobe ‘Convert to PDF’ toolbar button
Sub WritePdfFile()
Windows(1).Activate
ActivePrinter = "Acrobat PDFWriter"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=False
End SubI think that type of question would go in
Scripting http://forums.adobe.com/community/acrobat/acrobat_scripting
or
SDK http://forums.adobe.com/community/acrobat/acrobat_sdk
Or, for Microsoft parts of the process, search at
http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US -
Need to add extra fields in Custom tab using EEWB.
hi ,
I extended business partner with 10 custom fields using EEWB by creating an custom tab. I would like to add 2 more fields in the same custom tab . I am unable to find the provision to add new field to the existing project. so i am deleting the existing project and creating new project and adding all the =and new fields.
Now when I am creating new project i am loosing the old field names. It creating the new fields with new field names.
My requirement is I should create a new fields without changing the old field names.
So Please can any one help me as how to approach these without deletion or changing the existing field names.
Finally my custom tab should contain 12 fields.
Thanks
viswaHi viswa,
I have a requirement to add 2 new fields to the Standard Transaction (called <b>BP</b> ).
I have gone through various concepts like <b>EEWB and BDT</b> tools. But, still I am not able to get the things well.
So please provide me with the procedure to explore things and work on the requirement.
Thanks in advance.
Regards,
Vishnu. -
Links needed for portal devlopment on oracle 10g appserver using jdeveloper
hi,
i'm relatively new to portals so wud like to hav sum knowledge of doing basing request & response stuff using jsp's as my UI while developing portlets using Jdeveloper.
If anyone could come up with tutorials about portal development on Jdeveloper.
i'm using oracle 10g AS app server(release 10.1.4) with oracle jdeveloper( version 10.1.2.0.0 build 1811).
wud like inputs on wsrp & jsr-168 compliant portletsHi,
You could try starting with the Portal Developers Guide - http://download-west.oracle.com/docs/cd/B14099_19/portal.1014/b14135/toc.htm
You should also find alot of useful info on the Portal Development page on OTN - http://www.oracle.com/technology/products/ias/portal/portlet_development_10g1014.html
Cheers,
Mick. -
I would like to have an add to favorites button on my flash
website but it just won't work. I have copied the code from this
website
http://www.actionscript.org/resources/articles/24/1/Bookmark-to-IE/Page1.html
into a new flash movie but when I put it into internet explorer 7
it won't do anything. but the button on the website above does
work. so I downloaded the fla from the site above, put it into
flash 8 and then exported it and guess what it didn't work. this is
the code I am using.
on (release) {getURL
("javascript:window.external.AddFavorite('
http://www.actionscript.org/','ActionScript.org
Flash Resources');");
is there a setting in flash I need to change so that it can
'talk' to internet explorer, because all websites that have
tutorials for add to favorites buttons use the same code, but it
won't work on my computers.
thanks for any help
trigger2160it's not a flash issue. it's a browser (and possibly pop-up
blocker) issue.
flash can cause any javascript function to execute (though
you'd be better served to use the externalinterface class rather
than getURL). you need to find a javascript function that works
with the browsers that want. -
Javascript Code Assist Delay Time
How can I increase the delay time before code assist pops up when editing javascript in a .cfm file?
Under Preferences:Coldfusion:Editor Profiles:Editor:Code Assist
there is a setting "Delay before showing Code Assist" but changing this setting does NOT alter the javascript pop up delay.
Under Preferences:HTML:Editors:JavaScript:Code Assist
there is no similar setting.
So maybe I can edit this setting in a config file or something? I'm using coldfusion builder 1.0.0.271911 on snow leopard 10.6.3
thanks.do I download Aptana plugin?
OMG please NO! Aptana is a bloated pig, and is what made CFBuilder 2 so slow.
I would suggest putting your JavaScript code in a separate file from your ColdFusion page, and using the <script> tag to load it in. If you need to pass ColdFusion variables into JavaScript, put a small <script> block on the CFML page wrapped in <cfoutput> just to create and populate the JavaScript variables, then add a second <script> tag to load your external JavaScript file.
By keeping your JavaScript separate from CFML code you achieve multiple benefits:
The built-in JavaScript parser/syntax highlighter will actually work, as those CF Builder features are somewhat dependent on recognizing the file extension to know which parser to use.
Maintenance of your application will be easier, because you don't have a mixture of CFML and JS code in the same file, and thus the files will be smaller and more targeted.
You can run your JavaScript file through "linters" to validate syntax.
You can minify your external JavaScript code files for better performance.
If you use build tools such as Grunt or Gulp, you can automate 3 and 4 without potentially breaking any CFML code in the process.
Probably additional benefits I'm not thinking of at the moment (someone will chime in I'm sure).
HTH,
-Carl V. -
How to Add Checkbox and icon in ALVGRID
Hi Experts,
i have one Requirement. i need to add Checkbox, Selectall,icon(Unlock or inactive) infront of Contracts of ALV GRID.How to achive that.
Thanks,
Venkat.Hi
For check box
At declaring field catalog using structure LVC_S_FCAT
mark CHECKBOX = 'X' and also EDIT = 'X'.
For reference check below subroutine in program BCALV_EDIT_05.
form build_fieldcat changing pt_fieldcat type lvc_t_fcat.
data ls_fcat type lvc_s_fcat.
call function 'LVC_FIELDCATALOG_MERGE'
exporting
i_structure_name = 'SFLIGHT'
changing
ct_fieldcat = pt_fieldcat.
*§A2.Add an entry for the checkbox in the fieldcatalog
clear ls_fcat.
ls_fcat-fieldname = 'CHECKBOX'.
* Essential: declare field as checkbox and
* mark it as editable field:
ls_fcat-checkbox = 'X'.
ls_fcat-edit = 'X'.
* do not forget to provide texts for this extra field
ls_fcat-coltext = text-f01.
ls_fcat-tooltip = text-f02.
ls_fcat-seltext = text-f03.
* optional: set column width
ls_fcat-outputlen = 10.
append ls_fcat to pt_fieldcat.
endform.
For Icon:
CONSTANTS:
icon_id_failure LIKE icon-id VALUE ' ((Content component not found.)) @',
icon_id_okay LIKE icon-id VALUE ' ((Content component not found.)) @'.
TYPES: BEGIN OF ls_tab,
matnr LIKE equi-matnr,
maktx LIKE makt-maktx,
b_werk LIKE equi-werk,
b_lager LIKE equi-lager,
lgobe LIKE t001l-lgobe,
sernr LIKE equi-sernr,
icon LIKE icon-id,
objnr LIKE equi-objnr,
END OF ls_tab.
*Table that display the data for the ALV.
DATA: itab TYPE ls_tab OCCURS 0 WITH HEADER LINE.
PERFORM get_h_date .
IF h_date => sy-datum .
itab-icon = icon_id_okay.
ELSE .
itab-icon = icon_id_failure.
ENDIF.
Regards
Sudheer
Maybe you are looking for
-
hi gurus, i am get the error which says payment proposal could not be carried out when i am running the app in f110. i seen open items properly.
-
J3680 colors not printing correctly
Regardless of where I print from (applications, web, files), I am not getting the right colors. I have checked the test page and my cartridges appear to be functioning correctly. I am running windows 7. In addition, when trying to print forms such as
-
How to uncheck encypt iphone backup if i forgot password ?
I want to delete my backup password ( uncheck encrypt iphone backup ) but i forgot the password so i delete my backup and uninstall itunes to solve this problem but when i reinstall the itunes and connect my iphone to itunes its still want the passwo
-
Why does my macbook air have 75gb of other
How do i get rid of some of the 75gb ?
-
Data change Event for Information Broadcasting
Hello Forum This is regarding problem with "Data change Event for Information Broadcasting". We have integrated the evening in a separate chain which is scheduled after the transaction data load. In the settings for the event we have mentioned the in