Alert ( phone number)

hi
To find a telephone number in a text, I use the following:
app.findGrepPreferences.findWhat = '"32\d\d\d\d\d\d\d\d\d\d";
var number= myDoc.findGrep(true);
alert(number);
but if I want to preview this with the alert function, there's no result (is defined as an object instead of text).
help

Which reminds me: alert doesn't scroll, so if you have lots of numbers they roll off the screen and you won't be able to see them. Here is an example from "ScriptUI for Dummies", which is a more useful version of alert: it shows text in a scrollable window. An additional advantage is that you can copy text out of the alert.
So the whole script would be this:
if (number.length > 0)
   array = [];
   for (i = 0; i < number.length; i++)
      array.push (number[i].contents);
   alert_scroll ("Phone numbers", array);
else
   alert ("No numbers found.");
function alert_scroll (title, input)   // string, string
    if (input instanceof Array)
        input = input.join ("\r");
    var w = new Window ("dialog", title);
    var list = w.add ("edittext", undefined, input, {multiline: true, scrolling: true});
    //the list should not be bigger than the maximum possible height of the window
    list.maximumSize.height = w.maximumSize.height - 100;
    list.minimumSize.width = 150;
    w.add ("button", undefined, "Close", {name: "ok"});
    w.show ();
Peter

