15,120 Topics
| |
Hello, I am able to get the height of the browser w/o the scroll bar, but I need a way of getting the height of the browser with the scroll bar. How can I do this with javascript? | |
| Hi, Can someone please tell me what the correct syntax for this is... I've tried everything. [CODE] parent.TopFrame.document.FormName.inputAreaName.value =(tableName.rows[1].cells[0].innerHTML).trim(); [/CODE] It works without the trim() function, as soon as I put it in, it throws an error and stops working. Thanks, -Ash |
In the following code I am attempting to get certain fields to only appear if the user Selects dependent else those fields should be hidden. Please tell me what I have done wrong? [code] <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" … | |
Morning people, I'm trying to embid php in javascript function and pass the information php read to a separate javascript page using js function [CODE]<script type="text/javascript" language="javascript"> function alerting() { //var getinformation = new Array(40); var information += <?php $sql = $conn->query("select valgroup_id,valgroup_desc from validating_group LIMIT 1"); if(mysql_num_rows($sql) > 0) … | |
Hey guys, Im having the weirdest problems with my ajax. Now first off i have horrible coding convention!! I have one Ajax.js file which handles all my ajax requests and one ajax.php file which handles retrieving data from a database. The problem I am having is when ever I call … | |
[CODE]File.prototype.OpenAudioFile = function(dPath) { var rem = document.createElement("div") rem.name = "divv"; rem.id = "divId"; rem.innerHTML = '<embed src="' + dPath + '" autostart="false" name="' + dPath + '"></embed>'; document.body.appendChild(rem); } [/CODE] I'm using the way above to solve my sound problem but when i attach div object to document sound … | |
How to get full path from a file input field , i am getting only the image name using this code please help me [CODE]<body> <script type = "text/Javascript" > function show_filename() { var filename = document.getElementById('eve').value; alert(filename); } </script> <form> <p> <input name="text1" type = "file" id = "eve" … | |
hi I am searching for a long time now for an extension where I can have a big image only showed a ceratain part of that image and you are able move (drag) the image (handcursor) to see the rest of that images. hope anyone understands what i am looking … | |
Hello, is it possible to limit the number of visible items in a dropdown list using javascript or any other way? Thanks, | |
Hi everybody, What should I do in order to add an [COLOR="red"]onkeyup="foo();"[/COLOR] to an input box but without writing the [COLOR="red"]onkeyup="foo();"[/COLOR] inside the input field declaration? Usually you do: [CODE]<input type="text" name="hello" value="" class="input-tags" onkeyup="foo();"/>[/CODE] But I want to do something like this: [CODE]<script type="text/javascript"> document.getElementsByName("hello").item(0).addEventListener('keyup',foo(),true); </script>[/CODE] and leave the … | |
Hey guys, I know there is LOTS on the web with regards to learning resources and tutorials on javascript but I was wondering if you nice people could point me in the direction of a few websites that teach you the 'right' way of doing things? I'm a total noob … | |
The Script below generates a sudoku (9 by 9) table and displays the table on screen. what I am trying to do is to get a string of numbers entered into the text field labeled "enter values" on the page below the table, into each cell box of the sudoku … | |
Hi, I've posted once or twice before on a similar issue and couldn't ever get it resolved, but I have narrowed it down a bit and set up a demo which will hopefully help someone spot what is going on. To recreate the problem, go to [URL="http://maguiresonline.co.uk/development/dropdown_issue/"]http://maguiresonline.co.uk/development/dropdown_issue/[/URL], select Client3 from … | |
Ive been fighting with this for a few hours now and cant seem to grab an answer. I hope one of you guys can help. I would like to add a delay on the mouseout so when they move away it has a pause before it disappears. Here is the … | |
hi, iam using the following javascript a page opener.location.reload( true ); but every time the page reloads iam a getting alert message. How can i reload a page with out a alert message | |
I have dropdown & Gridview on FrmSatelliteMain,In dropdown DataValueField uid is there,Now i want that as the user selects the value in dropdown ,on basis of uid i will fetch the records fromm DB & bind to Gridview using AJAX. Plz frnds dont tell me dat,dat do it using AJAX … | |
ok, i wrote a label for statement that on row 1 has "*" and nine spaces. row 2 has 2 "*" and 8 spaces and so on...... till my tenth row has ten "8" now i need to do the opposite; row 1; 9 spaces and 1 * row 2; … | |
I need quick help, its urgent for my job, pls help me. I need to change the font color, font size & font face of some text assigned in a div. To do so I have a form select option menu at the top, adn below the menu three's 3/4 … | |
Hi, i use jquery and this function: var news = setInterval(function() { $('#news).load(news2.php?id='+ Math.random()); }, 5000); But this function re-enter div. I want to add a div, that old data remains. | |
Using write instead of createElement/createDocFragment? Hello all, I've made a version of a script: [url]http://pastebin.com/m795e1a9a[/url] found here: [url]http://www.daniweb.com/forums/showthread.php?t=212732[/url] It's great (all credits go to the original author(s)), but I would like the results in a pop-window and I seem to have met a mental-block. I would be grateful for any … | |
[CODE] <%! String[] selElts=new String[100]; %> <a href="myPage.jsp" onclick="selElts = tree2.getAllChecked()">Get list of checked</a> [/CODE] the values are returned from a javascript function. now, how could the print the array values in the same jsp page? | |
I have an existing JSP website which I would like to painlessly add CMS functionality to. The site is a intranet portal and is backed by a database etc. however some pages like News and Events etc. I would like the user to be able to edit using a simple … | |
Hi and I'm no noob 2 ajax and have used it many times before. But for some reason this script doesn't want to work on any browser except Internet Explorer. Can anybody see what I have done wrong in this code as I have searched and searched for hours and … | |
hi, JAVASCRIT the actual program reads and prints values from a checkbox tree and this piece of code does it. [CODE] dhtmlXTreeObject.prototype.getAllChecked=function(){ return this._getAllChecked("","",1); } dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){ return this._getAllChecked("","",0); } dhtmlXTreeObject.prototype._getAllChecked=function(htmlNode,list,mode){ if(!htmlNode)htmlNode=this.htmlNode; if(((mode)&&(htmlNode.checkstate==1))||((!mode)&&(htmlNode.checkstate>0))){if(list)list+=","+htmlNode.id;else list=htmlNode.id;} var j=htmlNode.childsCount; for(var i=0;i<j;i++) { list=this._getAllChecked(htmlNode.childNodes[i],list,mode); }; if(list)return list;else return ""; }; [/CODE] the values are returned … | |
Hi, I posted this on the web development forum and did get headed in the right direction, but it looks like it should be here as another member suggested.... I have a calculating order form, which is at [url]http://www.bcdcoatings.com/orderform.htm[/url] which I partially inherited. The problem is that the second drop … | |
I'm really new at JavaScript, but I thought an image map with rollover images would be a relatively basic feat... I have a large map with hotspots over individual states. I want the user to hover over a hotspot and for the main image to change, displaying information for that … | |
How can I capture the maximize and minimize of a browser? It is possible to capture this events? I'm searching the web and I didn't found any results. I want to be know if the user maximize/minimize the browser ? Is this Possible? Thanks for the help | |
I know how to fetch the records from DB,But i want to ask u just small thing. SQL TABLE [code] roll name marks 1 Ritu 10 2 Sneha 20 3 Ruchi 30 [/code] CODE BEHIND PAGE Default.aspx [code] protected void Page_Load(object sender, EventArgs e) { cmbRoll.Items.Add("--Select--"); cmbRoll.Items.Add("1"); cmbRoll.Items.Add("2"); cmbRoll.Items.Add("3"); cmbRoll.Attributes.Add("onChange", … | |
[code=html]<html> <head> <title>Ajax demo</title> </head> <body > <script type= "text/javascript" > var req; function validateUser() { alert("validate catched") if(window.XMLHttpRequest){ req=new XMLHttpRequest(); } else if (window.ActiveXObject) { req=new ActiveXObject("Microsoft.XMLHTTP"); } else{ alert("Your browser does not support XMLHTTP!"); } alert("request catched") var idField=document.getElementById("userid"); var url="localhost:1234/a/validate?id=" ; url+=idField.value; req.open("GET",url,true); req.send(null); } </script> <H1>Ajax … | |
Hi I hope this is an easy one... Im a bit of a noob when it comes to mootoools, but have created a menu which hides itself and slides in from the left... I'd like to have it start hidden first though... can anyone tell me what i need to … |
The End.