Page 1 of 11
uCoz Community » Archives » Locked » Ajax pop-up in Online Games
Ajax pop-up in Online Games
Rtxas
Posts: 3
Reputation: 0
Message # 1 | 5:24 PM
Hello everyone, I'm working on this new site where you can download freeware games. And I have a little problem because I have to versions of one multiplayer game one for Europe and one for America.

So basicly I wan't an Ajax window to pop-up when people press "Download Game for PC" wich would let you choose american or european. I searched the forum and I found a thread about those Ajax windows. But it didn't help me at all because the code didn't even work on a normal html page, it also didn't on the "Download for PC".

I would really appreciate if someone would help me.

~RtXaS~
Post edited by Rtxas - Saturday, 2011-06-04, 5:39 PM
Paradox
Tempus Fugit
Posts: 2178
Reputation: 102
Message # 2 | 5:35 PM
Okay, I think I understand what you mean so feel free to correct me if I've misunderstood. To begin I'm assuming you have created this button yourself and are able to access it's HTML code. If you can do this, in the HTML tag paste the following snippet:

Code
onclick="ajaxauto()"


You will have already found the two posts on Ajax popup windows but on the page that you wish to have the window appear paste the following code anywhere on it:

Code
<!--<script type="text/javascript">
function ajaxauto(){
var ajax_data = 'Content Goes Here'; new _uWnd('myname','Your Title',200,400,{shadow:1,autosize:1,modal:1,close:1},ajax_data);}
</script>-->


This will at least open the window when a user selects the download button. To have the user select a version you can edit the content for the ajax windows using HTML and have it link to the different versions.

Hope this helps, happy

New to the uCoz Community? Read our short welcome post.
Please do not send PM's to the forum staff unless you have been asked to do so in a thread.
uCoz Community | uCoz Templates Community
Rtxas
Posts: 3
Reputation: 0
Message # 3 | 5:47 PM
Quote (Paradox)
<!--<script type="text/javascript">
function ajaxauto(){
var ajax_data = 'Content Goes Here'; new _uWnd('myname','Your Title',200,400,{shadow:1,autosize:1,modal:1,close:1},ajax_data);}
</script>-->


Baaah, I still don't get it, but nevermind I found an easier way out.
Thanks anyway. smile

EDIT: CLOSE THIS PLEASE!

~RtXaS~
Post edited by Rtxas - Saturday, 2011-06-04, 5:48 PM
Animorph
Posts: 2721
Reputation: 188
Message # 4 | 5:54 PM
locked
uCoz Community » Archives » Locked » Ajax pop-up in Online Games
Page 1 of 11
Search: