Twilio-Simple sms Form Box - twilio

Hi I apologize if this seems like a stupid question or if I am in the wrong section, but I am working for a startup company as their main web designer, but I was tasked with adding a simple referral code to the bottom of the page where all that is needed is where the user put their number in and they get a standard non random code outputed to their phone and if possible their number is databased and I'm just not sure where to start on this, I have followed some of their tutorials, but nothing seems to be following close to this, I have most of my experience in Javascript, CSS, and HTML and this is starting to get into some uncharted territory and I was wondering if anyone could guide me in the right way? Thank you very much for any help!

Related

Listing elements by geolocation

I am trying to create a listing website, though i am a newby in programming i started self-learning.
My question:
I want to list elements(restaurants) on the homepage by the nearest from user who entered my website,
Could you please advise something or maybe a ready script or code
Thank you very much in advance

Missing ID for GTM with RapidWeaver Stacks website

I'm a total novice when it comes to coding, so I've build my website in RapidWeaver and I'm happy with the result. But when I try to track clicks on my website I run into a problem with a missing ID. Is there any way that I will still be able to track clicks on my website?
I've tried to look at other answers to this, but it all involves a lot of code and I'm so very bad at that.

Formatting of #HtmlTextBoxFor MVC Visual Basic Webpage

This is my first post here although I use this forum all the time and it usually provides me with a solution, however I've searched all over the web for an answer to this and I can't find anything.
I'm developing a website which provides software support. Users log on to it and add a "support call" which a member of a support team will answer.
The problem I am facing is that when users describe their problem (inside the TextBoxFor shown below), they can type out their problem, and format the text as they please, however when the call is submitted, sometimes (it appears randomly) the formatting just disappears, e.g. some spacing and paragraph use just disappears, here is an example:
Correct formatting:
Hi I'm having difficulty with x, and y and I need some assistance.
Could somebody help me out?
How it appears sometimes:
Hi I'm having difficulty with x,and y and I need some assistance.Could somebody help me out?"
This, of course is highly simplified, and some people have to write many paragraphs and text lines.
Here is the code for the textbox (in the view):
#Html.TextBoxFor(Function(model) model.SupportCall.Subject, New With {.maxLength = "254", .style = "width:500px;"})
It is worth mentioning that when a support call is submitted, it goes to a folder which is picked up by another internal piece of software, which then creates a database record for the call, meaning that an email notification can be sent to the support team, then the list of calls to be answered is updated from that database model, therefore I'm pretty sure it's possible that this process could be what is changing the text formatting.
A reason why this is happening is just as useful as a solution to me so any input is welcome.
use
<pre></pre>
prepend and append it.

Printing forms on Play Framework

I'm developing a web app, using Play framework and javascript, but exactly I don't know how to print a form (i.e. an invoice). I thought it has to be implemented on Javascript. but reading on web, I didn't find anything. I´m searching now if the implementation is on Server side (Java), but i dont have any idea.
That's a very weird question that you have here, I probably don't get it right..
What do you mean "Print a form" ?!
What about print page from your favorite browser ?
Must be missing something.
What about render the invoice in pdf format?If you are interested in doing something like that check this module:
http://www.playframework.org/modules/pdf
I think it is the best solution and that's what most companies do.Hope that helped

How to get rid of stupid "pad" labels produced by RTML functions?

I am unlucky to be in charge of maintaining some old Yahoo! Store built using their RTML-based platform.
Recently I've noticed that HTML code generated by some RTML functions is sprinkled all over with "padding images" (or whatever is the conventional name for those 1x1 pixel images used to enforce layout). I have nothing against using such images, but... all those images are supplied with an ALT attribute like this:
<img href="http://.../image1x1.gif" alt="pad">
With all due respect to the original authors of RTML, but they must have been smoking something when they came up with this "accessibility enhancement"... :-(
Anyway, here are my questions:
Does anybody know a list of all RTML functions that generate HTML with all these "pad" images?
Is there any way to get rid of all those alt="pad" attributes without rewriting a lot of RTML code?
NB: This may sound a little cynical, but improved accessibility is not the main goal here. The main goal is to stop exposing those moronic alt="pad" attributes to Google and other smart search engines. So client-side scripting is not going to help, as far as I know.
Thank you!
P.S. Probably, most of you are really lucky and never heard of RTML. Because if somebody would establish a prize for software products based on
commercial success
------------------
usability
ratio, this RTML-based "platform" would probably win the first place.
P.P.S. Apparently someone from Yahoo! finally listened, because I can no longer find those silly "pad" tags in the RTML generated for our store. Nevertheless, one of the ideas offered in response to my original question does provide a very practical solution - not just to the original problem but to any similar problem with RTML platform. See the winning answer - it's really good.
The only way I see is to have your own website front-end that will filter whatever you want from the RTML site....
for example, your rtml site is at http://rtmlusglysite.yahoo.com/store/XYZ01134 , you could host a simple PHP front-end at http:://www.example.com that would be acting like a "filtering" HTTP web proxy, so http://rtmlusglysite.yahoo.com/store/XYZ01134/item1234.rtml would be accessed by http://www.example.com/item1234.html
It's not an ideal solution, but it should work, and you could do some more fancy stuff.
Nice try from the other posters, but there is a very simple RTML command that will do it. . .
TEXT PAT-SUBST s GRAB
MULTI
HEAD
BODY
TEXT #var-with-alt-tag-equals-pad-in-it
frompat "alt=\"pad\""
topat ""
The above RTML will find all instances of alt="pad" and replace it with nothing.
Well you're right on RTML being relatively untraveled :)
Do you have a way to add your own attributes to these images tags? If so, would it be possible to override the alt attribute? If you specify alt="", I would think that would override Yahoo's... Otherwise consider putting a useful alt tag in there for the blind and dialup types.
It's the first time I'm hearing about this platform, but here is an idea: if you can add javascript to the pages, you could write a function that will run after the page has loaded and remove all the alt="pad" attributes from the page.
Unfortunately this solutions works only with browsers that know about scripting, so lynx or some other text based browsers might not support it.
I have shared a link official RTML guide from yahoo. Hope it will help. Thanks!
List of available RTML books and resources

Resources