|
|
|
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)
|
|
|
|
|
I've just added CP to my favourites in IE and its added a little picture of the Alien next to it. How do you do this?
Dave
|
|
|
|
|
add a favicon.ico file at the root of your website. The file is a standard icon file. Chris has written an article on the site about it.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Cheers.
Dave.
|
|
|
|
|
Hi there,
after installing the nimda patch, i am getting an HTTP 500 Internal Server
Error anytime i try to access a virtual directory on my server. This only
happens with the ASP pages as i can access the html pages without any problems.
So basically, if i type, http://servername/default.asp, i get the error
and if i convert it to an html and type the address, everything works fine.
Any ideas?
thanks
|
|
|
|
|
Hi,
Is there any way to open a word document in Internet Explorer without showing its path in Addressbar and title bar..? Or is there any component to do so in ASP.
Ann
Ann
|
|
|
|
|
Embed a Word.Document object using the OBJECT tag.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Hello,
I have written a simple ATL com object for use with my ASP pages. The object is an FTP object based off of the WinInet library. Everything is working great i can connect and it is verified and everything.. but when i envoke the Download() method (aka a wrapper function for the FtpGetFile() func), it downloads the files to the server which the component runs on.. instead of the clients computer... I would like to fix this but i am not sure where to start?! Any help would be greatly appecated(not the best speller .
Thanks,
hackitall@yahoo.com
Jon Chapman
|
|
|
|
|
|
I want to use a microsoft listview6.0 to contain database data in my asp page .How Can I do ?How can I get user's Selection??
|
|
|
|
|