- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Re: ReadyNAS 102 host website including JavaScript
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to build and host a website from my ReadyNAS 102.
I have a basic index.php file as follows...
<!DOCTYPE html> <html> <body> <h1>JavaScript Test</h1> <?php echo "<p>Text by PHP</p>"; ?> <button type="button" oneclick="document.getElementById('demo').innerHTML = Date()"> Click me to display date and time.</button> <p id="demo"></p> </body> </html>
Clicking the button does nothing.
Is this because I need to install JavaScript or something? If so, how do I do that.
Thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi daarsk,
Are you still referring to the date not showing? If you are, I think you just missed the command. Instead of "oneclick" it should be "onclick".
<button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display date and time.</button>
Hope this helps.
Regards,
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS 102 host website including JavaScript
Hi daarsk,
I tried checking steps on how to host a website via the ReadyNAS and found no instructions to install JavaScript. Below is the overall process that you would need to accomplish:
- Create a share on the ReadyNAS where you want to put your website files.
See the Create a Website Share section. - Redirect default HTTP access to your ReadyNAS to this website share.
See the Redirect Default HTTP Access section. - Create a test index.html web page and verify access.
See the Create a Test index.html Web Page section. - Forward external HTTP access to your ReadyNAS unit.
See the Forward External HTTP Access to Your ReadyNAS Unit section. - (Optional) Set up your own Hostname.
See the Set Up Your Own Hostname section.
For further instructions, please check the link below:
http://kb.netgear.com/app/answers/detail/a_id/24829
You probably would be needing JavaScript for the creation of the website itself and if you are open for other option; I believe there are some apps that are available for the ReadyNAS for website editing.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS 102 host website including JavaScript
I followed those instruction. works fine.
what i found amusing is the link to install PHP at the bottom of the instuctions takes you to a page not found???
not to worry though, i have php installed 🙂
if there are apps available for the ReadyNAS for website editing, i would very much like to know about them if anyone can point a direction. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS 102 host website including JavaScript
Now, can anyone help me with the JavaScript issue I have?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi daarsk,
Are you still referring to the date not showing? If you are, I think you just missed the command. Instead of "oneclick" it should be "onclick".
<button type="button" onclick="document.getElementById('demo').innerHTML = Date()"> Click me to display date and time.</button>
Hope this helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS 102 host website including JavaScript
dont I feel sheepish 😕
thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: ReadyNAS 102 host website including JavaScript
Hi daarsk,
You are welcome. It was a very small typo so do not worry about it. I am glad that I found it for you.
Regards,