15,127 Topics
| |
//This is my html code [CODE]<INPUT TYPE=\"Button\" CLASS=\"Button\" onClick=\"delRow()\" VALUE=\"Delete Row\"> //this is javascript function for deleting a row function delRow() { var current = window.event.srcElement; //here we will delete the line while ( (current = current.parentElement) && current.tagName !="TR"); current.parentElement.removeChild(current); }[/CODE] Thanks, Sura | |
Hey. I am new to webprogramming..so sorry if this question sounds stupid:D I just wanted to make an animation but in firefox that animation just doesnt appear tho it works great in IE and opera. Do you have any idea what's wrong? I use the function setTimeout() and document.all[id].style...etc to … | |
[CODE]<input type="button" onclick="move()" value="go" /> <br /> <img src="btn16.gif" style="height:100px; width:100px; top:0px" id="img" /> <script> var k=0; function move(){ var t=document.getElementById("img").style.top; t=parseInt(t); t+=15; document.getElementById("img").style.top=t; if(k<10){ k++; setTimeout("move()",1); } } </script>[/CODE] | |
hi, i looking for a dropdown menu something like this: [url]http://www.lwis.net/free-css-drop-down-menu/dropdown.ultimate.horizontal.html[/url] but without jquery javascript or complex javascript. the reason for mininum javascript if possible is that i use many javascript already for other operations like ajax etc and if i add jquery etc all functions simple don´t work :( … | |
Hello, this my first thread and I need some supper fast help I'm on a deadline... I have applied for a Microsoft program but part of the application process is to complete this assignment... You are to create a console application that accepts exactly one command-line argument. If it doesn’t … | |
Thank you in advance for your help: I really don't know much about Javascript but I'm trying to use it on my web site. Here is the code: [CODE]function changeCategory() { //ID#1 document.getElementById('category_106634').setAttribute("class","mind") document.getElementById('category_106634').innerHTML="MIND" document.getElementById('category_106634').href="http://www.voyagetobetterment.com/_blog/Voyage_to_Betterment_Blog/tag/MIND/" //ID#2 document.getElementById('category_106446').setAttribute("class","movie") document.getElementById('category_106446').innerHTML="MOVIE" document.getElementById('category_106446').href="http://www.voyagetobetterment.com/_blog/Voyage_to_Betterment_Blog/tag/MOVIE/" }[/CODE] The program works fine if the ELEMENT#1 is above ELEMENT#2 … | |
Ive accidently deleted something needed in the body I think for this code, but I cannot work out what it needs. I think the descarea div is missing? Can you help me rewriteit? [CODE]<div class='row4' style='position:absolute; background-color:yellow;border:1px solid #000000; padding:10px; display:none' id='miniTopic'></div> <script> function Request() { if (window.XMLHttpRequest ) { … | |
Lets say I want to show [url]http://www.whatever.com/longWebPage.html[/url] and [url]http://www.someOtherDomain.com/alsoALongPage.html[/url] and [url]http://www.ranOutOfNames.com/youGetThePoint.html[/url] All on one page with one scrollbar. I want it to seem like I copy pasted all three sites one after another on my page. I tried using frames but that splits up the window into parts. What I … | |
Hello All, I've been working in a flash site for a couple days and i've gotten a couple errors as of late. Here are the errors: TypeError: Error #1009: Cannot access a property or method of a null object reference. at DefaultAEG_fla::MainTimeline/frame122() TypeError: Error #1009: Cannot access a property or … | |
var FS = window.FS || {}; FS.Search = FS.Search || {}; FS.Search.UI = function() { undefined; //yui libs var Event = YAHOO.util.Event; var Dom = YAHOO.util.Dom; var defaultSearchValue = 'Search'; return { searchBox: 'textSearchBox', init: function() { var textSearchBox = Dom.get(this.searchBox); if (textSearchBox !== null) { Event.on(textSearchBox, 'focus', this.onFocus, this, … | |
I want to make a sms system, where users can send a sms message and then it is showed. So for every new message I get I need to make a new div, add it and scroll the others down Does anyone know a good example or tutorial to get … | |
I have a need to close a popup window after a certain amount of time. I have tried many different ways to do it with no luck in IE. Works fine in Firefox, Safari, and Google Chrome. It seems to be a problem with IE referencing the window I have … | |
Help! I am hoping this is some sort of typo on my part, but I cannot figure out how the s3slide show I set up turned out the way it did. I got the code from the following site: [url]http://www.serie3.info/s3slider/demonstration.html[/url]. This shows an example of what it should look like. … | |
This should be really easy, but I'm a novice at webapps.... I have a simple drop down list in my JSP which I created using <select> and <options>. I've got a javascript function in which I would like to get the selected value and proceed to do other stuff with … | |
Hello every one. I am developing an application using AJAX and CSS. I have a webpage in which i have some hyperlinks. I want that when ever some one move the cursor on some link, than mini preview should be loaded before clicking. I have done that but problem is … | |
Ideally my goal is to have a multi-dimensioned associative array. However it is my understanding that javascript doesn't really do associative arrays. The data I want to store is a list of 4 digit codes associated with building names. Each building may have a different number of codes. I would … | |
I am opening a word document created via FOP on click of a button in JSP page. My page is working fine for every browser except IE6. I have searched on net, and MS Site also. window.open is having problem with IE6. So can you people help me. HOW CAN … | |
I'm having trouble with a Javascript pop up box not appearing on Internet Explorer. I have tested it with IE7 and IE8 with no success. It works on Firefox 3.6.3 and Opera. On internet explorer this yellow bar appears; [IMG]http://i46.tinypic.com/282fhqr.png[/IMG] However, once clicked and given temporary permission the page reloads … | |
Does anyone know how to do the input focus fade in and fade outs that is seen at Apple's mobile me website at [url]http://www.me.com[/url]? I would love to implement it in my own login box. | |
Hi everyone, I need help with nesting Javascript code, please! I have two webpages, one is a plain html file (plain.htm) and the other (index.htm) has a DIV that plain.htm loads within when a user clicks a hyperlink. This is done with inline JS, and it works fine. I also … | |
Hi Jquery Guros, I develop registeration form (in arabic). I added "validator.addMethod" to check the firstname text. I want to check that the "firstname" text must be in INGLISH leters OR Numbers(means, user can't insert arabic leters or anything else). [B]I added the script:[/B] ///////// chack firstname (English leter OR … | |
[code]<html> <body> Enter your firstname <input type="text" fname="submit"> Enter your lastname <input type="text" lname="submit"> <html> <head> <script type="text/javascript"> if(submit(lname==null)) { alert(" be careful"); } </script> </head> <input type="submit" onclick="submit()" value="Submit" style="color:white; background-color:red;"> [/code] i need help with writing if loop for submit button an alert message that show we forgot … | |
Hi... Any idea on how to embed this flash so it will stay behind other content, e.g. a lightbox? [CODE]<td align="left" id="container" valign="middle" z-index="0"><!-- see notes for files included --> <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player to see this rotator.</a> <script type="text/javascript" src="my/path/to/file.js"></script> <object><script type="text/javascript"> var s1 = new SWFObject("my/path/to/flash.swf","rotator","415","120","7"); s1.addParam("allowfullscreen","false"); … | |
hi Foo, Just read the code and give me a solution.My question will be after the code... <html> <head> <title> working with jscript</title> <script> function appendtable() { var parent = document.getElementById("divide"); div = document.createElement("div"); var tbl=div.appendChild(document.createElement("table")); var tb=tbl.appendChild(document.createElement("tbody")); var tr=tb.appendChild(document.createElement("tr")); var td=tr.appendChild(document.createElement("td")); parent.appendChild(div); var oSelect=document.createElement("select"); var oOption = document.createElement("option"); var … | |
I've been wanted to get this calendar to show data from a HTML dataset just like on this example.. [URL="http://tv.adobe.com/watch/inside-the-dreamlabs/dreamweaver-cs4-javascript/"]http://tv.adobe.com/watch/inside-the-dreamlabs/dreamweaver-cs4-javascript/[/URL] but i havent been succesfull. Does anybody know what can i do? I think my major problem is when im trying to declare the variables on the event handler. I … | |
Hello, I have the following problem with Ajax : - The files I will mention here are copied at the end of this mail, so anyone can look if necessary. - My intention is to bring the contents of SubOne.php into the area defined by the DIV tag named "MyDiv" … | |
I dont know what happened my jquery menus are not working at all.......particularly the hover opacity effect is not working.....it was working 2 days ago i dont know what have i messed with.......here is the full page code.......[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; … | |
I know, this is really a noob question and I don't really know what went wrong. The code is very simple. I have a web page that contains the following: [CODE] <div id="mydiv"> <p>first</p> </div> [/CODE] The <p> tags are created by the following js code: [CODE] paragraph = document.createElement("p"); … | |
function ShowAvailability() { $.ajax({ type: "POST", url: "CS.aspx/CheckUserName", data: '{userName: "' + $("#<%=txtUserName.ClientID%>")[0].value + '",userName1: "' + $("#<%=TextBox1.ClientID%>")[0].value + '" }', contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccess, failure: function(response) { alert(response); } }); } | |
[CODE]var myarray=new Array(4) for (i=3; i <7; i++) myarray[i]=new Array(8); for (i=3;i<7;i++) { for (j=1;j<9;j++) { if (document.getElementById('mytable').rows[i].cells[j]!=null) { myarray[i][j]=document.getElementsById('mytable').rows[i].cells[j].innerHTML;} else myarray[i][j]=0; } }[/CODE] Here is my code and i want to check if the cell exist and if it is true to take the content of the cell. But … |
The End.