Page 1 of 1

An AJAX request

Posted: Sun Aug 31, 2008 12:00 am
by McflysPlace
I haven't the slightest idea how to code in AJAX. I do know that I need it for a particular box I am trying to add to my site.

I need a box in my footer (the whole footer) that takes in an ID number, then takes the number and uses it to load a swf.

.............................................................ID..............................................................................
....................................................[____________].......[Submit]....................................................

User inputs number, then it uses a variable to load http://www.somedomain.com/[ID].swf

The difficult part of this situation is that I need the flash's state to be unchanged when changing page. I wish to make an easy mp3 player to place there so that my visitors can listen to some tunes while playing their favorite games.

Can anyone help me out? I tried to google "how to make a text box in ajax" and I couldn't even figure out how to that part. (I'll take html and php any day)

Re: An AJAX request

Posted: Sun Aug 31, 2008 11:09 am
by califdon
Ajax is not a language, it is just Javascript cooperating with PHP, using a built-in Javascript function. That's why your Google search didn't return anything--you don't "make a text box" with Ajax, that's all done in HTML. To learn something about Ajax, I recommend http://w3schools.com/ajax/ajax_intro.asp.

Re: An AJAX request

Posted: Mon Sep 01, 2008 1:50 am
by McflysPlace
I swear, you are about the most helpful person ever. I think I'll stop making topics and just PM :mrgreen:

Re: An AJAX request

Posted: Mon Sep 01, 2008 2:38 pm
by califdon
McflysPlace wrote:I swear, you are about the most helpful person ever. I think I'll stop making topics and just PM :mrgreen:
Oh, please don't do that. We have a tradition here of not responding to PMs because (1) it deprives everyone else who might have a similar question, and (2) it deprives you of getting other opinions.

Don't feel embarrassed about your questions. We all started out knowing nothing and it's only through other people helping when they can that we gain any knowledge, and even the most experienced of us still have areas in which we are ignorant. I would list the areas where I'm ignorant, but I think there's a limit to the length of posts allowed here. :P

Re: An AJAX request

Posted: Mon Sep 01, 2008 7:06 pm
by McflysPlace
Although that was only a joke, your reply does have a lot to say. I suppose if the ignorant keep asking enough public questions people like you might get a break :wink: