15,699 Topics
![]() | |
how can I store the value of a javascript variable in jsp session | |
Hello, I have a menu.jsp included in all the jsps. When I click a link in the menu it calls the respective page and the menu.jsp is also refreshed. I want to write a java script to highlight the menu link that was clicked. But since the menu jsp is … | |
I'm familiar with HTML and CSS, and have now started to learn PHP without running into any trouble, but I want to add Javascript to my knowledge. I tried a long time ago, and failed, for the same reason I'm failing now. Code that looks logical to me is not … | |
Hello! I need a script so that I can drag an object (picture) and drop it in another object (ex: basket). When I do that, I want to run an action. Do anyone know how I can do this... mabye some tutorial or code? Thanks for all answers!!!!! | |
Is there a way using javascript to change the display of a form after it as been rendered? I won’t to remove a checkbox on a form if a certain condition is true. Since this case is not the norm, the default rendering displays the checkbox even though it’s not … | |
Hello, I have this code: [code]<select name="product" class="buy"> <option value="products.php" selected>Select Term</option> <option value="products.php?item=1&term=1">2 Month</option> <option value="products.php?item=1&term=3">3 Months</option> <option value="products.php?item=1&term=6">4 Months</option> <option value="products.php?item=1&term=12">5 Months </option> </select>[/code] I need to make it so as soon as you click that select box, it loads the url (value)... if anyone can help me … | |
I am stuck. For some reason, my external css will only affect my links on my site. The color and hover color will change when i change it in the css. What is weird is the links are even coming from a php file <? require_once("NavigationTemplate.php");?> The problem is that … | |
I have created a progress bar .The Progress bar works fine. The only issue is that it flickers. I am not able to find out why that is happeneing. Can anyone tell me what is wrong in my code.Below is my code. <html> <script> var secondWindow = false; function ProgressBar(sLength) … | |
Hello, I have a javascript code (a part of it is in php) that populates a pull-down menu. It works perfectly well with Explorer, Netscape and Firefox under Windows. But impossible to make it work with Explorer or Safari under Mac!!! Is javascript different between windows and mac? Here's the … | |
How can i get the floating layer to stop scrolling at a certain point on the page so that it does not 'run into' my other elements on the top and bottom of the page. If you will look at my page: [url]http://increased-online-traffic.com/Big-Search-Engine-List-A.asp[/url] , you can see exactly what i … | |
Hello, I have a javascript code (a part of it is in php) that populates a pull-down menu. It works perfectly well with Explorer, Netscape and Firefox under Windows. But impossible to make it work with Explorer or Safari under Mac!!! Is javascript different between windows and mac? Here's the … | |
Well i should say i dont even kno JS and want to learn it. Can some one tell me some good books to learn JS for a newb person who you can take as a compleatly new to coding even thought i know some PHP. I have looked at some … | |
Im looking for a way to password protect pages on my site. ive found a few asp scripts only i cannot run asp through my host. is there an html or simple java solution? and also i want to disable the tool bars in ie. im going to have a … | |
i have 2 asp pages, one is an index that when you click the submit button, a pop-up window will appear. this popup window is an ASP Page that connects to a database.. how can i make this a pop-window? any help would be gratly be appreciated.. thanks | |
Hi there Gurus. I seem to have a problem in FIREFOX which does not appear in IE. Basically, I am trying to validate a form has only 10 numbers entred into the field (no spaces or any other characters). The following script works perfectly in IE but no dice in … | |
Hi I am trying to disable a dropdownlist in an asp.net web application whenever the selected index is changed. I have the following javascript in my web app but whenever it gets to the disabled = true line it is falling over. What I want to know is that the … | |
Hi all, I am new to Web programming, most of the time have done GUI development in C++/MFC and played a bit with Java/Swing. I have read about DHTML and its ability to enable interactive Web applications. Before delving into DHTML programming I would like to know what are the … | |
hi all im trying to add one more row to my table...... this row will have select button,text fields that would also be generated..... the Select list have to take values from variable in jsp page.......... please can anyone tell me how to do that......... i have also attached a … | |
Is there a way to validate an email by checking it's existence? | |
Hi all If I create a link that opens a new window, how do i make it such that when I click a link on this page in the new window, that link should open in the original window? I was guessing its using javascript. Any idea how? Thanks | |
Hello, I've been experiencing a big problem. When I log in to my yahoo mail and click on the 'empty' beside the 'bulk' button, it appears nth. I can clearly remember that it will show a text box showing a confirmation whether you are to empty the bulk folder, but … | |
Hi, I am not familiar with JavaScript very well, but despite the fact that where it says "enable" in "internet options" I checked the box, most of the sites still don't work. What could be the problem and how to fix it? THANKS in advance, -Roza | |
this is what i got: function roll(id,h){ //menu = document.getElementById(id); cont+=1; document.getElementById(id).style.height = cont; t=setTimeout("roll('"+id+"',"+h+")",100); if (cont > h){ cont=1; stop(); } } this should resize a layer's height like an animated dropdown menu ... but it simply won't assign the new height.tryied also: function roll(id,h){ menu = document.getElementById(id); cont+=1; … | |
I'm trying to make a simple calculator and whenever I want to add text to the textfield(say a number) it will show up, then will dissapear. [Code] function display(number) { var x = document.form1.displayText; x.value = number; } [/Code] This is how I'm doing it, but why is the text … | |
Hi everyone, I was trying to achieve a functionality for drop down box to remember its selected value if the page reloads. I saw some code on this forum using onload method. Title of the thread is "Javascript generated drop down menu " within the last two weeks. Problem is … | |
Hi, I've been beating my head against my inability to force Safari to dynamicall y load an external Javascript file, and was wondering if anyone has any advi ce. My current code works fine in Firefox and IE: [FONT=Courier New] var e = document.createElement("script"); e.src = url; e.type="text/javascript"; document.getElementsByTagName("head")[0].appendChild(e); [/FONT] … | |
I have this code that I am using in C# calling a Response.Write to call another aspx page within a frame. [B]Response.Write("<script language=javascript>parent.Frame.location.href('detail_search.aspx?NameOrCat=1&strFor="+strName+"&catDesc="+strCategory+"&clickedButton=0&Where="+this.WhereSelect.SelectedValue+"&searchOption="+this.rbtnStartsContains.SelectedValue.ToString()+"§ion_id="+this.ddwnSection.SelectedValue.ToString()+"');</script>");[/B] This logic works on explore 6.0 but I can not figure out why it does not work on explore 5.0 and explore mac. Does anyone know how … | |
I was wondering if someone could point me to some good online tutorials and exercises. I most importantly would like a site with some exercises to help me learn further. I have a book called "JavaScript in 24 hours" and I have to admit, this book is terrible. It teaches … | |
want to load some external content into a hidden iframe. The hidden iframe will function as a buffer from which i can load the content into a <div>. The reason i am attempting this approach is because the external pages are located on a different domain at my company and … | |
Does anyone know if it is possible to place a .swf within a dhtml dropdown. For instance, On click drop down and externally load an swf within the dropdown. Any feedback would be great. Thanks | |
I am using javascript to display a dropdown menu on an html page. This menu lists 48 states and is used to calculate shipping costs to each state. I have an onChange() event in the <select> tag that sends the selected state to another function to figure up the shipping … | |
Hi , I have a function as : function doCheck(str1,str2) { top.LocalCacheLoadStatus = false; parent.SearchFrame.location.href=str1; g_str_Mode = str2; alert (g_str_Mode); } This has str1 as the name of the jsp file and str2 is the value which i have to pass to the jsp file given in str1.How do i … | |
hey guys i have a problem :S I'm making a site and now im trying to fix the menu, its a rollover menu and it should drop down...it works perfectly now probs there. but the problem now is that i want the menu in a frame. But then the dropdown … | |
Hi All I am hoping someone can help me out since this is driving me nuts. On my ASP.Net page I have DIV areas and one ASP.Net server label control : Code: _DIV area 1_____________________________________________________ Message Center View All Messages| _DIV area2_____________________________________________________ (lblMsgCenter) This is first test message. | | … | |
http://ww.bestblanks.co.uk/media.php hi im not sure what im doing wrong with this: have a look at the above url: each product name is suppose to open a small window which will go on to display a description of the product: however when you click on title there is an error and … | |
Hi - I'm hoping someone might know of a free or relatively inexpensive solution I can use similar to the "Related Search" box on Yahoo News. It appears to use a combination of Javascript and CSS. Here's an example: [url]http://snipurl.com/fz7l[/url] Click on Sandra O'Connors name to see the box appear. … | |
Greetings. I encountered this little problem and am stuck. I don't know what should I google. I am developing a webpage with Coldfusion and I need to use some Javascript also. I have a component, and onclick of that component, I would like to call a Javascript function and pass … | |
Hi all, I have spent a long time trying to get this sorted. I have searched high and low to get an answer. I hope one of you experts can help :mrgreen: I have a gif on a webpage (a chinese flag). When someone clicks on the gif they are … | |
I would like to open a web page with several layers on it to a specific layer depending on the link on the previous page. I know I can do this from within the same page but I would like to do this from an external page. Can I and … | |
:( I have a website at: [url]http://www.outingsunlimited.com[/url] This site has quite a few "mouseover" images (37 actually) and I need to preload them before I start. When someone goes to the site, while the images are loading.....the screen is just blank and they think there is a problem.....:( HELP !! | |
This is my php page it's have javascript problem so plz tell me what should i do. <?php session_start(); if($permission=="yes"){?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; … | |
I am using setTimeout() to provide a delay between changing images. The images are changed by looping back through a function. clearTimeout() is used to cancel the setTimeout function. The problem is that I would also like the initial image (image1.jpg) to be displayed when I'm finished with the looping. … | |
hi i am trying to turn this code: strOutput += "<input type=hidden name=\"amount\" value=\""+ moneyFormat((fTotal + fShipping + fTax)) + "\">"; into a html form line: <input type=hidden name="amount" value="??????????"> im not sure what i shud be putting in the value bit. can anybody help thanks simon | |
I have built a site and it looks fine when the screen is full size but cuts off when you make the screen smailler. What can I do to keep it looking the same on different screen sizes? | |
this seems to be a very simple problem, but i just can't get it done. how do i set a variable which is to display url response? let's say my request is "http://domain.com/datavalue.htm". the request returns some value ( let's say "30.0" ) when i use it with browser. now, … | |
I have a JavaScript to detect between Netscape version 6& below and IE, is there anything to detect Firefox? Basically I have two sets of code I want to display. One set for IE and FireFox, another set for old Netscape. Right now using the code below doesn't work because … | |
[CODE]<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script> stm_bm(["uueoehr",430,"/new/common/images/","blank.gif",0,"","",0,0,250,0,200,1,0,0,"","",83886089],this); stm_sc(1,["transparent","transparent","","",3,3,0,0,"#fffff7","#000000","up_disabled.gif","up_enabled.gif",-1,-1,0,"down_disabled.gif","down_enabled.gif",-1,-1,0]); stm_bp ...[/CODE] | |
thank you for entering this page i would like to explain what i should do in my project and my problem: 1- the project for student in the school . 2- every one has an private account and can use it for many things 3- every account has a table … | |
Hi there, I really can't see why here: [url]http://www.bswebconsulting.ch/kunde...nn/w_g_main.php[/url] the menu images on the right side show up normally and here: [url]http://195.186.60.100/online/index.php?id=7[/url] they only display after hovering over them. I've studied the source code many times now, but I have to admit that I can't see the error The menus … | |
Hey everyone, I've got a recordset of terms in my page. I know the recordset has all the terms from the sql table within it because i can get it to print just fine to screen. I need to put the recordset into an array. That way, a script that … |
The End.