Modify or Create Web Interface

Modify or Create Web Interface SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 21, 2007 » Modify or Create Web Interface « Previous || Next »
Author Message
Ramon Sazon
New member
Username: Ramonsazon

Post Number: 10
Registered: 08-2006
Posted on Friday, January 19, 2007 - 01:49 pm:   

Hi,

The web interface provided with NOWSMS is very helpful. I would like to modify it so I can FILL/CUSTOMIZE the SENDER field as well so it comes out of the specific modem I want.

Is this possible? I tried looking at the source of the HTML files in the NOWSMS folders but I am stumped. What do I need to do to accomplish this?

Thank you.
RS
alaqeel
New member
Username: Aqq

Post Number: 3
Registered: 01-2007
Posted on Sunday, January 21, 2007 - 09:00 pm:   

Yes you can modefy the fields and pages, even to use any extention. but the pages will function as cgi-style pages. so if you use php extentions you cannot execute php code.

To Do So:

1- PLZ. keep a back up of the folder html inside now sms directory.

2- modefy the pages as you want.

3- Keep the nowsms logo on left top corner.

Hope that is helpfull.
Ramon Sazon
New member
Username: Ramonsazon

Post Number: 11
Registered: 08-2006
Posted on Sunday, January 21, 2007 - 11:42 pm:   

Hi Alaqeel,

Which file do I modify? Is it in plain HTML/Javascript or some other language? I looked at the HTML pages in the HTML directory and couldn't find where I'm supposed to add an additional text box for the SENDER (the modem to use) field.

Please explain... Thanks.
RS
Malcolm - Now Support
Moderator
Username: Malcolm

Post Number: 108
Registered: 12-2006
Posted on Monday, January 22, 2007 - 06:32 pm:   

Hi Ramon,

It is plain HTML. (There is some very limited JavaScript, but it exists primarily to provide an interface to the address book.)

Each option in the web interface has its own web page. You can follow the links to the different pages by examining the TOCFrame.htm page.

The "Send Text Message" page is named "Send Text Message.htm".

Looking at that page, there is some extra JavaScript in there for counting the number of characters in the current message so that the user can see on the web page. But you could easily add another table row to the form for a sender field.

--
Malcolm
Now Wireless Support
Ramon Sazon
New member
Username: Ramonsazon

Post Number: 14
Registered: 08-2006
Posted on Monday, January 22, 2007 - 11:10 pm:   

Hey Malcolm,

I was able to add the Sender field. Nothing to it. Just a textbox. However, what I'm looking for is how do I set what I input in that extra box to the HTTP string to replace the SENDER param. You do this already with the PHONENUMBER param.

Right now, whatever I put in the additional text box isn't reflected in the SENDER param so the message doesn't come out from the Modem I want it to. Hope you can help.
Thanks a lot.

Ramon
Malcolm - Now Support
Moderator
Username: Malcolm

Post Number: 117
Registered: 12-2006
Posted on Tuesday, January 23, 2007 - 07:17 pm:   

Hi Ramon,

I inserted the following between the "Phone Number" and "Text" prompts:


<tr style='mso-yfti-irow:1'>
<td width=243 valign=top style='width:182.25pt;border:solid #669999 1.0pt;
border-top:none;mso-border-top-alt:solid #669999 .5pt;mso-border-alt:solid #669999 .5pt;
padding:0in 5.4pt 0in 5.4pt'>
<p class=MsoNormal>Sender:</p>
</td>
<td width=346 valign=top style='width:309.8pt;border-top:none;border-left:
none;border-bottom:solid #669999 1.0pt;border-right:solid #669999 1.0pt;
mso-border-top-alt:solid #669999 .5pt;mso-border-left-alt:solid #669999 .5pt;
mso-border-alt:solid #669999 .5pt;padding:0in 5.4pt 0in 5.4pt'>
<p class=MsoNormal><INPUT TYPE="TEXT" SIZE="40" NAME="Sender">
</td>
</tr>

Basically, as long as the INPUT tag has a name of "Sender", it should work the way that you want.

If you want the form to select amongst a predefined list of sender values, then you might want to use a SELECT box, or radio buttons.

--
Malcolm
Now Wireless Support
Ramon Sazon
New member
Username: Ramonsazon

Post Number: 16
Registered: 08-2006
Posted on Tuesday, January 23, 2007 - 10:54 pm:   

Hey Malcolm,

Thanks a lot. It worked. I did the a similar thing but I guess I missed something.

Anyway, thanks again.
RS

Topics Topics Search Last 30 Days Login Login / Register Logout Logout