Page 1 of 1

ENC28J60 webserver string with """"

Posted: Fri Jun 21, 2019 4:56 pm
by stefan.erni
Hi Ben

I have a small program to control my hardware with the computer and with a ENC28J60.
It's very fast and working nice
just to add this line to a string is not working. Maybe to many " " " " .Is there a way to put it in a string?

<input type="button" onclick="location.href='http://192.168.30.207/page2';" value="Go to page2" />

Code: Select all

link2page2_strg ="<input type="button" onclick="location.href='http://192.168.30.207/page2';" value="Go to page2" />"
Fc8_Leddriver_EFG144_1_forum.fcfx
(35.77 KiB) Downloaded 200 times
regards

Stefan

Re: ENC28J60 webserver string with """"

Posted: Mon Jun 24, 2019 11:02 am
by LeighM
Try this ..

Code: Select all

str = "<input type='button' onclick='location.href="http://192.168.30.207/page2";' value='Go to page2' />"

Re: ENC28J60 webserver string with """"

Posted: Mon Jun 24, 2019 1:09 pm
by Benj
This is also another option.

link2page2_strg ="<input type=\"button\" onclick=\"location.href='http://192.168.30.207/page2';\" value=\"Go to page2\" />"

Re: ENC28J60 webserver string with """"

Posted: Mon Jun 24, 2019 3:47 pm
by stefan.erni
Hi Leigh, Hi Ben


The version from Leigh is working fine. (I have to increase the size of the string)
The another from Ben I can not compile, some strange error.
If you have an idea what's going on I can test it again


1.PNG
(19.94 KiB) Downloaded 832 times
2.PNG
(19.74 KiB) Downloaded 832 times
Fc8_Leddriver_EFG144_1_test_lmg2.fcfx
(36.34 KiB) Downloaded 231 times