I'm a jQuery newbie (and not really a stud at JS, either), so bear with me. We have a web site provided by the software company that created our vacation rental management software, so, as such, I don't have entire control over the pages -- just bits and pieces. They recently started including jQuery 1.4.4 along with jqueryUI and cookie plugin on the pages and utilizing it a bit (as well as a custom jquery bit of code they wrote up). My question is thus, and here's the relevant code (that I have control over):
var phoneflat = $.util.getCampaignPhone('MCPH').replace(/[^0-9]/g, '');
Basically, we have a phone-number tracking system on our Web site, and the toll-free number on our site gets replaced depending on how the MCPH cookie is set. The above code pulls formatted number from that campaign cookie, removes the formatting from the number, and sets the pop-up URL to include the number, passing the number after the "?DNIS=" (which is required for this specific campaign tracking to work properly).
Any ideas to be able to get that variable somehow or is there something I'm missing? The folks at the software company are trying to wrap their head around it, too, but I figured I'd ask here as well :-)