• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use this jqSajax?

 
Ja vardhan
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
winoto satoewarna
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rafael Lucio
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Product announcement removed. Please post such topics in the Blatant Advertising forum
[ December 16, 2008: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic