User Profile
Collapse
-
Can A JAVAScript function create hidden variables
Please can anyone say if a function can create a list of hidden variables -
This is my code
[CODE=javascript]if(typeof foldinglist[openresults[i]] != 'undefined')
<tr >
<td bordercolor=#FF FFFF>
<form>
<select name="OptForm" onchange='toggl e_list_view(thi s);'>
<option value="<c:out value=""/>" selected><c:out value=""/></option>
<c:forEach... -
-
"go to <a href='http://www.google.com' ></a>" is input
"go to <a href='http ://www.google.com& #039;> </a>" is the out putLeave a comment:
-
OK, I have a string sampleString which contains a substring which is supposed to be printed in URL format, for that i have written the above function.
But anyhow i needed to use the escapeXml flag to set it to false in the jsp page not to convert the <a ref> tag to <a ref >.
The problem doing this is it may escape some of the valid tags which i dint want to escape. Here i want only <a ref></a>...Leave a comment:
-
How to escape special characters through JAVA
For eg:
[code=java]
public String DisplayinURLFor mat(String sampleString,in t urlIndex)
{
String tempString = "";
int beginIndex = sampleString.in dexOf("http", urlIndex);
if(beginIndex!=-1)
{
int endIndex = sampleString.in dexOf(' ', beginIndex);
if(endIndex==-1)
{
... -
-
That was great, it helped me exactly in what i was searching for. However i also want to create a cookie for these values so that they remain even after a refresh of the page. Again i have no idea of creating a cookie. Please adviseLeave a comment:
-
For eg:
<tr >
<td >
<select name="DropForm" property="DropI D" value="${DropFo rm.DropID}" onchange='toggl e(this);'>
<c:forEach var="drop" items="${drops} ">
<option id="dropheader " value="${drop.D ropID}"><c:out value="${drop.d ropName}"/></option>
<div id...Leave a comment:
-
That really helped me to some extent, if i know the number of options at run time, how can i do it, is there any way to pass them to the toggle function as i cant create the var view in such case.
Regards,
SivaLeave a comment:
-
<html>
<body>
<table>
<tr>
<td align="left" width="10%">
<img border="0" src="/OCL/images/gs_primary_logo _blue.gif" width="72" height="72">
</td>
<td align="center" width="80%"><di v class="pagetitl e">Online Check List</div><div class="pagetitl e2">Task...Leave a comment:
-
-
Thanks Gits for ur reply.
I want the first drop down for sure, but the second should remain in the list structure, same as it was in the shown example. Also i am very much new to JavaScript. PLease let me know if it is possible.
Regards,
Siva...Leave a comment:
-
JAVASCRIPT for Drop Down OnChange
Hi,
I am very much new to JavaScript. Please, can anyone help in resolving this issue.
Here in the example
http://www.javascriptk it.com/script/script2/flipmenu.shtml
There are two folders: JavaScript Resources and Web Resources.
I want them to be options for drop down, and depending on the selection the corresponding lists should b displayed down, like if i select JavaScript from the drop...
No activity results to display
Show More
Leave a comment: