Obtaining complete page URL from vbscript



  • 1. style (wrap) not working...
    Hello, I have a table with 3 columns in it, each with width set to 33% within the 1st column, I have another table with width set to 100% This table only has one column which I've also set width as 100% The data that appears on that cell does not wrap when there is no spaces in the string and it pushes the other 2 columns in the parent table towards the right. I've tried using style="word-wrap:break-word;" and also style="overflow-x:auto;" and there has been no reaction. Even when I tried style="overflow-x:hidden;", it still displays the entire string. Any suggestions? Thanks V
  • 2. Printing after client-side font change
    Hello, I have a page that allows users to change the font family and size for the contents of the page. ie. There are 2 dropdowns, one for each change. The user selected size 20 and everything in the page is changed to size 20 by vbscript. The problem is.. when the user prints the page, it prints the original font size and family. Is there a way around this? Thanks, V

Obtaining complete page URL from vbscript

Postby Marco » Tue, 01 Jun 2004 21:41:26 GMT

I need to obtain the domain from server side code.

Request.Servervariables("URL") doesn't work well... it miss the domain name.

I tried to use the WScript.NetWork object but the domain is not visible.

Help me please!!


Re: Obtaining complete page URL from vbscript

Postby Michael Harris (MVP) » Wed, 02 Jun 2004 02:21:51 GMT

Does "HTTP_HOST" or "SERVER_NAME" give you what you need?

Michael Harris
Sammamish WA US

Re: Obtaining complete page URL from vbscript

Postby Marco » Tue, 08 Jun 2004 17:15:15 GMT

Yes it works!!!!

Thank you !!!!!!!!!!!!!!!!!!!!!!!

"Michael Harris (MVP)" <mikhar at mvps dot org> ha scritto nel messaggio

Similar Threads:

1.Obtaining complete User List

Hi all,

My question is:  How do you obtain a complete list of all the users
that are registered on the local machine?  I've been trying for hours
now and can't find anything that will help on the groups.

Anyone have any idea how to do this in VB.NET?



2.Obtaining the Current URL From IE and NetScape

Hi EveryBody:

I am new developer in Vb.Net And I found a code that Obtained the URL of IE 
Or Netscape.

Unfortunatlly this Code is Applies to:   VB4-32, VB5, VB6 

And I want to use it for Vb.NEt When I plug it in my development enviromet I 
found Alot of errors. So Can Any one Help me And Adjust this code and make it 
applicable for Vb.Net

The form Should be Like the following:

Drop a command button (Command1) two labels (Label1, Label2) onto a form, 
setting the autosize property of the labels True. The third label in the 
illustration above is the result of preparing the graphic as a composite 
image to demonstrate both NS modes. Add the following code to the form:

The Code IS :

Option Explicit

Private Sub Command1_Click()
   On Error GoTo command_error
   With Label1
      .Caption = ""
      .AutoSize = True
      .LinkTopic = "IExplore|WWW_GetWindowInfo"
      .LinkItem = "0xffffffff"
      .LinkMode = 2
   End With
   With Label2
      .Caption = ""
      .AutoSize = True
      .LinkTopic = "Netscape|WWW_GetWindowInfo"
      .LinkItem = "0xffffffff"
      .LinkMode = 2
   End With
   Exit Sub


   'try the next step on error
    Resume Next
End Sub

Any help will be appreciated



3.Obtain URL from pluggable MIME filter

I have a pluggable MIME Filter implementeed using
IInternetProtocolRoot, IInternetProtocolSink, etc..

The problem is - when the IInternetProtocolRoot::Start() method is
called, the "szUrl" parameter is the mime type, not the actual URL
that is being processed. Is there any way to get the actual URL ??

4."Save as" with "Web page, complete" dialog from script

Is there a method to launch the "Save as" with "Web page, complete" 
dialog from script inside a HTML page ?

I have a Save button on my page and I want to link it to that dialog, 
not the one that launches when I do Document.execCommand ("SaveAS").

Radu Serbanescu

5.obtaining the currently highlighted date in the outlook calendar and obtaining the calendar view

is it possible to obtain using vba the currently highlighted date/date range 
within the outlook calendar? Also, is it posible to determine the current 
calendar view (week/day/month etc)? I am using outlook 2003 but if this 
works in 2007 that is a bonus.

6. Pause VBScript untill command line script completed

7. Obtaining HTML Source Code with VBScript

8. Where to find a COMPLETE VBScript reference?

Return to vbscript


Who is online

Users browsing this forum: No registered users and 37 guest