wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes how to use this jqSajax? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to use this jqSajax?" Watch "how to use this jqSajax?" New topic
Author

how to use this jqSajax?

Ja vardhan
Ranch Hand

Joined: May 09, 2005
Posts: 169
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 ]

Javardhan:
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Given that this forum is Java-centric, I'm not sure you are going to get a whole lot of help on PHP issues here.

Someone with PHP experience may pipe in with some help, but I'd recommend finding a site where PHP is more of a core technology subject.

The web development forums at macrumors.com seem to have a fair number of PHP users. You might check there.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
winoto satoewarna
Greenhorn

Joined: Oct 26, 2008
Posts: 1
Dear All,

Bear Bibeault is right.this is Java forum. To get PHP solution, You can post it in PHP Forum. require_once() is PHP Function to include another file in the PHP script.

I am the writer of jqSajax. this PHP class can build jQuery Plugin to call PHP function/method from Javascript with AJAX. You can call the function with jQuery style,like: var result=$.x_multiply(var1,var2); where multiply ($var1,$var2) is your PHP function.

If you have question,you can mail me (wins_ku at yahoo.com). Because i register to this forum just to comment your posting and help your problem. and i am not Java programmer.

Thanks
Winoto
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

winoto,

That was super solid of you to sign up just to help out. That's really what JavaRanch is all about. Please don't feel like your lack of Java knowledge might deter you from hanging out. We have plenty of forums that don't require any Java knowledge (like the HTML/JavaScript forum). Heck, we made Eric a Bartender and all he knows is .NET.


GenRocket - Experts at Building Test Data
Rafael Lucio
Greenhorn

Joined: Dec 16, 2008
Posts: 1
[Product announcement removed. Please post such topics in the Blatant Advertising forum
[ December 16, 2008: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use this jqSajax?