1 of 2 xajax examples work |
[eluser]BrentNJ[/eluser]
Hi, Finally got xajax to work. After the example worked, I tried to add another from http://www.xajaxproject.org/docs/xajax-i...inutes.php The test button still works, the new button test2 does not. Any ideas? Thanks!! Code: <?php Code: <html>
[eluser]LuckyFella73[/eluser]
hi, what is missing in your script is the javascrip call. Add: Code: onclick="xajax_test_function(2);" I wonder how the forst button can work - there is no call to a function? Maybe it got lost while posting your script here? btw: "xajax_" is added to your js function names in the sourcecode, so if you name your xajax fundtion "xajax_myFunction" in your controller you will find a js function "xajax_xajax_myFunction" in your sourcecode. Ah - I just noticed that the javascript part I posted into the "forum-code" tag was removed (wanted to post the complete "input with js code" - maybe that happened to yours as well ..
[eluser]BrentNJ[/eluser]
When I post the response, the onclick disappears, but they are in the code! It works now, thanks!! But I have to pass a number, couldn't get the quotes right to pass text. onclick="xajax_myFunction(4);" Code: <?php Code: <html> Any ideas on why the third test with scriptaculous doesn't work?
[eluser]BrentNJ[/eluser]
nevermind - I tested separately and it works Code: <html> should work in CI too |
Welcome Guest, Not a member yet? Register Sign In |