|
|
Hey webs,
I decided to write up a little tutorial as per request. I have a status update form on my sites sidebar.
Heres a step by step tutorial on how to do it.
First, open your Site Editor (or whatever webs is calling it) and choose "Sidebar"

Click "Custom Module", then choose the custom HTML button.

Now, simply paste the following code.
BE SURE TO CHANGE "YOURSITE.webs.com" TO THE URL OF YOUR WEBS SITE.
Now, hit "Save" and go to your site, find the sidebar, and Ta-da! You should see:

Now, for this, guest CAN see it, but it simply doesn't do anything, justs reloads the current page. No errors.
In the next version tutorial, I will try to send the data via an Ajax request so the user is not redirected to their profile. For now, enjoy! 
Categories: How To's, Community Posts
[Adam Miner says...]
]
I can haz it for CustomizeWebs?
xiofire says...
]
No, you can't copy it if thats what you were thinking. :P
[Adam Miner says...]
]
I can haz the pastie?
Snedeker Designz says...
Adam apparently didn't read the tutorial. *rolls eyes*
Snedeker Designz says...
Awesomeness xio! And yeah, you should make this into a video tut!!
xiofire says...
I was hoping I could somehow submit the data in the background in a post method. I was able to with a chatbox I made a while ago, but with a get method, and PHP.
Ryan says...
Yeah, sadly, I think the closest you'll get with just JS (in this case, without relying on a library) is something tricky like the hidden iframe scenario. The response that's sent back by the page is a little odd, as it's a JS redirect, so you can't do the old "append a new script tag" trick either. :\
xiofire says...
Do you think, by studying the Wiki documentation, I would be able to make some sort of widget?