Trigger IsDefined with a hyperlink or javascript
Is there a way to trigger a <cfif IsDefined ('')> using
a hyperlink or at
the end of a javacript block.
I am attempting to trigger a code block using a hyperlink on
the page.
When clicked the onclick triggers a confirmation pop up box
that sets the
return to true or false.
If the return is true I would like to then trigger the code
block.
here is the hyper link, the function, and the code I am
trying to invoke
when the return is true:
<a href="javascript:;" onClick="confirmForm()">Reset IQ
Web Password</a>
<SCRIPT LANGUAGE="JavaScript">
<!--
function confirmForm() {
if (confirm("Are you sure you want to reset your IQ Web
Password?"))
return true;
else
alert("Password was not modified.")
return false;
//-->
</SCRIPT>
<cfif IsDefined ('Change_Pass')>
<cfset ststring=structNew()>
<cfloop index="i" from="1" to="6" step="1">
<cfset a = randrange(48,122)>
<cfif (#a# gt 57 and #a# lt 65) or (#a# gt 90 and #a# lt
97)>
<cfset ststring["#i#"]="E">
<cfelse>
<cfset ststring["#i#"]=#chr(a)#>
</cfif>
</cfloop>
<cfset stpassword
="#ststring[1]##ststring[2]##ststring[3]##ststring[4]##ststring[5]##ststring[6]#">
Is there a way to trigger a <cfif IsDefined ('')> using a
hyperlink
Yes. One way is to create the page
checkPage.cfm
=============
<cfif isDefined("someVar")>
<!--- do something --->
</cfif>
Then put
<a href="checkPage.cfm">check</a> on an
arbitrary page.
Similar Messages
-
Images with hyperlink in javascript - help needed
Hai,
I am having two hyperlinks say, "Good Morning" and "Good Evening". When I am clicking "Good Morning", a small arrow or a picture should display with the hyperlink.
When I am clicking "Good Evening" this one should have the small arrow or a picture and "Good Morning" will be displayed normally (without picture).
How can I do this using javascript?
Did anyone has the code? Pls help me.
<html>
<head>
<title>
Moves the Arrow When Clicked the Headings for Sorting purpose
</title>
<SCRIPT language="JavaScript">
function remove_picture() {
function set_picture() {
</SCRIPT>
</head>
<body bgcolor="peachpuff" width="90%" align="center">
<table>
<tr>
<td align="left">Good Morning</td>
<td>Good Evening</td>
</tr>
</table>
</body>
</html>
- yogee<html>
<head>
<style type="text/css">
#notclicking .highliter {
display: none;
#clicking .highliter {
display: inline;
</style>
<script type="text/javascript">
function showHighliter(elem) {
elem.id="clicking";
function hideHighliter(elem) {
elem.id="notclicking";
</script>
</head>
<body>
<a href="#" id="notclicking"
onfocus="showHighliter(this);"
onblur="hideHighliter(this)">
<img border="0" class="highliter"
src="http://forum.java.sun.com/im/duke.gif"/>
Good Morning
</a><br/>
<a href="#" id="notclicking"
onfocus="showHighliter(this);"
onblur="hideHighliter(this)">
<img border="0" class="highliter"
src="http://forum.java.sun.com/im/duke.gif"/>
Good Evening
</a><br/>
</body>
</html> -
How to handle multiple reports with single hyperlink parameter
Please suggest in my drill down report
i have two reports linked with one hyperlink
parameter, how to handle this?
please suggest for popup window with sample solution.
for example
report A--->B--->Chosse Report c or D
based on parameter hyperlink at report B.
Thanks in advance
RajYes U R correct, that
I'm using srw.set_hyperlink in plsql format trigger
to open other reports , now the problem is
how to carry over the hyperlink parameter to popup window
and allow user to choose any reports based on the
parameter value.
for example
report A (Sales person summmary report)
|
| (choose sales person drilled to orders report B)
|
B (report has the hyperlink on order no)
|
|
C,D,E (many reports based on order no
customer,order details,pending items
to be shipped)
Now how to handle the situation from b to c,d,e
I suggest use hyperlink at B to open popup to show
reports C,D,E with the order no has parameter.
please suggest for javascript to open popup window
for reports c,d,e.
Thanks
Raj -
Change three frames with one hyperlink
Hello,
I am new to Java and was wondering if it is possible to refresh more than one frame with one hyperlink. My webpage consists of three frames and I want to change all three frames (for switching from Spanish to English and vica versa). I need a function to realize what page the main frame is on and change that frame to the cooresponding spanish version of the current page. If anyone can help me out, it would be greatly apretiated...Thanks :)definitely Javascript... the server-side can't dictate what frames things go in anyway.
-
Can you create a pdf e-mail attachment with working hyperlinks?
I'm trying to figure out how to generate an e-mail with working hyperlinks where the recipient doesn't have to open the pdf for the links to work...in other words, when they open the e-mail and view the pdf as it is displayed, the links are visible and the viewer can click on them and go to a URL. I see this all the time, and can't figure out how to do it with a pdf (I've added the links with the link took in pdf and they display within the application window, but disappear when the file is an e-mail attachment) or with html. I've attached the pdf that I'm trying to make interactive within an e-mail message. Any help that can be provided is much appreciated!
Michael your answer is colored by the fact you use an ASCII (Text only) News Reader.
The answer is more along these lines:
PDF's can be created with working hyperlinks.
They can be automatically be brought over from programs such as MS Word, Open Office, and such provided your on a PC Platform
they can actually be viewed and clickable from Acrobat or Reader PC Versions, if created from a PC Version.
they are not viewable or clickable if created from Mac version of Office.
They are viewable and clickable from a PC if created from Mac version of Office (Word/Excel)
The Mac can can not do so automatically you must do them Manually with in Acrobat.
in Past it has been a Pain to do so though may be different in version 9
If you use a browser Plugin such as Schubert's PDF Browser Plugin that works on Safari, fireFox, Camino, SeaMonkey Opera, OmniPage, iCab. Links you create in Mac version of Acrobat are viewable and clickable.
Finally MS and Adobe have been having this on going problem since the day's PDF's first hit the market. (Version 1.) and MS decided to support them. The hooks are there for both PC and Mac versions of Word. and either are capable of being created and acted upon on whether created by the Mac version of Office, or the PC version of Office, but only on a windows PC. Its clearly a problem of Acrobat/Reader on the Mac. Its either a problem Adobe won't own up to, or they can't solve or, this is one item they can't be bothered with to put in the Mac Versions.
Some of this information is based on my participation in the msnews. nntp newsgroups for Office Mac. The experts there for the most part (MVP's) use both Mac and PC's and have investogated the problem themselves and been give information from the MacBU (Mac Business Unit) at MicroSoft. The basic internal code of Office 2003/2004 is the same. The UI is different and key cobinations are different. And same for 2007/2008 except office 2008 don't support VBA and Macros, and neither 2004 nor 2008 have MasterPages, And thankfully according the the MVP's Thankfully the Robbonis not supported on 2008. -
Associating two events with submit button using javascript in jsp
Hi
How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up windowHave something like :
<input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky. -
I am sending an email from Outlook. It has a graphic with a hyperlink and it has text with hyperlinks. When I open the email on my iphone, the text hyperlinks open properly. The graphic hyperlink gives the options to email, tweet, FB, print, copy, etc. Can anyone help me correct this so that the graphic links opens in the website it's linked to? Thank you.
Try checking the hyperlink for the image in MS Outlook.
Select image in signature, then click "Insert Hyperlink" image to the far right of Edit signature toolbar.
Click "Target Frame" button.
Select "New Window", then "OK".
After doing this, it solved my problem. -
How to open a pdf from pdf target with page no using javascript
Hi
How to open a pdf from pdf target with page no using javascript
Thanks in Advance.Hello,
<p>Web.show_document calling .htm files saved on disk.....</p>
Francois -
How do I embed an image with a hyperlink in an Outlook email?
What's the best way to create an email (in Outlook for Mac) with an image (embedded) that contains a hyperlink?
To be clear, I want to embed an image in the message that contains a hyperlink, I don't want to attach a PDF with a hyperlink. thanksAsk Microsoft... the owner of Outlook
http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US -
I´m newbie with InDesign CS2 Scripting (JavaScript). I need some help to understand the way to place a Word document in an indesign template, using JavaScript(.jsx).
Thank you for the help,
Peter//PlaceTextFileInFrame.jsx
//An InDesign CS3 JavaScript
//Places a text file in a text frame.
var myDocument = app.documents.add();
//Set the measurement units to points.
myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
//Create a text frame.
var myTextFrame = myDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myDocument, myDocument.pages.item(0))});
//Place a text file in the text frame.
//Parameters for TextFrame.place():
//File as File object,
//[ShowingOptions as Boolean = False]
//You'll have to fill in your own file path.
myTextFrame.place(File("/c/test.txt"));
function myGetBounds(myDocument, myPage){
var myPageWidth = myDocument.documentPreferences.pageWidth;
var myPageHeight = myDocument.documentPreferences.pageHeight
if(myPage.side == PageSideOptions.leftHand){
var myX2 = myPage.marginPreferences.left;
var myX1 = myPage.marginPreferences.right;
else{
var myX1 = myPage.marginPreferences.left;
var myX2 = myPage.marginPreferences.right;
var myY1 = myPage.marginPreferences.top;
var myX2 = myPageWidth - myX2;
var myY2 = myPageHeight - myPage.marginPreferences.bottom;
return [myY1, myX1, myY2, myX2]; -
when i convert a word file with a hyperlinks to a PDF file it doesn't work ?? thanks in advance for helping me
using microsoft word.
the hyperlink doesn't work in the pdf file (adobe reader).
adobe reader xi.
my operating system windows 8.1.
the attached screen is appeared. -
I created a web page in Adobe Illustrator and I can not seem to load it properly with the hyperlinks
I created a web page in Adobe Illustrator and I can not seem to load it properly with the hyperlinks. Is there a certain extension I should use? HELP!!
Tiger,
Have you sliced the images, converted your design into HTML/CSS and tried to click the links?
Peter -
HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!
Don't know if this applies to Lion, but read here:
http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/ -
Trigger compile with after migrated from 8i to 10g
Hi All,
We try to migrate a 8i database to 10g by using the exp and imp. All tables and data are already migrated by imp. During the imp, there are errors said the trigger compile with errors.
When login to the em to check, I found these 2 errors.
Line # = 2 Column # = 1 Error Text = PL/SQL: SQL Statement ignored
Line # = 2 Column # = 60 Error Text = PL/SQL: ORA-00942: table or view does not exist
My trigger is a very simple one:
BEGIN
Select TB_COUNTER_SEQ.NEXTVAL INTO :NEW.INCREMENT_NUM FROM DUAL;
END;
And I'm sure the "TB_COUNER_SEQ" is there.
Do I need to change anything on the trigger when migrating from 8i?
In fact, besides this trigger, all other trigger imp to this schema are having the same error. The schema in the 10g is a newly created one, is there any special right I need to create grant to this new user?
Thanks a lot.
MikeHi, Mike,
user3211655 wrote:
Hi All,
We try to migrate a 8i database to 10g by using the exp and imp. All tables and data are already migrated by imp. During the imp, there are errors said the trigger compile with errors.
When login to the em to check, I found these 2 errors.
Line # = 2 Column # = 1 Error Text = PL/SQL: SQL Statement ignored
Line # = 2 Column # = 60 Error Text = PL/SQL: ORA-00942: table or view does not exist
My trigger is a very simple one:
BEGIN
Select TB_COUNTER_SEQ.NEXTVAL INTO :NEW.INCREMENT_NUM FROM DUAL;
END;
And I'm sure the "TB_COUNER_SEQ" is there.
Do I need to change anything on the trigger when migrating from 8i?
In fact, besides this trigger, all other trigger imp to this schema are having the same error. The schema in the 10g is a newly created one, is there any special right I need to create grant to this new user?Grant the necessary privileges on the tables (and any other objects used, like sequences) directly to the owner of the triggers. Privileges granted to a role don't count in AUTHID OWNER stored procedures; the privileges have to be granted to the owner of the stored procedure (or to PUBLIC).
It the error is occurring at position 60, then it looks like you don't have privileges on dual. Login as SYS and
GRANT SELECT ON dual TO PUBLIC;You may need synonyms (perhaps public synonyms) for the objects, too. -
Acrobat ProX messing with converted hyperlinks
With v7 & 8 we were able to 'get around' Acrobat's refusal to allow links to Windows Explorer folders (ie not files) by converting Word or other hyperlinks, and then using the created link rectangles as required.
My shiny new (and generally annoyingly in need of many more mouse clicks to do anything) v 10 changes the path in the links when I copy/paste them or insert the pdf into another pdf so they no longer find the target folder.
Good job I have Autobookmark to correct them.I would appreciate any guidance on converting Excel 2007 internal hyperlinks in Adobe Acrobat 9 Pro (Ver 9.1.0).
In summary, i have created a Excel Table of Contents using Excel hyperlinks and when I convert these using the ribbon, the text converts but the hyperlinks are not included - I have tried this with external hyperlinks and this works fine.
I have read arcticle http://forums.adobe.com/thread/448213 which looked hopeful, but it refers to XP and a security update KB969682 - I am running Windows 7 and don't have that KB installed :-(
Really appreciate help as I am running out of ideas.
Thanks - DMB
Maybe you are looking for
-
How can I make my email screen smaller?
How can I make my email screen smaller?
-
How to change the location of a column in a Oracle table?
Sir: I want to add a new column in a table, but I dont want to add the column at the last of the table, how can I do it ? If I want to modify the locations of columns in a table, How can do it? Thanks
-
The process gets to the NIVISA\SETUP.INI step, then I get this error. I've tried with installing the MDAC and not, and it happens both times. The drive I'm trying to create the file to has 7.4GB open on it, so I'm not sure why this is happening. Than
-
Enhance LAND1 into 0VENDOR_TEXT
hi, experts, i am new to BW. and now i want to add the field LAND1 into 0VENDOR_TEXT. RSA6 append struture is finished now. and i need to write code in CMOD. below is my code, no sytax error. HOWEVER, when i go to RSA3 to check '0VENDOR_TEXT', field
-
I wanted to post an observation that may help some of you. I have always noticed that my stacked cameras became a single camera on waking from sleep...I recently did a complete clean install of tiger, with all the appropriate permission repairs, upgr