Max and Web

Filoo's icon

hello all,
I did some research on forums but with limited success, I hope you can help me.
Then I try to explain as best as I can. I have a website in localhost for now in simple html and css, what needs to happen is that when I press a button from the website, max recognizes the pressure of the button and it will receive a variable.
Someone can help me?!

thanks

cap10subtext's icon

If you are constructing the website yourself, use a javascript to post the variable to the URL and then parse the URL from the jweb object to get at your variable (for this I'd recommend regexp but if you aren't familiar with that then some combination of zl objects might make it possible.

cap10subtext's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's the same principle using simple php parsing... Click on the subsections in the Max forum to see it work.

Filoo's icon

Thanks for the help, I understand about how it all works, but lets suppose that I need to put this site online, how do I get it to communicate with my PC?!

Thanks

oli larkin's icon

you can also check out max web control

---------------------------------------------
Endless Series v3 out now - A unique synthesis and effect plugin/app based on the Shepard Tone auditory illusion.
http://www.olilarkin.co.uk

Filoo's icon

thank you but I had already tried that tool and I can not figured out how to use it outside of localhost, for example if I load the site in MAMP how do I redirect the patch in that directory?

oli larkin's icon

max web control runs its own server, so you don't use it with mamp. not really sure about your question wrt localhost. as long as your firewall allows it, you should be able to access the web pages hosted via maxwebcontrol remotely

Filoo's icon

This is very interesting, so lets assume that max creates his own server, and suppose also that I have created an internal private network access, linking up to it with an iphone for example, typing the ip address of my PC that I set, like 192.168.1.1/index.html, it connects to the primary root, showing me the website. but then how do I connect to the Maxserver?!

oli larkin's icon

you can run the max web control webserver on a different port i.e. 8080, if you already have a web server running on port 80. so you connect by typing 192.168.1.1:8080 into your iphone browser

Filoo's icon

wow is fantastic! one last thing! it is possible to set a dns instead of using the ip?!