Similar Messages

  • Incorrect phone number on Voice Message alert

    I'm a newbie here, so please be patient.
    I received an email alert saying that I had a new voice message.
    It said, "left by ...+****************"
    Obviously, I noticed the number was odd, but I was able to listen to the voice message OK.
    However, I cannot reply by clicking on and calling the number back, as Skype then tells me it is not a valid number!
    Anyone have any clues please?
    Lesley
    x

    I see that the actual (but invalid) phone number quoted by Skype has been starred out, so just to clarify, it started with +444 (yes, 3 x 4s) followed by a further 11 numbers.

  • When i open safari an apple alert comes up with a phone number.  when i call i get put on hold forever.  how do i get this off there?

    when i open safari an apple alert comes up with a phone number to call.  when i call i get put on hold forever or no one calls me back.  how do i get this off there and what is it?

    It's a scam. Do not call the number. There are several ways to recover.
    1. Some of those scam pages can be dismissed very easily. Press the key combination command-W to close the tab or window. A huge box will pop up. Press the return key and both the box and the page will close. If that doesn't happen, continue.
    2. Press and hold command-W. You may hear repeating alert sounds. While holding the keys, click the OK button in the popup. A different popup may appear, which you can cancel out of as usual.
    3. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and uncheck the box marked Enable JavaScript. Leave the preferences dialog open.
    Close the malicious window or tab.
    Re-enable JavaScript and close the preferences dialog.
    4. If the Preferences menu item is grayed out, quit Safari. Force quit if necessary. Relaunch it by holding down the shift key and clicking its icon in the Dock. None of the windows and tabs will reopen.
    After closing the malicious page, from the menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    to get rid of any cookies or other data left by the server. Open your Downloads folder and delete anything you don't recognize.

  • Can I use one phone number on two iphones with two apple ids?

    My carrier allows multiple sim cards with the same phone number for usage on different devices. I would like to use a second sim card for my phone number on a second iphone, but with a different apple id.
    Is it possible to use one phone number on two iphones with separate apple ids? How does this affect facetime/imessage?
    I can only find answers to using the same apple id on multiple devices. This works fine, but is not what I want to do here.

    You may be able to change the suspicious account activity message alerts
    in your Gmail settings, and check that side of it, since I can use several
    means of accessing my Gmail and Google Accounts; and in the past had
    shared an account (not google) with another party half a world away when
    her email server went down for a month.
    The Mail software should not know the difference, unless the setup in there
    is not correct; if this is so, then more than what she says would be wrong.
    The Google mail Support help site pages should cover this adequately.
    Gmail Help - Google Help
    https://support.google.com/mail/?hl=en

  • How do you stop sms messages automatically being sent to an email address instead of a phone number?

    I have noticed that sometimes (particularly when sending an sms to multiple people) my iphone 4s will send the message to peoples email addresses. This happens despite there being a phone number listed on the contact. You would have thought that an sms would automatically send to a phone number if there is one available for the contact, but instead it is sending the sms to an email address without warning. This results in me being charged for an mms and the recipient not recieving the text at their phone number. It happens when sending messages to both iphone users and non iphone users.
    Does anyone know a way of fixing this?

    I think its fixed. I had to sign iMessages in on my Apple ID, but then deselect my email addresses to make it behave the way it should. Now if I could get iMessage to only send response alerts to the last device I used, instead of late night texts going to every device I own in the house and waking everyone up.
    For some reason, the free iCloud address I automatically received (when Apple was trying to force people to leave Mac.com) is "hardwired" into iMessage. People were also getting texts from that address even though I was on my phone. I tried to delete it but iOS tells me I can't. I don't use that address, I won't ever use it, too bad I can't make it go away.

  • HT204380 How do I change the phone number associated with FaceTime on my MacBook?

    I just recently got a new iPhone 5 with Verizon.  I was on AT&T before and, due to location changes since I got my original 3GS (then 4S, and now 5), I had to change numbers.  If you open Preferences in FaceTime, it has a listing of all the emails and the phone numbers that are associated with my FaceTime account.  Now, I can disable the old phone number from being able to send or receive calls from my Apple account by simply clicking on it and getting rid of the check box next to it.  But, how do I get my NEW NUMBER so that my MacBook receives FaceTime from my fiance's phone, regardless of whether or not she clicks on my phone number or email?  And, before anyone asks, I have already edited my Apple ID account through FaceTime's Preferences to reflect the new phone number.  Nothing changed as a result of doing that.

    HI,
    Remove the Apple ID so it itself is not linked to any iPhone number.
    Either turn off Messages on the iPhone or place it in Airplane Mode to Break with the server.
    On launching Messages again check  the iPhone number is ticked in Settings > Messages > Send and Receive.
    Add the Apple ID.
    Once this info appears on the Mac version via the Alert message, then you can add additional emails if required.
    8:54 PM      Friday; March 8, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I add a phone number to my ipad for messages?

    I am trying to  change the phone # on messages on my ipad, it is currently set at my old cell #, wondering how to change this.  I can only add new emails not phone#'s.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I keep getting a message about my phone number being used for iMessage on a new iPhone. How can I see what devices are using my iMessage account and phone number?

    The message "Your phone number is now being used for imessage on a new iPhone" Keeps appearing on my macbook pro. It also says "If you just activated iMessage on a new iPhone, you can ignore this alert." But the only option is to ignore the alert, because the only thing I can do with it is click "ok" and dismiss it. Is there a way I can look at a list of the devices using my iMessage account, and if there are devices that I don't recognize on that list, how can I block them from using my account?

    Hi If you have another Apple  device check on that screen & accept. Cheers Brian

  • How do i change my message settings so that when i get a text message only the phone number shows up - not the message?

    how do i change my message settings so that when i get a text message only the phone number shows up - not the message?

    settings - notification- message - show preview - OFF
    you can also select the alert type your want -banners or alerts

  • On Messages I can't send under my phone number anymore.

    So, I've been using Messages for a while now and everything has been working great. I was logged in under my Apple ID and I had the choice to send them under my email or under my phone number.
    Well, all of a sudden my friend messaged me back asking why I was messaging from my email and not my phone number. I have no idea how to fix this problem.
    I have logged out and logged back in. I've tried setting things up differently on my phone so that iMessages are only sent from my phone number. I can't think of anything else to do.
    And I am aware that iChat is not exactly the correct area to post this question, but there was no way for me to post under a 'Messages' area. This was the closest second.

    Hi
    Snow Leopard and the Lion Areas have a category called iChat and iChat Sharing
    (although I tend to only answer here)
    Mountain Lion has a Messages Category which I do read and Answer.
    If in Messages Menu > Preferences > Accounts > the iMessages account the drop down at the bottom of the right hand side does not list your iPhone Number  and it is also not listed a a Possible nearer the top then remove the Apple ID on the iPhone.
    So that is on the iPhone in Settings > Messages > Send and Receive remove the Apple ID
    In Settings > Messages turn Off Messages (Break with the server)
    Wait for  few minutes
    Turn Message Back on.
    After another wait (so the iPhone Number is "registered") then add the Apple ID again.
    Now turn Off Messages on the Mac.
    Restart Messages and the app should get an Alert saying the iPhone is using the Apple ID and the iPhone Number  and whether you want to use them in Messages.  (Saying No still lists them but does not make them Active)
    9:53 PM      Monday; December 3, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How do I get Messages to stop sending from my email address instead of my phone number?

    I've had several people tell me that texts I've sent from my iPhone have been showing up as <myemailadd>@mac.com instead of my phone number. It started doing that under iOS7. I don't want my email address sent with my phone-originated texts. I don't want my email address broadcast to people that shouldn't have it.
    So what do I need to change to make sure that phone texts originate from my phone number, home texts show my email address, and both are viewable on both my iPhone and iMac?

    I think its fixed. I had to sign iMessages in on my Apple ID, but then deselect my email addresses to make it behave the way it should. Now if I could get iMessage to only send response alerts to the last device I used, instead of late night texts going to every device I own in the house and waking everyone up.
    For some reason, the free iCloud address I automatically received (when Apple was trying to force people to leave Mac.com) is "hardwired" into iMessage. People were also getting texts from that address even though I was on my phone. I tried to delete it but iOS tells me I can't. I don't use that address, I won't ever use it, too bad I can't make it go away.

  • Why will Verizon not allow the use of a phone number that is Not a Verizon Number?

    Not happy with Verizon! No alerts sent to iPad, no phone numbers other than Verizon numbers. Why?
    Options
    09-29-2011 02:17 AM
    Ok, I have been on the phone twice now with customer support, all I want is an alert sent to my IPad for data usages !
    I want an alert sent to my iPad, or my phone, they can not, or will not do it? My phone is through at&t, Verizon will not except any phone number that is not a Verizon! WHY? my iPad is through Verizon, I know they can send alerts to the iPad, because they did it, they sent me a new password through an alert? I went over on my data plan because I did not get the alert in time, it was sent through email, a day late! Also, i asked about being able to serf the Internet and talk on the phone on Verizon, I was told that only 4G devices are capable, Wow,! I have been able to to this with my AT&T iPhone 3Gs from day one. I am now rethinking if I want to switch to Verizon? Is AT&T really that much more advanced?

    Only on the ipad 2 has the reminders i was told. Can u get my verizon app in the apple market? I did that for the iphone4 verizon. U can always sign in my verizon on ur ipad. Even if u switch to get a phone with verizon the ipad is on a different #.

  • How to get the zero of phone number eg. 0612345678

    Dear Adobe Flex Builder Professionals,
    I've got a problem with getting the zero of a phone number eg. 0612345678
    If I enter the folowing phone number as input:
    0612345678
    I will get the phone number as output:
    612345678
    The application has been written in Adobe Flex Builder 3.
    The code of the MXML file is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <mx:Metadata>
      [Event(name="customerSaveEvent", type="events.CustomerEvent")]
      [Event(name="customerCancelEvent", type="flash.events.Event")]
    </mx:Metadata>
    <mx:Script>
      <![CDATA[
       import util.ComboBoxUtil;
       import mx.controls.Alert;
       import events.CustomerEvent;
       import mx.collections.ArrayCollection;
       import mx.core.Application;
       import valueObject.Customer;
       import mx.validators.Validator;
       import mx.validators.PhoneNumberValidator;
       private var phoneCheck:PhoneNumberValidator;
       [Bindable]
       public var selectedCustomer:Customer;
       private function init():void{
        //this.cretePhoneValidator();
        if(this.selectedCustomer == null){
         this.clearForm(null);
       private function cretePhoneValidator():void{
        phoneCheck = new PhoneNumberValidator();
        phoneCheck.source = phoneNumber;
        phoneCheck.property = "text";
       private function validateForm():void {
        //var validatorList:Array = new Array(emailCheck, phoneCheck);
        //Validator.validateAll(validatorList);
       private function cancelClickHandler():void{
        var cancelManageCustomerObj:Event = new Event("customerCancelEvent");
        dispatchEvent(cancelManageCustomerObj);
       private function saveCustomer():void {
        //validateForm();
         var c:Customer = null;
         var selCust:Customer = Application.application.selectedCustomer;
         if(selCust != null){
          c = selCust;
         } else {
          c = new Customer();          
         c.setLastName(lastName.text);
         c.setFirstName(firstName.text);
         c.setStreet(street.text);
         c.setPostal(postal.text);
         c.setCity(city.text);
         c.setEmail(email.text);
         c.setPhoneNumber(new Number(phoneNumber.text));
         c.setMailing(mailing.selectedItem.data);
         c.setComment(comment.text);
         var modified: Customer = Application.application.customerService.createOrUpdate(c);
        var customerEventObj:CustomerEvent = new CustomerEvent("customerSaveEvent", modified);
        dispatchEvent(customerEventObj);
        this.clearForm(selCust);
        private function clearForm(selCust:Customer):void{
         if(selCust == null){
          this.lastName.text = "";
          this.firstName.text = "";
          this.street.text = "";
          this.postal.text = "";
          this.city.text  = "";
          this.phoneNumber.text = "";
          this.email.text = "";
          this.mailing.selectedIndex = 0;
          this.comment.text  = "";
         focusManager.setFocus(lastName);
      ]]>
    </mx:Script>
    <!--mx:EmailValidator id="emailCheck" source="{email}" property="text"
      trigger="{save}" triggerEvent="click"/-->
    <mx:Form id="manageCustomerForm">
      <mx:FormItem label="Achternaam:">
       <mx:TextInput id="lastName" text="{selectedCustomer.getLastName()}"/>
      </mx:FormItem>
      <mx:FormItem label="Voorletters:">
       <mx:TextInput id="firstName" text="{selectedCustomer.getFirstName()}"/>
      </mx:FormItem>
      <mx:FormItem label="Straat:">
       <mx:TextInput id="street" text="{selectedCustomer.getStreet()}"/>
      </mx:FormItem>
      <mx:FormItem label="Postcode:">
       <mx:TextInput id="postal" text="{selectedCustomer.getPostal()}"/>
      </mx:FormItem>
      <mx:FormItem label="Stad:">
       <mx:TextInput id="city" text="{selectedCustomer.getCity()}"/>
      </mx:FormItem>
      <mx:FormItem label="Telefoonnummer:">
       <mx:TextInput id="phoneNumber" text="{selectedCustomer.getPhoneNumber()}"/>
      </mx:FormItem>
      <mx:FormItem label="E-mail:">
       <mx:TextInput id="email" text="{selectedCustomer.getEmail()}"/>
      </mx:FormItem>
      <mx:FormItem label="Opmerkingen:" >
       <mx:TextArea id="comment" text="{selectedCustomer.getComment()}"
         width="447" height="144"/>
      </mx:FormItem>
      <mx:FormItem label="Mailing:">
       <mx:ComboBox id="mailing" dataProvider="{Application.application.comboBoxUtil.yesNo}"
        selectedIndex="{ComboBoxUtil.getIndex(selectedCustomer.getMailing())}"/>
      </mx:FormItem>
      <mx:HBox id="manageButtonBox">  
       <mx:Button id="save" label="Opslaan" click="saveCustomer()" />  
       <mx:Button id="resetButton" label="Wis" click="clearForm(null)" />  
       <mx:Button id="cancelButton" label="Annuleer" click="cancelClickHandler()" />
      </mx:HBox> 
    </mx:Form>
    </mx:Canvas>
    The code of the SQL file is:
    create table customer (
    id integer not null primary key autoincrement,
    lastName VARCHAR(50),
    firstName VARCHAR(50),
    street VARCHAR(50),
    city VARCHAR(50),
    postal VARCHAR(10),
    phoneNumber INT(10),
    email VARCHAR(50),
    mailing boolean default false,
    comment VARCHAR(255)
    create table treatment (
    id integer not null primary key autoincrement,
    date Date,
    treatment varchar(255),
    customerId integer not null,
    constraint fk_customer foreign key(customerId) references customer(id)
    create table user (
    id integer not null primary key autoincrement,
    loginName varchar(50) not null,
    lastName varchar(50) not null,
    firstName varchar(50) not null,
    password varchar(50) not null,
    active boolean not null default true,
    accessright varchar(10) not null
    create table agenda (
    id integer not null primary key autoincrement,
    userId integer not null,
    date Date,
    hour integer,
    minute integer,
    description varchar(50),
    constraint fk_user foreign key(userId) references user(id)
    create table license (
    id integer not null primary key autoincrement,
    key varchar(50),
    val varchar(50)
    I hope someone can help me with this problem.

    Customer List?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml
    initialize="init()">
    <mx:Metadata>
      [Event(name="selectCustomerEvent", type="events.CustomerEvent")]
    </mx:Metadata>
    <mx:Script>
      <![CDATA[
       import mx.core.Application;
       import service.CustomerService;
       import events.CustomerEvent;
       import valueObject.Customer;
       import mx.events.ListEvent;
       import mx.collections.ArrayCollection;
       [Bindable]
       public var customerData:ArrayCollection;
       private var customerService:CustomerService;
       private function init():void{
        this.customerService = new CustomerService();
        this.customerData = this.customerService.getCustomers();
        if(this.customerData == null){
         this.customerData = new ArrayCollection();
       private function itemClickHandler(event:ListEvent):void {
        if(event.columnIndex != 0){
         var customerData:Customer;
         customerData = event.itemRenderer.data as Customer;
         var customerEventObj:CustomerEvent = new CustomerEvent("selectCustomerEvent", customerData);
         dispatchEvent(customerEventObj);
       public function deleteCustomer(id:int):void{
        var cust:Customer = new Customer();
        cust.setId(id);
        this.customerService.deleteCustomer(cust);
        this.customerData.removeItemAt(customerGrid.selectedIndex);
      ]]>
    </mx:Script>
    <mx:DataGrid id="customerGrid" dataProvider="{customerData}" height="100%"
      itemClick="itemClickHandler(event)" width="340">
      <mx:columns>
       <mx:DataGridColumn deactivate="true" dataField="id" headerText=" " width="15">
              <mx:itemRenderer>
                <mx:Component>
                  <mx:Image source="images/delete.jpg" click="outerDocument.deleteCustomer(data.id)"
                   buttonMode="true" height="15" width="15"/>
                </mx:Component>
              </mx:itemRenderer>
            </mx:DataGridColumn>
       <mx:DataGridColumn dataField="lastName" headerText="Achternaam" />
       <mx:DataGridColumn dataField="firstName" headerText="Voorletters" />
      </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>

  • CS3, PHP, Javascript: Auto-formatting phone number pre-post

    Hi guys and gals, I'm creating a simple user registration form, with a text field to have the user enter their phone number (this should autocorrect as the user types it). Grabbed a javascript snippet online, and I see whats going on in the code, but for some reason, its no workey
    Have 3 parts to the webpage, these are:
    The Javascript: "includes/ValidatePhone.js"
    // JavaScript Document
    <SCRIPT LANGUAGE="JavaScript">
    var n;
    var p;
    var p1;
    function ValidatePhone(){
    p=p1.value
    if(p.length==3){
         //d10=p.indexOf('(')
         pp=p;
         d4=p.indexOf('(')
         d5=p.indexOf(')')
         if(d4==-1){
              pp="("+pp;
         if(d5==-1){
              pp=pp+")";
         //pp="("+pp+")";
         document.form1.number.value="";
         document.form1.number.value=pp;
    if(p.length>3){
         d1=p.indexOf('(')
         d2=p.indexOf(')')
         if (d2==-1){
              l30=p.length;
              p30=p.substring(0,4);
              //alert(p30);
              p30=p30+")"
              p31=p.substring(4,l30);
              pp=p30+p31;
              //alert(p31);
              document.form1.number.value="";
              document.form1.number.value=pp;
    if(p.length>5){
         p11=p.substring(d1+1,d2);
         if(p11.length>3){
         p12=p11;
         l12=p12.length;
         l15=p.length
         //l12=l12-3
         p13=p11.substring(0,3);
         p14=p11.substring(3,l12);
         p15=p.substring(d2+1,l15);
         document.form1.number.value="";
         pp="("+p13+")"+p14+p15;
         document.form1.number.value=pp;
         //obj1.value="";
         //obj1.value=pp;
         l16=p.length;
         p16=p.substring(d2+1,l16);
         l17=p16.length;
         if(l17>3&&p16.indexOf('-')==-1){
              p17=p.substring(d2+1,d2+4);
              p18=p.substring(d2+4,l16);
              p19=p.substring(0,d2+1);
              //alert(p19);
         pp=p19+p17+"-"+p18;
         document.form1.number.value="";
         document.form1.number.value=pp;
         //obj1.value="";
         //obj1.value=pp;
    setTimeout(ValidatePhone,100)
    function getIt(m){
    n=m.name;
    //p1=document.forms[0].elements[n]
    p1=m
    ValidatePhone()
    function testphone(obj1){
    p=obj1.value
    //alert(p)
    p=p.replace("(","")
    p=p.replace(")","")
    p=p.replace("-","")
    p=p.replace("-","")
    //alert(isNaN(p))
    if (isNaN(p)==true){
    alert("Check phone");
    return false;
    </script>
    And then we have the actual PHP Form, "includes/Users_Insert.php":
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" enctype="multipart/form-data">
    <table>
         <th class="WADADataTableHeader">Phone Number:</th>
         <td>
              <input type="text" name="number" id="number" size="32" onclick="javascript:getIt(this)" />
              <?php echo $tNGs->displayFieldHint("number");?>
              <?php echo $tNGs->displayFieldError("Users", "number"); ?>
            </td>
         </tr>
          <tr>
              <td class="WADADataNavButtonCell" nowrap="nowrap">
              <input type="image" name="KT_Insert1" id="KT_Insert1" value="Insert record" src="../WA_DataAssist/images/Pacifica/Refined_insert.gif" />
           </td>
              <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="users.php" title="Cancel">
                   <img border="0" name="Cancel" id="Cancel" alt="Cancel" src="../WA_DataAssist/images/Pacifica/Refined_cancel.gif" /></a></td>
         </tr>     
    </table>
    And here is the calls to put all of that together, "add_user.php":
    <html><head><title></title>
    <script src="includes/ValidatePhone.js" type="text/javascript"></script>
    </head>
    <body>
    <?php include("includes/Users_Insert.php"); ?>
    </body>
    </html>
    (didn't paste the whole website obviously, just the parts that should be relevant).
    Anyone see anything in the code as to why this wouldn't be working as intended?

    You are not telling your form to validate the phone no.
    For a brief description of validating a form see - http://www.w3schools.com/jS/js_form_validation.asp
    Take special notice of - onsubmit="return validate_form(this)"
    PZ

  • How do I configure my Phone Number in Messages? 10.8.2 iOS 6

    I've my gmail, my hotmail configured in Messages but I cannot add my phone number so whenever someone messages me, I can respond in my Macbook Pro OS X (10.8.2 and I have an iOS6 iPhone).
    Thanks in advance!

    HI,
    Do you have the iPhone that has the number that is currently Listed in Messages on the Mac ?
    If so then go to Settings > Messages > Send and Receive and remove the Apple ID.
    Restart Messages on the Mac.
    IS the Number still there ?
    If so then in the Finder > Go Menu > Go to Folder type ~/Library/Preferences in the dialogue box that appears.
    In the Preferences find com.apple.imservice.iMessages.plist and com.apple.imessages.bag.plist and drag both to the Trash
    Restart Messages.
    These two .plists hold the Server Login info and the "Aliases" IDs (Emails and iPhone Numbers)
    Restart Messages (Again).
    Now on the new iPhone Add the Apple ID you are using in Messages on the Mac ? (In the Send and Receive spot)
    Allow a few minutes and Restart Messages if it does not show an Alert type message from the iMessage Server saying the iPhone is using the Apple ID and phone Number.
    9:56 PM      Wednesday; February 20, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

Maybe you are looking for

  • What cable do I need to connect Dell 1707FPt Monitor with MacBook Pro

    Hi and thanks in advance for your answers. I have this monitor (Dell 1707FPt) :http://support.dell.com/support/edocs/monitors/1707FPT/EN/index.htm And I wish to use it with my MacBook Pro. The cable I have now (VGA I believe) does not fit anywhere on

  • Tried all suggestions, iPod Nano still not recognized by iTunes

    My iPod refuses to show up as a source in iTunes. This is the only possible conclusion I can make, given I've tried each of the following steps: 1. Re-setting the iPod. 2. Restoring the iPod. 3. Restarting the iPod service. 4. Re-installing iTunes (a

  • Business Partner from One ECC to Second ECC via CRM

    Hi All, I hope i can explain this in simple terms. We have two ECC and One CRM integration... We are creating BP in CRM 7.0 that goes to ECC1. At some point of time in future, I would like to 1. Replicate same customer in ECC2, and delete from ECC1 2

  • Why don't I have enough memory on Nokia 6230?

    Hi: I have a Nokia 6230 and sync it regularly with my computer. I have about 700 contacts and sync a relatively full calendar from one week ago to two weeks in advance. A to-do list also synchronizes. I regularly get the following error on my compute

  • HOw to know sandard edition or standard edition one

    Hi, I want to know my oracle software is standard edition or standard one edition. SQL> select * from v$version; BANNER Oracle Database 10g Release 10.2.0.3.0 - Production PL/SQL Release 10.2.0.3.0 - Production CORE    10.2.0.3.0      Production TNS