|
Ok, I'll try reposting this since the forum code doesn't allow you to scroll to the right.
Here is the function again:
function displaypage(page)
{
mywindow = window.open(page,"outsidepage",
"toolbar=yes,location=yes,
directories=yes,status=yes,menubar=yes,
scrollbars=yes,resizable=yes,width=800,
height=600,left=0,top=0");
mywindow.focus();
return false;
}
WillCodeForMoney
|
|
|
|
|
I’m just curious to know why so many people use VBScript for server side ASP programming. Why use it when it seems to be so much slower than JScript?
I’ve been running a series of test scripts that accomplish the same task. They are in pairs, one in JScript and the other in VBScript. I run the scripts multiple times in succession and then use the overall time to work out the average time taken for one execution. JScript outperforms VBScript in terms of speed by as much as 20 times in some cases (What took 0.04 seconds with JScript, took 0.76 seconds in VBScript). Ok, that’s still quick you might be saying, but when you have thousands of the things executing at the same time, speed is an issue.
A quick search on the net will reveal that this has been known for some time...
So, why use VBScript?
P.S. After I wrote this and went to try to post it in the forums, I noticed that they suddenly slowed down for about ten minutes. Seeing as this site uses VBScript, I wonder if that was anything to do with it...
Chees,
James
|
|
|
|
|
Does anyone know of a free ActiveX tree control (with available source) that could be used to create a dynamic navigation tree on a website? I'm aiming to create something similar to MSDN's left-side navigation menu, except I can't use the ASP.NET objects that are used on that site, since I'm doing the programming in PHP.
Anyone have any links? I'd appreciate it.
|
|
|
|
|
Not sure that there is anything free left in this world, but http://www.visualasp.com/ tree control is pretty good and not too expencive.
Dejan
|
|
|
|
|
The controls there look good, thanks, but since I'm running the website on a Linux box, I can't use them Guess I'll have to go through the fun of writing my own ActiveX control to run on the client-side.
|
|
|
|
|
anyone have a intro tutorial on how to throw an atl com object into an asp page? i thought i did what i needed but its not working. If someone has done it, let me know what they did through VC++ 6.0
I made an atl com .dll and made a new atl object which was an active x server. <shrug> i dont know what i'm doing wrong!
SHABBA!!
|
|
|
|
|
Hi,
Now I have a trouble on how to detect a script
variable changed.
In my page, I use activeX control to do something
,and it will return a value. But, I don't know when
it will ? Because my control will return it asynchronously.
So, I decide to try to get the value by using
an event; but, how to do this ? And, I must do it
in ActiveX and send notification to IE or I must
do it in custom event in HTML ?
Thanks for your help
|
|
|
|
|
How can I get the list of all the acounts <emails>
on the MS Exchange server .
using directe conection not via Outlook or OWA.
|
|
|
|
|
Hi there guys,
Here i got a problem using asp page passes parameter to a stored procedure.
it was runned well in IIS 5 of W2k but when it migrate to a NT 4 IIS 4
server with IE 4.01 SP2, there are some errors that cannot recognize the
stored procedure parameter passing. When I tried to create a parameter with
respective data type, it cannot be recognized, anyone can help? Its quite
urgent.
|
|
|
|
|
Hi
My page has many input box and user want to use +/- key
in order to go forward or backward the box , I have some reasons
so I can't use tab index and forward/backward function style . What
I want to do is simulating key press , now I check onKeydown with every
input box , I check if key code is 43 (+) then I set keycode to 9 (TAB)
then eveyrthing seem ok , I can go forward . But now I have problem
with backward , I have to simulate Shift-TAB but I don't know how to do.
I've tried set event.shiftKey to true before setting keyCode to 9
( I'm not sure I can write to this property or not but I can read it correctly )
but error occured , said "Member not found"
Anyone please , help me
Thank you very much
Pat
|
|
|
|
|
I wrote this script so this img:
would be different if I was looking at the page in Netscape. I put this script in the section
to try to change the source of the image later in my page if it was Netscape.
<script="javascript">
Could someone please tell me what is wrong or if there is a different
way to do what I am trying to do.
|
|
|
|
|
I dont have Netscape, but I think the script line should be
window.document.images.menu3.src = "images/menu2.gif";
Or maybe
document.menu3.src = "images/menu2.gif";
Hope this helps.
"A surprise to be sure, but a welcome one."
- Senator Palpatine
|
|
|
|
|
your code is fine...except that you didnt setup javascript right
is what it should be
otherwise it will just skip over the code
not even reading it as javascript
hope that works...
|
|
|
|
|
Hello!.
i'm having trouble w/Array references, observ the following-->
if i creat an Array1 and then do the follwing {Array2 =Array1) Array2 becomes a reference to Array1 but then if i change the value of Array1 directly something like array1 = array1.concat(arrayX) i end up having array2 staying with its old value and leaving it reference to array1. i understand why this happens, What i do wnt to know is how i can make TRUE references in Javascript where Array2 will alwayse point to Array1.
thanks
ahmed
|
|
|
|
|
I have a web page that I developed using microsoft
frontpage 98. When I view the page it looks nice. If I make changes to the page and then view it in my browser, the old page appears. If I click refresh, the old page still appears. If I delete all the cookies, temporary internet files and some other directories under c:\windows and then click refresh, I get the new page with changes.
If I make changes, how can I make the web page reflect those new changes for other users? If I keep viewing the old page, then other people on different computers must be viewing the old page as well, and that sucks!
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle
|
|
|
|
|
If I delete all the cookies, temporary internet files and some other directories under c:\windows and then click refresh, I get the new page with changes.
That's a bit drastic, doncha think? Hit Ctrl+F5 to bypass the cache and reread the page.
--Mike--
http://home.inreach.com/mdunn/
"Make sure that if you are using a blow torch that you don't set anything on fire."
-- Chris Maunder
|
|
|
|
|
> Hit Ctrl+F5 to bypass the cache and reread the page.
It works! Very cool.
How can I make it so that other people viewing the web page don't have to hit ctrl+F5? So that the page is automatically shows the latest material. If I go to cnn.com, I don't have to hit ctrl+F5, the code is written so that the page reflects the new material.
Is it something (or lack of something) in my html code which is causing it to always display the old page until I do something drastic to update it?
Please, any response you can give me will be greatly appreciated.
Sincerely,
Danielle
|
|
|
|
|
put these between youe
for example.
Now this content'll always fresh !
Hope this help
Pat
|
|
|
|
|
I have a few questions, that are probably really easy to answer, but working with frontpage 98 is slowly killing me because I can't figure it out.
1. How do I print the current day/date on the site? I see this on lots of other sites, but if I just copy and paste, I just get that current date. Isn't there some code or something that will change the date everyday so I don't have to keep doing this manually?
2. How do you create a hover button? In frontpage, you can insert a hover button, but they look really crappy. Is there any way of creating a nice looking hover button that blends in with the white background???
3. How can you create a drop-down menu? This is impossible. I try copying other people's sites and it's just messy.
Please, please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle (brinasas@yahoo.com)
|
|
|
|
|
Answers:
1. JavaScript
2. JavaScript, Photoshop
3. JavaScript, Photoshop, DHTML (These menus work great, and they're free!)
For #1 & #2, just search the web for JavaScript code snippets - they're all over the place. You are bound to find what you need.
These certainly aren't the only ways to accomplish what you want, but they are arguably the most straightforward.
HTH,
Jon Sagara
"Go Banana!" -- Ralph Wiggum
|
|
|
|
|
Does anyone know if there's a way to detect page breaks when printing long .htm documents?
Thanks...
|
|
|
|
|
I am looking for information regarding mouseover events.
I want to make the mouseover links stay on the changed image once you have clicked one until you click on another link. For example, I have link1, link2, and link3 which all change images when you mouseover them. Now click on link1, I want this link to stay on the over image until you click link2.
Once you click link2 then link1 will go back to the original image.
Any information on which event (onclick, mousedown, or whatever???)you use to do this would be helpful.
|
|
|
|
|
Hi,
I'd appreciate any help on this subject:
- Showing the user name after the login is complete or by using the old session cookie to read and display a Hello User! to the user on the site startup. For example if Rocky Balboa logs to my site, then am gonna greet him with: Hi there Rocky! What's up man!
Different greetings based on different user ids.
Thankyou.
|
|
|
|
|
I'm developing help files using HTML Help. I'm using CSS and everything works great until I try to print. If I try printing the selected heading and all the topics, the styles are disregarded. Everything works fine when just printing the topic. Anybody else had this problem?
Thanks!
|
|
|
|
|
I'm sure you are all familiar with the SA.FileUpload component. Well, it is installed on the server I started and works fine.. just until I try to make it a part of a large Update Database Form. Because of the new encoding, I of course use "up1.form("formname")" to access info posted by the form. And it also works fine. But only on one specific text input it doesn't! One of the most strange errors/bugs I've seen lately. Been buging me for months! Well, this is the relevant code:
% Inside the form:
"" (there are many input blanks on the form, all in the same style, and all other work!)
% After submit:
"dim nNews_Date,nNews_Time,nHeadline,nNews_1,nNews_2,nLink_1,nLink_1_text,nLink_2,nLink_2_text,nPoster,nPoster_email,nYes_no,nImage,ToUpload,nURLfile
nPoster = sCheck(up1.FormEx("author")) (******)
nPoster_email = up1.form ("poster_email") (******)
nCode = upl.form ("nCode")
nNews_Date = upl.form ("nNews_Date")
nNews_Time = upl.form ("nNews_Time")
nHeadline = sCheck(upl.form ("nHeadline"))
nNews_1 = sCheck(upl.form ("nNews_1"))
nNews_2 = sCheck(upl.form ("nNews_2"))
nLink_1 = upl.form ("nLink_1")
nLink_1_text = sCheck(upl.form ("nLink_1_text"))
nLink_2 = upl.form ("nLink_2")
nLink_2_text = sCheck(upl.form ("nLink_2_text"))
nImage = upl.form ("Image")
(the lines marked with **** are the problematic ones. If I remove them, everything works but it doesn't help so much...)
The error I get it :
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/admin/edit_news.asp, line 61
Hope you will be able to help me out, it is one of the most strangest things I've seen lately! Thank you!:
|
|
|
|
|