Error Mixing JavaScript And ASP
I get a JavaScript error at this line:Code:
document.location = "myPage.asp?" + <%=strURL%>;
where strURL is an ASP string including some parameters, like this:
"src_field1=dog&src_field2=cat&src_field3=fish"
I got the error only when these parameters are null value. How can I avoid it?
View Replies
ADVERTISEMENT
Im using a table which can add rows dynamically.This is pure javascript. However, first cell of each row, is a 'select' drop down menu, which has to be populated with entries from the database.
So i have to use ASP to connect to the db, retrive the file with the values and pass on these numbers to the 'value' part of the 'select' element of each row.
How can I do this?
View Replies
View Related
I know that it's possible to mix ASP & ASP.NET 1.1 in the same
website/application so long as they are in separate frames (iframes). This
also holds for mixing ASP & ASP.NET 2.0 pages. But what I haven't tried
is mixing ASP.NET 1.1 & ASP.NET 2.0 pages in the same website/application
but each page in ifferent iframes.I don't think it's possible to to have both ASP.NET 1.1 & 2.0 pages in the same website since IIS defines which ASP.NET version to use. Does
anyone know a way to make IIS use ASP.NET 1.1 for certain pages, and
ASP.NET 2.0 for other pages?Probably one can host the ASP.NET 1.1 website, and link in the iframes of ASP.NET 2.0 pages from another website in the same IIS server. But
that's just looks clumsy.
View Replies
View Related
I have the start of a function inside <%...%> then half an HTML table, then some other (unrelated) asp code inside its own <%...%> tags, then the rest of the table, then the end of the function in its <%...%> tags. its not working, have I made a grave error? see below:
[CODE]<% function OutputForm() %> start of table HTML, then <% unrelated code which works on its own%> then the rest of the table, then <% end function %>
Is nesting some ASP code inside a function OK? I'm fairly certain certain the nested code is not the problem. I suspect I either have a syntax error (roll-on 4 hr debug) or you just can't do what I've done.
View Replies
View Related
I am getting Javascript Unspecified Error.I am getting this error only when Onbeforeunload function is called.When I click on OK button then this error doesnt comes up but in case if I click Cancel button this error pops up.It says:
Line: 1237
Char: 1
Error: Unspecified Error
Code: 0
I have checked line 1237 but couldnt find any error in it.Even if I commet the full block of code then also it shows the same error on same line.
View Replies
View Related
I've received the following error message on my ASP login page.
Error Type:
Sun ONE ASP JavaScript runtime (0x800401F3)
Server.CreateObject Failed~System message, messageid = 0x800401f3
/html/sign_in.asp, line 4
View Replies
View Related
I'm playing around with Acrobat at the moment and here's what I need to do.
(1) Have users online fill in a PDF form in Acrobat Reader.
(2) The users Submit it as a "complete PDF".
(3) It is emailed immediately via CDONTS (MS IIS platform).
(4) Users get a thank you message.
I'm currently using an ASP/VBS script for "pure ASP" upload. This script works fine as tested with a standard HTML multipart/form-data form. However, when the PDF is "submitted" the file appears to be lost. ASP can't get hold of it to save it to the server. How on earth do you get this to work?
My required steps are:
(1) Acrobat PDF file submitted.
(2) PDF file saved to disk on the server.
(3) PDF file attached to email and sent.
(4) PDF deleted from server.
(5) Thank you message served to user.
Step (2) is the sticking point! (Or rather, somewhere between steps (1) and (2)!) Everything else when independantly tested is fine.
I have already looked in to the FDF stuff at www.planetpdf.com, but I can't use the FDF Toolkit because I can't get it verified, signed off and installed by IT in time for this project's go live date, so I'm bound in to the route I'm taking!
Can anyone shed any light as to why this isn't working, how Acrobat posts the file (the form enctype) or any other sticking points I haven't thought of. Perhaps I can skip a step and just take the file straight from the buffer to the mail attachment?
View Replies
View Related
Is it possible to do a database lookup in a javascript function *before* displaying the error alert?
We want to do a database table lookup first and get a BETTER error message based on the text field throwing the error.
View Replies
View Related
I got an error saying
Microsoft VBScript runtime error- Error '800a000d'
Type mismatch
/briansforums/default.asp, line 923
also another error called Code:
View Replies
View Related
# Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/CoxAxis/adminEditPage.asp, line 6
My code:
<%
dim self, pid, i, c
self = Request.ServerVariables("URL")
pid = Request.Querystring("pid")
set Session("pageContent") = Server.CreateObject("Scripting.Dictionary")
Set custObj = Server.CreateObject("NFIFunctions.ValidateField") Line 6
set psi = Session("pageContent")
set errDict = Server.CreateObject("Scripting.Dictionary")
i = 1
View Replies
View Related
i'm getting
Provider error '80004005' Unspecified error
admin/dbconnection.inc, line 4
what this is, it only started happening after i did a recent upload of my database!, i 've tryed uploading it again but the error still appears.
View Replies
View Related
I have a dll coded in vb that has a method X with the follwing signature
function X(a as string, optional b as string, optional c as string)
now i need to call this method from asp using javascript.
var dl = Server.CreateObject("dll");
dl.X(....);
I need to pass only 2 parameters 'a' and 'c'. Had it been vbscript I could have done dl.X(a,,c) but javascript doesn't accept that.
View Replies
View Related
I'm having a customer submit an order. When they submit it, it posts to a
page that processes the order and inserts into our database, while
displaying a summary of their order. I have a javascript function that will
cause a "confirm" box to show up if an order seems like it might be a
duplicate. However, I can't seem to get the code to "wait" for the response
from that box, which I guess makes some sense. Am I stuck with having an
interim page or doing something with posts or is there an easy way to get
the record to not insert until the user responds to the confirm box?
View Replies
View Related
Im sure it exists but i am having some difficulty finding it. I need come code to take out any SPACES in a textbox when text is entered OR submitted. Example
i have a text box where people can enter there car registration.
To keep consistency thoughout my site, i want L736 VAF to be entered into the database as L736VAF.
so that when it is recalled via a search form, L736VAF wont be returned as "no record found" because some one has put a space init!
So i basically need code to eliminate any space!
View Replies
View Related
I need to detect the users browser resolution (done with javascript)
var height= (screen.height)
var width= (screen.width)
Now I need to use these javascript variables to set the values of hidden html forms. How would I go about doing this.
<input name="width" type="hidden" value= Javascript Variable Here ?????>
View Replies
View Related
update some long commOn first page I display all the records from database (working well). Then first column has href which opens a popup (i am passing rownum from database to popup). I was hoping to run ASP code on load of the page so the comments which is already there for that row in the databse automatically comes in a textarea. And then you can edit and hit update. And this will update the database.
Also I was thinking of using session variables for the rownum. But bcos I have href which opens a popup, I am not sure how i can set the session variable.
I dont want to pass the "comments" itself to the next page bcos it can be really long comment and QueryString has some limitations.
View Replies
View Related
I am making a dynmanic form that goes to a question depended on the answer. Is there a way that I can make it remember what the person selected (radio button) in the question so that I don't have to write something like,
"<input type = 'radio' name='Question3' value='Yes' checked <% if Question3 = "Yes" then response.write "SELECTED" end if%>>Yes<BR>" + ????
View Replies
View Related
is it possible to use them together?i keep getting errors when i use them together
View Replies
View Related
I have a asp page that have an array for instance:
<%
a(0)=0
a(1)=1
a(2)=2
a(3)=3
%>
I would like to show each element of the array with alerts in javascript... Do you know what its the way to make something like this...
View Replies
View Related
i have an asp page which shows a list of articles which are pulled from the database.
I have a variable as below which defines number of records to show on each page
<%
numRows = 5
%>
Now i also have a drop down list from which you can choose 'display 5 records per page', display 10 records per page' and so on.What i want is when a new value is chosen from the list, the page refreshes and the ASP variable numRows is set to this new value.
View Replies
View Related
I'd like to put some SQL values in my Javascript which is defined in de Head
section
If I put it in there like <%objrs=("field")%>, the script does not seem to
run ?
View Replies
View Related
I have a page that opens a javascript modal window and passes a variable. I then have that variable in Javascript. Is there anyway for me to get the value of that variable in asp. I am passing an id and want to check what the id is and open my recordset accordingly.
View Replies
View Related
i'm looking for a prog in js or javascript who cas disable a key on keyborad??
View Replies
View Related
Is there a way that I can refresh a combo box using javascript after I select data from a another combo box? I can't seem to find the answer to this question. I'm guessing after I select the item in the first combo I could requery the database and display the correct informtion based off of it. I just don't know where to start. I've searched all over the internet.
View Replies
View Related
Will JavaScript function in ASP? or are there specific functions in ASP which replace JavaScript?
I'm running JavaScript to compress down a menu and want to use an #include statement to port the menu to multiple pages. If I have to sacrifice the JavaScript I'd need a way to compress the menu in ASP.
View Replies
View Related
basically I call a javascript refresh function, but I need to pass a url to it too to indicate what this should refresh to. The problem is the function I call, then calls another function and I need to pass the url info down, as it is this second function that needs it.
It seems to work from passing it from the link to the first function, but I think it must loose it passing it from the first function to the second.. Code:
View Replies
View Related
I have searched for some examples, but to no real avail, for a JS function
that displays a user Yes/No dialog box.
Basically, i have an ASP application that displays a SQL table on an ASP
page.
I have created a "Remove" hyperlink (in a loop) by each record and i need to
use an OnClick event so when the user clicks this hyperlink it displays this
Yes/No dialog.
At the moment the hyperlink simply removes the relevant record.
I need an OnClick event that displays a Yes/No box that when the user clicks
Yes - it goes to remove.asp, and when No is clicked it does nothing.
User Clicks Remove next to record > Yes/No dialog> Yes = remove.asp No =
End. Code:
View Replies
View Related
I'm putting together a site to allow someone to add content to a DB
through a text area form, and then display it on the web. Pretty basic.
The problem I'm having is that they need to add snippets of javascript,
but by the time its displayed on the page, there have been extra
linebreaks added, breaking the javascript code.
Replace(string, vbCrLf,"") won't work because that removes all
linebreaks. Is there a way to preserve the original linebreaks as
submitted to the DB in the first place
View Replies
View Related
i am trying to call a javascript function in asp code.But i need the return value of javascript function to use in asp code. how can i do this?
the name of the javascript function is get_textvalue() and it returns a text value.
i have a variable which is named volume in asp code.actually the thing that i want is volume = get_textvalue() but in asp code how can i do this ?
View Replies
View Related
The code JavaScript is not executed in the pages ASP in a server IIS 6.0 in Windows 2003 but if makes it in a IIS 5.1 in Windows XP, like I can configure it so that it is executed.
View Replies
View Related
I have news heading to be posted on the website the main news would be shown in one line and when the user clicks on it the rest of the news will be shown in a pop up window or a small window below the news headline i dont want to use javascript the reason is if someone has disabled javascript they wont see the news so i am trying to do it with stylesheet or with ASP can someone give me an idea how to proceed with it.
View Replies
View Related
I have a Javascript function wich returns true ou false, how do I assign the result on ASP variable?
<% blnResult = javascript:function() %>
All these work because I have a form wich fields are verified by JavaScript on the client.
View Replies
View Related
Can javascript and asp use together? I mean if I Dim n=10; can I use that nin javascript functions?
I need to create dropdown boxes using javascript (I don't think asp is capable of that) and then read from a text file using asp(again, javascript can't do that) and display the lines I read in the text file into the options in the dropdown box. Is that possible to achieve? Or the two language just can't be mixed together.
View Replies
View Related