Is There An Analog Of 'ceil' Function In VBScript?

Math.ceil(number) is from JavaScript. Is there a VBScript analog?

View Replies


ADVERTISEMENT

Analog Of .NET Request

For example if I have
http://server/myvirtualpath/someotherpath/page.asp

and virtual path on the IIS is http://server/myvirtualpath

How can I retrieve above mentioned asp application path. I need the same functionality that has ASP.NET (Request.ApplicationPath)

View Replies View Related

VBScript Function

I need the VBScript equivalent of the Math.ceil(x) function?

View Replies View Related

Calling Vbscript Function


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

Calling A Vbscript Function

What is the syntax for calling a VBScript function from a hyperlink ?

View Replies View Related

Calling Javascript Function In Vbscript!

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

Open Window Function (vbscript)

how to modify a function like this to specify the new window size? I'm able to specify window dimensions easily using window.open in javascript, but am at a loss for how to do it using this vbscript method. The 'strtext' are ASP recordset values. The page the opens in a new window is a map service.

<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function mapLink(strtext)
on error resume next
mapLink = "<a href=""http://planning/ims/tpViewer/?Query=SDE_ADMIN.TP_AREA.TIMEPOIN_1%20%3D%20%27" & strtext & "%27&MapUnits=FEET&ActiveLayer=0&QueryZoom=Yes&Tools=Yes"" target=""_blank"">Map</a>"
End function
</SCRIPT>

View Replies View Related

Call Submit Function In VBSCRIPT

I'm trying to call multiple asp page just simply by clicking a button But could i do this method? or how could i pass the value from this page to another asp page.

It should be something like this:

<SCRIPT LANGUAGE='VBSCRIPT'>
<!--
function btnClick_onClick
document.form.action = "myform.asp?ID=" & document.form.txtfield.value
document.form.submit
End Function
-->
</SCRIPT> ...

View Replies View Related

Calling Javascript Function Using Vbscript

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

Display VBScript Function As Text Field

I have a VBScript function:

<script language="VBScript" type="text/vbscript">
Function Main()
set wshshell = createobject("wscript.shell")
struser = wshShell.ExpandEnvironmentStrings("%USERNAME%")
strdomain = wshShell.ExpandEnvironmentStrings("%USERDOMAIN%")
msgbox struser & strdomain
End Function
</script>

That works great as a Active X script but I want this to display as a value in a text field and I can't find how o do that.

View Replies View Related

Calling A Javascript Function From Vbscript Form

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

Returning Multiple Values From VBScript Function

I am using both VBScript and JavaScript functions in the same ASP file. All I need to do is to retrieve some values which are calculated in the VBScript function, to JavaScript. The call to the VBScript function is made through a JavaScript function. Code:

View Replies View Related

VBScript Function Returning Multiple Values

Is there a way to return multiple values from a function without using an
array? Would a dictionary object work better? Code:

View Replies View Related

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 View Related

Using Vbscript "SPLIT" Function On Multi-select Field

I am trying to split a mgrgroup field to extract the MD codes. It correctly grabs the MD codes if all records in a mass update are updated, but if only one record in the loop is updated then it puts the last 5 digits of the mgr name in the MD field.

THIS IS THE CODE: ....

View Replies View Related

Using Vbscript "SPLIT" Function On Multi-select Field

I am using the following code to split/join values in a multi-select field. It is combining all the values in All the records into one long string in each record in recordset.

Example: I have a recordset with 2 records. The 1st contains the split/joined values: Alan Smir, Jeff Karl The 2nd contains the value: Keith Robb

When it updates database, it will put Alan Smir, Jeff Karl, Keith Robb into each record in the recordset. Instead it should be putting Alan Smir, Jeff Karl into the 1st record
and Keith Robb into the 2nd record in the recordset.

Does anyone see what is wrong with the code ....

View Replies View Related

Difference Between Private Function And Public Function?

What's the difference between private and public functions in ASP? When should I use either?

View Replies View Related

How Can I Add Mail Function To That Post Function

I am using a simple guestbook /portal and i want script to send mail to the thread owner when someone reply his message.

this is the send message code ....

View Replies View Related

Function Inside A Function

Can I define a function inside a function. e.g;

function abc()
function xyz()
....some code.....
End Function
End Function

I googled this but can't find any related topic.

View Replies View Related

Function In The InStr Function

I want to use the instr function, but return results from it depending on surtain functions, I can't realy explain so I'll show my example:

