Ja vardhan

Ranch Hand
+ Follow
since May 09, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ja vardhan

I want to call PHP function from JavaScript and I searched.
on http://satoewarna.com/jqsajax/ they described like below.

1. include JQUERY Library (1.2 or higher is recomended) in your page.



2. include jqSajax.class.php in your script



3. Cutomize your preference and your PHP method/function. The method/function may be in defferent file.


4. Export your php method/function


5. Print Javascript representation



6. Call it from javascript and get the result. You can customize the result.




From step 2 I did not understand, what is that 'require_once' function and what is 'jqSajax.class.php' ??? about that line I am not at all clear.

also please explain me what he is telling in other steps.
clear explanation to use this jqSajax would be great use...
Please help me.

[ October 12, 2008: Message edited by: Ja vardhan ]
[ October 12, 2008: Message edited by: Bear Bibeault ]
Hi,

this is my requirement:



My table is constructed using the PHP code, all the table data is retrieved from database, I run the query from PHP code and construct the table.

In table all first column elements are like links, when I click on first column(table heading 'Click for Detail') of the row... I need to get the value of the same row's third column (table heading 'Facility Name') and I need to display all details of that 'facility'(I will run query to get all these details) under another TAB in the same page.

When I click on first column, to get the same row'w third column value... I did not get any approach. So I gave 'id' to all 'td' elements when constructing table in php. Now if I can get the 'id' of the 'td' element clicked, then I can get coresponding third column value and proceed further.

Hope I gave the clear explanation.

please tell me how can I get the id of clicked 'td' element?
<td>
<a id="FacilityList_1_0" href="javascript:LaunchFacilityDetail(this)">DETAIL</a>
</td>

my js function:
function LaunchFacilityDetail(obj) {
alert(obj);
}

alert(obj) is giving me the result: [object Window]
alert(obj.id) is giving me the result: undefined

Why I am not getting object id and what is that '[object Window]' ???
Please let me know about it.
Hi,

I heard from tomorrow(28-11-07) onwards 310-*** exams vouchers will be 12,000/- Rs. here in India. They said today is the last day to get voucher @ 6000/- Rs.

Is it TRUE ???

Pls let me know the information whatever you are aware in this regard.

Thanks,
Javardhan :
Thank you Jan.

Your suggestion is working..
16 years ago
Contents of the PATH variable:

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Wi
ndows Imaging\;C:\j2sdk1.4.2_16\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy
stem32\Wbem;C:\Program Files\Windows Imaging\


I have java.exe file under the following directories:

C:\j2sdk1.4.2_16\bin
C:\j2sdk1.4.2_16\jre\bin
C:\Program Files\Java\j2re1.4.2_16\bin
C:\Program Files\Java\jre1.5.0_06\bin
C:\Program Files\Java\jre1.6.0_02\bin

You said:

You need to put C:\j2sdk1.4.2_16\bin before any other path to a directory containing java.exe on your system



what do you mean here? I dint get, pls expalin clearly.

Thanks,
Javardhan :
16 years ago
Initially I was having one folder with name "jre1.6.0_02" under C:\Program Files\Java. At that time I dint have JDK on my machine. Then I have downloaded JDK 1.4.2_16 and installed it on my machine under the folder C:\j2sdk1.4.2_16. After installation, I have got one more folder with name "j2re1.4.2_16" under C:\Program Files\Java.

I opened command prompt, under direct c:\ column... I tried with the command "java -version" and its printing jre1.6.0_02.

On command prompt I ponted the directory to "C:\j2sdk1.4.2_16\bin" (here only I have installed JDK 1.4). now "java -version" command is printing j2re1.4.2_16.

Why its happening so?

Right now my system environmental variable PATH is pointing to C:\j2sdk1.4.2_16\bin.

which version of java I am using now... jre1.6.0_02 OR j2re1.4.2_16 ???

I would like to proceed with 1.4 ony, so where ever I go... c:\ or e:\ or C:\j2sdk1.4.2_16\bin .... if I type the command "java -version", it shuould say j2re1.4.2_16. what I need to do for this?

Thanks,
Javardhan :
16 years ago
Hi,

Two years back I have got SCJP 1.4 certification and now right I am planning to take up SCWCD exam. Pls clarify me regarding few doubts.

1. which version of servlets and JSPs they cover in the current SCWCD exam?

2. which version of Tomcat I need to install to run the examples?

3. Do I need to have Eclipse or any other IDE while preparing for SCWCD?

one more general doubt.... I heard all Tomcat 5+ versions are app servers and prior versions are only web servers... is it??

Thanks,
Javardhan :
Its not at all treating it as an error, its successfully going to next page.
no validation is happening.
17 years ago
Hi,

Mask validation rule is not working for me.
I have this entry in my validation.xml:


This is the entry in validator-rules.xml:

And I am also having corresponding entry for the key 'errors.invalid' in my resources file.

Why its not working?

Pls reply me.
Thanks.
17 years ago
Merrill,

Thank you so much....its working now.
17 years ago
David,

Already I have written this in my JSP, still its not working.

what might be the problem?
17 years ago
Hi Merrill,

Here I will explain you my requirement clearly.

In JSP I have one text box to enter the name and one dorpdown select box to choose the language:


Now user has to enter the name in text box and has to choose the language.
Once after he clicks on Submit....As you said am setting the locale in Action class based on the user selected language and the Welcome message will be displayed in that particular language.

Here the Name is mandatory field since I am applying 'required' rule in validation.xml :


If the user didn't enter any name in that text box....the error message will be displayed in the choosen language (by default English).

To diaply the error message....if I simply put <html:errors/> in my JSP....its showing the English message only (even though I have selected other language and had set the locale in Action class).

From apache site link , this is the description regarding locale attribute:

The session attribute key for the Locale used to select messages to be displayed. If not specified, defaults to the Struts standard value.



I dint understand how to use 'locale' attribute under html:errors .

Hope you understood my problem clearly.

Pls reply me.

Thanks.
[ November 21, 2006: Message edited by: Ja vardhan ]
17 years ago
Merrill,

Thank You so much for your information, I had gone thru that link, its helpful one.

I have removed those entries in struts-config, and I have the entry in JSP like this:

But still its displaying english message.

Hope I am not using the locale attribute properly, pls tell me what actually I need to give to the locale attribute...how I need to use that?

Thanks.
[ November 21, 2006: Message edited by: Ja vardhan ]
17 years ago
Hi,

I am trying to implement internationalizing error messages concept in amy application. At first I am trying with Spanish language, so I have the property file ApplicationResources_es.properties

In struts-config.xml I made an entry:


Now I want to display error message in Spanish language. So I have this code in my jsp:

ist not working, its just displaying error message in English language.

But if I put
like this, its showing the error message in Spanish.

I dont want to specify the bundle key directly, just based on the locale I want to display error message.

Please tell me what is wrong I am doing? why locale is not working?


Thanks.
17 years ago