#1
|
||||
|
||||
Javascript and Mysidia
I know that when I first started working with Mysidia, I was able to create some pretty entertaining games and an explore feature by incorporating Javascript into it.
I haven't been able to actually work with the script in ages now, because I haven't been able to even get it to function and allow me to login, but hoping that someday it will work for me, does anyone know how javascript compatable Mysidia is? |
#2
|
||||
|
||||
It works normally with mysidia once you get the hang of it, including jquery and ajax (though ajax is a bit more awkward if you don't use the widget option, like Kyttias does). If you want to put the js code in the .php pages, use Comment() objects, they take html and javascript
__________________
asp.net stole my soul. |
#3
|
||||
|
||||
Or rather, if I am wanting to create a game of pure javascript, and I simply want it to be surrounded by the site theme so it looks like part of the content, how would I go about doing that?
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
||||
|
||||
Just write the whole script inside Comment(), like
$document->add(new Comment("<script>your javascript here</script>")); (if you are on 1.3.4, do this on the view file and not in the controller file)
__________________
asp.net stole my soul. |
#5
|
||||
|
||||
I must be doing something pretty wrong here XD Used to be so simple *sigh*
Can't get this to work; PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) |
#6
|
||||
|
||||
See the change of color? The " is closing the comment here:
$document->add(new Comment("<script language=" <-- this closed it Inside comments, try to use '' instead of quotation marks, try this: PHP Code:
__________________
asp.net stole my soul. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Javascript included in PHP? | Aasixx | Questions and Supports | 2 | 10-30-2012 02:46 AM |
Javascript question | SilverDragonTears | Questions and Supports | 9 | 03-29-2012 09:26 PM |
\\Javascript Help, Please// | Poppy | Questions and Supports | 0 | 11-06-2011 11:28 AM |
Javascript help? | AlexC | Programming and Game Development | 0 | 07-19-2011 06:22 AM |
Anyone here knows Javascript? | Hall of Famer | Other Chat | 5 | 04-06-2011 07:21 PM |
What's New? |
What's Hot? |
What's Popular? |