At least 60 seconds have to pass between posts. Please wait a little while and try posting again.
I can make an HTML tester. Lol, the easiest thing you could ever make.
Offline
sparks wrote:
If an app was built in pure php, it would almost certainly need to refresh the page to display the result. In which case you would have a form, with a few dropdowns, textboxes, buttons etc. The form requires an URL to link to. It would be the same URL as the page it's on in this case, so what is the URL?
![]()
Just use AJAX.
Offline
ProgrammingFreak wrote:
Just use AJAX.
![]()
Ajax still seems like some black mystical box to me. Type in this code, and... MAGIC! There's your info, and you didn't even need to reload the page
Offline
Hmm, perhaps I could make a rss feed for latest posts on Scratch or something. Not sure.
Offline
MoreGamesNow wrote:
ProgrammingFreak wrote:
Just use AJAX.
![]()
Ajax still seems like some black mystical box to me. Type in this code, and... MAGIC! There's your info, and you didn't even need to reload the page
![]()
Yeah, I'm still getting my grasp on it.
Offline
It basically makes an invisible page with PHP and uses that to get the information right?
Offline
MoreGamesNow wrote:
It basically makes an invisible page with PHP and uses that to get the information right?
Yeah, I suppose.
I use the AJAX in jQuery, so I'm not sure if its exactly the same.
Offline
How do we use the user variable?
Offline
bump
Offline
MoreGamesNow wrote:
It basically makes an invisible page with PHP and uses that to get the information right?
AJAX stands for some kind of asynchronous java and xml (I think).
Asynchronous simply means not inside time -- so not synced with the page's load.
It means you can call a website even after the page is loaded, without freezing the page (if it's a decent browser). It doesn't have to link with a PHP page, it can be a text file (then processed by the javascript), an html page... whatever!
Offline
ProgrammingFreak wrote:
How do we use the user variable?
Offline
Offline
Right, thanks Espevoir for your apps.
As for user variables. simply do something like: %username% and tell me that you want %username% to be replace with their real username. Hope this helps.
Offline
Update: I have decided to include all these apps that are been submitted into my web browser which I am currently working on. I'll create a separate thread for it soon.
Offline
I'm making a blog app where it keeps the info of each post in a xml file.
Offline
ProgrammingFreak wrote:
I'm making a blog app where it keeps the info of each post in a xml file.
![]()
Sounds good.
Soon I will publish some guidlines on how I want it to be compiled so check back soon.
Offline
I just made a music player. Again, it requires a URL, but
escratch.org/downloads/MusicPlayer.zip
Offline
Sepcifications - MUST BE FOLLOWED
- All your required files must be in a zip file
- There must be an xml file called app.xml in the zip which is strutured like:
<xml> <author>Your Name</author> <name>App Name</name> <description>App Description</description> <version>Version (eg. 1.1)</version> <main>file name of the main file (eg. index.html)</main> <useweb>does it require internet? (true/false)</useweb> </xml>
- No PHP or server sided scripts can be included in the zip file, you must host them your self (therefore the <useweb> will be true).
- There must be a 50x50 icon file called icon.png in the zip file
- NO file operations unless you are hosting the files
For now thats it but I will probally release a newer more advance language maybe after my web browser is released.
I will also create a new thread.
Offline
Daffy22 wrote:
Sepcifications - MUST BE FOLLOWED
- All your required files must be in a zip file
- There must be an xml file called app.xml in the zip which is strutured like:Code:
<xml> <author>Your Name</author> <name>App Name</name> <description>App Description</description> <version>Version (eg. 1.1)</version> <main>file name of the main file (eg. index.html)</main> <useweb>does it require internet? (true/false)</useweb> </xml>- No PHP or server sided scripts can be included in the zip file, you must host them your self (therefore the <useweb> will be true).
- There must be a 50x50 icon file called icon.png in the zip file
- NO file operations unless you are hosting the files
For now thats it but I will probally release a newer more advance language maybe after my web browser is released.![]()
I will also create a new thread.
I danced in before this thread gets closed
Offline
So we can't use PHP?
Offline
ProgrammingFreak wrote:
So we can't use PHP?
I think what he is saying, is it has to be able to run on a different host that doesn't have PHP. However, it probably can have a JS code that gets stuff from your website that has PHP on it.
Offline
gbear605 wrote:
ProgrammingFreak wrote:
So we can't use PHP?
I think what he is saying, is it has to be able to run on a different host that doesn't have PHP. However, it probably can have a JS code that gets stuff from your website that has PHP on it.
Yes. Or you could just redirect to a website which has a php script on it. But u have to host it your self.
Offline
Daffy22 wrote:
gbear605 wrote:
ProgrammingFreak wrote:
So we can't use PHP?
I think what he is saying, is it has to be able to run on a different host that doesn't have PHP. However, it probably can have a JS code that gets stuff from your website that has PHP on it.
Yes. Or you could just redirect to a website which has a php script on it. But u have to host it your self.
![]()
Ok, here is my stuff hosted: (the scratch viewer ain't working)
<iframe src="http://escratch.org/YoutubeViewer/form.html" width=660 height=380 frameborder=1></iframe> <iframe src="http://escratch.org/MusicPlayer/form.html" width=500 height=170 frameborder=1></iframe>
XML files:
<xml> <author>gbear605</author> <name>Youtube Viewer</name> <description>Views Youtube</description> <version>1.0</version> <main>http://escratch.org/YoutubeViewer/form.html</main> <useweb>true</useweb> </xml> <xml> <author>gbear605</author> <name>Music Player</name> <description>Plays Music</description> <version>1.0</version> <main>http://escratch.org/MusicPlayer/form.html</main> <useweb>true</useweb> </xml>
Last edited by gbear605 (2011-11-11 16:55:01)
Offline
Hmm, I'll try to find a way to edit xml with javascript.
Offline
gbear605 wrote:
Daffy22 wrote:
gbear605 wrote:
I think what he is saying, is it has to be able to run on a different host that doesn't have PHP. However, it probably can have a JS code that gets stuff from your website that has PHP on it.Yes. Or you could just redirect to a website which has a php script on it. But u have to host it your self.
![]()
Ok, here is my stuff hosted: (the scratch viewer ain't working)
Code:
<iframe src="http://escratch.org/YoutubeViewer/form.html" width=660 height=380 frameborder=1></iframe> <iframe src="http://escratch.org/MusicPlayer/form.html" width=500 height=170 frameborder=1></iframe>XML files:
Code:
<xml> <author>gbear605</author> <name>Youtube Viewer</name> <description>Views Youtube</description> <version>1.0</version> <main>http://escratch.org/YoutubeViewer/form.html</main> <useweb>true</useweb> </xml> <xml> <author>gbear605</author> <name>Music Player</name> <description>Plays Music</description> <version>1.0</version> <main>http://escratch.org/MusicPlayer/form.html</main> <useweb>true</useweb> </xml>
Thanks, ill compile that for you. Do you want to make a 52x52 png icon for it or shall i do it?
Offline