|
gekotechno wrote:
how can i call multiple functions on an event?
ie.... onmouseover="Foo1();Foo2()" like this in java
Just like that. Although it may be better to write one function to wrap it all. Less hassle to change multiple lines rather than just one function.
function AllFoo()
{
Foo1();
Foo2();
}
onmouseover="AllFoo()"
|
|
|
|
|
There is a keyword in Javascript and C++ - this, that points to current instance of class, function, etc. So my question - is there any such keyword, property or whatever like "this" in VBScript?
For example I have a Class and it creates another one, to which I need to pass its parent (this), how to do it in VBScript?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
is there any such keyword, property or whatever like "this" in VBScript?
Yes: me is the same as this in VBScript. Same for normal VB.
Understanding Events has an explanation and some examples.
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
Oh, thanx! Well, I have no idea in VBA, thus didn't know about "Me" But hey, it is working now
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
How do you design your big applications??
I ususally use the 3-tier model but for a big application is better to separate le business layer and the presentation layer into small pieces. Or not?
I mean, multiple web projects for the user interface, and multiple business layers (one for each web project), and one database for all.
So you can update and deploy only one module (WebUI + Business) without touch the other modules.
But what about the circular references??
How do you desing your big application??
Thanks
Emanuele
- b0nu$ -
|
|
|
|
|
Does anyone know how to access a SQL Server database from ASP without showing the userid and password in the ASP file?
When I type the following in my ASP file, anybody who has access to the file can readily view the username and password.
objConnection.Open "DSN=mydsn;UID=sa; PWD=password;DATABASE=MYDB"
Appreciate your help. Thanks.
|
|
|
|
|
I don't think you can. If someone has access to your ASP, there is not much to do... He can always find a way to connect to your database or get your username/password.. The question is.. who can access your ASP code?
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
If someone has access to your asp scripts that makes you worry you have bigger problems than just trying to hide the connection string.
One option is write a resource type object and compile it. If an unauthorized user got to it they would still lneed to decompile to get the connection string.
|
|
|
|
|
Wy doesn't work this in Opera 5?
parent.document.getElementById("FrameTitel").firstChild.data = "123";
I want to change the text of a ID element of the parent window in my frame window, but my does this not work in Opera?
Is the code wrong!?!?!?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Daniel S. wrote:
Wy doesn't work this in Opera 5?
Opera is a good browser for everything except the DOM, which is what you are using. It does HTML and CSS well, but not the DOM. It supports bits and pieces of the DOM, but not all.
Here is some info:
DHTML and the Opera Browser: The Fat Lady Hasn't Sung Yet[^]
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
I want to change a text with JavaScript, when the user clicks on a link (href).
I know that I have to make a JavaScript function and call that funktion in the onClick event of a link.
But, how can I change a text (no input field!!!) in my html file?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Daniel S. wrote:
But, how can I change a text (no input field!!!) in my html file?
<a href="http://www.testurl.com/" onclick="this.innerText = 'we ain`t in Kansas no more.'; return false;">Toto,</a>
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
How to set the colour for the button... the way CP sets the color... Something to so with the .css, but whats the property to be set, and how.. Help PLease...
Also, is it possible to change the shape of the button?
|
|
|
|
|
SPS wrote:
How to set the colour for the button
You can use "background-color" in you CSS file for INPUT element. To separate buttons from other INPUT (like text) you can use a class. Here is an example:
<font color=green><!--in html page--></font>
<input type=button class=button value="Click me">
<font color=green><!--in CSS file--></font>
INPUT.button{
background-color: orange;
color: white;
}
SPS wrote:
Also, is it possible to change the shape of the button?
Nope, unless you'll create an image for your button. All you can do in HTML is to play with borders
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Philip Patrick wrote:
CSS file
Thanks.... I guessed this to be the answer....
|
|
|
|
|
SPS wrote:
but whats the property
input.colouredbutton
{
background-color: #ff9900;
}
Is the way.
SPS wrote:
Also, is it possible to change the shape of the button?
Only if you use an image as a button. e.g. <input type="image" src="res/img/btn_submit_off.jpg" />
Paul Watson Bluegrass Cape Town, South Africa Colin Davies wrote:
...can you imagine a John Simmons stalker !
|
|
|
|
|
Thanks....
Hey Paul... Long time- No See??? Busy or were you in vacation?? ANything wrong with ur health....
Have a nice day!
|
|
|
|
|
How can I display the titel of the Frame?
I have a simple HTML file with one frame (inserted with <iframe src... ).
So, I want to display the title of the HTML file in the frame on the top HTML file!
And I want to update the title of the frame window on the top HTML file every time a new
file is loaded in the frame.
Is that possible?
If yes, how?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Use the title= attribute. If you use a script to load new pages into the iframe I believe you could also set a variable to the value of title and update it when you change pages in the iframe.
"My child was Inmate of the Month at Mohave County Jail" - Bumper Sticker in Bullhead City, AZ
|
|
|
|
|
Hi, everyone!
Are there some step by step documents deals with
how to enable JSP with Apache and Tomcat on Windows?
I find the document shipped with Tomcat too boring.
Cheers,
George
|
|
|
|
|
I have a simple HTML file with one frame.
On the left side of my HTML file I have a navigation menu.
When I click on one item I update the frame.
It look like this:
+-----------------------------------+
| . Projects > Project 1 |
| ..................................+
| menu1 . |
| menu2 . |
| menu3 . FRAME |
| . |
| . |
+-----------------------------------+
On the top of my HTML file I want to display the current loaded file in the frame, like
"Projects > Project 1".
How can I change the text ("Projects > Project 1") when I click on the menu?
(with Javascript, ... ????)
How can I make this?????
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
I've never done this, but I'm pretty sure it could be done in Javascript. What you need to do is declare a variable, and preload it with the string "Projects". Then, on the menu items, add an onclick, with a parameter (eg. 1 for menu1) which calls a normal javascript function (this may not even be necessary, but long ways sometimes work best).
In the function change the value of the variable to "Projects - Project" + parameter, so that the same function works for all menu items, where each one passes the relevant number.
Put a javascript document.write where you want the string to appear.
HTH
I knew it would end badly when I first met Chris in a Canberra alleyway and he said 'try some - it won't hurt you'..... - Christian Graus on Code Project outages
A moment of silence please. A programmer's best friend has passed beyond that great exception in the sky.... - Mark Conger on "The coffee machine has died"
|
|
|
|
|
Daniel S. wrote:
have a simple HTML file with one frame.
You have one frameset, but from what I see you have 3 or 4 frames.
1) replacing dynamically a value inside a tag with another : lookup MSDN for innerHTML
2) getting the current docname : document.location.href
3) accessing another frame : window.frames[i].
|
|
|
|
|
Hi all,
I need advice on choosing the utility for uploading my site.
I dont wanna use frontpage 2000. But someother utility that will upload only new/modified files to the web-page. I tried cuteftp, but I am not satisfied with that.
So, and other utility that you guys wanna advice me....
- SPS
|
|
|
|
|
Macromedia Dreamweaver.(that's difference between using this tool as a simple html text editor, and using it as a site editor : it features always-in-sync FTP updates).
|
|
|
|