473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SAJAX .. introduction help

banning
42
please feel free to delete this... i am an idiot... here is my code that works in case anyone was curious as to what i was trying to accomplish...

Expand|Select|Wrap|Line Numbers
  1. <?
  2.     require("Sajax.php"); 
  3.  
  4.     function sayhi(){
  5.         return "Name: Tom / Age: 26";
  6.     }
  7.  
  8.     sajax_init();
  9.     // $sajax_debug_mode = 1;
  10.     sajax_export("sayhi");
  11.     sajax_handle_client_request(); 
  12.  
  13. ?>
  14.  
  15. <html>
  16.     <head>
  17.         <title>Multiplier</title>
  18.  
  19.     <script>
  20.  
  21.         <? sajax_show_javascript(); ?>
  22.  
  23.             function sayhi(result) {
  24.                 document.getElementById('canvas').innerHTML += '<p>'+result+'</p>';
  25.             }
  26.  
  27.         </script>
  28.  
  29. </head>
  30.  
  31. <body>
  32.  
  33.     <div id="canvas" style="border: solid 1px black; margin: 1em; padding: 1em;"></div>
  34.     <input type="button" name="check" value="Say Hi" onclick="x_sayhi(sayhi);">
  35.  
  36. </body>
  37. </html>
  38.  
Feb 7 '08 #1
5 1101
ronverdonk
4,258 Expert 4TB
Could you please add some explanation / comments to this code. It would make it easier for our members to comprehend what exactly is going on and how it works.

moderator
Feb 24 '08 #2
banning
42
Could you please add some explanation / comments to this code. It would make it easier for our members to comprehend what exactly is going on and how it works.

moderator

hey sorry i ended up dropping SAJAX and going with prototype/scriptaculous
Mar 5 '08 #3
ronverdonk
4,258 Expert 4TB
Does this mean that this thread is closed?

Ronald
Mar 5 '08 #4
banning
42
yea, do i have to do something special when a problem is solved or a thread i started is closed?
Mar 5 '08 #5
ronverdonk
4,258 Expert 4TB
No, it's fine. Just that members know it is virtually closed.
See you around here.

Ronald
Mar 5 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Neil Greenough | last post by:
I ain't got the foggiest about ASP, but I know I need to use it to create what I am after in my website. Could anyone please give me a brief introduction about ASP, example how you enter it into a...
14
by: Cletis Tout | last post by:
http://www.codeproject.com/cpnet/introtomono1.asp Introduction to Mono - Your first Mono app By Brian Delahunty The first in a series of articles about Mono. This article explains how to...
1
by: Xiaoshen Li | last post by:
Dear All, I am relatively new to C(But I have computer science background and know some other programming languages). I am wondering if anyboby can recommend me some C books or websites. I...
0
by: Clovis818 | last post by:
Well i have a problem i want to be able to run my messenger and music player or every page on my site just right now not much of the site is using Ajax or sajax, is there a way to load a php...
0
by: funkychicken818 | last post by:
From: FunkyChciekn818 - view profile Date: Tues, Apr 25 2006 6:49 pm Email: "FunkyChciekn818" <funkychicken...@gmail.com> show options Reply | Reply to Author | Forward | Print | View...
0
by: The Godfather | last post by:
Hi, i write an entire site using sajax and php and I found it very powerful and useful. But yesterday my client had formatted the ubuntu server and when server is come back online a strange thing...
12
by: Xah Lee | last post by:
Of Interest: Introduction to 3D Graphics Programing http://xahlee.org/3d/index.html Currently, this introduction introduces you to the graphics format of Mathematica, and two Java Applet...
29
by: Martin Schmied | last post by:
Dear folks I'm looking for good sites/material for this topic: Introduction to programming, using Javascript. So, not introduction to programming *in" Javascript. Well, I guess this would be...
1
by: littlecoder | last post by:
Hello , I get an error like this : 'object expected' . Can anyone please help ? The code from the example is is as shown : I used Sajax library <? require("Sajax.php"); function...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.