How to execute javascript?

hi all,
how to execute javascript code in our objective-c, is there any api? suppose i want execute the code
<script type="text/javascript"
src="http://www.google.com/jsapi?key=ABQIAAAAO1slybBNbjKwDVr_bO5qxQ3Ib9Aa-xgEU0YCgCQd4sHEEyygRTJoMiR_tlaeIJegVqgl85s-kvLA"></script>
<script type="text/javascript">
google.load("maps", "6");
google.load("search", "1");
how to execute this code please help for me..
Regards,
Karthik

hi,
thanks for reply, i am somewhat understand that UIWebView used to load the webview, but i want to use the google map api Javascript for my application, how to incorporate that, also how to load a google map link,
Regards
Karthik

Similar Messages

  • How to execute javascript code in VBScript?

    I'd like to execute similar javascript code for some particular PDF files(parameters for pagenumber are quite different),such as:
    this.setPageLabels(0, [ "A", "", 3] );
    this.setPageLabels(1, [ "r", "", 1] );
    this.setPageLabels(16, [ "D", "", 1] );
    How to write the code in VBScript?
    Thanks in advance!
    P.S. I try to add code but end up with error messages
    =================================================================
    path = "E:\test.pdf"
    '//Write the first and last pagenumbers and label to a txt.
    set oWs = CreateObject ("Wscript.Shell")
    set fs = CreateObject("Scripting.FileSystemObject")
    oWs.run "Acrobat.exe"
    While not oWs.AppActivate("Adobe Acrobat") : Wscript.Sleep 1000 : Wend
    Set objArgs = WScript.Arguments
    if objArgs.Count = 1 then path = ObjArgs(0)
    Set gApp = CreateObject("AcroExch.App")
    Set AVDoc = CreateObject("AcroExch.AVDoc")
    If (AVDoc.Open(Path,"")) Then
    Set AVDoc = gApp.GetActiveDoc()
    Set PDDoc = AVDoc.GetPDDoc()
    Set JSO = PDDoc.GetJSObject
    '// Write Bookmark JS to a variable
    Ex = " var vTOC = """"; "&vbLF _
    & " var s = """"; "&vbLF _
    & " var i=0; "&vbLF _
    & " p = i+1; "&vbLF _
    & " vTOC += ( this.getPageLabel(i) +""|""); "&vbLF _
    & " i= this.numPages-1 ; "&vbLF _
    & " p = i+1; "&vbLF _
    & " vTOC += ( this.getPageLabel(i) +""|""+p+""|""); "
    ' // Execute the JavaScript
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    AForm.Fields.ExecuteThisJavaScript EX
    ' // Write Bookmarks to CSV (PageNr;Level;Text)
    Set JSO = PDDoc.GetJSObject '//->renew JSO for some unknown reasons
    xf = jso.vToc
    Set objIE = CreateObject("InternetExplorer.Application")
    objIE.Navigate("about:blank")
    objIE.document.parentwindow.clipboardData.SetData "text", xf
    objIE.Quit
    CsvFN = left(path, InstrRev(path, ".")-1) &"_page.txt"
    set FL = fs.OpenTextFile(CsvFN, 2, true) '//-> 2=ForWriting
    xWr = split(xf,"|")
    for x=0 to UBound(xWr)
    FL.WriteLine xWr(x)
    next
    FL.Close
    Else
    MsgBox "Failed to Open: " & Path
    End If
    Set JSO = Nothing
    Set PDDoc = Nothing
    Set AVDoc = Nothing
    Set AForm = Nothing
    Set gApp = Nothing

    If I remember right, I wrote this script a while back to demonstrate how java script can be direct executed and how you can get back the results. Didn't I wrote a commentary to that?
    However the parts you need:
    ' // Write JS code from help file or whatever to a VBS variable:
    JsFromHelp = " this.setPageLabels(0, [ ""A"", """", 3] ); "&vbLF _
    & " this.setPageLabels(1, [ ""r"", """", 1] ); "&vbLF _
    & " this.setPageLabels(16, [ ""D"", """", 1] ); "
    ' // Execute the JavaScript
    Set AForm = CreateObject("AFormAut.App") 'from AFormAPI
    AForm.Fields.ExecuteThisJavaScript JsFromHelp
    From the rest keep only:
    end if
    set .. = nothing
    Untested, but should work - as far as you have a little bit more then only Reader.
    HTH, Reinhard

  • How to execute javascript file on event..

    Hi... I made a template form. After filling it, when user press the button, i want to execute a javascript code which is in a .js file. What do I have to write in the code related to the button? Thanks

    Acrobat JavaScript has some unique objects, properties, and methods that are unique to Acrobat. Adobe has poset a number of documents deatiling the Acrobat's JavaScript.
    JavaScript for Acrobat: http://www.adobe.com/devnet/acrobat/javascript.html
    Acrobat Documentation: http://www.adobe.com/devnet/acrobat/?view=documentation
    The location of the application folder, depends upon the OS and Acrobat/Reader version.
    Use or a folder level JavaScript, requires the JS file to be installed on each client computer
    To impliment a counter there are a number of ways. The easiest is to use a 'global' 'subscribed' variable. See the August 2004 (issue 34) of the Acument Traing Journal, http://www.acumentraining.com/acumenjournal.html, for information about how to do this.
    One can also use the ADBC, Adobe DataBase Connection or a submit to a web server script page to obtain data from a file.
    If you want to read and write a file in Acrobat/Reader there are a number of restrictions.

  • How to execute javascript function then Code Behind in an ASP Button

    Hi Guys,
    I am currently working in a web application. I have a problem with calling a js function and codebehind.
    I have this asp button that when clicked, a javascript function should be called.
    My javascript function is like this:
    function Calculate(){
    // Set Route in google map
    // Store distance, lat/long in an array
    Then, after the Calculate function was executed, it should execute the code behind:
    protected void btn_calculate_onclick(object sender, EventArgs e)
    // Pull data stored in the array created by javascript
    // connect to db
    // store data
    But the javascript function doesn't execute.
    What should i do?
    Thanks in advance

    Hello,
       javascript function can not executed in server side, you can tranlate javascription fuction to c# function.
     if the reply help you mark it as your answer.
     Free
    Managed .NET
    Word Component(Create,
    Modify, Convert & Print)

  • How to execute the valuechangelistener thru javascript ?

    Hi,
    JDev 11.1.1.6
    How to execute the valuechangelistener thru javascript ?
    Regards,
    Gopi

    we need to use ClientListener and ServerListener for calling the method.
    please refer the below threads, these includes the code.
    how to call backing bean method from java script
    Calling the Managed bean class method from javascript on page load
    regards,
    Rajan

  • How to execute a exe file using javascript on app window.load.

    How to execute a exe file using javascript on app window.load.

    Hi sb00349044,
    As I have already mentioned in multiple replies to your previous questions, the SUMO forums focuses on providing help to end users with usage-questions and issues.
    For developer-related questions, please refer to one of the many resources readily available that I have linked to in the past:
    * [https://developer.mozilla.org/en-US/Firefox_OS MDN]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow]
    * [https://lists.mozilla.org/listinfo Mozilla Mailing Lists]
    - Ralph

  • How to execute workflow through javascript in CRM 2013

    Hi,
    I have created a business process and I want to execute workflow on custom button through javascript. I tried this script but this script does not run after message box show. Please tell me how to execute my workflow through javascript
    function RunWorkflow() {
        var _return = window.confirm('Are you want to execute workflow.');
        if (_return) {
            var url = Xrm.Page.context.getServerUrl();
            var entityId = Xrm.Page.data.entity.getId();
            var workflowId = '541B45C9-3F88-4448-9690-2D4A365C3172';
            var OrgServicePath = "/XRMServices/2011/Organization.svc/web";
            url = url + OrgServicePath;
            var request;
            request = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
                          "<s:Body>" +
                            "<Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">"
    +
                              "<request i:type=\"b:ExecuteWorkflowRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"
    xmlns:b=\"http://schemas.microsoft.com/crm/2011/Contracts\">" +
                                "<a:Parameters xmlns:c=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\">"
    +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>EntityId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + entityId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>WorkflowId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + workflowId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                "</a:Parameters>" +
                                "<a:RequestId i:nil=\"true\" />" +
                                "<a:RequestName>ExecuteWorkflow</a:RequestName>" +
                              "</request>" +
                            "</Execute>" +
                          "</s:Body>" +
                        "</s:Envelope>";
            var req = new XMLHttpRequest();
            req.open("POST", url, true)
            // Responses will return XML. It isn't possible to return JSON.
            req.setRequestHeader("Accept", "application/xml, text/xml, */*");
            req.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            req.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute");
            req.onreadystatechange = function () { assignResponse(req); };
            req.send(request);
    function assignResponse(req) {
        if (req.readyState == 4) {
            if (req.status == 200) {
                alert('successfully executed the workflow');

    Hi,
    I used this script for execute the workflow but its not working. When I used alert(req.status); then 500 show. Please tell me what did I mistake in my script.
    function RunWorkflow() {
        var _return = window.confirm('Are you want to execute workflow.');
        if (_return) {
            var url = Xrm.Page.context.getClientUrl();
            var entityId = Xrm.Page.data.entity.getId();
            var workflowId = '541B45C9-3F88-4448-9690-2D4A365C3172';
            var OrgServicePath = "/XRMServices/2011/Organization.svc/web";
            url = url + OrgServicePath;
            var request;
            request = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">" +
                          "<s:Body>" +
                            "<Execute xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">"
    +
                              "<request i:type=\"b:ExecuteWorkflowRequest\" xmlns:a=\"http://schemas.microsoft.com/xrm/2011/Contracts\"
    xmlns:b=\"http://schemas.microsoft.com/crm/2011/Contracts\">" +
                                "<a:Parameters xmlns:c=\"http://schemas.datacontract.org/2004/07/System.Collections.Generic\">"
    +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>EntityId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + entityId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                  "<a:KeyValuePairOfstringanyType>" +
                                    "<c:key>WorkflowId</c:key>" +
                                    "<c:value i:type=\"d:guid\" xmlns:d=\"http://schemas.microsoft.com/2003/10/Serialization/\">"
    + workflowId + "</c:value>" +
                                  "</a:KeyValuePairOfstringanyType>" +
                                "</a:Parameters>" +
                                "<a:RequestId i:nil=\"true\" />" +
                                "<a:RequestName>ExecuteWorkflow</a:RequestName>" +
                              "</request>" +
                            "</Execute>" +
                          "</s:Body>" +
                        "</s:Envelope>";
            var req = new XMLHttpRequest();
            req.open("POST", url, true)
            // Responses will return XML. It isn't possible to return JSON.
            req.setRequestHeader("Accept", "application/xml, text/xml, */*");
            req.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
            req.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Execute");
            req.onreadystatechange = function () { assignResponse(req); };
            req.send(request);
    function assignResponse(req) {
        if (req.readyState == 4) {
    alert(req.status);
            if (req.status == 200) {
                alert('successfully executed the workflow');

  • How to invoke JavaScript for Premiere Pro CC?

    Hi,
    I am new to Adobe CC products/scripting and I'm trying to control Adobe Premiere Pro CC from another desktop application. Using ExtendScript Toolkit, from its UI, I can invoke JavaScript commands or files.
    But I can't find any way for my desktop application to invoke JavaScript commands. I can't seem to find any command line tool for it (no documentation either and JavaScript doesn't seem to be officially supported). Any help regarding this would be greatly appreciated.
    I tried using the Socket object on a .jsx file to act as a server (to listen for commands from my desktop application) and placing it on the common startup script folder. But the start up script blocks the UI of the Premiere Pro application entirely (even if I use "$.sleep(milliseconds)" function in between  the "poll" function for acquiring a connection). This wouldn't work for my application as I can't block the UI.
    For After After Effects CC, I can use the "afterfx.exe" on Windows and AppleScript with "DoScript" command on Mac, to execute JavaScript expressions or files. But this doesn't seem to work with Premiere Pro or any Adobe CC products. For Photoshop, I can just open any .jsx file with Photoshop (for e.g. "Open With") and it runs the .jsx file. But this technique doesn't work with all the other Adobe CC products (even the ones which support JavaScript officially).
    According to Adobe Premiere Pro developer centre, there is no mention of any JavaScript support. But since the functionality does seem to be there (as discovered through ExtendScript Toolkit), I am hoping I can get away just by using JavaScript commands to control Premiere, as opposed to using the native SDK for Plugins. However, I really hope Adobe Premiere Pro folks are seeing this and they officially support JavaScript soon .
    Thanks for your help.

    Hi all,
    Any help? Seems that the general Adobe Premiere forum is a lot more active in terms of responses. That is why I originally kept in the general forum at first.
    Due to the lack of documentation, I ended up spending even more time just to figure out how to invoke Premiere Pro with a JavaScript file, from the command line. But no luck still . Any advice would be greatly appreciated.
    Thanks.

  • Using "Execute Javascript" to mark a course as Complete. 

    I am using a 3rd party Flash-based player (Flashform) to
    bundle Captivate and Flash made SWF files into a SCORM 1.2 package.
    My final SWF is a Captivate assessment, which, if passed, should
    change the course lesson status to “completed”. Can I
    accomplish this by using “Execute Javascript” on a
    button and run something like:
    “FSCommand("LMSSetValue","cmi.core.lesson_status,completed");”
    Any advice is greatly appreciated.
    Jon

    If you were using only the Captivate-published files for
    SCORM, it would likely be fairly straightforward to do what you're
    looking for.
    Unfortunately, since you're using a 3rd-party player, you'll
    have to consult the documentation for the player to determine which
    capabilities it exposes and how you can access those capabilities.

  • Execute javascript after update and submit in Skillbuilders Modal Page

    Hi,
    I'm editing, say, list of my employees in a tabular form opened in Skillbuilders Modal Page.
    I have to execute same javascript code after the changes in the tabular form have been submitted.
    I've tried using a Dynamic Action fired on Page Load, but that gets executed before the update is completed.
    Does anyone have an idea how to accomplish this?
    Thank you!

    Thank you for your answers.
    Yes, I'm trying to execute javascript code on the child page, the modal one.
    Basically, there's a button on my parent page which opens the modal page. The modal page has buttons Cancel, Delete and Save. Clicking Save button submits the changes and if there are errors, errors are shown and we stay on the modal page.
    My modal pages are all of fixed dimensions and if there are errors, I have to adjust the other regions (adjust their height, add a scrollbar, etc) in order to show everything in the modal page.
    I have written a function that does exactly that, but I have to execute the function after the page is loaded and the regions are shown. But, if I execute it using onload attribute, or setting a dynamic action which fires on page load, the function gets executed during the submit, before the regions are shown.
    I hope I have managed to clear up the problem.
    As always, thank you.

  • Issues with Executing Javascript command in Captivate

    Hi,
    I am having issues with executing javascript for a button in adobe captivate 5.  Let me explain what I am trying to do.  I am working on a WBT that has three skill checks throught the course. These skill checks are not graded or tracked for completion.  I currently have an image button that has the command "Open another project" The first image button is pointed to SkillCheck1 and I have the html file and swf file in the published root folder.  This currently works fine.
    However I want to use javascript to open a new window 800X600 with not toolbars at the top.  I got this part working with the code below:
    window.open('http://www.adobe.com','mywin',
    'left=40,top=40,width=800,height=600,toolbar=1,resizable=0');
    My only problem is, once the popup opens, my WBT goes to a page that says [object] and thats it.  I am uploading two images to show what I have.  Can someone help resolve my issue of the WBT going to

    Ok so I took this link and viewed over it.  I am new to Javascript and know very little about it.  Therefore this script kind of makes no sense to me.
    <script language="JavaScript"><!--
    var windowHandle = '';
    function myOpen(url,name,attributes) {
        windowHandle = window.open(url,name,attributes);
    //--></script>
    <a href="javascript:myOpen('page.htm','windowName','height=100,width=100')">text link</a>
    I chose the option to exectute javascript.  Does captivate need all of this including <script language=JavaScript">  Here is how I edited the script.  Should I make any changes to what is in bold?
    var windowHandle = ''; 
    function myOpen(url,name,attributes) {
        windowHandle = window.open(url,name,attributes);
    <a href="javascript:myOpen('http://www.adobe.com','Adobe Website','height=600,width=800')">text link</a>

  • Execute Javascript after *.jspx page rendered

    I have a page with controls and a subform with a servlet, rendering a jasper report:
                   <af:panelFormLayout id="pfl1" partialTriggers="cbReportHTML">
                    <af:subform id="sfRep">
                      <jsp:include page="/jasperservlet" flush="true"/>
                    </af:subform>
                  </af:panelFormLayout>
    I want the page to be rendered before the subform (so that user can see controls on page before the report).
    "/jasperservlet" generates the report in about half a minute.
    I want to have a JavaScript that runs after the page is rendered (and the user sees the controls) and then it starts to generate report.
    I tried to put a frame with such javascript, but the javascript is executed before user can see controls.
    How can it be done?

    Thank you for your answers.
    Yes, I'm trying to execute javascript code on the child page, the modal one.
    Basically, there's a button on my parent page which opens the modal page. The modal page has buttons Cancel, Delete and Save. Clicking Save button submits the changes and if there are errors, errors are shown and we stay on the modal page.
    My modal pages are all of fixed dimensions and if there are errors, I have to adjust the other regions (adjust their height, add a scrollbar, etc) in order to show everything in the modal page.
    I have written a function that does exactly that, but I have to execute the function after the page is loaded and the regions are shown. But, if I execute it using onload attribute, or setting a dynamic action which fires on page load, the function gets executed during the submit, before the regions are shown.
    I hope I have managed to clear up the problem.
    As always, thank you.

  • Execute Javascript, window.print(), prints blank page in Captivate 7

    Hello,
    I'm fairly new to Captivate, and am no Javascript expert.  I've been trying to figure out how to print the last slide in project, which has a custom certificate.  I initially tried the print widget that comes with Captivate 7, but the scaling is off when printed.  There are no options to change the scale of the printed slide on the widget properties, so that seemed to be a bust.  I then tried to create a button to execute javascript when clicked.  In the script window I put, window.print(); now this works to bring up the print box, but only prints a blank page.  I'm not sure if it's something I'm doing wrong with javascript.  I've been reading other forum posts, and this function seems to work for others using different versions of Captivate.
    I know there is a cool print widget that someone has made, but I'd actually prefer to just do this with javascript.  I haven't tried the buyable print widget yet, but I am trying not to use widgets so that the html can be scalable. 
    I'm publishing my projects and uploading them to GoogleDrive, where I then preview the html output.
    I'd appreciate any help.  Thanks!
    Kailey

    Wow, thank you for such a speedy response Rick.  I've actually been using Firefox and Google Chrome, because IE isn't updated enough to work with Google Drive properly (and I don't want to go through the whole process to get privileges to update on work computer).  But I did check this box in Firefox.  Instead of printing the objects on my slide, it printed a big square light grey background.  It's almost like the the browser can't see the project.
    I would think this was a browser problem, but I had previously downloaded a trial of Articulate (trying to decide between the two), which has the same execute javascript function as Captivate.  Putting in window.print();, publishing, and uploading to Google Drive, printed just fine.  Not sure if something in the code in Captivate isn't coming through, but is in Articulate.  I'm not versed in html or javascript enough to compare the two html files. 
    Back to the drawing board!  Thanks for your help.
    Kailey

  • Executing Javascript with button

    How can I go about executing javascript with an item level button?
    In the HTML DB 2 day tutorial it says this:
    Calling a JavaScript from a button is a great way to confirm a request. Oracle HTML
    DB actually uses this technique for the delete operation of most objects. For example,
    when you delete a button, a JavaScript Alert Box appears asking you to confirm your
    request. Consider the following example:
    <script language="JavaScript1.1" type="text/javascript">
    function deleteConfirm(msg)
    var confDel = msg;
    if(confDel ==null)
    confDel= confirm("Would you like to perform this delete action?");
    else
    confDel= confirm(msg);
    if (confDel== true)
    doSubmit('Delete');
    </script>
    This example creates a function to confirm a delete action and then calls that function
    from a button. Note that the function optionally submits the page and sets the value of
    the internal variable :REQUEST to "Delete," thus performing the delete using a process
    that conditionally executes based on the value of request.
    Note that when you create the button you would need to select the Action Redirect to
    URL without submitting page . Then, you would specify a URL target such as the
    following:
    javascript:confirmDelete('Would you like to perform this delete action?');
    Can I only do this from a region button?

    hi,
    I have created a javascript form validation and finally (if its passes the validation) I am setting the :REQUEST as doSubmit('GO');
    I am calling a conditional process with condition as request = expression1
    with expression 1 as GO.
    The javascript is as follows
    function message_name_not_null(){
    if(document.getElementById('P14_MESSAGE_NAME').value.length==0)
    alert("Message Name is Mandatory!!");
    return;
    else if(document.getElementById('P14_MESSAGE_TEXT').value.length==0)
    alert("Message Text is Mandatory!!");
    return;
    else
    doSubmit('GO');
    My problem is my process is not getting called in button click(I have called the javascript from this button as javascript:message_name_not_null(); in Optional URL Redirect section)
    I have specified the :REQUEST value in the branches also.
    Any sort of help please..
    Thanks in Advance
    Kaushik

  • How to execute a java code ...

    how to execute a java code just like in javascript:
    for example in javascript: we can create a function :
    name_fonction=new Function("param1","param2",..., "Instructions");
    but can it be supported in the common java code? how to do it?
    Je suis a little urgent...
    Thanks a lot!!!

    See beanshell
    http://www.beanshell.org/
    which should be include in the next J2SE 6.0 or 7.0.
    See JSR 274 at http://jcp.org/en/jsr/detail?id=274
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • My mail client crashes. I cannot open my mail.

    My mail will not open. It crashes every time. I have tried restoring my ipad from itunes. It still does it. I cannot get to my email.

  • Leopard in the very latest 21 inch iMac

    Hi all, can I use Snow Leopard in the very latest 21 inch iMac - I have some old imaging apps that I cannot replce Message was edited by: gete

  • How do I turn off the blue stand by screen

    I like to leave the TV on for my dogs while I'm at work during the day or when I go out of town. When I get home, all the TVs are silent and showing a blue ATT screen. I could turn the screen saver off when I had DishTV. Can someone tell me how to tu

  • Google app can't play all the audio and video on this page, any suggestions?

    New Lenovo Yoga laptop with W8.1. I have downloaded the google app, and when I search for something and the go to open a video, the flash player doesn't work and I get a message across the top of the window saying "google app can't play all the audio

  • Used Quad G5 Issues

    Hi everybody. I am looking at picking up a used Quad core G5 which will be used for video editing. Are there any known issues that I need to keep a look out for? Thanks in advance for any help. Brian