|
Actually, I owe Andy an apology, since he was the original replyee and not yourself {:v)
Oh, it's been a funny day.
|
|
|
|
|
I agree with you, it's very hard to find any decent info in regards to using vbscript on the client side. It most definetly relates to cross-browser issues. When dealing with intranet's there is a legitimate argument to be made for using vbscript on both the client and server and not mixing languages when you're sure that everyone is using IE.
Hopefully you can see that the translation is pretty easy. I haven't found any javascript yet that couldn't be reworked into vbscript with a little bit of effort.
Good luck,
Jon
|
|
|
|
|
Thankyou, that's a very interesting discovery. I have to admit I don't intend to use VBScript client side because of the Netscape issue, but in this instance I wanted to use it to demonstrate a variety of Web programming 'languages', including both scripts, ActiveX, Java, DHTML (JS), etc.
|
|
|
|
|
Have fun!
    Sub Yar
        window.open "crap.htm"
    End Sub
Andy Gaskell, MCSD
|
|
|
|
|
Thanks to Jon, I have now realised that this also works in VBS... that article being in JS threw me for a loop.
There's an apology (to you) somewhere above this line, even though I mistakenly aimed it at Jon {:v)
|
|
|
|
|
We're developing our first internet application and there's something I'd like to know. The problem is that when debugging asp in the server, only one person can be debugging at a time. What I'd like to know is if there's any way to know (using Visual C++) if somebody is debugging at the moment, because we're having problems when two persons try to debug at the same time.
Thanks for the answer,
|
|
|
|
|
It's the first time we're developing an internet application and I've got a question about debugging. Since only one person can be debugging the application at the server, I'd like to know if there's any way to ask through Visual C++ the server if he's debugging at the moment.
Thanks for the answer,
|
|
|
|
|
Is there any way to register a control for use with ASP on a remote system?
A client of mine has a hosted web site that I would like to use ASPTear on, but the ISP does not provide this control. I might be able to convince them to register it for me, but I would rather not fight that battle.
This site is in a shared hosting environment on Win2k.
I know how to register controls on my own servers with regsvr32.exe, but obviously I do not have terminal or console access to this server.
Any ideas on a tricky way to get this done? With ASP maybe? Or some other way?
TIA,
Jason Jystad
Cito Technologies
www.citotech.net
>---------------------------------------------------------------------------<
There are no physicists in the hottest parts of hell, because the existence of a "hottest part" implies a temperature difference, and any marginally competent physicist would immediately use this to run a heat engine and make some other part of hell comfortably cool. This is obviously impossible.
-- Richard Davisson
>---------------------------------------------------------------------------<
|
|
|
|
|
Unless your ISP has left open many security holes, you will not be able to register the control on their box without them doing it for you.
The reason that ISPs will not allow users on a shared box to install their own controls, is that the control can potentially create security holes, read and write information that belongs to the others who share the server, and crash the server.
So, ISPs generally want to make sure that the control is a well-known product that will not cause any problems.
This is where .NET changes the rules. Since .NET controls cannot crash the server (in theory) and the ISP can limit their access. These controls can simply be copied to the server (no registration required) and they will work.
In conclusion... No can do for ASP... viva la .NET!!!
Troy
|
|
|
|
|
Yeah, that is what I figured. I admit, I was kinda hoping some smart-alec would post some less than entirely wholesome ways to try.
I mean, if they leave me a security whole why not use it.
Ah, well.
I can probably figure out a truly screwy way to pull it off without the control.
Thanks!
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
|
|
I consider myself a novice at this stuff, but I know
VBScript semi-well. I am just beginning to learn
JScript.
I am wondering what are some important things that
one language can do that the other can't. For one
thing, I know that it is quite easy to open a new
browser window (and set various properties of that
window) with JScript but not VBScript.
What are some of the things that one language
does better, more easily, etc than the other?
I appreciate your comments.
|
|
|
|
|
Good exception handling in JScript.you can use try, catch blocks.
In VB scripts you have only on error resume next statement.
It is easier to use VBscript to access COM objects . When we use JScript special care has to be taken for handling datatypes .for ex arrays.
|
|
|
|
|
Also w.r.t COM
JScript does not support more than one IDispatch interface (you always get the default)
whereas VBScript you can
|
|
|
|
|
Ok, if i understood you well... you're wondering which language could be better, right?
Then, from a newbie to other, get this on your mind:
Don't get tied to only one of those! Use as many languages as you know, while they can co-exist. Don't forget to debug properly any work you do... It will take you away many sleeping hours, but in the end it will be worth!
|
|
|
|
|
IE Browser to HTML source maping.
Dear Sir,
In Microsoft browser ,I want to know
how to get the char offset in the HTML source when cliking by mouse in the
control? I found some ways to get the X,Y point of mouse position , or the
word I clicked on as text, but could not find a way to get the corresponding
char offset in the html source.
With regards
Ibrahim M. Sobh
|
|
|
|
|
I do not believe what you are looking for is possible.
Why don't you explain what you want to accomplish instead. I may be able to find other ways to accomplish your task.
Troy
|
|
|
|
|
Anyone know how I can stop browsing of my images directory.
I know I can place an index.html in it to redirect somewhere else, but is there a way to redirect people if they type in direct image URL, rather than a html page requesting in. I just want to stop people viewing individual images, I'd just like to display the relevant html page that displays it.
Thanks for any help
|
|
|
|
|
If you can browse your images directory, that must mean you have directory browsing enabled!!! This is generally a bad thing!!!
To disable directory browsing bring up your IIS manager, bring up the property sheets for your web site,go to the Home Directory tab then find the directory browing allowed check box .... uncheck.
Once unchecked directory browsing is not allowed
Troy
|
|
|
|
|
I want to link to a install file (install.exe) but I don't want the download popup. I want to force it to "Execute File". Is it possible to do that?
Thanks!
Steve
|
|
|
|
|
What are the different state management techniques in ASP?
For Ex :
1) Use Cookies
2) Use Session variables
3) Use hidden form variables
Others ?...
&
How does ASP Session variable work ? Does it send some cookie to the browser ?
|
|
|
|
|
If you have cookies disable you will get a different session ID for each page requested. If you need persistance under this condition you may have to use hidden fields.
|
|
|
|
|
Hai Friends,
I have a table having 4(DropDownBoxes)columns that grows dynamically.
In the first column I want a Combo Box to populate all National Regions from
the database.
Upon changing a National Region, I want to populate all States pertaining to
the selected National Region in another Combo Box beside the first one from
the database.
Like wise, Upon changing a State, I want to populate all Counties pertaining
to the selected State in another Combo Box beside the Second one from the
database.
The Last column will have a hyperlink to the same page with "Delete" as
text display.
I have a Command button (Add New Location) upon clicking should grow the
table by adding a new row with another set of the elements (one combo box
each for National Regions, States, Counties) and a Delete hyperlink.
I want to delete a particular set (row) of elements by clicking the Delete
hyperlink.
The functionality should be such that only that particular set of elements
(their values) should disappear and the total number of rows should get
reduced by one and all the other elements should have their values intact.
How can I achieve this functionality?
Using Arrays and with
JavaScript or
ASP voding
Anybody Pl. help me comeout of this problem.
|
|
|
|
|
To add/delete rows use javascript to modify the innerHTML value of the table (this will only work for IE).
To update the comboboxes you can include an invisible (0 x 0) IFRAME and use javascript to open an ASP page in the IFRAME. This ASP page should query a DB on the server, then create some Javascript that, when the page is done redering and the javascript is executed, will dynamically modify the contents of the combo box.
To get started, try using Javascript to dynamically add/delete rows, and dynamically set the contents of a combobox. Once you have that, the IFRAME thing should be relatively simple.
cheers,
Chris Maunder (CodeProject)
|
|
|
|