I got a weired problem when trying to use the window.opener object. I need to open a new window from a home page, and once I get into the new window(it's actually on another site), I need to get the url of the calling window(the window that opened the current window). Code:
I am using javascript to open the pop up window. Now the pop up window will be displayed in a center position and in it the images will be displays (one image at a time as the next and previous button is clicked).
The images are retrieved and displayed using asp. Now is there a way to shrink the size of the image so that it fits the size of the pop up window and when I click on the image the image will be resized to its original size. Code:
1. I have a form, with a textbox and a button. I have to enter a value in the text box and then i have to click the button, which opens a popup window. Here i want to pass the value of the text box which is entered in the parent window to popup window.
I have to use that value in the popup window's form_load event in the Code behind, and i have to take the values from the database using the value which i have entered in the parent window. Code:
I want to provide a lookup facility for users to select a code from a list. I want this to be done in a small popup window, which, when a code is selected, will close down and return the selected value to the main form. Can this be done ??
I'am not familiar wit ASP but I have to maintain an application. In a window there are some text selection fields and a search button. If you press on the search button record list is build according to what is filled in the selection fields. You can select a record and then a detailed window is shown or in another occasion a popup window is shown.
The request is now if the opened window or popup window is closed, then the opener window has to be opened with the same content (content selection fields + record list) as it was before the window or popup is opened.
Now I thought that I have read that every window which is opened gets an ID and that it is possible to call up that window by the ID from the cache again. Is that right? And if so? Or has somebody a better idea. Code:
need to learn ASP for a work project but don't really want to have to learn VBScript. Going forward, I'll also need to use ASP.NET so a book covering that with JScript would be good too.
Would anyone be able to confirm that 'jscript.dll' is a necessary file for an .asp page on IIS 5.0 to use the <script language="JavaScipt" runat="SERVER"code? It looks like the code in this section is not working and being recognized since it keeps giving me:
"Microsoft JScript runtime (0x800A01B0) File name or class name not found during Automation operation"
and am suspecting that this jscript.dll file is a necessary file that's missing or not installed since my search on the webserver's c drive came up empty.
I'm working on a project and the designer guy uses templates for everything. THis is fine except I have to call a JScript function when the page loads and I have no access to the body tag. Is there a way to call the function as the page loads from a VBScript command?
I've started implementing my ASP pages (in JScript) using the Try/Catch error handling.
Mostly it is working very well. It gives a nice custom error page which looks somewhat more professional than the default.
However there seems to be one limitation, the error object thrown to the catch statement doesn't include the line that the error occured on. Is there any way to obtain this information?
The eval function in JScript doesn't work according to spec. Specifically, the function C() on page 73 of the ECMA-262 spec doesn't return the function object correctly under IIS 5. Binding the anonymous function to a variable name and then evaluating that works as a workaround, e.g.
function C() { return eval("var x = (function (x) {return x*;}); x"); }
works. However, it should be possible to simply evaluate a function without binding it to a name using the eval function, especially since the spec has an explicit example of this.
i have a website that users log on to. On one of the pages is a form. What I want to do is only show a certain part of the form for specific users. The way i want to do this is by using their username as a 'show if' command in dreamweaver. What I currently have is this
<% If Session("MM_Username") = "union" %>
all data to be hidden shown is here
<% End If %>
But this doesnt work for me! Any suggestions on how to show this properly?
At the top of my ASP page I declare <%@ Language=VBScript %> what do I have to write to embed some JScript in that page? Do I have to indicate that the code is intended to execute at the client side (if it is the case)?
i have a page of asp (jscript) but the CAPTCHA code im using is vbscript. Can i use boths languages on my page? obviosuly i cant use two language tags, is there a way around this?
I want to count how many characters there is in a string. In ASP I just use <%=Len(Variabel)%> How do I do this in Jscript? How can I display only a numer of characters from a variabel or a string? In ASP I use <%=Left(Variabel,20)%> How do I do this in Jscript? THe code i use is part vbscript and jscript. translate it to pure JScript.
I need to do some client-side scripting for my Intranet and was wondering if Jscript or Javascript would be better? Everyone here uses IE 5.0 +, so I need to make a decision...
I'm stating out doing some web developing. I Know CSS, HTML, T-SQL. I can look at the client javascript code and work out what it does but I can't really write it from scratch.
I know mainly VBscript. I was wondering should I drop VBscript and learn Jscript then code both the client & server code in Javascript/Jscript. I have a couple "CLASS" files in VBscript and was wondering how does Jscript do this ?
I am quite frustrated. The mai9n reason is because I don't understand how internet works. I know VBScript and I know a little bit of Jscript. I began a program (website) with vbscript (ASP) and after coding some files, i found out that it ain't cross-browser compatible so I decided to switch to JS. Now I have started to use JS in ASP and this is what TimLensen said.
You could convert it to serverside Jscript but I wouldn't recommend it since not much asp apps are written in Jscript these days, it doesn't really have a point either. Learn the basics of asp at w3schools. Don't just look at the code and copy it and change it a bit but try to understand how the internet works.