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? |
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
|
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?
|
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) |
I must be doing something pretty wrong here XD Used to be so simple *sigh*
Can't get this to work; PHP Code:
|
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:
|
All times are GMT -5. The time now is 02:07 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.