Control Of Asp Page Via JScript File?

Feb 2, 2009

(Short version on a asp page, fill out the form and press submit. It takes you to a thank you page, at that point I want it to go BACk to the form.

(Detailed For my work, we have a web based ticket system, and add notes to these via asp pages. I came up with some code to auto file the text, change combo box's then submit itself. Upon submit it takes to a simple "Thank You page" .... after .submit I would like it to go back to the origional "frmAddnote" page. I have tried everything for 2 weeks including:

[CODE]
history.back();
or
history.go(-1)
or

[Code]....

PS Its important to mention that I am running this code from a testfile.js on my local machine... Works fine just cant get it to go "back". I have no control of the code on the asp pages but thats not important.

View 5 Replies


ADVERTISEMENT

Sending Jscript Client Side Variable To Asp File

Sep 6, 2005

I have an html page, with jscript inside. some variables, some of them
multidimensional arrays. i need to send this information, which can be
changed by the user, to an asp file. the only way i could think of, is
putting it inside hidden box and sending the form. is there any more
elegant way?

View 6 Replies View Related

Adding Scrolling Text To An Existing Jscript File?

May 6, 2009

I inherited a site that has jscript and html content. The site frame (top and left nav) are controlled by the jscript file. Most all of the content that is displayed when links or topics are selected is placed in the center of the page. I need to put some scrolling text in one of the top frame blocks, (the section that is java script file).

function buildMenus(){
var headerString = "";
var leftnavString = "";
var footerString = "";

[code]....

I have a couple of jscripts that do the scrolling I want, I just need to know how to insert it in the above section.

View 3 Replies View Related

Starting Jscript Before The Page Loads?

Mar 6, 2001

I know you can use the onload statement to start a javascript when the page has loaded, but is there a statement that can start a javascript as soon as the page starts to load?

View 4 Replies View Related

JQuery :: Used In An Asp.net User Control (.ascx File)?

Feb 14, 2011

I am trying to use jquery in an asp.net user control and i am getting a recuring problem. I am getting an error stated 'Object expected'......Can anyone help me on this issue

View 2 Replies View Related

Accessing Value Of HTML File Input Control?

Feb 21, 2011

I have an HTML file input control, like this:

Code:
<input type="file" id="FormsFileSelector" name="FormsFileSelector" size="40" maxlength="1000" style="width: 382px; white-space: pre;"
accept="image/gif,image/jpg,image/jpeg/,image/tiff,image/bmp"
>

And it does indeed allow the user to select a file on his computer.

But when I access the value of the control I get an odd value. I do this, in javascript:

Code:
var FileSelector = document.getElementById("FormsFileSelector");
var FileName = FileSelector.value;
And the FileName that I get is "C:/fakepath/MyPicture.jpg"

The actual path is C:/MyDocuments/MyPictures/MyPicture.jpg". But instead it's coming up with "fakepath".

Very weird! How do I get it to return the actual full path to the file on the user's computer?

View 3 Replies View Related

Passing Form Input Data From One Page To Another Without Control Of The Receiving Page

Jul 31, 2009

I've been searching for a few hours and haven't been able to find a code snippet to see if this is available. I'm attempting to pass text from my website to another website that has a form setup on it. I'd like to fill in the pertinent data for my users on the page that I load for them. I cannot make any changes to the receiving page as it is run by another company. I've pasted some of the code that is available on the receiving form.

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {

[Code]....

View 5 Replies View Related

Activex Control In Html Page?

Jan 14, 2006

i could create it successfully, but i can't manipulate it

<html>
<body>
<object height="50% width="50%" classid="clsid:XXXX....." id
= obj>
<script language= javascript>
obj.gridVisible= true //the method call here
don't take effect
</script>
</body>
</html>

here is the interface i implemented in my control
interface IControlInterface : IDispatch
{
[id(..), propput]
HRESULT gridVisible ([in] VARIANT_BOOL bVal);
}

anything wrong?

View 1 Replies View Related

JQuery :: How To Control Loaded Page

May 15, 2009

how to control loaded page

$("div [id='menuTopLink'][class='menuTopLink4']").click(function () {
$("div [id='mainViewIn'][class='mainViewIn1']").slideUp("slow",function(){
$("div [id='mainViewOut'][class='mainViewOut1']").slideUp("slow");

[code]....

View 2 Replies View Related

Control Printer Page Size?

Apr 21, 2010

I'm battling to print labels on a dot matrix printer. The available page sizes are all bigger than a single label and I can't make custom page sizes on this printer (panasonic KX-P1150). Whenever I print a label, the printer form feeds the label paper and does not stop after the label. I have googled and see that printer comands can be send directly to the printer with ActiveX controls from inside a javascript but the only examples I found changed the orientation etc. None changed the page size or disabled the form feed.

View 6 Replies View Related

Text Value - Transfer Control On Next Jsp Page

Jan 7, 2011

I am using javascript to transfer control on next jsp page

Below is the given scripting code:

In the other hand i have html form codes given below:

I want to transfer control to another page named above (BarcodeReader.jsp) after entering the value in the textbox. I am not using the buttons to call javascript function

I want to use the textbox to call javascript function and transfer control to next jsp page. the above code is neither working nor giving any error.

View 4 Replies View Related

Control Web Page Buttons With Arrow Keys?

Mar 6, 2011

I have three buttons on a typical page (sample page: [URL].. One goes to the previous page, one to the next, and one up a level. Can I link these buttons to 3 arrow keys to simplify navigation for the user? I thought this would be a common task, but I cannot find any canned code on the web to do it. I can code simple html, but don't know javascript.

View 6 Replies View Related

Jquery :: Control The Page Height And Width Using Js?

Jun 12, 2011

control the page height and width using js/jquery? I have a page that is:

width: 980px
height: 2500px

I would like the page height to be set to around 900px with the viewable scrollbar and all other content not viewable underneath.

View 18 Replies View Related

JQuery :: Cycle - Put Links On Page Anchor Control?

Aug 6, 2010

all try to explain my problem: i have this website:[URL].. i'm using Jquery Cycle to do a slideshow. I would like to know how to put a link on each colored square.

I know i have to find in "jquery.cycle.all.js" but i'm a bit lost...

View 6 Replies View Related

Drop Down List To Control Web Page Content Displayed

Dec 17, 2010

I have an assignment where I have a drop down list that is created dynamically that uses the content from the h3 tags in the body as the options in addition to the first option being "Show entire script"

The content of the body is actually a screenplay with <h3> and <blockquote>

My goal is to only show the character's (who is selected in the drop down) name and dialogue while hiding the rest of the screenplay

I am not too sure how to go about this at all, but this is what I have so far:
All it does is gets rid of the names of the characters who aren't selected and not the block quotes underneath

Javascript File:

View 2 Replies View Related

Mouseover On Gridview - Pass The Value To A Control On An Aspx Page

Aug 5, 2011

To get the row number in gridview when mouse is over the row. I need to pass the value to a control on an aspx page.

Does anybody know if it is possible with Javascript to get the actual cell data from the cell under the mouse in a gridview. The data i need is always in then first column ( column[0] ).

View 1 Replies View Related

Need Next-previous Control To Control Contents Within An IFrame?

Oct 10, 2011

Situation:I have a very long page divided into many sections vertical-wise marked by bookmarks, say pageX.html#s1 to s10. I need to show the section inside an iframe (iFrame1) on the mainpage (mainpage.html). I am thinking of having 4 buttons, sitting on the mainpage, to help navigate between these sections on pageX, namely NEXT, PREVIOUS, TOP, END.condition of the frame, fixed width/height, no scroll, no border.Very new to javascript but need this code to make a page work for BIZ.

View 1 Replies View Related

JQuery :: Use A Selected Value Of A Drop Down List Box And Control The Appearance Of The Page?

Jun 29, 2011

The page I am building has 4 columns on it and I want the selected value ofa drop down list box to control the number of columns that appear on the page.

[Code]...

View 2 Replies View Related

Embedding And Control Windows Media Player With HTML But Cannot Run Script Through A Different Page

Nov 29, 2009

I'm doing embedding Windows Media Player with the HTML but I can not run the script through a different page. The following script that I made: file : player.html

<html>
<OBJECT id="VIDEO" width="640" height="480"
style="position:relatif; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE="file_name.mpg">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="true">
[Code]...

View 3 Replies View Related

JavaScript And JScript....?

May 29, 2006

I heard it is not the same.
The lastest version of JavaScript is 1.6 while lastest version of
JScript is 8.0
I also heard a little bit about ECMAScript, but I still don't know
what's the difference of them.
So, what's exactly the difference of it?

View 10 Replies View Related

How To JScript Into One Line?

Jul 20, 2005

in ASP i can finish this line with an asp variable like below
mytext variable would contain a string like
"Pop_up()" <body Onload = <%=mytext%>>

so using ASP i can complete my onload statement.
I need a way to do this using a variable in Javascript.
How can this be done?

View 3 Replies View Related

How To Validate Jscript

Feb 6, 2011

Does anyone know any programs I can use to validate Jscript? Preferably one that points out where the errors are. I need anything that can be thought of as long as it isn't IE. I'm okay with javascript but the differences in Jscript are making mountains out of molehills. If there was a Jscript section here I would have posted this there.

View 6 Replies View Related

ADO Best Way For JScript To Talk To Access?

Jul 20, 2005

I am making a very simple application for my own personal use on my
Windows XP box. I want one that looks and feels like a web app. I don't
have too many languages to choose from on my home computer, and I don't
feel like installing a web server, and it already has Access on it, so I
was thinking HTA with JScript and Access. I see a way for JScript to
talk to Access is with ADO. Is this the best way, or is that the "old
way"?

View 2 Replies View Related

JScript Date Validation

Dec 27, 2007

I have a form input that takes a date in the format MM/DD/YYYY.

I would like to validate this input using Javascript in two fashions:

1. I need to check that the format of the input is 'MM/DD/YYYY' with the month day and year being numeric

2. I need to also check that the 'MM/DD/YYYY' being input is later than today + 2 days (i.e. if today is 12/27/07, then the input must be 12/29/07 or greater)

View 3 Replies View Related

JScript Smart Table

May 4, 2006

I have an application where I have 9 items to choose from and desire a table that will allow only 3 items (any 3 items) to be chosen then check out of the table.Check out can not be allowed unless only 3 items are selected.

Is the JScript applications somewhere that will perform this logic?

View 2 Replies View Related

Jscript Popup Parent

Oct 2, 2003

I have a dynamic page, it's a calander so called calander.asp

When the page loads it opens a popup window (filters.asp) containing a form that a user can filter different dates with different filters.

function openpopup(){
var popurl="filters.asp"
winpops=window.open(popurl,"","width=400,height=600,scrollbars,menubar,")
}

openpopup()

What im trying to do is get the when the user fills in the form.
it submits to the calander page, (the parent?)
<form name="form" method="post" action="calander.asp" target="_parent">

i want the popup to remain intact. when the form is sumbitted it opens a new window behind the filters.asp popup and doesn't filter the correct results.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved