Can I open a recordset On Client Side Script?

Hi Guys,
On a form I have a client side VBscript thet checks the email
addy a user has added into a text box in a form and if its in the
array of values set in the script it gets refused. This works.....
I would like to adapt this a little if possible and make it
so that instead of hardcoding the array values into the script, I
would like to have the array values taken from a recordset because
it will allow the user to add and delete bad domains via a form and
not need to go into the page code to add to the array I have at the
moment.
I have tried serval times to replace my array loop with a
recordset while loop to get the badDomains from the field in the
database but I just get script error on page in my task bar.
Can I open a recordset from a client side script?
Id apprecaiate eny thoughts on how I can do this.
Thanks again
Tag

Hi Envision,
Its actually VBScript im in at the moment...
I have tried to get my client script to run but im still just
not getting it although I dont think im far away, mixing client
side and server side scripts to get this array loaded is still
throwing me a bit !!!!!!
I tried to follow the For loop suggested in JS but did it in
VBS and wondered if anyone could give it a look and point me to my
errors?
I dont like just posting code without being asked as its a
bit presumptious of me but Im not asking anyone to write this for
just point me to my problems hopefully.....
Here is what I have , when the page loads I used DW to make a
recordset for me to open the table with stored bad domains and this
client script is supposed to harness the recordset created server
side by DW and loop through the field and compare whats in the
forms email textbox..
[code]
Sub CheckMail()
Dim sValidationMessage
Dim sEmail
Dim sBadDomains()
Dim nIndex
dim counter
sValidationMessage = ""
sEmail = Document.Form2.email.value
nIndex = 0
counter =<%=(rsGetBadDomains_total)%>
If Not (InStr(1, sEmail, "@") > 0 And InStr(1, sEmail,
".") > 0) Then
sValidationMessage = "You have entered an invalid email
address!"
End If
If Len(sValidationMessage) = 0 Then
For nIndex = 0 to counter
sBadDomains(nIndex) =
<%=(rsGetBadDomains.Fields.Item("sBadDomains").Value)%>
If InStr(1, sEmail, sBadDomains(nIndex)) > 0 Then
sValidationMessage = "You have entered an unsuitable E-Mail
address please use your main ISP E-Mail address"
Exit For
End If
nIndex=nIndex+1
Next
End If
If Len(sValidationMessage) > 0 Then
MsgBox sValidationMessage
document.Form2.email.select
Else
document.Form2.submit()
End If
End Sub
[/code]
Thanks again for all the support so far.
Regards
Tag

