vicvirk, I'm sorry I missed your addendum to this thread. I do not frequent these forums near as much as I used to.
Regarding your question, javascript arrays are definitely 0-based. Since I don't have your code that was causing confusion, I can't say exactly what the issue was that you...
Sorry, I had no clue what you meant by page name - I just assumed it was the title.
Sounds like you got it working though.
-kaht
http://www.lessthandot.com
I don't really understand the revision to your question. However, I can tell you this - javascript will not directly understand how to convert an array from the server into a client-side array. You have to do all of that yourself.
Here's an example:
<script type="text/javascript">
var a =...
I think document.title is what you're looking for:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>This is a test</title>
<meta http-equiv="Content-Type" content="text/html...
document.getElementById("dlMonth").[!]getElementsByTagName("option")[/!][m].selected = "selected";
If you want to cut out a call to the getElementsByTagName, you can use the native options reference which should perform slightly better, although in this instance you likely won't notice any...
[!]document.all[/!] is not supported by firefox.
You should give the paragraph tag an id, and then use getElementById to grab a reference to that tag to pass to the function:
<h3 onClick="doit([!]document.getElementById('whatever')[/!])" title="Click here to expand/contract!" style="cursor...
If you're uncomfortable using the VBArray object, it supports a method called [!]toArray()[/!], but take note that this will convert your 2 dimensional array into a single dimension array. So, you will have to keep track of how many columns were returned from your query so you'll know when each...
Take care that some browsers treat white space as text nodes, so in your code above you may end up with twice as many child nodes are you are expecting.
-kaht
http://www.lessthandot.com
Postback is an ASP.Net term, so you're going to have to be a bit more specific of what you mean.
I'm not sure what you're wanting to do is easily possible w/o using ASP/ASP.Net.
You might want to look into storing your pre-submission data in a cookie if you're wanting to take a javascript...
Yes, but why would you want to do that? Presumably the textbox would exist inside the form that is being submitted. If that is the case, serverside - just have ASP retrieve the value from the textbox instead of the hidden form field.
If you still prefer to use the hidden field method, here is...
Hi, can you paste the code have you written so far to convert this to use radio buttons? We can't assist you if we don't have your code to assist.
All you have posted is your original code with no changes made. You have tried to take a stab at this before you posted asking for help, right...
jsteph, I don't use VB when coding ASP (as I assume you do - most ppl do), so the best I can offer is a JScript example. However, I'm sure it's just as easily done in VB.
You can include a script file in your ASP page (server side) by using the runat="server" attribute in the script tag:
<%@...
Well, we've already determined how to capture the id and pass it to the function, so all that is left is to use that id to return the content of the arrays. Let's use your last example, using "printer3". Assuming that the id of the div is going to be "printer3" (in lower case), and that by...
I don't know that I completely understand what you're trying to do, however since it seems like you're trying to mix javascript and input boxes of type file then you're probably gonna hit a brick wall. The contents of an input box of type file cannot be modified by javascript.
-kaht...
try out the scrollIntoView method, it might simplify what you're trying to do:
http://www.java2s.com/Code/JavaScriptReference/Javascript-Methods/scrollIntoView.htm
-kaht
http://www.lessthandot.com
Yes, your dropdownmenu is passing a reference to the image object that is being hovered over. Use that reference to find the parent div. Since you have not supplied the code for your dropdownmenu function, I will assume that this reference is named obj.
function dropdownmenu(obj, e, p, px) {...
Just make it always check for upper or lower, and then convert the input to match what you choose:
function ValidUserInput() {
if ($("PromoCode").value[!].toUpperCase()[/!] != "0508T[!]EST[/!]")
}
alert("The promo code you entered is not valid, please check your code and enter again.")...
Sorry for the late response. I have been spending less and less time here @ TT since the release of our new IT forum (link in my signature), and I missed your reply.
Since you've gotten some sample CSS menus off google, let me make another suggestion for good reading material. One reason that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.