WiServer with Javascript?

Discussions related to the WiServer add-on code for WiShield. WiServer is a friendly, easy-to-use front end for webserver and webclient usages.

Moderator: shard7

WiServer with Javascript?

Postby sal » Tue Apr 20, 2010 9:40 pm

I am using the WiShield in the WiServer mode and would like to post a slightly more complicated web page (more than just text links).
Is there a way I can have the WiServer post a webpage that includes more, example javascript code? (It doesn't work when I put the WiServer.print( . . .) method for my lines of javascript.)
The best solution would be if I could just have a line in the arduino code that links it to a web page that I already wrote and posts that page as its web page.

thanks.
sal
 
Posts: 1
Joined: Tue Apr 20, 2010 9:33 pm

Re: WiServer with Javascript?

Postby [email protected] » Thu Apr 29, 2010 1:35 pm

Is there a way I can have the WiServer post a webpage that includes more, example javascript code?


I would like to know the answer to that question too. And even if I do have to write my WiServer hosted webpage fully in HTML, are all HTML tags supported? I tried to use an image tag that would display an image from somewhere else on the internet and the page refused to load. Are HTML forms supported?

Any help/insight would be helpful.

Thanks -
Daniel
[email protected]
 
Posts: 8
Joined: Wed Mar 24, 2010 6:56 pm

Re: WiServer with Javascript?

Postby spidermonkey04 » Thu Apr 29, 2010 4:55 pm

Yes, you can use javascript, XML or anything else you could think to use. Use WiServer.write() to insert any byte into uIP's buffer. You could even use the Dataflash to store HUGE pages. I've done up to 25Kb.
---Jared
spidermonkey04
 
Posts: 66
Joined: Thu Oct 29, 2009 6:45 pm


Return to WiServer

Who is online

Users browsing this forum: No registered users and 1 guest