OnClick Window Not Opening
In the following snippet of code, I can not get my openBrWindow command to work. Does anyone see anything that jumps out at them that is obviously wrong? Code:
View RepliesIn the following snippet of code, I can not get my openBrWindow command to work. Does anyone see anything that jumps out at them that is obviously wrong? Code:
View RepliesHow can I change the following client side javascript to open the referenced asp page in a new window:
Response.Write "
<td align=""left"" nowrap
onClick=""javascript:document.location=my.asp?ID1=" & ID1& "&ID2=" & ID2&"';"">"
For now it work perfectly excect that it opens in the paren window.
my objective is to click on an image and use the file path of the image as the variable in the next query, hence re running the same query but with "WHERE imageb " and not "WHERE imagea " with the value of imageb replacing min_vsim on the next query. this query can be excecuted preferebaly by a mouse click on the url of the image. Code:
View Replies View RelatedI'd like to redirect from a certain page, to an external page(an external site), with certain parameters. of that window.
There is nothing to do if using response.redirct,
but is there another option?
For example, I would like to open a new window, that will have a cerain dimensions, and that the url of that window is... In javascript it is not a problem of course. What shall I do in asp???
I have this code
response.Redirect( "/mailer/TestPDF.asp?referenceNo='" & checkRS("RefNo") & "'" )
but i want to open it in new window..how can I do it?
How exactly do you get a window to open withing the current browser (ie) without it going to the taskbar as a new window. example password hint .
View Replies View RelatedI want to open a new window from ASP page, which may not inherit sessions values from its parent.
I'm opening a new window (JS:window.open) from an ASP page, the child window inherits all the session variables from parent (thats what i dont want). and if I write session.abandon in the child ASP file, it also destroys the parent 's session values.
how I can open an ASP page in new window which doesn't inherit sessions from parent.
We have several apps that a user logs in at on the same page. The app
is determined by a drop down. User credentials are checked,
response.redirect to the application. The user ID is stored in a
session variable which determines if the user is logged in. When the
session var goes blank, the user is redirected to the login page. A
header on each page checks this.
Now, some parts of the app send an email out to a specific row. User
clicks on link in the email, a new browser is opened, user logs in, and
is forwarded to the app, AND the specific record that was in the URL.
What I would like is when the user clicks on the link in the e-mail,
the existing browser window is used. I know this can be done because a
colleagues Stock Trading program works in a similar way. He gets 3
emails. If he clicks on the first one, it take him to a login, and
then is forwarded to the details of his stock trade.
If he leaves that window open, and clicks on the next link, the details
of the stock trade are brought up in the existing window without him
logging in. I looked at HTML to see if they're doing any tricks in the
HREF, but it's just a link to a an HTML file.
I am creating a redirect on our web site, and am wondering how to open a new window when the person is redirected.For example, the redirect below works correctly:
<%@ Language=VBScript %>
<%Response.Redirect "http://www.boston.com"%>
But what code would I add to make this open a new window. I am kind of self-taught and obviously not that knowledgable in this area. When I experimented and tried to plug in target="new" in a few places, it did not work.
I have a page where the ASP script create a table of links:
i.e.
1 = NextPage.asp?Item=1
2 = NextPage.asp?Item=2
etc
What I would like to do is open an new window with this link without any
toolbars, addressbars, scrollbars and tabs. I would be happy even if the
control to limit the appearance of the new window was in the new asp page.
When i select a order ,a new window opens up .I select the name from the new window .This window also has a submit button(there is a insert statement which gets activated on submit).
wht i want to do is when i hit submit ,the window should get closed and should be redirected to the previous page from where i actually got this window i.e by clicking on the order at the start. how should i attain this?
Is there a way to tell if a user (IE6) is opening a new window to the same session. ie. both (or more) windows are looking at the same info.
Just a clue as to how to determine this would be helpful. Server is running .asp and the client is always IE6. asp, vbscript, jscript or dhtml clue would be great.
I have the following ASP code which displays a confirmation message when a particular form is successfully submitted. What i need to do is open the message in a blank (_self) browser window. Can this be done using ASP or would it have to be done using Javascript?
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 ??
View Replies View RelatedI'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:
How to proceed?I have one form say form_a .from here through anchor another form form_b is being opened in another window using (window.open command). Now I have some value say val_b1 in form_b. Once again I am coming to form_a through following code Code:
<td align = middle colspan=3><p><font face="Verdana, Arial, Helvetica" size="2"><A href="javascript:onClick=window.close()">Close Window</A></font></p>
I want value of val_b1 should automatically copied into one of the field of form_a say field_a1 the moment user close window (form_b)
Right now first user have to close the window form_b then have to write the value manually in field_a1 of form_a which leads to spelling mistake.
When i click a anchor tag which will shows a particular data from database and display it in same page using ajax. Code:
View Replies View RelatedIs there a way to code an if then statement that allows me to write to my database logs if the print button is clicked?
<form id=form1 name=form1> <input type="button" value="Print" Onclick="print()" ; id=button1 name=button1></form>
I'm showing content from a database,but I only wanna show
the titles until there's clicked on a button 'more'.My code looks
like this now,and nothing happens when the button is clicked:
<%
Do While Not rstTest.EOF
Response.Write "<tr><td>"
Response.Write "<b>Title: </b>"
Response.Write rstTest("Title")
%>
button onClick='<%
response.write rstTest("All the rest of it")
%>'>More >></button>
<%
response.write ("</td>")
response.write ("</tr>")
rstTest.MoveNext
Loop
%>
I have XY coordinates stored as JS variables, is there a way to transfer these variables (XY coordinates dependent on position of cursor on screen these are captured on Click) to an ASP page or new ASP window.
View Replies View RelatedIs there an equivalent to javascript's onclick="functionName()" in ASP?
View Replies View RelatedI have regular <a href> in my .asp file that goes back to login page (link Log Off)
But the session still stays, so I need to clear the session.in one of the CLASS files I have function logout that clears session.So I tried:Code:
<a href="#" class="link" onclick="<% myUser.logout %>"
Now it logs me out all the time.How can I do that?
I have a page that displays ticket numbers and the status they are in.I want to have a delete radio button next to the status button. and if I select the radio button and click delete it should delete the record from the SQL database and from the page. Does anyone know how to do that in asp.
View Replies View Relatedi need to insert, in a onClick event of a submit button in a form, a
call to an ASP script, like follows:
<INPUT TYPE="SUBMIT" NAME="btnSend"
A_Function_Or_Sub_in_VBScript %>">
the problem is that teh event triggers only event on the client page,
not on the server..how to solve the problem???
my doubt is someones website is offering to send free sms.
i just want to add that in my website too.. i just added that form in my html page. but when i click send button it goes to the original website.
is there any way to come back to my site after cllicking send button.
this is the real code.. can we change and give some onclik send and come back to mywebsite?
<form name="form1" action="http:www.some1site.comsms.asp" method="post">
the javascript code for 'validate' is in place on same page and I even tried to launch a prompt saying "hello" at begininng of javascript function to see if it is even getting their.Is the syntax correct below?There is no submit button but an image to click.
<input type="image" border="0" name="imagebut" src=http://www.myhost.com/images/submit.gif onclick="return validate(loadform,'process.asp');">
this line below is the input for userphone which I set as a mandatory field so i would assume a message would pop up, but it seems like the onclick event is not getting fired.
<input name="userphone" size="30" mandatory="true">
I have the below code. I am trying to send information to a subroutine, I am getting an Object Required Error.
<input type="button" name="pSearch" value="Search"
onclick="DisplayRecords()">
Then in my ASP page I have this
Sub DisplayRecords()
dim conn
dim strsql
dim mycount
I have 2 buttons on a form.If user clicks on ButtonA, the form gets submitted to PageA.
If user clicks on ButtonB, the form gets submitted to PageB.One forum promotes using the OnClick event to direct to the correct page.Another forum says OnClick is not wise because a user could have scripts disabled.What is the best way?
What is the proper syntax for the below statement?I'm having problems with the OnClick portion.Response.write "<input type='submit' name='Submit2' value='I WANT TO MAIL A
CHECK'onclick='document.frmReview.action='check.asp';doc ument.frmReview.submit()'>
"
I have an ASP page that once a user puts a check in form field checkbox I would like to have the the record updated and the page refreshed? Any suggestions on how to handle this? This is currently what I have for my checkbox:
Response.Write "<td valign=middle align=left><input type=checkbox
name=JobStatus " & SetCheckbox(cBool(objRecordset("JobStatus"))) & ">" ..
I have a session variable who change the selected language (French or English) and i try to change this variable when someone click on my anchor. Code:
View Replies View RelatedIn the code behind of my ASP.net web page I have code written that is
dynamically creating a button. Here is a sample of how I define it.
//Define Variable
Button btnNext;
public void someMethod()
{
btnNext = new Button();
button += new EventHandler(this.btnNext_Click);
//then i add the control to the page, then call its click event
btnNext_Click();
}
When I clickthis button on the page, the page postsback and its onclick
event is never called (stepping through the code shows that it never gets
reached). If I click the button a second time, the method is called and it
works fine.
i have three images on my page which i want to be able to increase the text size of the whole page by using these buttons
Small Normal Large
Standard size will be normal, the others i want to affect the whole site so when they change page the setting changes stay with them
The only way i can think of is multiple style sheets and saving to a cookie anyone got some examples or suggestions / solutions for how to approach this ?