20,316 Topics
Hi, Currently I optimize my website. I would like to use php, javascript or ajax to implement the asynchronous action: I have an array of checkboxes: <input type="checkbox" name="checkboxArray[]" value="checkboxValue" />I would like to add functions that when the user check a checkbox, diplay the checkbox value below the web …
Hi, i've been searching google for a while, and haven't found anything in regards to my specific inquiry. I'm looking to manipulate what .JS files load per browser. For example, a different set of .JS files would load for chrome/firefox, and another set of .JS files would load for IE8. …
hi... i want to do simple addition and subtraction with ajax.. i want to do like when user click on any MRP it will show subtotal of all items but with moving numbers.. for eg. if subtotal is 100 thn user click on mrp rs. 100 thn disply of subtotal …
Ok I have the following XML file: [CODE]<?xml version='1.0'?> <root> <GAME_INFO> <TIME>xcxvxc</TIME> <CLOCKON>False</CLOCKON> <PHASE>1</PHASE> <GAMEID>43534534534535</GAMEID> <COMP>SUPER</COMP> </GAME_INFO> <TEAM type="H" name="Bulls"> <SCORE>34</SCORE> <ABBR>BUL</ABBR> <BGCOLOUR>#003366</BGCOLOUR> <TXCOLOUR>#CCCCCC</TXCOLOUR> </TEAM> <TEAM type="A" name="Chiefs"> <SCORE>10</SCORE> <ABBR>CHF</ABBR> <BGCOLOUR>#CCCCCC</BGCOLOUR> <TXCOLOUR>#CC9933</TXCOLOUR> </TEAM> <KICKERS team="H"> <KICKER_NAME>10. STEYN</KICKER_NAME> <KICKER_STAT>PEN-1/1 CON-3/3 DG-1/1</KICKER_STAT> </KICKERS> <SCORERS team="H"> <NAME0>9. du PREEZ</NAME0> <SCORE0>2</SCORE0> <NAME1>11. HABANA</NAME1> <SCORE1>1</SCORE1> …
Hi, I am trying to hide tables when a page initially loads and only display them when a button is pressed. When the page loads the tables show and I need then to be hidden. What am I doing wrong? I am new to this. Here is the code that …
Hi all! I'm writting a little application and I'm triying to give it a feature where the user can move the Mouse over an component(JButton) and gets a little explanation what the Button does if pressed. I have an Rectangle for every component I use to set the bounds of …
How can I add loading image into this script? [CODE] var xmlhttp; function showUser(str) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="cars.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { xmlDoc=xmlhttp.responseXML; document.getElementById("name").innerHTML= xmlDoc.getElementsByTagName("name")[0].childNodes[0].nodeValue; document.getElementById("description").innerHTML= xmlDoc.getElementsByTagName("description")[0].childNodes[0].nodeValue; } } function …
When I view my webpage In Firefox if looks great but in Internet Explorer some images look a little blurry. If I zoom out to 90% it looks ok. My question is: Is there some JavaScript code that sets the user's browser to zoom at 90% if using internet explorer? …
When content is loaded into a div on my web site, the div, while waiting for the new content to load, resizes to 0px in height, which causes the scrollbar on the browser to shift upward, and then when the new content loads, the scrollbar is too far up for …
Hi! I am trying to make an element shake, and I have [I]tried[/I] to make a function in JavaScript, but it won't work. Here is the test page, used only for testing. It is the [I]Genious test[/I] div that I want to shake. Here is the code: [CODE] function Shake(Pow){ …
Ok, This is just annoying me now, i need to [QUOTE]Create a webpage with embedded JavaScript code that loads one of two files depending on whether the user presses the A key or the B key on the keyboard without refreshing the page. Is it necessary to use the XMLHttpRequest …
Hello All, i am currently using Google Analytics to collects stats about my site ( my site is created in ASP.NET 2.0 and C#). i have asp:imagebutton called "Confirm Order". i want to track the clicking of this button. the code for this button is as follows: [CODE]void ibConfirm_Click( object …
Next Problem, i need to make my page hide the background image in the banner <div> when somebody click anywhere in the footer <div>. Again, it needs to use javascript. i was doing some fiddling and took out the background image and replaced it with a colour instead and got …
Dear All, I am trying to resize a page using jQuery but its not working for whole page it just resizes itself rather then whole content of website, anyone can please help me. Here is the code that I am using [CODE] <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <!DOCTYPE …
It worked fine in FF, but keep getting an error in IE Object required, in JS file, Line 21, Char 8; . function ShowBox(id, num) { var i; var bigIMG = new Array(num); for(i=0; i<=bigIMG.length; i++){ bigIMG[i] = "c" + i; var thisBig = bigIMG[i]; if(bigIMG[i] == id){ obj = …
Hello I need to pass an array of client side events to the next page. Here my user would perform a few events which would be stored in a javascript array, upon completion a submit button would be used to post all that data to the next page. An example …
Hi all, I am having a problem with this js function. If I make it redirect then the rest of the script does nothing. However if I remove the line: [B]window.location.href = "index.php?page=news&cmd=comments&newsid=" + pageid + "&del=1"[/B] then all is fine except then there is no redirecting... so what do …
i need to make a paragraph of text identified by a <div> grow in size when the user moves their mouse if that portion of text. I Guess it needs to use onMouseOver and getElementById but i not sure what else is needed, i have trawled the internet for the …
I've a iframe already resized when it got a page in it.When i click on url in page and make a page longer but my iframe didnt continue resize because resize function work only in onload event. Iframe didnt have onchange event so I need some help ^^! Thank for …
below in the form action, i've put "test.php?w=$sw&h=$sh" but when i input the form and submit i get this.. test.php?search=example&submit=search how do i get all together in the url? like this [url]http://test.php?w=$sw&h=$sh&search=example&submit=search[/url] i even tried this [code] <form action="<?php $sw = $_GET['w']; $sh = $_GET['h']; $theurl = "http://test.php?w=$sw&h=$sh&"; echo $theurl; …
Using the [URL="http://www.datejs.com/"]date.js[/URL] library, I created a function to get someones age when supplied a birthdate and the date at which you require the age. What do ye think? (I have checked that the second Date is after the first date in the function that calls this one). [CODE] /** …
i want to say this rule by javascript in asp.net page: for any controls in page if control[i].text=" " then set control[i].text="" (for page textbox controls only) how can i implement this in javascript language in asp.net form?
hi every one i made a menu using javascript and css.....using mozila firefox browser. menu working properly . but the way of opening submenu is not professional...... plz help me out i used this function into my javascript file code ... var transition=102; but not working. is it right function …
Can someone explain how the following js syntax works? Is this a function? Why is the syntax like this? How does it work (accessed)? [CODE] SomeName(function() { otherFunction(); var form = document.forms.passengerInformation; toggleCreateProfileFields(); SomeName("#createUserProfileCheckbox").click(function() { toggleCreateProfileFields(); }); }); [/CODE]
Hey ppl, I have a form with the start date and end date fields... I want to check if bothe fields are filled and also to check if the start date is earlier than the end date... [CODE] <form id="form1" name="form1" method="post" action="get2.php" onSubmit="return validateform(this)"> Checking code... <script language="javascript"> <!-- …
Hi, I need to change the image to another image using mouse click... this is the code i'm getting forest.jpg image when i clicked over the image in status bar it says "error on page"..what i want is i need to display "dock.jpg,creek.jpg". pls anyone help me to correct this …
Hello! In a childform I have a step which need to send and recieve some data to/from a external application, and after update some textbox's fields. During this time the childform need to be static waiting from that data, in this time I need to show a progress bar or …
To avoid malware infections, should I permanently disable Java and ActiveX in Internet Explorer? How about Javascript? If I should also disable Javascript, should I just disable Active scripting, or all options? But I don't also need to disable any of these in Windows itself, right?
i'm trying to simplify the url, how do i do this within the code below.. if width & height = 1024 & 768 and declare that as variable "1". if width & height = 1360 & 768 and declare that as variable "2". then the url would be test.php?s=1 for …
Hi everyone. Is there a guru who can tell me how to do this; What I need, When on page x, one can click a link where page z opens as a popup. Page z has to collect data, and when finished, page z has to send the daa back …
hi frnds, i m new to ajax...i m using the below javascript code. here the functionality is working good. but the page(specific div) takes some time for loading. so, i need to put some loading bar(just 4 indication)... plz check the below code and add the onload funtion.. [CODE] jQuery(document).ready(function() …
[CODE] <html> <head> <script language="JavaScript"> var bgcolorSelected = "#cc3333"; var bgcolorNotSelected = "#ffffff"; function HighLightTR_a(el){ if (document.myform.s23.checked == true) { el.bgColor=bgcolorSelected; } else { el.bgColor=bgcolorNotSelected; } } </script> </head> <body> <form name="myform" action="" method="POST"> <table border="0" cellspacing="1" cellpadding="4" bgcolor="#F2F2F2" > <tr align="center" bgcolor="#FFFFFF"> <td height="50" width="50" onClick="HighLightTR_x(this);" <?php echo $c[23];?>> …
hi... i m trying to get values of more then one select box on same page.. i am showing list of all users with select box..so per user there is one select box... i want to get the value of all select box...which is select or not select... here is …
[b]Thread Split - [url]http://www.daniweb.com/forums/thread162300.html[/url] [/b] [QUOTE=alc6379;828001]What are you trying to load from? If you're trying to load the values from a database or an XML file, then you can use Databinding to bind the combobox to a data source, where you've added all of the choices in advance. [/QUOTE] I'm …
hi all have a homework project have to come up with a html code for ducci's 4 number game using a fuction called difference(firstNumber secondNumber) can anyone help if i get this wrong i am in serious trouble please help
hi frnds, iam a java developer, i need to add elements in list box dinamically, for example in my listbox data retrieve from database at runtime i.e., girls when user enter details he need option boys in the list...then he can able to enter boys in list box just like …
I have this code when I submit a form: [CODE]<?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; mail( "Saamon@live.com", "Website Opt In Form Results", $message, "From: $email" ); header( "Location: index.html" ); ?>[/CODE] On the header location part, how can I make a popup window appear instead of a …
Hi I have this login page where user enters in and goes to main page, it has a button called enter form >> which on clicks go to a form submission page . The user enters the form and click submit, once he click submit the form is submitted and …
I'm using greybox as a popup and everything works fine, except when i click on a link i get a scripting error. I have added this code to make greybox close and the main browser go to the page i want it to. [code] <a href="www.websitename.com" onclick="top.window.location.href='this.href'; parent.parent.GB_hide();"> [/code] When …
Hi, I have a problem with capturing a number that is generated with a javascript. Let me explain. Its a shopping cart. when people choose to buy a package, there is a total that is visible. This total changes as they choose more or less packages. The total is handled …
Hi, Pardon me for the title, I din kno any other way to generalise my problem. Anyway, am making a fantasy football site and require that the users can select their teams. Thing is I have no clue on how to do it. I would like to have a div …
Hi, i need a code to change the image(for example i need to display 5 images) when the user click over the image. thanks
Hello all, I'm attempting to convert my current HTML table layout to a div layout. However, I'm running into snags here and there and I'm stuck on one that I need assistance with. [CODE]<div style="width:100%; display:none;" id="block_1_1"> <div style="width:50%; float:left; margin:0px; padding:25px; text-align:center;"> <div style="text-align:center; float:left; margin:0px;"> <img style="margin:4px;" src="picture.jpg" …
Hi, I have got a long list of items that are generated by PHP. There are 2000 more results and are constantly changing. What i am trying to do is all domains starting with A, B, C etc so it would hiden until you select A for example(sorta like a …
Hi, I am working on the jquery slideshow script, which i had borrowed from some famous jquery plugin and customized so nicely so as to look just as par my requirement .Its working perfectly fine in the Internet Explorer but failing to even call the event on click in firefox …
How to pass variables from JavaScript to Flash, and opposite (AS2)? Please Answer, thank you! :)
Hi, I have query in Javascript and Ajax. Is it possible to write AJAX code inside Java Script. When i click the " confirm("test"); " Yes button. i have to insert the data through ajax. I have written the code for sample, i am attaching. Please can anybody give the …
Hello! I made a little app/page to help me count the money when Im done my shift at work. It runs fine in IExplorer, but it wont run in Firefox..can someone help? [CODE="html"] <html> <head> <title>Money Calculator 1.0</title> </head> <body> <script type="text/javascript"> function clr() { document.getElementById("hundred").value=0; document.getElementById("fifty").value=0; document.getElementById("twenty").value=0; document.getElementById("ten").value=0; document.getElementById("five").value=0; …
Hi I have a web page where i need to use some javascript. If i write all the javascripts and jQuery javascripts in the aspx page it works perfect. But when i write all the javascripts in separate file called scripts.js and include scripts.js in the aspx page it doesn't …
Hello all! I am making a site for a club on campus and we need to show the presidents quotes on the site. He has some lengthy ones so I want to save space (can't tell him to KISS) so I'm using a little code I learned to do so. …
The End.