deva siva

Ranch Hand
+ Follow
since Apr 29, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by deva siva

hi

I have one variable like
var abc = a1^1,b1^2,a2^1,b2^3;//these are mulitple values with separation of commas,
var pqr = b1^2 //it is a single selected value.

now my question is i want to search the selected value is available in var abc or not, if yes it gives some alert message.

i have tried like if(abc.match(pqr)) alert("available") else alert("not")
but it's not checked.

if there is any other way can you pls explain me a me a breif code with example. how to store that variable in array?
Hi

I have a list box which contains 2 different type of values. one is comming from array1 these are previously selected values and second comming form array2 these previously unselected values.

when i select the value in list box that value goes to other page and get the report corresponding that value. It's working fine.

Now my question is, i want to give the control only selected values that values will be goes and get the report not for all values.

HOW TO IDENTIFY, SELECTED VALUES AND UNSELECTD VALUES FROM SINGLE LIST BOX
THE SELECTD VALUES CONTAINS BLUE COLOR AND UNSELECTED VALES CONTAIN TEXT GREY COLOR.

HELP ME ...

BYE
DEVA



But
ex:
Hi
I have one link like "select parameters", when we click it's show popup window. it should be modal window.

ex: when we click select parameter link its call this function.
function paramValues()
{
var reportDate=document.abcSelect.txtDateFrom.value;
var url="../Scr/ParamValues.jsp?date="+reportDate+"&cstitle="+"<%=CS_title%>";
var paramValue=window.showModalDialog(url,'paramValue','menubar:no; scroll:no; DialogWidth:600px; DialogHeight:452px; status:no; DialogTop:100px; DialogLeft:160px;help:no;');
}

in Parameter.jsp,
----------------------
Iam getting values from session using session.getAttribute,and displays this value using system.out.println("value");
when we click that link at first time it displays the value on serverside,
but iam close this window, and again i have click the select parameter link it's not shown the value on serverside. WHY, First time its displayed and why is not displayed second... time. not displayed.

give me reply ASAP

Thanks in advance
devasiva.
can you please help me how to use escape character. give me some example

Thanks
deva
Thanks for your inputs, can you please give me the syntax how to use special characters.
Hi

Can u pls help me, how to use javascript special characters.

1.I have one textarea in jsp page, I have entered the msgs here with special characters.
2.I have stored that value into var addMsg = message_Form.textarea1.value;
3.I�m forwarding the this value to another jsp page, like
var url = "<%=abc.jsp%>";
url=url+"?addMsg="+addMsg+"&ein="+"<%=ein%>"+"&name="+"<%=name%>"+"&ouc="+"<%=ouc%>"+"&period="+"<%=period%>";
4.but when I am getting the request from abc.jsp
5.String addMsg = request.getParameter(�addMsg�)
6.System.out.println(addMsg), it displays only in single line��.but I have entered in text area multiple line.


Can u pls help me,, how to use also with syntax.

deva
Hi

here iam using jsp and javascript,
1.adding the message on textarea
2.pass this value to jsp page by using javascript function.
3. and capture that value in jsp while diplaying this it's take a single line text

ex: iam adding messge like: this is test message
please ignore it.
but while diplaying the message another page in text area it displays like
this is test messageplease ignore it.

can u please help me, i want multiple lines.

bye
deva
Hi

Thaks for your response,

can u pls give me the details how to use...
And one more doubt, While entering a message by typing it in text area, if we press enter to get text on next line it does not show the text on the next line when refreshed.

can u pls help me..!

devasiva p.amujuri
Hi

In my string/var/textarea contains special characters like ' " $ !, but javascript does not support the special character.

I want to allow this characters. because in my text area contains messages just like notice board. it's contains ' " ! and $ symbols.

but when i pass this text to another page or update text, it gives a javascript error like object doesnot support.

can u pls help me. regarding this issue

regards
deva siva
hi

how to pass the values and how to get the Arraylist table from java script function.

we have one java class file, that contains the method1 and it returs the ArrayList Table.

My java class contains the ArrayList, like

Class A
---------------
public ArrayList getMethod1(String val1,String val2)throws NoResults
{
ArrayList SUBLOBTable=new ArrayList();
some database code here
----
-------------
return SUBLOBTable;
}

IN My JSP : we create a obj for that.
--------------------
ClassA Obj = new ClassA();

Now my question like �how to access that SUBLOBTable from javascript�

IN javascript

----------------------------------
var jsObj = "<%=Obj%>"; //i creaate a var which contains the obj of that ClassA file

var mylist = new Array();

mylist = jsObj.getLOB(GRP_Type,LOBL); //it gives the object doesnot support this property or method.

var s1=mylist.size();

for (i=0;i<s1;i++)

{

-------

--------------



}
19 years ago
JSP
hi

i dont want to replace that char (- ' ), i want to allow this chars, into javascript functions because i need to display the user name on the header as it is.

And one more thing, the name some times contains hiphen and apostrophe also,

could you please help me

regards
devasiva
Hi,

Iam passing the name from one jsp to another jsp by using javascript function.

suppose the name contains like this o'really then it gives java script errors while passing the name.

I think javascript doesnot accepting special chars. So could you please help me regarding this issue ASAP.

I dont want to remove the special char, i want to allow the char because we need to display the name on header as it is what they are entered.

Regards
deva
Hi

How to select the Multiple options from combo box, can u please send me the detailed code with alert messages. That means suppose if u select 3 option from that.

i want to disply 3 item names as a alert msg.

could you u please help me.

Thanking you
deva.