Similar Messages

  • Can we access popularity trends using client side script?

    Hi, 
     I have a requirement to show the hit count for my image library's item(s). When ever I am opening an image from the image library, I just wanted to show the hit counts. For this I have created a Number column and updating this column by using CSOM
    when ever hit happens to that particular item. 
    The problem arises here, for visitors ( who has read only permission to the site) I am not able to update the column due to permission issue. Since we all know that we can't elevate the privilege from client side script. And also our design says that we
    can't give the contribute permission to all the users at the library level. How can we update the count at item level even when the visitors are opening an item from the image library? 
    Please help me... 
    Thanks in advance
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

    972454 wrote:
    can we access 11gr2 oracle using 11g r1 OWB Client? NO .. Oracle 11gR2 db is accessible only from OWB11gR2 client
    we have 11g r1 database installed on our machine, and 11g r2 OWB client on other machine.
    Please help. we are unable to connect.
    Sorry this is different from your 1st question.
    For your information OWB11gR2 client can access 11g r1 database
    Regards
    Gaurav

  • Does URL Services support client side script?

    My ASP page it built as a portlet, and displays fine but it
    won't submit. When I view the Source in my browser, Portal
    didn't include any of my client side vbscript script, then html
    is there but everything else is missing....
    Question: Does URLServices support client-side VBScript?
    I am using some vbscript for validation purposes and then
    using the document.ChangePassword.submit() to submit the
    form.
    If URLServices doesn't support it, then URLServices is totally
    useless... Everyone uses some kind of client-side script to
    validate the form!

    Hi Rea,
    Per my understanding you want to know some information about using the Visual Studio to do the debugging, right?
    Example, If you want to debug a customized extension for SQL Server Reporting Services(SSRS) in Visual Studio, you can attach the process to ReportingSerivcesService. We need to check the items "Show processes from all users" and "Show
    processes in all sessions" to show the "ReportingSerivcesService. exe" process.
    Additionally, please make sure the customized extension is invoked in the Reporting Services(make sure all configurations is set correctly), otherwise we won't be able to run into the breakpoint. More Details information in this article for your reference:Start
    a debugging session for a Store app in Visual Studio (VB, C#, C++ and XAML)
    You can also add the debugger keyword in the code, see
    Debug JavaScript and jQuery using Visual Studio in Internet Explorer browser
    Similar thread below for your reference:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-us/df9dfaab-59af-4a85-916c-ef9e11e07071/debug-custom-net-assembly-in-context-of-sql-reporting-server-2008?forum=sqlreportingservices
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Identifying Flash Player versions 10a, 10b and 10c using client side scripting

    I need to write a client side script to identify users with 10a, 10b or 10c installed, but I only see version 10 (no letters.) Is there a translation between version keys major/minor/revision, and 10a/10b/10c? I want to use the (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash"))) method in conjuction with the javascript.GetVariable("$version") method, and I need to know what values to check for.
    Thanks very much!

    For your information
    Flash10.ocx  / FlDbg10.ocx  = 10.0.2.54   Shipped with CS4
    Flash10a.ocx / FlDbg10a.ocx = 10.0.12.36
    Flash10b.ocx / FlDbg10b.ocx = 10.0.22.87
    Flash10c.ocx / FlDbg10c.ocx = 10.0.32.18
    Flash10d.ocx / FlDbg10d.ocx = 10.0.42.34

  • Open Oracle Form in client side from BPEL Process

    Hello,
    I'm new in BPEL and I'm trying to do a Process who open a Form before it finish. I do that with a Java embedding with the next code:
    try {                     
    Runtime.getRuntime().exec("rundll32.exe url.dll,FileProtocolHandler http://dl380:8890/forms/frmservlet?config=atender&otherparams=CLIENTE="+variable );
    } catch (Exception e) {                                                
    e.printStackTrace();
    But this code open a form in the server side and I need that it be open in the client side. Someone know what's can I do?
    I hope you help me in this!
    Thanks in advance!
    Alejandra

    Hi Sreedhar,
    Probably there are simpler options, but one thing you can do is to create a new function in Oracle to access the same form (Service Contracts Authoring), and include this in the Form Parameters:
    QUERY_ONLY="YES"
    That will make the function read only (in theory). Now you can call that function from the OAF Page instead of OKS_OKSAUDET.
    Hope it helps.

  • Opening an EXCEL on client side

    Hi,
    I have an "EXCEL" file on server side and I need to open or save it on client side through jsp. How can I achieve this.
    If anyone knows please give me a reply on, how to open a server side EXCEL file on client side.
    Thank you.

    Thanks for your reply.
    I tried with this also, but it is not working.The code I gave should just work. You're the first one who said that it doesn't. Probably you changed one bit too much or are doing other things wrong.
    Here is the code:
    http://forum.java.sun.com/thread.jspa?threadID=5205333&tstart=0
    That's poor coding. This won't work in all clients (the contentlength is missing), this may perform slow (no memory buffering used), this is not reuseable (filepath and filename are hardcoded), this won't work in UNIX environments (c:, what is that?), you're leaking resources by not closing the streams and finally the exception trace is suppressed (bad practice).

  • I can't open Youtube (and another web sides) in none browser, i tried camino, safari, chrome, Please help!

    I tried lot of things and i still having the problem, the page doesnt get open, just loading, and if i want to see one youtube video in other page i still cant, the video is black.
    I can saw all other videos in other format or in other site, but simply i cant open YOUTUBE! please help

    I don't have the problem, but some users have reported a conflict while using Firefox. I know you've tried a variety of browsers, but an updated Safari might offer success.  If not, the most frequent issue relates to buffering problems. Your success may vary with your connection speed.
    It bothered me when you wrote that you can't open other websites with your browser, either. Or is your problem isolated to Youtube?
    In either case, I'd be most obliged if you could post here with your results.

  • Debugging SSRS client side script

    Hi eb
    I would appriciate your recomendations for debbuging SSRS client side functionality
    especially when it is embedded in web applications like performancepoint dashboards. 
    Was any one succesfull in using IE developer tools script debbuger
    - or any other tool fot this matter?
    For example 
    I would like to put a breakpoint on the function which opens the plus sign next to row groups and step into its 
    code but dont know how to locate it inside the script that is presented to me in IE script debbuger...
    IE dev tools should be usefull on debuging specific user issues.
    Does visual studio have other usefull methods for debugging SSRS reports - I am interested especially
    in debugging SSRS functions that sometimes do not work as i expect...
    TIA!
    Rea

    Hi Rea,
    Per my understanding you want to know some information about using the Visual Studio to do the debugging, right?
    Example, If you want to debug a customized extension for SQL Server Reporting Services(SSRS) in Visual Studio, you can attach the process to ReportingSerivcesService. We need to check the items "Show processes from all users" and "Show
    processes in all sessions" to show the "ReportingSerivcesService. exe" process.
    Additionally, please make sure the customized extension is invoked in the Reporting Services(make sure all configurations is set correctly), otherwise we won't be able to run into the breakpoint. More Details information in this article for your reference:Start
    a debugging session for a Store app in Visual Studio (VB, C#, C++ and XAML)
    You can also add the debugger keyword in the code, see
    Debug JavaScript and jQuery using Visual Studio in Internet Explorer browser
    Similar thread below for your reference:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-us/df9dfaab-59af-4a85-916c-ef9e11e07071/debug-custom-net-assembly-in-context-of-sql-reporting-server-2008?forum=sqlreportingservices
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Can i open MSWord/Autocad in client browser using forms? how?!

    I'm having broplem in opening MSWord/AutoCade documents
    in client mechine through browser.Please help on this.
    In this context, MSWord/Images/AutoCade drawings stored in the
    oracle database as a BLOB column.My requirment is i want retrieve those things from the database, send to client mechine browser, allows the client to edit the application the and store it back to the database.These are all in three tier architecture.
    How can i do it?!
    Backend - Oracle 8i Database.
    Middle - Oracle iAS
    Fronend - Forms 6i
    Note:
    I tryed with OLE2, the MSWord openning in the middle tier, but not in the client browser.
    Thanks & Regards,
    Vijayakumar.S

    Hi,
    Please see the support article below:
    [https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them#w_using-a-pdf-reader-plugin Using a PDF reader plugin]
    You need to ensure that the default Action for opening PDFs is to use the Nitro plugin rather than Saving the file.
    Please let me know if that doesn't help.

  • Can i keep JSP pages on client side?

    Hi experts.
    I have a technical problem.So please let me know your suggestion
    My requirement is i need to interact two different web server in two different machine using Struts.
    For example i have two different Jboss server such as server-1 and server-2.when i click a link on server-1,the request sholud go to the
    server-2 and respose to server-1.how can i implement it by using struts frame work.
    please share your views
    Thanks
    Thamil

    I am not sure what this has to do with JSP's being on the client. (BTW, if you look at the name, Java Server Pages, the answer should be self-evident.)
    You can use a forward action to send a request to another server. Just make sure the URL you create on the fly matches the action on the receiving server.
    This link is for Struts 1.3. However, the concept certainly exists in Struts 2.x as well. [http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/action/ActionForward.html]
    - Saish

  • U0081u009AAbout dropdownListBox client side script?(Urgent)u0081u009A

        <script language = "javascript">
            function ConfirmShiftAlert(htmlbevent) {
              var Check = false;
              Check = confirm('Do you wanna change?');
              if(Check == false) {
                htmlbevent.cancelSubmit = true;
              } else {
                htmlbevent.cancelSubmit = false;
        </script>
    <htmlb:dropdownListBox id = "pa_2003-shift"
                        table = "<%= application->mv_tprog %>"
                    selection = "<%= application->mv_2003-shift %>"
                    onSelect  = "TPROG_CHANGE"
                    onClientSelect = "ConfirmShiftAlert(htmlbevent)"
                    disabled  = "<%= pa_disabled %>"
                    nameOfKeyColumn   = "key"
                    nameOfValueColumn = "value" />
    Question..
    When user changes listbox's value
    Alert window pop up and then clicks "cancel" button
    I want that the listbox has previous value.
    Because the user clicks the cancel button.....
    How can i do?

    Hai U can check out the following code for ur reference,
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="dropdowntest " >
        <htmlb:form id="form1" >
         <%
      DATA: t TYPE TIHTTPNVP, entry TYPE IHTTPNVP.
      entry-name = 'key_red'.   entry-value = ' '.   APPEND entry TO t.
      entry-name = 'key_green'. entry-value = 'Green'. APPEND entry TO t.
      entry-name = 'key_blue'.  entry-value = 'Blue'.  APPEND entry TO t.
      entry-name = 'key_black'. entry-value = 'Black'. APPEND entry TO t.
          %>
          <htmlb:dropdownListBox id                = "abc"
                                 nameOfKeyColumn   = "NAME"
                                 nameOfValueColumn = "VALUE"
                                 table             = "<%= t %>"
                                 onSelect          = "TPROG_CHANGE"
                                 onClientSelect    = "ConfirmShiftAlert(htmlbevent)"
                                 selection         = "key_green" />
          <script language = "javascript">
          var sel_var;
          sel_var = window.document.form1.abc.options.selectedIndex ;
          alert( sel_var);
          function ConfirmShiftAlert(htmlbevent) {
          var Check = false;
          Check = confirm('Do you wanna change?');
          if(Check == false) {
          window.document.form1.abc.options.selectedIndex = sel_var;
          alert( sel_var);
          htmlbevent.cancelSubmit = true;
          } else {
          htmlbevent.cancelSubmit = false;
          </script>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    regards,
    venkatesh
    Message was edited by: venkateshwarlu yelagandula

  • How to use KeyChain API from client-side HTML scripting in Safari on iPad?

    I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
    I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
    I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
    Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?

    I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
    I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
    I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
    Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?

  • Save report on client side in three tier architecture

    Hi,
    We have a 3 tier 10g R2 Application server installed on Unix.
    We want to generate and save report directly to a location on client machine.
    But when we try to do that report is saved in server and not on client machine.
    Can anyone help in this regard?
    Av.

    Hi,
    We are aware of this method, but this is causing following problems to us -
    1. Report name concurrency, we will have to change existing coding to a large extent to make sure same report when generated by different users should have seperate names so that there is no conflict.
    2. To transfer to client machine there can be access right issues, though we have not tested this aspect.
    So was thinking if there is any other way through wich we can directly save the report on client side rather than transfering file between AS and client?

  • Generating feedback messages on server-side vs client-side?

    Hello,
    I am maintening a client/server app (Swing client, no Web pages), basically an order processing system. The biggest part of it is to verify the conformity of orders to a set of business rules.
    As usual, some of the verification can be made early on the client-side, but most of the verification work is done on the server-side. My problem is, I don't find a very satisfactory way to generate the user feedback to be displayed to the user.
    If I generate them as Strings (or HTML Strings) on the server, where the rules are checked, this constrains the way these can be displayed on the client, and makes maintenance of the human-readable strings awkward and risky (e.g. localization, or restructuring the messages, like sorting them by severity vs by affected entity).
    If I generate them on the client, I need a class to vehicle the diagnosis form server to client, and this class and its usage tends to become awkward in itself.
    Concretely:
    The initial version generated human-readable strings on the server, which assumed the messages would be displayed as strings in a JOptionPane.
    Moreover, the logic evolved to distinguish between Info, Warning and Error messages, to be displayed in different colors of course, so the Strings evolved into HTML Strings, still generated on the server.
    Do you think this approach is safe?
    I'm afraid a simple maintenance of the strings (like, sorting the errors by severity vs by affected entity, filtering the strings,...) becomes a server-side development, which is a bit more risky (I would have to review code ownership policies, VCS and code-sharing policies,... to let less experienced staff maintain the darn error Strings).
    Moreover, if the client app evolve to display the errors in complex widgets (colors in a tree/table, with tooltips), the server-side generated HTML strings would be constraining : coloring or tooltipping Tree nodes would now mean parsing the String to extract the "error level" or the "affected entity", which is quite inelegant and inflexible.
    My current idea was then to use a collecting parameter to collect validation messages on the server, and traverse them on the client:
    I designed a naive ErrorList class, with methods such as addInfo(String), addWarning(String), addError(Strin), and the corresponding getErrors() and hasErrors()/hasWarnings() methods. I can then generate the Strings (or whatever widget fits better, such as a table) on the client side. Moreover, I can add the client-side messages to the bag...
    All nice and well, but the customer requested that the error messages be formatted such as "The profile <profile name in bold> does not allow you to order service <service name in italics>".
    To format that on the client, my ErrorList class should evolve so that for a given message, I know that the error is of type ("incompatibility between profile and service", that the service is X and the prodile is Y).
    That forces me to add in some API (shared by the client and server) the list of error types, and the data each error type requires.
    I can evolve my ErrorList API to break up messages into a DTO giving (type, affected entity, arg1, arg2,...), but anyway the server and client have to agree on what is arg1, etc... which is a hidden coupling.
    Do you use and recommend such an approach for server-to-client feedback: a collecting parameter in which the server puts the "errors", and that the client traverses to display the messages)? In particuler, isn't the coupling hard to maintain?
    Thansk in advance,
    J.

    Presumably you are not over-engineering in that you
    know that localization is a problem rather than that
    in all possible worlds in might be.I appreciate your delicate questioning... I definitely have read much ruder ways to say YAGNI to a poster...
    I do know that the customer will knit-pick to reword and reformat the messages. But I won't need to translate the messages to other locales. In that regard, I ackowledge my usage of the term localization is a bit liberal, but I think I should to extract the messages from the code, to be able to maintain them separately - keeping only experienced staff's hand in the server's core.
    That is actually my question 1): from experience, is it worth the trouble to separate code and human-readable text, knowing that the text WILL have to be maintained?
    Question 2 is about how to implement this.
    In particular, the built-in MessageFormat templating engine, though originally introduced for i18n, actually suits my needs (including MessageFormat-built messages) and developing or using any other templating engine would probably be an overkill.
    Given that there are two types of messages.
    1. Fixed
    2. Parameter driven.
    In both cases you need to return an id which
    identifies the message. The client has a locale
    specific resource source which has a matching id.
    From there a string is derived.
    If the error requires parameters then the string has
    formatting values in it and it s written with the
    returned parameters. See java.text.MessageFormat.Yes. In some cases I don't know yet whether parameters will be displayed. I can conservatively assume the message requires a MessageFormat, and give all parameters (in my case, use rname, profile name, command id, service name, order date,...), whether thay are displayed or not in the final message.
    Be warned you MUST deal with the possibility that a
    id does not exist in the client, if so have a default
    message that displays the id and any parameters.Good point.
    "The customer name field can not be longer than 15
    characters".
    In the above the "15" would a parameter.Yes. The trouble is, you have to document somewhere (Sun suggests in the resource bundle file), that for error id #123456, the number of characters in in the '{0}', or in the {6}. I don't feel confident with that (this is the "coupling" part in my question 2�).
    Thanks for your advices.

  • Selecting the treenode at client side

    Hi all,
    I am using JSF tree (Dynamic Tree) for my application.
    I have constructed a dynamic tree .Below which one button is there.
    Requirement is like this
    1)i have to select a node and some check image will sit on the node.
    Every time i click the node it hitting to the server.But I don't wan't it to be hitted the server every time.The selection of node should not refresh the page.Only after clicking the button it should move to next page.
    2)when i navigate back to this page the node which i have selected should be remained as selected (or checked).
    Whenever i return back to the tree page the tree is refreshing and no node is selected.
    Only single node has to be selected at a time.
    So plz suggest me how can i select the tree node client side how to make it remain selectd when we navigate back to tree page.
    regards
    Raghavendra Pattar
    Bangalore.
    India.

    Rajkumar G,
    I am not clear ... is this issue happening on only one PC and IS working on the server and other PC's?  Also ... are you getting an error or is the error you are getting this "Error We are sorry for the inconvenience at client side"?
    Eddy

Maybe you are looking for