I have a string in wich some word I want to find might be in diffrent Capital Letters order, I want the Instr function to return all the values of the place of that word (avcourse I'll run a for and increase the starting point of the Instr func until it returns 0). The instinct thought is to use the Lcase or the Ucase functions, but in this case I don't know how to use them. In the same Idea I wanted to use the Instr Func with the trim Func, But Its realy the same principle if I just understood how to do so.

View Replies View Related

How To Use SSL With Asp/vbscript

the isp i'm
using has authorized ssl on my site but i dont know how to tell a
particular page that it can only be run as a secure page... Where at the
moment u can view the page as https or http.

I'm assuming i need some code to detect whether its being run as a https
and if not redirect it to https.

View Replies View Related

VBScript To ASP

I have an ASP page, on the Window_OnLoad event I use VbScript to popup an Inputbox to accept a value from the user and put it into a string called strValue. I then want to be able to go (in asp)

<%Response.Write(strValue)%[color=blue]
> - but if I do that nothing happens.[/color]

How can I access the Vbscript variable in the ASP part of the page?

View Replies View Related

Using VBscript In Asp.net?

I tried using some code examples from (URL address blocked: See forum rules) into my defualt.aspx page (in VS2005). I had some errors with this. I thought this might be cause the tutorial at w3schools.com said it was for *.asp files.

For example I had an error ("Statement cannot appear within a method body. End of method assumed) when I tried putting a SUB in the <head>. Like this

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked: See forum rules)">

<html xmlns="(URL address blocked: See forum rules)" >
<head runat="server">

<%
sub vbproc(num1,num2)
response.write(num1*num2)
end sub
%>

<title>Untitled Page</title>
</head>


By the way if anybody will be available to answer basic questions like this every so often throughout the day (ie: check your email or this forum every couple of hours, until midnight California time December 8), I'd be willing to pay a reasonable amount. I just need help with some of the technical details like this + finding source code

View Replies View Related

VBScript And VS.NET

I manipulate MSAgent AcitiveX object using VBScript at client side, I
met a wierd problem when I debugged my ASPX page. when msagent recognize
a phrase and fire event, my vbscript capture the event and do something,
including make the agent do some animation and speech, then open a
browser window using 'window.open "www.google.com", "Google" '. the code
works fine when I view the ASPX page with browser inside VS.NET, when
browse this page in web browser from the localhost, the agent works
fine, but the new window did open up. why?

View Replies View Related

VBScript

I have COM+ component installed on my XP. I have problem to create
instance of it inside vbscript. How can I do it? The error I get is :
ActiveX component can't create object.

View Replies View Related

Vbscript

I use vbscript in an asp file.
How can i take the last string in a variable.
For example:

abc="hello123"
newabc=???(abc)

and i only want the last string, that is "3".
means, if I do...

Response.Write newabc

The output will be : 3

View Replies View Related

ASP VBscript

I'm trying to create a simple recordset, and would like to include an and/or option. to do this i set up an option on the previous page,and then sent the selection through to the next page. i was then hoping to simply insert the variable i had created into the code so that whichever of and/or is selected is used in the code. i.e.

where and_or is the variable from the previous page.

Search.Source = "SELECT * FROM dbo.Employee_List where First_Name='"&firstname&"' '"and_or"' Last_Name='" &lastname&"'"

so basically whenever someoned chooses an option its automatically filled in at the indicated location in the code. is it possible to do this and if so what is the correct syntax for using variables within this code?the full search function will have numerous fields so i'd like to avoid using if statements.

View Replies View Related

VBSCRIPT

I'am running window server 2000 and MS frontpage on my
computer. I created ASP page with the frontpage editor.
The asp code are not running when I am trying to view the
page with my browser (Explorer 5.0). Could you please help
me

View Replies View Related

Using Vbscript

Trying to figure out how to do this (querying an access db using vbscript):

select * from comments where " & search & " = " & criteria & "

where " & criteria & " can be both a text and integer value.The above would work for " & search & " = 66 but not " & search & " = smith ?

View Replies View Related

VBScript From

I have an ASP.NET solution,and the ASPX page I have a form ,I want to copy some of the data from that form to the clipboard,I am using the below script the script works fine when I use a normal anchor tag with the onclick event,but I want to be able to use an actual asp control like the hylperlink or linkbutton.

I have tried the link button but it gives an error saying Compiler Error Message: BC30456: 'VBScript' is not a member of 'ASP.sr_aspx'.

And the hyperlink control doesn't seem to have an option for the onclick. The code is located in the .aspx not in the .vb.

View Replies View Related

C# And VBScript

I have absolutely NO knowledge about ASP. Though I've been working with PHP for almost 2 years and decided that I need to take the next step and learn some more languages both to keep me busy and to expand my skills.

Like I said...I have no knowledge or experience with this. From what I read, there are two ways of coding ASP. First using VBScript and then C#. I'm really confused, because for one, I don't know what the difference is, and secondly I'm ot sure which is the best.

I'll be primarily (if not only) be using ASP to build online applications, websites, etc.

View Replies View Related

Vbscript

a dictionary of terms with definitions, (in a database) how can i hyperlink(automatically) words within the definitions for which a definition also exists.

url structure is like this

www.site.com/glossary?word=someword

Then - in the definition of "someword" there is a word that also has a definition in the database. I'd like to auto hyperlink it to that definition. Also since the data is all coming from a database, what if one of the words to be replaced has not yet come up in the loop? (...or would it be okay since EVERYTHING should be in the recordset?

View Replies View Related

Vbscript

usually do perl and php. However, I would like to backup my databases with a microsoft sql server and sometimes a simple access database. In other words I would have a perl or php script that would insert data into a mysql database and at the same time post to a vbscript that will deal with the microsoft sql server or access database. I choose not to use perl or php to do the latter because I would like to keep every aspect according to its environment.

Almost every vbscript I've looked at is embedded in the html page. Since I intend to send via a post from a different type script - my question is can you place vbscript on the server as a stand alone? If this is possible - Where can I find references to this?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved