How do I use a Java script in place of a standard link?
Hi! I'm very new to html and totally unfamiliar with Java. Basically my html has a link like this: Mr Nobody and I didn't like how easy it was for spammers to harvest that email address from my website. I looked at this site http://www.bronze-age.com/nospam/ which allowed me to download a javascript .js file and some instructions on how to recode my email link so that it's hidden.
I've loaded the java procedure in the head of the html just like the website says. He says that every link must be converted to a script call; so what previously was Mr Nobody changes to <script>mail2("nobody","fake.address9z",0,"","Mr Nobody")</script>. What does this mean? I replaced the stuff from the inside of the quotes in the href and weird stuff happens. What do I actually replace or how do I call up this script?
I basically have created an image mapped link that I want to call this javascript when clicked.
thanks for any help!! :)
cotton.m wrote:
BigDaddyLoveHandles wrote:
cotton.m wrote:
BigDaddyLoveHandles wrote:
cotton.m wrote:
BigDaddyLoveHandles wrote:
nclow wrote:
BigDaddyLoveHandles wrote:
nclow wrote:
Beats me. Read the documentation. Or ask on a javascript forum, but they'll probably tell you the same thing.Yeah, they're all a bunch of ASCII porn lovers.Really, who isn't?!Even the sounds of an impact printer pounding out a solid page of characters gives me a thickie.Well actually... unless you're in the habit of using mustard during foreplay, and really who can tell, then I think that's actually one of them cd-rom hotdogs that you dropped in your lap.Is it too late to mention what a cultured and sophisticated person I am?If by cultured you are referring to bacterial growth between your toes then yes I think we covered this.It's just that I'm still holding out for that sponge bath from Fiest.Well if she ever gets off Bravo I'll send her your way.
But not on the train. Yikes!Sigh... It's just that I've got that big guy's weakness for bony women...
Similar Messages
-
How to Use the JAVA SCRIPT code in .htm page of the component
Hi .
In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
thank you
B.ManiCheck this document [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
Regards
Kavindra -
How to create two level dynamic list using JSP , Java Script and Oracle
I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET.
Plz response with details.1) Learn JDBC API [http://java.sun.com/docs/books/tutorial/jdbc/index.html].
2) Create DAO class which contains JDBC code and do all SQL queries and returns or takes ID's or DTO objects.
3) Learn Servlet API [http://java.sun.com/javaee/5/docs/tutorial/doc/].
4) Create Servlet class which calls the DAO class, gets the list of DTO's as result, puts it as a request attribute and forwards the request to a JSP page.
5) Learn JSP and JSTL [http://java.sun.com/javaee/5/docs/tutorial/doc/]. Also learn HTML if you even don't know it.
6) Create JSP page which uses the JSTL c:forEach tag to access the list of DTO's and iterate over it and prints a HTML list out.
You don't need Javascript for this. -
How can I use Seeburger java functions on SAP XI's user defined functions?
Hi All,
As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions? I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
best regards,
MikeHi Mike !
You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
What kind of functions are you trying to use?
Regards,
Matias. -
How do I check the java script is up to date?
When I am on facebook or any site like that it takes for ever to load the pages.
"How do I check the Java script is up to date?"
You can visit these two sites and check updates for your plug-ins:
1. http://www.mozilla.com/en-US/plugincheck/
2. http://www.java.com/en/download/installed.jsp -
How can i use BAPI to insert a few records into standard table
Can anyone help me with how can i use BAPI to insert some records into a standard table from an internal table?
Hi,
First of All try to Explain your Question first.
This is a general question without mentioning the Table you want to Update.
Please give the details before posting a question so it will help people to understand your Problem.
Regards
Sandipan -
Use of java script in WAD.
Hi.
I need to write java script for reading column heading of a table (analysis grid in WAD) and check if heading has a particular value suppose X , I need to highlight that column heading with a color.Kindly provide some pointers .
Thanks in advance,
Neetika.I have somehow managed to workaround the issue.
I use one aggregation level without Stage field to allow users to modify the data and then I use another aggregation level with Stage field to process the Stages using planning functions and filters. This works.
I am still curious on the user exit proposed by Andrey.
Andrey can you please provide step by step on how we achieve this?
Thanks,
DV -
How do i disable a java script error that pops up everytime i click on something?
java script error Error: Permission denied to access property 'host'
this continues to come up every time i click on something. this has only started since i downloaded firefox 4.0. how do i disable the pop up or do i just stop using 4.0? would go back to the last version but when i try to download that i'm told the files are corruptedCreate a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
* http://kb.mozillazine.org/Testing_pre-release_versions
* http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
* http://kb.mozillazine.org/Shortcut_to_a_specific_profile
* http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox -
How can I hide the java script status bar?
I'm trying to hide the status bar using the feature in the advanced section of enable java script. I did a search in the help window of Firefox 5.0 and it shows the area in options to do this. I followed the instructions but the feature in my advanced area does not offer this selection. I'm trying to accomplish this in order to follow the recommendations of Pogo to enhance game playing experience.
Hi. To remove the horizontal scrollbar you can do this:
textArea.setWrapText(true);
To remove the vertical scrollbar you can do this:
ScrollBar scrollBarv = (ScrollBar)ta.lookup(".scroll-bar:vertical");
scrollBarv.setDisable(true); and set the opacity to 0 in the css file:
//css file
.text-area .scroll-bar:vertical:disabled {
-fx-opacity: 0;
}Here is an example:
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.ScrollBar;
import javafx.scene.control.TextArea;
import javafx.scene.input.ContextMenuEvent;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class TextAreaSample extends Application {
@Override
public void start(Stage primaryStage) {
final TextArea textArea = new TextArea();
textArea.setWrapText(true);
StackPane root = new StackPane();
root.getChildren().add(textArea);
Scene scene = new Scene(root, 300, 250);
primaryStage.setScene(scene);
primaryStage.show();
scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
ScrollBar scrollBarv = (ScrollBar)textArea.lookup(".scroll-bar:vertical");
scrollBarv.setDisable(true);
public static void main(String[] args) {
launch(args);
} -
Using a java script comfirmation in delete record function?
Hello;
I am trying to write a confirmation script in Java to delete
a record. I don't want it to delete the whole table of information,
just the record teh delete button is attached to using the ID. Here
is my script, and then the code on the page:
<script language="JavaScript">
function confirmDelete(id) {
if (confirm ("Are you sure you want to delete this record?"))
document.HREF.action="ProjectCat-Action.cfm?id="+id;
document.HREF.submit();
return false;
</script>
Here is the query I am trying to use it with:
<cfquery name="catMan" datasource="#sitedatasource#"
username="#siteUserID#" password="#sitePassword#">
SELECT Categories.Name AS ViewField1, Categories.CategoryID
AS ID
FROM Categories
</cfquery>
<head>
</head>
<body>
<cfloop query="catMan" startRow="#URL.startRow#"
endrow="#endRow#">
<cfoutput>
#ViewField1#
<form action="ProjectCat-Action.cfm" method="post">
<input type="hidden" name="ID" value="#ID#">
<input type="submit" name="proj_Delete" onClick="return
confirmDelete('#ViewField1#')" value="Delete"></form>
</cfoutput>
</cfloop>
</body>
#Note: there is code here in my loop query for next and
previous buttons, I just didn't post that code because it doesn't
pertain to this question.
Is there also a way to make the Java Script state in the spot
where it says, "Are you sure you want to delete this record" to
make it say "Are you sure you want to delete #ViewField1#?" (the
name of the record being deleted) ?
Thank you!
Phoenixjust pass 2 arguments to your js function - id AND name of
category:
<input type="submit" name="proj_Delete" onClick="return
confirmDelete(#ID#,'#ViewField1#')" value="Delete">
and the function:
function confirmDelete(id,name) {
if (confirm ("Are you sure you want to delete " + name + "
category?"))
document.HREF.action="ProjectCat-Action.cfm?id="+id;
document.HREF.submit();
return false;
but creating a separate form for each category displayed on
the page is
very inefficient - you should revise your code... you do not
even need a
form, really... just use <a href=...> to call your js
function, or an
<input type=button ...> (without any <form ..>
tags) if you absolutely
must have a button to click...
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
How to instantiate class in java script
Hi, I'm new to java script. I have made a class in package project.attendance.model named CheckEmpId. I want to access methods of that class in my java script. Is it possible, if yes than how?
ThanksJavascript is client side, Java is server side. That fact alone makes it impossible for javascript to invoke your java code.
On the server side you have the ability to dynamically generate javascript however, so maybe you can fix your problem that way depending on what you want to achieve. -
How can i use this java program to access from a jsp page?
import java.io.*;
import java.util.*;
public class FileProcessing
//create a vector container for the input variables
Vector variables = new Vector();
//create a vector container for the constants
Vector constants = new Vector();
/*create a string expression container for the equation
as read from the file */
String expression = " ";
//create double result container for the final result
double result = 0;
public boolean processFile(String filename,String delim)
//index for values vector
int num_values = 0;
//index for constants vector
int num_constants = 0;
//current line being read from the external file.
String curline = " ";
//start reading from the external file
try
FileReader fr = new FileReader(filename);
BufferedReader br = new BufferedReader(fr);
while(true)
curline = br.readLine();
if(curline == null)
break;
//determine the type of current interaction
boolean variable = curline.startsWith("input");
boolean constant = curline.startsWith("constant");
boolean equation = curline.startsWith("equation");
boolean output = curline.startsWith("result");
//on input variables
if(variable)
StringTokenizer st = new StringTokenizer(curline,delim);
int num = st.countTokens();
int count=0;
while(st.hasMoreTokens())
String temp = st.nextToken();
if(count==1)
byte b[]= new byte[100];
System.out.println(temp);
System.in.read(b);
String inputval = (new String(b)).trim();
variables.add(num_values,inputval);
num_values++;
count++;
// on constant values
if(constant)
StringTokenizer st = new StringTokenizer(curline,delim);
int num = st.countTokens();
int count = 0;
while(st.hasMoreTokens())
String temp = st.nextToken();
if(count==1)
byte b[]= new byte[100];
System.out.println(temp);
System.in.read(b);
String cons = (new String(b)).trim();
constants.add(num_constants,cons);
num_constants++;
count++;
// on equation
if(equation)
StringTokenizer st = new StringTokenizer(curline,delim);
int num = st.countTokens();
int count = 0;
while(st.hasMoreTokens())
String temp = st.nextToken();
if(count==2)
this.expression = temp;
count++;
// now we are ready to evaluate the expression
if(output)
org.nfunk.jep.JEP myparser= new org.nfunk.jep.JEP();
myparser.setAllowAssignment(true);
for(int i=1;i<variables.size()+1;i++)
String name = "arg"+Integer.toString(i);
myparser.addVariable(name,new Double(variables.get(i-1)
.toString()).doubleValue());
for(int i=1;i<constants.size()+1;i++)
String name = "arg" +Integer.
toString(i+variables.size());
myparser.addConstant(name,new Double(constants.get(i-1).toString()));
//output is obtained as follows
myparser.parseExpression(expression);
result = myparser.getValue();
System.out.println("Assay value: "+result);
catch(Exception e)
System.out.println(e.toString());
return true;
public static void main(String[] args)
FileProcessing fp = new FileProcessing();
fp.processFile("input.eqn",":");
}here i need to generate the strings like 'enter value1' and respective text boxes dynamically . i should use this java program as business logic and a jsp page for view.
following given is my text file input.eqn
input:enter value1:arg1
input:enter value2:arg2
input:enter value3:arg3
constant:enter constant1:arg4
constant:enter constant2:arg5
equation:enter equation:(arg1+arg2)*(arg3+arg4)*arg5
result:Why do you double post ? http://forum.java.sun.com/thread.jspa?threadID=646988&tstart=0
Why dint that answer satisfy you ? And why dint you say so in that thread rather than posting the same question again ?
ram. -
How to include a common java script in all pages to prevent browser closure
We have already implemented a script to prevent accidentally browser closure. The script has been included in a js static file and loaded in APEX 4.01.
There is a way to make the script available to all pages without including it in all pages ?
Ad example to make an item available to all pages is sufficient to include it in page 0 there is somethings similar for java script
Txs
Giuseppe.Reference the script via a <tt>script</tt> element in the Header section of utilised page templates.
-
VBscript - how to Disable "Use Automatic configuration Script"
Hi There
I currently have the below script in a vbs file;
Const HKEY_CURRENT_USER = &H80000001
Set objShell = CreateObject("WScript.Shell")
strPC = objShell.ExpandEnvironmentStrings("%COMPUTERNAME%")
On Error Resume Next
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
strValueName = "ProxyEnable"
objReg.GetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
'#==============================================================================
'# If
IE Proxy is currently enabled display message and ask user whether it
'# should
then be disabled
'#==============================================================================
If dwValue = 1 Then
IEPrompt = MsgBox ("Hello David. Your Proxy is on, Do you want to turn it off?", vbQuestion+vbYesNo, "Disable IE Proxy")
If IEPrompt = vbYes Then
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
MsgBox "Thank You David, your proxy is now off. Have a nice day" & _
".",vbInformation, "Disable IE Proxy"
ElseIf IEPrompt = vbNo Then
MsgBox "David, your Proxy is still on " & _
".",vbInformation, "Disable IE Proxy"
End If
'#==============================================================================
'# If
IE Proxy is currently disabled display message and ask user whether it
'# should
then be enabled
'#==============================================================================
ElseIf dwValue = 0 Then
IEPrompt = MsgBox ("Hello David. Your Proxy is off, Do you want to turn it on?", vbQuestion+vbYesNo, "Enable IE Proxy")
If IEPrompt = vbYes Then
dwValue = 1
objReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
MsgBox "Thank You David, your proxy is now on. Have a wonderful day" & _
".",vbInformation, "Enable IE Proxy"
ElseIf IEPrompt = vbNo Then
MsgBox "David, your Proxy is still on" & _
".",vbInformation, "Enable IE Proxy"
End If
End If
This only turns off the proxy server in IE/Tools/Internet Options/Connections/Lan Settings.
Can I get this same code to turn of the 'Automatic configuration' check boxes instead or as well?
Many thanks
LukeHi Luke,
We hope your issue has been resolved
The registry for use automatic configuration script is under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL
(For per user) It shows when script is set to work.
Regarding to question about scripting or VB script, I’d suggest that post your issue at TechNet scripting Forum and MSND forum. There you can get more effective suggestion by other experts who familiar with scripting. Your understanding is highly appreciated.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
And just for your reference, we do have a Group Policy for that, link it to a scope (Site, Domain, or OU level) which contain user account object.
For more information please refer to following MS article:
Configure a Registry Item
https://technet.microsoft.com/en-us/library/cc753092.aspx
Regards
D. Wu
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Use a Java Script variable's value in some other jsp ....how?
Please help me.................
<%@ page import="java.util.*" %>
<%@ page language = "java" import="java.sql.*,javax.servlet.*,javax.servlet.http.*,java.util.*" session = "true" %>
<HTML>
<HEAD>
<TITLE>Create Employee</TITLE>
</HEAD>
<BODY>
<%
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://10.203.143.55:3306/bdaymgr" ,"root","mysql");
stmt = conn.createStatement();
rs = stmt.executeQuery("Select emp_id,emp_name From employee_info ");
System.out.println("rs " + rs);
%>
<script language="JavaScript">
function OnSubmitForm(){
var box = document.form2.UserList;
var where_to = box.options[box.options.selectedIndex].value;
if(where_to =="")
{document.write("Please select something");}
else {Dont know what to do here }
</script>
</script>
<center>
<FORM NAME = "form2" onSubmit="OnSubmitForm();">
<table>
<TR>
<TD width="11%">User ID : </TD>
<TD width="180%"><select name="UserList" size="1">
<option>-- Select A User ID --<option>
<% while (rs.next()) {
%>
<option value='<%= rs.getString("EMP_ID")%>' ><%=rs.getString("EMP_ID") %></option>
<% } %>
</select>
<input type="hidden" name="score" value="">
<INPUT TYPE="SUBMIT" name="Submit" VALUE="Submit">
</TD></TR>
</TABLE>
</FORM>
</Center>
<%
stmt.close();
rs.close();
catch(Exception e){
System.out.println("Error : "+ e);
response.sendRedirect("errorcreateSession.jsp");
%>
</BODY>
</HTML>
As u can see i have extracted emp_id from the employee_info table and populated it in my drop down list
In the javascript i have used a variable "where_to" which keeps track of what the user has selected in the drop down list
I want to use this value of "where_to" in some other other jsp(say Admin.jsp) to carry out an insert query
how can i retrieve this value of "where_to" from Admin.jsp so that i can carry out my insert query
Thanx in advance i certainly hope that u will help meI made these changes in my Guest.jsp page(as u mentioned):
<FORM NAME = "form2" onSubmit="return OnSubmitForm();" action="Admin.jsp">
<select name="UserList" size="1">
<option>-- Select A User ID --<option>
</select>
<INPUT TYPE="SUBMIT" name="Submit" VALUE="Submit">
<script language="JavaScript">
function OnSubmitForm(){
var box = document.form2.UserList;
var where_to = box.options[box.options.selectedIndex].value;
if(where_to =="")
document.write("Please select something");
return false;
else
return true;
</script>
Now have a look at my Admin.jsp page:
<%@ page import="java.util.*" %>
<%@ page language = "java" import="java.sql.*,javax.servlet.*,javax.servlet.http.*,java.util.*" session = "true" %>
<HTML>
<HEAD>
<TITLE>Create Employee</TITLE>
</HEAD>
<BODY>
<%
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
PreparedStatement ps = null;
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://10.203.143.55:3306/bdaymgr" ,"root","mysql");
String s=request.getParameter("UserList");
String m=request.getParameter("month");
String y=request.getParameter("year");
String a=request.getParameter("amount");
String sql="insert into contribution_info values(?,?,?,?)";
ps=conn.prepareStatement(sql);
ps.setString(1,s);
ps.setString(2,m);
ps.setString(3,y);
ps.setString(4,a);
ps.executeUpdate();
System.out.print("Values Entered");
%>
<center>
<FORM NAME = "form3" action="canBeAnyPage.jsp">
Month :<br><input type=\"text\" name="month"><br>
Year :<br><input type=\"text\" name="year"><br>
Amount Paid :<br><input type=\"text\" name="amount"><br>
<INPUT TYPE="SUBMIT" name="Submit" VALUE="Submit">
</FORM>
</center>
<% stmt.close();
rs.close();
catch(SQLException e){
System.out.println("Error : "+ e);
//response.sendRedirect("errorcreateSession.jsp");
%>
</BODY>
</HTML>
I dont know why but when i select one of the emp_id from the drop down list and press submit it does not show anything
I can see the value of "UserList" in the url which is correct
Probably there is some problem in my Admin.jsp page
Please find time to have a look at my code
Help would be really appreciated
thanx
Maybe you are looking for
-
for all apple products that have that big white block (used to charge the product), i know its an adapter, but is it a converter? i read somewhere that someone went to a different country and tried to charge their computer and burned out their logic
-
I've had trouble with my Macbook since the first month I bought it. I've replaced the hard drive 3 to 4 times. Now some programs won't work or shut off by itself. Is it possible to ask for a complete exchange of products?
-
Got some avi files from a client yesterday and I am only able to hear the audio. The video portion is all white. I have tried playing the file with RealPlayer, VLC, QT Pro and Flip4Mac but nothing. I tried converting the file with Cleaner 6.5 and Div
-
When I try to "place" a jpg on a page it changes the size- tried everything! Seems to change the proportion of the new jpg to the fit the height of an old jpg even though I changed the page length and moved the line where the bottom of the page ends
-
Issues opening Acrobat pdf's in SharePoint 2013
In SharePoint 2007, once I checked a pdf out and clicked on it, the pdf opened in Acrobat and I could edit it as necessary. However, I am having an issue opening pdf's in SharePoint 2013. When I check the pdf out and click on open, the pdf opens in