Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

how to use this jqSajax?

 
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 ]
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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.
 
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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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.
 
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic