FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Ajax or JS - need help ASAP

 


sonam
Hi, I need help with Ajax or JS. I would like to display some results from php page. But I would like to do this without form, what mean when site A is on load Ajax or JS script must get information from php (site B) or include site B in site A. All ideas is welcome.

Sonam


Last edited by sonam on Sat Mar 24, 2007 9:51 pm; edited 2 times in total
Roald
Well, you'll probably find nothing under the name ayax. It must be Ajax. Here's a very good tutorial: http://www.frihost.com/forums/vt-39219.html
sonam
Thanks, I am change AYAX in AJAX. I am read this tutorial and many other but I don't understand. JS and Ajax is something what I cannot learn. I don't know why. I understand how is work, but when I want to create something for my self this is not working. Only if I copy/paste some scrip this is OK. That is reason for my question. I need someone to help me build full script. Tutorials here cannot help me because many of this is copy of copy what is copy of some original and didn't give me real knowledge. Also, they are always explain same situation, same "Halo world!"

Sonam
Dougie1
So do you want an auto submitting form. Would that do the same thing?? Please be more specific if you can.
sonam
Dougie1 thanks for your reply.
I have one file txt and one php file. PHP file read this txt file and grab out with GET function needed informations. With simple echo I can display this results on php pages. But I would like to display results also on html pages but I don't like to use iframe. Actualy what I need: I need JS or Ajax to grab my php file and display result on html pages. For example:
var url = "some.php?display=333222"
var url2 = "some.php?display=555666"

and how now display different urls in divs. I cannot put together vars and getElementById (or something else) because I haven't idea how JS works.

Sonam
Dougie1
Use .htaccess:

Code:
RewriteEngine On

RewriteRule ^index.html$ index.php [L]

That should then load it as an html page but use php to parse it.

Hopefully it will work. I don't know too much about htaccess.
sonam
Thanks,
I find on Dynamic Drive exactly what I need. Very Happy

Sonam
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.