Getdeviceip() maybe there is a solution!!!

I finally think of a way to get a around it. It is not very efficient, but it kind of work.
what I did was I save the text from cisco devicelistx to an xml file in my computer. I wrote a function the load that xml file and parse the ip out and return it. Here is my version of getIP()
[CODE]
function getIP(phone){
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
var IPaddr
xmlDoc.async = "false";
xmlDoc.load("c:\\CiscoIPservices\\ASP\\includes\\devicelist.xml");
var xmlObj = xmlDoc.documentElement;
for(var i=0; i<xmlObj.childNodes.length; i++){
//look for the correct phone
if(xmlObj.childNodes(i).getAttribute("n") == phone){
//find the phone. "i" holding the position of where the phone is in the filelist
IPaddr = xmlObj.childNodes(i).getAttribute("i");
return IPaddr;
return false;
[/CODE]

A solution for what? You'll still have to update that XML file regularly or your getIP method returns stale data.

Similar Messages

  • THERE IS NO SOLUTION TO MULTIPLE iPODS ON ONE COMPUTER!

    Hello,
    This is a very common problem for those of us who belived that iPods were easy to connect to computers. The first iPod was, so why can't I just connect another?
    Well...you can. It just takes HOURS. Last night, I spent over 4 hours trying to get my windows computer to recognize both my mini and my sister's nano. Apple claims that using two iPods on one computer is "easy." It is, you just have to go through the grueling process of connecting them both first!
    Maybe there is a faster way than I know about, but I have probably read EVERY POST about "How to connect 2 iPods to the same computer." I even called Apple and they GAVE UP on me! They told me it was a hardware problem and I should send my iPod in for repair.
    What Apple needs to realize, is the fact that most people are NOT trying to steal music. All of the crazy restrictions that Apple has placed on iTunes (1 download per song, can't burn videos to dvd, can't play other music software on iPods...) are just to make sure no one steals $0.99 from Apple? WHAT?!?
    My suggestion to Apple is that you make a new version of iTunes where a user can register MANY iPods to a single computer, and let them all be on at the same time. The way Apple has it now, only one iPod can be connected at a time. This is, of course, to insure that no one steals music.
    The easy solution is to throuw out your Windows computer and buy a Mac. Or just one iPod.
    I hope that this clears up any confusion you were having about your own iPods. I'm sorry if you aren't technically savvy and won't be able to figure out how to connect your two iPods, it literally took me hours.
    Sincerely,
    iRock my iLife
    p.s. Please leave any comments or questions about the process of attatching a second iPod. I'll try to help you out as much as I can.

    Hello,
    This is a very common problem for those of us who
    belived that iPods were easy to connect to
    computers. The first iPod was, so why can't I just
    connect another?
    Sincerely,
    iRock my iLife
    .s. Please leave any comments or questions about the
    process of attatching a second iPod. I'll try to
    help you out as much as I can.
    Just blow itunes out and use RealPlayer. Just as easy to load from CD type playlists but not sure about downloads from web - yet. Had to do this as Itunes took out my CD and DVD drives in one go and couldnt have both. Cost me a fortune to get pc unstuck and windows completely re installed and guess what? Went to load Itunes again and there went the drives. Gave up and using RealPlayer now.
    Packard Bell   Windows XP  

  • Z77 agd 65 bios 10.10 Again Maybe there is an issue

    Hi,
    I noticed that one of my HDDs is "missing". It is connected to one of the the Asmedia sata connections.
    I checked the BIOS and found that external SATA had been disabled, by me presumably before lunch and coffee.
    On enabling it my computer reverted to the limbo state on startup as I described before.
    I re-disabled and all was fine, except for the "missing" HDD.
    I moved the hdd (sata 1 160GB ex an old laptop) to a sata 2 connection and again all was ok.
    I re-enabled external sata without a drive and again all was ok.
    Maybe there is a small problem

    Found a solution! For some reason it lost the Wifi connection too. By reestablishing the WiFi and using the "back arrow" to where you can select the language and waited for a few minutes it passes the HDD error message and continued the installation. 

  • Is there a usb solution to enable a remote on a Mac Book Pro Retina?

    Is there a usb solution to enable the use of a remote on a Mac Book Pro Retina?

    I use Flip Player
    (free download)
    although there is limited functionality unless you upgrade to the full Pro (or higher)
    Read more: Flip Player for Mac - Free download and software reviews - CNET Download.com http://download.cnet.com/Flip-Player/3000-13632_4-87679.html#ixzz2aWmRVj7i
    http://download.cnet.com/Flip-Player/3000-13632_4-87679.html

  • Help me I'm in a tough situation, is there a technical solution?

    Apple have previously disapproved my previous version of this issue because I was not clear about my questions, so I have chosen to rephrase them. Despite this "misunderstanding" I was actually asking for technical help and instead got deleted. Please actually read this instead of just reporting it! I do actually have an issue here and I do want help and I feel that I was right to post it here. I don't personally agree that I didn't meet the criteria. But I am trying believe it or not! If you don't want to answer this topic, just move on. Let someone else help me, instead of reporting it, because it's all too hard or seems all too obvious to you what the answers are or you feel it doesn't meet criteria. Some of us don't have all the answers, not even all the obvious ones. My original version was not written in haste or anger, nor did I blame Apple, I also spent time to edit it to structure the situation clearly. I explained my background situation clearly to show my issue was serious and to show how it all fits together. Otherwise the questions just seem lame and pointless. After all I doubt many will be in this same situation which leaves me no where.
    Question 1. I already asked this, Can I removed the Apple default apps? I thought I might not be seeing how since there are many hidden features on the iPhone.
    Answer 1. Apparently not.
    Question 2. Can I control the way apps access the data network? I can't find a way to prevent apps from using it or switching to it when my WI-FI drops momentarily.
    Question 3. Is it possible for the mobile provider to turn my data network off while leaving the cellular network active?
    Question 4. I'm trapped in a tough spot, is there something "technical" I can do, that I haven't mentioned bellow? There must be something to elevate the situation.
    For your information only I have posted the original account I made unedited bellow. I did initial two phrases to G.B. to reduce filtering on Apples forum. I add this here because it explains my situation clearly (or so it seems to me). Please don't take offence that I have added it. Choose to not read it if you will, but don't judge me for adding it. But by reading it I think my questions might look less random or silly:
    * Start Background Information *
    I have wound up getting an iPhone contract that has me living in a data roaming area for my mobile provider. This is partly due to insufficient knowledge, lack of education in the matter and partly due to the nature of all services in the remote Australian town I live in. The reason I went with this provider in the first place was due to the limited services I could access that had signal in my home and finance. Incidentally all three of them sell iPhones. The first one's cheapest deal is $100 a month for the contract with a lousy deal. The second has intermittent signal in our home, I may have gone with one of their plans if not for the poor signal. The third, which I went with, a fairly good deal for the cash and the cellular coverage perfect all over the property. I have since found out their roaming data network, which I live in is contracted to the first option which own the monopoly and hence the ridiculous mb charges. Occasionally it connects to the second option, but I get the feeling they are also subcontracting off the first! Anyway...
    So I live in a roaming data area, It's not international roaming so the phone won't protect me from the excessive mb charges. I started out only using general apps when in WI-FI but found intermittent drop outs which I never noticed happen was causing excessive charges. I have since noticed the signal bars for the WI-FI not change but a spinner indicator ,all very easy to miss. I contacted the network and they refuse to turn off my data network; despite a tech telling me it can be done. So until Apple come to the rescue and put in a feature like the no roaming feature that works for all mobile data connections, that are not the ones belonging to the service provider, I'm stuck turning the phone to aeroplane mode before using any app I don't completely trust. I can see Apples difficulty here, but I would settle for turning all data network off, just leaving the cellular network and WI-FI active. As things are I have to turn phone over to aeroplane mode, then turn WI-FI on then use app, then remember to turn the phone back on when finished. Sometimes I forget for a couple of hours. But I trust some apps or sometimes forget to turn the mobile off. Contacts app got me the yesterday; I was at the post office where I looked up an address and accidentally tapped the address on the card and the maps app loaded up. This is followed by mad stumble to close it before it uses data. So easy to do, also happened using the iPod in the car a few days back. While selecting a pod cast I accidentally clicked "Get more episodes…" and safari loaded, Panic!!! Also what makes it worse, is that I can't remove or hide some apps provided by Apple, like Maps, for example, to reduce the risk of accidental tap. Feel very vulnerable! There is also a risk of forgetting to switch the phone to aeroplane mode when I let a friend checkout the phone or just play one of my games.
    So Apple, what are my options? Shelve the phone by leaving phone permanently off turning it into an iPod touch and keep paying through the nose for 2 years? Or G.B. so I can make some changes that would help, I read there is a solution to this issue for G.B. phones, (I'm not sure what impact that would have on my service). But frankly neither of these options I want to follow! I feel trapped!
    Also there is nothing disclosing to me what apps have access to what data port. I would feel better if I could see a true list of what each app has access to. Not just on the phone but also on the app store, information detected and provided by hardware and not submitted by the programmer. No offence to all you GOOD programmers out there, but there are many that can't be trusted. An example of my need for this disclosure, does Remote (apple's iTunes remote) access the data network or just the WI-FI? Of course I would ASUME it only accesses the WI-FI. But reading the support page and description for it left me unsure, and it's this unsure feeling that scares me with this whole situation hanging over me. The home pages and the apps themselves are like a mine field to me. Another simple question reflecting this. Does the weather app regularly check for forecast data, or does it only do it when I open the app? What if I mistakenly click it while my data network is active? Sounds harmless doesn't it? But to me a mistake like that adds around $5 to my bill which is already pushing my budget. It would also be useful to be able to control each apps access privileges independently; but I would settle for a simple setting that has them all prompt me for access to the data network instead of just switching to it when there is a short WI-FI dropout.
    I love the iPhone but I'm starting to feel I chose the wrong product. It has too many fluent network features (imagine saying that!) and it makes too many assumptions about my situation, most of which are wrong. The iPhone is the wrong product for someone who lives where I live and doesn't have basement full of gold! But I am stuck with this contract, what are my options?
    Your's sincerely, life long Apple supporter…

    Question 1. I already asked this, Can I removed the Apple default apps?
    No. But you can turn off automatic syncing and Push email and set the phone to retrieve mail manually.
    Question 2. Can I control the way apps access the data network?
    Sort of. Turn on Airplane mode which will disable the cellular modem then turn on WiFi only. With Airplane mode ON and WiFi ON, your phone will only connect to the internet using an available WiFi connection.
    I can't find a way to prevent apps from using it or switching to it when my WI-FI drops momentarily.
    Apps do not run in the background so they only way an app can attempt to connect is if you have it running. If you do not run the app, it cannot run up your bill. For Apps that have "background" notification, you can turn that option off in the settings for each of those apps.
    Question 3. Is it possible for the mobile provider to turn my data network off while leaving the cellular network active?
    That is up to your provider. Call them. Go into Settings, General, Network, and turn OFF Data Roaming.
    Question 4. I'm trapped in a tough spot, is there something "technical" I can do, that I haven't mentioned bellow? There must be something to elevate the situation.
    In the US, you can return the phone within thirty days and void the contract. If you do not have that option, or if you are past thirty days, you can pay the ETF (Early Termination Fee) and void the contract.
    I live in a very rural area in the US and I have used all of the techniques listed above at different times. I hope this helps; I "get it" that a huge Surprise! data roaming bill at the end of the month can be upsetting. Try the stuff I listed above and if none of that works, paying the ETF might be cheaper than paying Surprise! bills every month.
    Hope this was helpful.

  • TS4062 My Iphone won't appear in my devices in Itune.... And the WiFi does not work on my phone.... I seems like there is no solution to update my phone to the new ios on my computer or WiFi without using the 3g because of this!!! help me out

    My Iphone won't appear in my devices in Itune.... And the WiFi does not work on my phone.... I seems like there is no solution to update my phone to the new ios on my computer or WiFi without using the 3g because of this!!! help me out

    Hello there, TempestBelcher.
    It seems you've covered all the bases, but feel free to review the iPhone Troubleshooting Assistant for connectivity here:
    Apple - Support - iPhone - Calls Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/calls/#section_0
    If you've followed all the instructions then there are a few good recommendations for what to do next in the last step.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I can't delete bookmarks page in my bookmarks list on toolbars, maybe there is a little bugs. Thx.

    I can't delete bookmarks page in my bookmarks list on toolbars, maybe there is a little bugs. Thx.

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • I can no longer get my complete bank statements online, and my bank blames the Safari update and tells me to switch to Firefox.  Is there no other solution?

    I can no longer get my complete bank statements online, and my bank blames the latest Safari update and tells me to switch to Firefox.  Is there no other solution?

    I would feel dreadful If I thought had caused you a problem.   The warnings about Java are fully justified but providing you are communicating with a known source, and as I said, you disable it the moment you have finished, you should be safe.
    It might also be worth asking your bank what problem they have and would it be the same if you were using Firefox, for example.
    Like you, I am very security minded, in fact I won't even put my bank details on my Mac let alone run my account that way. 

  • My Notes duplicate as I am typing them and then I have to delete the excess notes.  Also, Notes no longer synch to my iPhone.  Is there a simple solution?

    My Notes deplicate as I am typing them and then I have to delete them.  Also, Notes no longer synch to my iPhone.  Is there a simple solution to these problems?

    Jimyyz2 -
    In the Accounts system preference you can see which accounts are being used.
    Where are you storing your notes?  If you show the folders list (View->Show folders list) you should see a header that has the account name of where the notes are stored.  What does it say?

  • I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    OS X can natively read NTFS of Windows, but not write to it.
    Windows can't read or write to HFS+ of OSX, and that's a good thing from a security standpoint.
    Ideally if you share files between operating systems you should have a FAT/MSDOS formated USB key or hard drive. (exFAT external drive if any of your files are over 4GB in size) both these formats are universal for OS X or Windows.
    If you install software into Windows and OS X to read each others formats, then you have to pay to update/upgrade it deal with headaches.
    If you swtich between Windows and OS X a lot, don't need full hardware performance for Windows, you may consider installing virtual machine software like VMFusion or Parallels which can take a copy of your Windows in Bootcamp and place it into OS X as a file then run that copy of Windows in a window in OS X like so.
    Advantage here is you run most of your light weight Windows programs like this at the same time as OS X.
    Benefit is you can run just about any Windows or Linux version and OSX server editions (not client versions)
    Bootcamp only allows Windows 7, that's it now.
    You'll also be interested in two fre pieces of software, Carbon Copy Cloner and Winclone on macupdate.com.
    CCC clones OS X partition and Winclone clones the Bootcamp partition. Valuable for you.
    Good Luck

  • When I open Firefox the following alert appears: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory." There is a solution in the forum but only for Windows based

    When I open the application the following alert appears: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory." There is a solution on the support site but only for Windows-based Firefox, and I'm a Mac user. I have plenty of room on my hard disk.
    == This happened ==
    Every time Firefox opened
    == Two days ago, for no apparent reason.

    In Mac OS X v10.7, the $HOME/Library folder is a hidden folder.
    Open Finder and use one of these:
    * Go > Go To Folder (Shift-Command-G) and in the dialog type: ~/Library
    * Open the "Go" menu and hold down the Option key to make the Library appear
    You can also use this command in a Terminal window to remove the hidden flag.
    * Mac HD > Applications > Utilities > Terminal
    * chflags nohidden ~/Library

  • I have just updated to the new iOS 6, and all my contacts have disappeared? Is there a possible solution to get them back?

    I've just updated to the new iOS 6 and all my contacts have dissappeared, is there a possible solution to bring them back, I really need them back. Thanks in advance.

    You tried clicking on "phone" then "groups" and "Show All Contacts"

  • HT3258 My Parallels program is now not working since upgrading my MacBook Pro to OS X Mountain Lion.  I was wondering if there is a solution to getting this working again?

    My Parallels program is now not working since upgrading my MacBook Pro to OS X Mountain Lion.  I was wondering if there is a solution to getting this working again?

    You just need to update it to the latest version.  See:
    http://kb.parallels.com/114449

  • I'm sure your'e going to tell me I just need a new phone but maybe there is hope for my iphone 4.  It will not charge past 66% (it's not the charger), it turns off when unplugged, and it will not even let me turn my wi fi to the on possition.  Help!

    'm sure your'e going to tell me I just need a new phone but maybe there is hope for my iphone 4.  It will not charge past 66% (it's not the charger), it turns off when unplugged, and it will not even let me turn my wi fi to the on possition.  Help!

    Hi there 8472kck!
    I have some information for you that can help you troubleshoot this issue a little further. That information can be found right here:
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 15 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    and that information comes from this article:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I want to mirror an iOS device to my computer for demonstration and training purposes.  I cannot use Airserver as my company VPN does not allow the connection.  Is there a hardware solution instead?

    I want to mirror an iOS device to my computer for demonstration and training purposes.  I cannot use Airserver as my company VPN does not allow the connection.  Is there a hardware solution instead?

    Shoeb, hi.
    Thanks for replying and apologies for my tardiness in responding. I have just completed a re-creation of my web page using CSS/HTML rather than XML/XSLT and now I find that when saving in MHT format the watermark/background image is saved, which is nice, but trying to save it as 'webpage complete' under 'save as' in the browser still does not work. (For those who are new to Firefox, MHT files are not supported by the browser, but using the FF extention UnMHT one can open such files and save web documents as MHT files, meaning no accompanying folder is required to properly view the file.)

Maybe you are looking for

  • How can I cancel my iCloud account???

    How can I cancel my iCloud account???

  • LED display for Imac

    I have a 09 imac with the larger dvi port I would like to hook up new Apple LED Cinema Display but dvi is smaller is there an adapter

  • Run Time Errors, Please Help.

    I am getting errors of: Exception in thread "main" java.lang.NumberFormatException: feet at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source) at java.lang.Double.parseDouble(Unknown Source) at SquareDriver.main(SquareDriver.java:29) her

  • I want to delete a Parameter but it won't let me...

    I want to delete the parameter @Subtitle but it won't let me. It has a green check mark beside it and in the Report definition it has the following. How do I find where this is and delete it? CR 8.5 dev edition Kelvin ++++++++++++++++++++++++++++++++

  • Photoshop Elements 3.0 Deutsch update

    Wann gibt es das update für Photoshop Elements auf Deutsch??