Hyperlink in application
hi,i want to add hyperlink in java application mean when user click the hyperlink it goes to website.thanks
I have some code that does this as a JTextField subclass if that's what you're looking for. It uses EJ Albert's BrowserLauncher code for URL display via browser. I have used it for HTTP and MAILTO
protocols.
In usage something like this:
String webAddress = getBundleString("home.page");
URL url;
try
final String protocol = "http";
url = new URL(protocol + "://" + webAddress);
catch (MalformedURLException mue)
url = null;
UrlLabel urlLabel = new UrlLabel(webAddress, url);
urlLabel.addHyperlinkListener(inetProtocolHandler);<mailto:[email protected]> if interested...
Similar Messages
-
How I creatat text with hyperlink in application
hi all,
I want to creat some text with hyperlink (it mean when I click to text, it invoke other panel or web...). My program is Application. Can any one tell me how I do it. Pls help me!!!.
Thank you verry muchIs this text HTML? If so, just go to any of the 350,000 sites on the Internet that describe basic HTML. Otherwise, just output the URL as text.
However my guess is that your bigger problems are (a) how to notice the hyperlink is clicked and (b) how to invoke whatever it links to. Right? -
Hyperlink, windows application
Hello,
how can I make a Field with a conection, when I click on it, that the programm is opened. I want to give the setup Programm-path into a form-field. once I click on it, it should run the programm (like a hyperlink in word)
regards
Roberthey bro, have a look at the assistance i got from Craig;
how_to_create_a_hyperlink -
If I click on a hyperlink in application that is external to Firefox, clicking on the link opens Firefox, goes to the home page and that is all. The hyperlinked web page does not open.
If Firefox is already open, a new browser window is opened, goes to the home page. The hyperlinked web page does not open.Apparently this is an add-on problem. I disabled all of the add-ons and the problem is now fixed. I have not been able to find out which is the culprit yet but I will track it down. If and when I find the problem add-on, I will post the name(s) here.
-
Applescript 2 scripts to one (grep+add hyperlink)
Hi.
I try to combine two scripts. First one greps 7 digits numbers in indesign
and another makes hyperlink that is same numbers as that selection(grep)'
Does anyone have idea how to do that. thanks -Jan
This greps 7 digits numbers in indesign with this script
tell application "Adobe InDesign CS5.5"
activate
set find grep preferences to nothing
set change grep preferences to nothing
set find what of find grep preferences to "\\d{7}"
tell active document
set myFoundItems to find grep
end tell
end tell
and this one makes hyperlink:
tell application "Adobe InDesign CS5.5"
tell document 1
set mySelection to selection
set LinkID to contents of mySelection as string
set LinkIDURL to LinkID as string
try
set URL_L to make hyperlink URL destination with properties {name:LinkID, destination URL:LinkIDURL}
on error
set URL_L to hyperlink URL destination LinkID
end try
set URL_La to make hyperlink text source with properties {source text: (item 1 of mySelection), hidden:false}
set myHyperlink to make new hyperlink with properties {destination:URL_L, source:URL_La, visible:false}
end tell
end tell
endYES! I got it with help of Indesign scripting quide.
Here is the applescript. Feel free to use if you need. This only works if no hyperlinks are not assignet to those 7 digits you are grepping with this script
tell application "Adobe InDesign CS5.5"
activate
-- resetoi grep opitonit ettei edelliset haut vaikuta
set find grep preferences to nothing
set change grep preferences to nothing
--Asettaa haku parametrit
set include hidden layers of find change grep options to false
set include locked layers for find of find change grep options to true
-- 7 numero perakkain hakuaehto
set find what of find grep preferences to "\\d{7}"
tell active document
-- etsii jokaisen sivulla oleva mallikoodin nimen
set myFoundItems to find grep
-- ottaa ylos jokaisen mallikoodin numerosarjan
repeat with i from 1 to (count myFoundItems)
set FileName to contents of item i of myFoundItems
if not (exists hyperlink URL destination FileName) then
set TheH to make hyperlink URL destination with properties {name:FileName, destination URL:FileName}
else
set TheH to hyperlink URL destination FileName
end if
-- lisaa hyperlinkin
set TheHSName to FileName
set TheHS to make hyperlink text source with properties {name:TheHSName, source text: (item i of myFoundItems), hidden:false}
make new hyperlink with properties {destination:TheH, source:TheHS, visible:false}
end repeat
end tell
end tell -
Script to uncheck "Shared Hyperlink Destination" in urls
Is there a script or an automated way to make all hyperlinks not be "Shared Hyperlink Destination". I have 250+ hyperlinks that are shared, but are causing problems when i copy them to a new document.
Is there a preference somewhere to set it up so it doesn't happen in the future?
thanks in advance. mike.This Applescript deletes all of the hyperlinks:
tell application "Adobe InDesign CC 2014"
delete every hyperlink of active document
end tell
and this deletes the hyperlinks and the swatches and character styles named "Hyperlink":
tell application "Adobe InDesign CC 2014"
tell active document
delete every hyperlink
try
delete (every swatch whose name is "Hyperlink")
set n to every character style whose name is "[None]"
delete (every character style whose name is "Hyperlink") replacing with item 1 of n
end try
end tell
end tell -
Can I launch an application from website?
I am trying to design a website, which I do not want to publish on the web, just on my own computer. I would like to establish hyperlinks to applications and documents, which when clicked open the applcation or document itself. Idelly, I would like the website I design to become my desktop, giving me customised access to applications and files plus a splash of humour and widgetry. I doubt that os x is going to let me use a webpage as a desktop, but, if I run safari on opening, is there a way that I can achieve my ambition? All thoughts and suggestions welcome. Best. John Whiteman
Funny, alot of Lion users would like to go the other way. Launchpad is an iOSesk application launcher built into lion.
to go about coding such a monstrosity is over my head -
Trouble launching extension-associated applications through WebLogic Web Server
We are using WebLogic 7.1 to do a simple document management system. We have a
servlet that generates HTML. The HTML contains a hyperlink to document that is
served through WebLogic Web Server, via a Web Application, and is located in the
application directory.
The problem is, when you click on the hyperlink, an application associated with
the extension (for example, Microsoft Word for .doc extension) is not launched.
Instead, the browser brings up the document in its raw form directly in the browser
window.
This feature works properly when you browse to other sites that contain hyperlinks
to Word Documents (Microsoft Word gets launched properly within the browser).
Any ideas would be greatly appreciated.Hi Jay,
During my on going testing on our DR site, across all the issues which kind of fixed and working now – I have come across 1 which I am a little amazed with
While trying to run the ping and buffer on REN SERVER
ERROR 404 Page not found. Everything is set up perfectly to what I understand.
Env. – HR to portal .
Request goes to RPS passes the firewall goes to LB and to REN and so on along with that.
Initially the Setup was incorrect which is corrected now. Then LB was listening to desired port – which was not activated while RPS was brought up – we have fixed that. so for now LB listens to port.
We have bounced app/prcs and cleared cache. But when tried to ping test – 404 (page not found error )
I have checked config.xml / struts-config.xml and web.xml – jus to verify the document root and context is alrite. Looks Good.
Checked logs - No specific error.
HR – Websphere … RPS apache...
Portal – Weblogic
Tools - 8.49.18
App - 9.0 (HR)
RENQ is up and running.
REN Server Cluster ID: RENCLSTR_0002
*StateFlag Active
*REN Server Cluster URL: https://psportal:8065
*REN Server Browser URL: https://psportal.dowjones.net:8065
Authentication Domain: dowjones.net
request your help pls -
Find / replace within applescript
I am working on a script to change the file path of a hyperlink
tell application "Adobe InDesign CS5"
tell active document
set listOfButtons to every button
repeat with thisButton in listOfButtons
tell thisButton
set FilePath to file path of goto anchor behaviors
return FilePath
end tell
end repeat
end tell
end tell
the answer I get is : {"Content:Pricelist:Catalog:Interactief:BE:21_ES_Ventielen_be_dig.indd"}
Now I want to change "BE" into "FR" and "be" into "fr"
(in the future I will have to change it to other suffix, so it would be nice if this can be included as well )
Can anyone help we to do this?Mark,
I had to change the final command to
set file path of goto anchor behaviors of thisButton to NewPath
I changed the script a little bit because I noticed that "to items 1 thru 4" didn't work on all the files
this is the new script:
tell application "Adobe InDesign CS5"
tell active document
set listOfButtons to every button
repeat with thisButton in listOfButtons
tell thisButton
set FilePath to file path of goto anchor behaviors
set ASTID to AppleScript's text item delimiters -- Store settings
set ButtonPath to (item 1 of FilePath) as string
set AppleScript's text item delimiters to ":" -- Everything splits at this character
set PathBits to text items of ButtonPath -- Slice it…
repeat with i from 1 to count PathBits
considering case
if item i of PathBits is "NL" then
set item i of PathBits to "FR"
end if
end considering
end repeat
set TempPath to items 1 thru i of PathBits as string
set AppleScript's text item delimiters to "_" -- Now everything splits at this character
set DocBits to text items of TempPath
repeat with j from 1 to count DocBits
considering case
if item j of DocBits is "nl" then
set item j of DocBits to "fr"
end if
end considering
end repeat
set NewPath to items 1 thru j of DocBits as string
set file path of goto anchor behaviors of thisButton to NewPath
end tell
end repeat
end tell
end tell
Now I just have to make it possible to do this for all the buttons in a document. First I want to make it possible to choose the original path and doc...
This is what I've got at this moment:
tell application "Adobe InDesign CS5"
tell active document
--choose path
set PathOrigArray to {"BE", "FR", "NL", "EX", "DE"}
set PathOrigID to choose from list PathOrigArray with prompt "Selecteer de map met originele bestanden." OK button name "Update book" without multiple selections allowed
set PathNewArray to {"FR", "NL", "EX", "DE"}
set PathNewID to choose from list PathNewArray with prompt "Selecteer de map met nieuwe bestanden." OK button name "Update book" without multiple selections allowed
--choose doc
set DocOrigArray to {"be", "fr", "nl", "ex", "de"}
set DocOrigID to choose from list DocOrigArray with prompt "Selecteer de suffix van de originele bestanden." OK button name "Update book" without multiple selections allowed
set DocNewArray to {"fr", "nl", "ex", "de"}
set DocNewID to choose from list DocNewArray with prompt "Selecteer de suffix van de nieuwe bestanden." OK button name "Update book" without multiple selections allowed
set listOfButtons to every button
repeat with thisButton in listOfButtons
tell thisButton
set FilePath to file path of goto anchor behaviors
set ASTID to AppleScript's text item delimiters -- Store settings
set ButtonPath to (item 1 of FilePath) as string
set AppleScript's text item delimiters to ":" -- Everything splits at this character
set PathBits to text items of ButtonPath -- Slice it…
repeat with i from 1 to count PathBits
considering case
if item i of PathBits is PathOrigID then
set item i of PathBits to PathNewID
end if
end considering
end repeat
set TempPath to items 1 thru i of PathBits as string
set AppleScript's text item delimiters to "_" -- Now everything splits at this character
set DocBits to text items of TempPath
repeat with j from 1 to count DocBits
considering case
if item j of DocBits is DocOrigID then
set item j of DocBits to DocNewID
end if
end considering
end repeat
set NewPath to items 1 thru j of DocBits as string
set file path of goto anchor behaviors of thisButton to NewPath
end tell
end repeat
end tell
end tell
The problem is that he doesn't change the items... what I am doing wrong? -
E61 WLAN Problems after update
I updated my firmware to version 2.0618.06.05 and since then I have had problems with WLAN connections for the browser. I can connect but if I try to use a hyperlink the application hangs. I have to go to connection manager and terminate the connection (disconnecting in the browser doesn't seem to do the trick)and then go back to the browser and use the link. This is tedious.
I too lost my contacts when I upgraded. Unfortunately I had not synched with Outlook so I lost two contacts completely.28-Sep-2006
02:27 PM
smoore wrote:
I am using a DLink DI 614+ in Canada. I am not at home but it is the latest firmware on the DLink Canada Support website for this router.
Thanks. I'm using a 1st-gen Linksys WRT54G upgraded to the last firmware and a newer version of the WRT54G. No idea what firmware it's on though. I'm ready to destroy this phone. Nokia US and Nokia UK really are very short sighted. What's the point of getting a world phone if you can't get support in the country you are in.
Oh well ... time to look for a new "smartphone"
LinOSX TechnoMash: http://linosx.nyvisitek.com
Forums: http://forums.nyvisitek.com
Nokia E61 - Current
Motorola SLVR L7 - Current Backup
Nokia 6230 -
Since switching to Firefox this week, when I click on a hyperlink in an e-mail in Outlook, I get this message, "General failure. An error occurred in sending the command to the application." It doesn't open a new window or do anything. Any work around to fix this?
See this lnk for a fix, it worked for me!
http://www.pcworld.com/article/200103/fix_outlook_general_failure_error_for_email_links.html -
How to create downloadable pdf report as hyperlink within BSP application
Hi,
I'm developing a BSP application using MVC and htmlb extensions on a WAS 6.40. One of the requirements of my webapplication is:
- the ability to generate a report in pdf format at runtime, using data retrieved from a backend SAP CRM 3.0 system
and
- make this report available/downloadable via a hyperlink in the application.
I am aware of tools like Smartforms and Adobe interactive forms but need some help to get started and choose the right tool.
regards, Roelof JanHi,
we've done that by firstly building a RFC which prints the report to sap-spool:
call function 'GET_PRINT_PARAMETERS'
exporting
expiration = 1
immediately = ' '
new_list_id = 'X'
line_count = 65
line_size = 132
report = sy-repid
no_dialog = 'X'
importing
out_parameters = wf_params
valid = valid_flag.
if sy-subrc ne 0 or valid_flag eq false.
endif.
new-page no-heading no-title print on parameters wf_params
no dialog .
... list processing ...
new-page print off.
concatenate programname sy-uname+0(3) into lc_rq2name separated by '_'.
select * from tsp01 into tsp01_wa
where rq2name = lc_rq2name
and rqowner = sy-uname
order by rqcretime descending.
wf_spono = tsp01_wa-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear wf_spono.
endif.
Then convert the spooljob:
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = wf_spono
no_dialog = 'X'
tables
pdf = witab
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 8
err_btcjob_submit_failed = 9
err_btcjob_close_failed = 10
others = 11.
if sy-subrc ne 0.
return.
endif.
Delete Spooljob and generate cached response:
data del_spono type tsp01_sp0r-rqid_char.
del_spono = wf_spono.
call function 'RSPO_R_RDELETE_SPOOLREQ'
exporting
spoolid = del_spono.
if witab is not initial.
loop at witab into itab .
translate itab using ' ~'.
concatenate output itab into output in character mode.
endloop.
translate output using '~ ' .
create object cached_response
type cl_http_response
exporting add_c_msg = 1.
l_pdf_len = strlen( output ).
cached_response->set_cdata( data = output
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 ).
data: guid type guid_32,
display_url type string.
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 ).
app ?= application.
app->print_url = display_url.
endif .
The display_url has to be used in the normal response-view:
<script type="text/javascript">
var param = 'width=700'
+ ',height=550'
+ ',left=0'
+ ',top=0'
+ ',menubar=no'
+ ',location=no'
+ ',resizable=yes'
+ ',status=no';
window.open('<%= application->print_url%>', 'DRUCK', param ).focus();
</script> -
In "Pages" you can Hyper Link a word or phrase by going to Inspector Link highlight the word or pharse click on "Enable as a hyperlink" and then place a URL address. The highlighted word or phrase will now be blue and anytime I click on it I will be taken the the URL address.
What I want to do is that exacltly, but I want to able to link a word or a phrase to another internal Mac application.
Example from Pages to Logos Bible Software.Feature not available.
Hyperlinks and bookmarks are used in documents that will be viewed onscreen, either as HTML files or as Pages documents. You can add hyperlinks to jump to another page or to open an email message or a webpage on the Internet. Use bookmarks to mark passages in the document that you want to refer to as you work.
This I found in the Pages User Guide, downloadable from your Pages Help menu, on pagge 110. -
How do i Hyperlink to a web page from a java application?
How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?
It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
String [] cmd={path of IE+Filename.exe,"URL of your website"}
try
Runtime.getRuntime().exec(cmd);
catch (Exception e)
System.err.println(e.toString());
} -
I have mountain lion OSX and parallels with Windows. Every time I click on a hyperlink in other applications it opens - some 7 Zip file explorer inside Parallels but doesn't go to Safari. Does anyone know solution?
I suggest that you run software update, after which you should have Safari 6.0.5 - then check Safari - Preferences - Privacy & see that 'Block cookies' is not set to Always.
Failing that - switch Safari extensions Off via Safari - Preferences - Extensions & test again
Maybe you are looking for
-
Location of iPhone sync data files or How to not have to re-install all my iPhone apps?
Hi Folks, I recently did a clean install of Lion on my MacBook Pro and I've chosen to not use Migration Assistant because I don't want to move over a bunch of cruft under my 4+ year old home directory (Tiger > Leopard > SL). I've been very selective
-
Visual Studio compiling 64 Bit Plugin for InDesign Server CS5
Hello guys, Again I have a problem compiling 64 bit plugins, but this time in windows environments, the 32 bit compiling works fine (also on 64 bit machines). The first thing I've done was creating a new project configuration for 64 bit environments
-
What is version control in oracle apps
hi, I want to know what is version control , why it is done for... please help me in this regard...
-
Get_property_as_string
Hi All, I am trying to debug an issue with attaching Followup(activity) to a case in ICWC.I am having problem with attaching activities from activity clipboard to a case.On debugging I found that the method , get_property_as_string( iv_attr_name = 'S
-
Keyboard Cover and Hard Case on Macbook Pro Retina
I have just heard that Apple suggests to remove palm rest protector on Macbook Pro Retina. Reference: http://support.apple.com/kb/TS4384 Now, my question is: Is it ok to put keyboard cover and hard case on Macbook Pro Retina? Or will it affect the pr