Calling VBSCript Function From Client Side Javscript.
i have the VBScript functions that deals with SQL server 2000.
i have some event handler in the client side Java script. I want to call the VBScript
function from this javascript ( on demand). How can i do that? Is it possible??
if this is not possible then any alternative ideas that can execute the VBscript functions on demand from client.
View Replies
ADVERTISEMENT
is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?
View Replies
View Related
How do I go about calling a server-side vbscript within a client-side
javascript function? What I have is a page heavy on the javascript that has
a number of functions, one of which is to begin a visual countdown with an
onclick and also open an asp page containing the server-side vbscript, which
initiates a wake-on-lan call. I had no idea how to call the vbscript within
the javascript function, so this is why I opted for the vbscript asp page
"pop-up" via window.open. Code:
View Replies
View Related
I'm having an issue using a VBScript (client side) and ASP together.
Basically I have this piece of testing code (sampled from my site) where the "Order Total" is obtained from the server. In my code I just declare an "Order Total" server side variable and set it myself. Code:
View Replies
View Related
I am struggling to call a vbscript fn from my form (in asp page)
My code looks like below:
<input name="b1" type="button" value="Update Status" onClick="test()"/>
<%
Function test()
msgbox "hello! how are U?"
End Function
%>
Any tips on how I can make this work?
View Replies
View Related
What is the syntax for calling a VBScript function from a hyperlink ?
View Replies
View Related
Can I get away with: PHP Code:
<a href="#" onClick="MM_openBrWindow('doc-info.asp?id=<%=listDoc("docID")%>','docInfo','menubar=yes,width=400,height=200')">
<img src="/cms/images/info.gif" width="17" height="16" border="0">
</a>
for example? I can't test it as at home and server, DB etc are all at work. If I can't insert the <%=listDoc("docID")%> part like I have done, how would you suggest I do so?
View Replies
View Related
i have a problem statement like this:
<%
sub test()
---------
end sub
%>
<script language = "javascript">
function test1()
{
------------
<%test()%> // fine and works well if there is no response.write() in test() as i know.
}
</script>
now the problem is that how can i call test1 within scriplets or within test().
View Replies
View Related
I would like to call a javascript function using vbscript. Is this possible at all? If so, what should the code be?
View Replies
View Related
It's a simple validation page and was working fine until i made some changes to the next page.
A regular form that calls a javascript function, but suddenly i javascript function does not execute anymore. i tried calling other functions but none of them works, but when i treid onSubmit("javascript:alert('some text')") it works fine.
I tried debugging it in dreamweaver and i get an regular expression missing error number 1005 on the last line of the javascript.. that is ....
View Replies
View Related
Following is a vbscript code extract triggered by a combobox OnChange event. arrVendorA and arrdefpack are server side arrays and i need the intCounter parameter to be the array index. Code:
<script>
sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(intCounter)%>" then
if "<%=arrdefpack(intCounter)%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(intCounter)%>")
end if
end if
end sub
</script>
View Replies
View Related
The following code is giving me a type mismatch error at the 'if' statements... any ideas, anyone ?
sub getstdPackByVendor(strPartNo, intCounter)
dim selVendor
selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(" & intCounter & ")%>" then
if "<%=arrdefpack(" & intCounter & ")%>" = 2 then
colTD("txtStdPack" & intcounter+1 ).innertext =
cstr("<%=arrVAStdPAckL2(" & intCounter & ")%>")
end if
end if
end sub
View Replies
View Related
I check to see if a certain submission button is asking for removal. If the removal is true, I update a recordset's delete column. This has been tested and it works. However, now I'd like to prompt the user to make sure that he/she wants to remove the record. Here's the code: ....
View Replies
View Related
I have a Client Side Java Script which is supposed to re-load the options on my serverside ASP form.
I have been trying to get the syntax right to assign the Select box on the ASP form to a variable in my JavaScript so I can update the options. Can anyone either tell me if this is not possible or what the syntax should be. Here is some information.
Form Name = AddProdForm
Select Box name = subprodline
JavaScript Variable = form1
Here is one of the many versions of this line I have tried.
var form1=document.forms(""AddProdform"");
View Replies
View Related
I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP.
I have a no of links to be displayed on the page and on click of link, RDP for that IP should be called. Currently i m using one button to invoke RDP. Code:
View Replies
View Related
I am starting to build quite a few pages that will have
tables of data from an SQL database.
I have been building the table rows on the server side
in VBScript, but I have been thinking about having the
VBScript code just build array variables in the <head>
section (or as local variables), and then have JavaScript
functions on the client side actually populate the tables
when the page loads.
I do plan to do other things like being able to sort the
tables in JavaScript code on the client, limit the tables
height and be able to scroll the rows, and click on a row
in the table, and have the values populate a form. I will
also need to be able to export/download/? some tables into
Excel.
View Replies
View Related
I am doing login page . (login.asp)As usual it has username , password textbox and a login button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)
View Replies
View Related
im trying to use the following code to log whenever a user clicks through
this particlular message box - however, this currently logs regardless of
whether or not the message box was clicked - im assuming this is because the
server-side code can't see the client side if condition. but how can i set
the varMsgBox variable as a server-side variable? Code:
View Replies
View Related
I have a sub routine called when I click on a button. It is inside VBScript tags (client side). Can I do server-side scripting inside that?
<script language="vbscript">
sub cmdButton_Click
code
'can I do this
<% strValid = "Update" %>
End Sub
</script>
Would be nice but don't think it works. Anyone know for sure?
View Replies
View Related
This has happened before and it was due the connection string not being set
in VB. My question is, when I try to reconnect can I use a different
connection string on the client than I have on the server, I wonder because
not all my connection strings are not equal.
Some of my database paths are in Access and the rest are in SQL. That means I have to retry several times before a scrip timeout occurs. If you have read this far then you are an idiot, but the rest of the database seems to work just fine. In fact I can
pull all fields out with no problem. It is just that connection string that
has resulted in causing my pages not to post.
View Replies
View Related
I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea.i use the following method in vb.net code behind file
dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()")
and see that when i change the option in the list the javascript method aa not fired.
View Replies
View Related
I'd like to have two radio buttons, and the first one will be selected by default when the page loads. When it is selected, the two checkboxes below the second radio button should be invisible.
The only way to see the two checkboxes is when the second radio button is selected. If you select it and then go back to the first radio button, those checkboxes should disappear again.what should i do?
View Replies
View Related
We want to create an Intranet page for our customers. which provides a variety of information. But we also want to be able to allow users to access applications on that PC by clicking a link on the page (ex. link: WRITE A LETTER - opens MS Word). All PC's are imaged the same way so the applications are always in the same location.
I'm sure this is a violation of MS security inherent in IE, IIS, or in Windows XP alone. Can someone offer an advice - as to (1) is this possible using an Intranet page; or (2) is there a development environment that it would be possible in?
View Replies
View Related
I have a need to transfer a graphic file to a user's system and then
access that file. I must have the drive letter:path location of the
file. If at all possible I'd prefer that this not require user input.
(Note that since this is my app and in a corporate network, I have the
server in the Trusted Sites zone and every single action is marked
"Enabled" in the IE security settings and users will be using IE
exclusively.)
It doesn't matter to me how the file gets to the
client, save that it get there from IE, and the file is initially
retrieved via a url I give the client. I have even looked into
reading the file out of the IE temporary files but have had no luck.
View Replies
View Related
I have functions with which i can validate a URL from serverside. But, i need to valide the URL at the Client side (ASP- Javascript) itself. Is there any way to validate a given URL from the Client side.
View Replies
View Related
What's the easiest way to load a client-side XML file (or say something located on an external host)?
My ASP script will (hopefully) read the information between the XML tags and put those into the entry fields of an HTML form. The only method I've seen involves the Server.MapPath, however in my case those XML files will obviously not be located on the server. Code:
View Replies
View Related
I am now working in a project where my client registers inmy site. after registering and the confirmation of the demand draft i will be sending him a link to the download of the product. till now the work is OK. but if in any case my client is not able to complete the downloading and if he wants to resume it in a later time, it is not possible.
bcas i am deleting his link immediately after request to download ( to avoid him fron forwarding the link to some one else). if i didnt delete his record some one else can also dwnload the same product from me.
View Replies
View Related
Is their a client side VBscript command that I can use to post the local IP
address of the machine back to my web server.
I want to obtain the client's side IP address of their machine. However
because my IIS stands behind a firewall and uses reverse hosting techniques,
the http headers contains the firewall's IP instead of the client's.
View Replies
View Related
I installed the Microsoft Script Debugger 1.0.7295 and am trying to debug client side javascript. I m not able to set break points on the page; that option is disabled no matter how I open up the script debugger.I have tried opening the page in the following ways:
1) with the "debugger;" in the client-side java script
2) through IE menu
3) planting a javascript error in the client-side code, so the process
must stop and ask "Do you want to debug...?
View Replies
View Related
This code will return the client's current time. But how to refresh the time automatically?
<SCRIPT LANGUAGE=VBSCRIPT>
Document.Write Time
</SCRIPT>
What if I want to refresh the server's current time? Is this client side's job or server side's job?
View Replies
View Related
I ened to get the user's windowsNT logon name. When the ASP is on my computer I can easily get it because I am logged in to what is the server. When the page is on another machine I cannot retrieve the login because the script is running on the server and not the client. What code do I use to make a script run client side instead of server side?
The code I need to run client side is:
sFullUser = trim(Request.ServerVariables ("LOGON_USER"))
If there is another way to get the user's login from windows that will work just fine too.
View Replies
View Related
I have an ActiveX component that identifies all Webcams connected to a computer and
pics one. Then it transfers video data. If I have both the client and Server running on same machine it works fine.
I want the client to be able to download the dll/ActiveX Component automatically and then the transfer should start The plan is to create a Web based Chat program.
View Replies
View Related
I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea. i use the following method in vb.net code behind file
dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()")
and see that when i change the option in the list the javascript method aa not fired.
can any one help me?
View Replies
View Related