ENC28J60 webserver string with """"

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

ENC28J60 webserver string with """"

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times

Re: ENC28J60 webserver string with """"

Post by LeighM »

Try this ..

Code: Select all

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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ENC28J60 webserver string with """"

Post 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\" />"

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times

Re: ENC28J60 webserver string with """"

Post 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

Post Reply