02-04-2008, 04:55 PM
02-04-2008, 06:22 PM
Google?
If you know Javascript, AJAX is easy (cause AJAX is Javascript ). Thus I'd start by looking into Javascript first.
If you know Javascript, AJAX is easy (cause AJAX is Javascript ). Thus I'd start by looking into Javascript first.
02-04-2008, 06:38 PM
I know Javascript and PHP well, but I just can't get Ajax. I have tried the sites I normally learn from (w3schools and Tizag), but if I execute the example scripts one, then change the echo output in the php file, the result stays the same as the previous one.
But thats my problem. I vow to learn it one day
But thats my problem. I vow to learn it one day
02-04-2008, 06:52 PM
Umm, tried sending no cache headers, or clearing the cache?
02-04-2008, 08:10 PM
OK, clearing the cache works, but is highly annoying to do - and is only necessary on Opera. it works fine on IE7 and Firefox 2. Basically I want to click a button, and everytime the button is clicked, the exact time is shown, but in Opera you have to clear the cache EVERY time, so the time does not update.
Sending a no-cache header does work though - thanks a tonne
Sending a no-cache header does work though - thanks a tonne
02-05-2008, 08:43 PM
OK, so I have a few Ajax questions that Zinga will know
1. Can you execute specific PHP functions?
Say all my PHP file contains is
1. Can you execute specific PHP functions?
Say all my PHP file contains is
PHP Code:
|
Is it possible to specify (in the JS) to execute only that function?
2. Retrieving a value from an input
How do I do this in the PHP. Say I have
HTML Code
|
How do I transfer that to the PHP form without submitting it? Via $_GET?.
That is all my incredibly inportant questions,
BP
02-05-2008, 10:21 PM
Consider something like this:
HTML Code
|
PHP Code:
|
02-06-2008, 07:58 AM
No, I am not coding for MyBB. Afaik I am not using any libraris, I am just codig straight into Notepad++...
Thanks for your help though.
Thanks for your help though.
02-06-2008, 01:04 PM
^ Just use the moo.fx library - it's small and portable.
If you don't want to, you'll have to interface with xmlhttp request object yourself, and also handle various browser oddities...
Up to you.
If you don't want to, you'll have to interface with xmlhttp request object yourself, and also handle various browser oddities...
Up to you.
02-07-2008, 04:03 PM
I'll look into it on Sunday. My grandparent just bought a new yacht. So we're going out to the reef for a few days