20,316 Topics
Hi all. I have some problems with radio buttons. Hope to get some help here. Thanks in advance. Here's the html: [CODE]<?php while($row=mysql_fetch_array($result)) { ?> <input name="replacement" id="replacement" type="radio" value="<?php echo $row['date']; echo $row['title']; ?>"[/CODE] I need to validate if none of the radio buttons is checked using javascript. How …
I tryed the [COde=JavaScript]<script language="JavaScript">var password;var pass1="PASSWORD-HERE";password=prompt('Whats The Magic Word?',' ');if (password==pass1) alert('That Is Correct!');else { window.location="SITE-LINK";}</script>[/COde] code, but the problem i found is, that anyone can see what text has been typed into the passord box, can anyone tell me how you get the text to appear as bullet …
It used to be good enough that you could design well. Those times have changed. Now you have to be a programmer, dba, and a competent designer. So, I'm seeking out all resources to become a better php, javascript, MySql, CSS, AJAX, XML, XSL, HTML, XHTML coder and still swing …
Hello, I am trying to populate data from an xml file when a certain catergory from the dropdown menu is selected. The dropdown menu is also populated from a xml source different from the one where the data is stored that needs to be pulled. so when a category is …
Hi Folks, I was wondering if anyone knows how to create a pop up window like this page: [url]http://www.allhealthcarejobs.com/aspx/JobPostingView.aspx?ja=indeed&code=K14&jobid=600694&=indeedOrg&utm_source=Indeed&utm_medium=organic&utm_campaign=Indeed[/url] You will notice that after loading the page for 2 seconds, a pop up window appears that asks for the visitor's email id. Does anyone know how to create this kind …
I am new to JavaScript. Therefore, I don't understand how the following javascript code work: [CODE] var specialChars="/\\(\\)><@,;:\\\\\\\"\\.\\[\\]\*\+\?\!\#\$\%\^\&\=\~\`\|\/'"; var validChars="\[^\\s" + specialChars + "\]"; var atom=validChars + '+'; var atomPat=new RegExp("^" + atom + "$"); var str = "Hello World!"; if (str.search(atomPat)==-1) { alert ("Special Characters Found!"); } [/CODE] When …
I have a .asp page that is a map of the U.S. When you click on a state it brings up a pop menu. This page works fine on IE but not on Firefox. On Firefox when I click on the state it opens up another tab of the .asp …
Hey all Can anyone see why this isn't working for IE but is Firefox? I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php …
Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button …
Hi Everyone, I am doing some development using php and sql I need a pop up javascript calender for a form which has start date and end date. So if someone selects a start date from the 1st pop up calnder 2nd calender shuold start from that date. Can any …
hi i have created one simple page using ajax ,my index page contains menus page1 page2 page3 page4 if i click the page2 menu means my page2.html is opening in the same window index.html itself ,but in my page three i have a link if i click that link it …
My backround is photography starting in the darkroom and proceeding into Photoshop image manipulation as a retoucher I am trying to set up my website it is loaded with image, flash files to be graphically inviting to prospective clients. I have constructed it in Dreamweaver being a visual knowing html, …
Suppose i have one label & one button. Suppose labe text is [url]http://www.dreamincode.net/forums/showforum30.htm[/url] I Want that on button click,my form is redirtected to the above URL using JS. [B]FIRST METHOD[/B] [code] protected void Page_Load(object sender, EventArgs e) { Button2.Attributes.Add("onclick", "navigated()"); } <script language ="javascript" type ="text/javascript" > function navigated() { …
[icode]window.getSelection()[/icode] ...now this works with the frame that it's in.. i have a top frame and bottom frame.. i want to write the function in the bottom frame and the javascript runs on the top frame.. i tried this but it isn't working [icode]parent.topframe.location.getSelection[/icode]
Dear all, I have a requirement that, when the user click on a radiobutton of a listed module, all its permissions should be toggled down. This section comprises in a div "msg_body". there are more than one module and so more than one msg_body divs. I used jQuery for this …
I am 100% new to JavaScript, but I don't want that to be the case for much longer at all. However, what's the best way to go about learning? What books should I purchase, or where is the most [i]accurate[/i], extensive, free online tutorial? Your suggestions are appreciated! :)
iam trying to call javascript on createuserwizard validation with following script [CODE] function ShowModalDialog() { Page_ClientValidate(); if(!Page_IsValid) $find('<%=AddUserValidationSummary_ModalPopupExtender.ClientID%>').show(); } [/CODE] and my trying to call it for on pageload on create user button click event [CODE] btn.Attributes.Add("onclick", "ShowModalDialog();"); [/CODE] now it works but it fires blank for databse validation like …
There is no label click evnet in ASP.net? I want to perform some action on label click . When i double click on it Label1_Load EVent is generated?
I have a web form. I want the "enter" key disabled from sending the form so users have to SUBMIT in order to send form. Have the following entered in the head: [CODE]function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = …
Hy everyione. I'm new here (@daniweb). I used in my web projects some open source wysiwyg editor, like FCKeditor. And I want to create a very simple wysiwyg editor. With html and javascript. To make text bold, italic, colors, etc. But how to start? Any ideas! Thank you in advance:)
Hi all, I have a lot of portals made via ning.com platform. I use Zoho too. In Zoho Notebook I want to add a WebPage from ning.com, ex. e11e11.ning.com and I can do this. But when I acces ZohoNotebook page where I had added ning.com page, a redirect command (not …
Hi all, I want to make one php based application where in at place I need to fix one thing through JavaScript. Let me explain my problem: I have one MySQL data base where we have Employee full name & Date of birth, Date of Joining, Employee Code. On the …
I wish my Users to be seamlessly sent to an alternate URL using a redirect if the original URL is not available or times out. As a total newbie to JS & AJAX, I wonder if a solution is possible to detect failure to connect to URL_a and automatically redirect …
hey,,, i am have a project to do a web Statistics website like Alexa ; what i need is a way to get all needed information to save it in my db ; i will use PHP with javascript to implement this ; what data i want to retrieve : …
Hello all, i need a movie/mediaplayer and i could imagine that it would be in javascript. all it should be able to do is to play mp3(music) and wmv(movie) files. it need a start,stop,pause and fullscreen button. anyone can give me a code just to place in my page? thnx …
[code]function loadSecondaryNetworks() { var secondaryNetworks = new Array('13','14'); var select_list_field = document.getElementById('network'); var select_list_selected_index = select_list_field.selectedIndex; var value = select_list_field.options[select_list_selected_index].value; value = value.split('-'); value = value[0]+''; for( var i=0;i<secondaryNetworks.length;i++) { var secondSelect = document.getElementById("secondaryNetwork"); clearSelect('secondaryNetwork'); if(secondaryNetworks[i] === value) { alert("test"); var newOption = document.createElement("option"); newOption.setAttribute("value","dep"); secondSelect.options.add(newOption); newOption.innerHTML = "Stats for …
[code]<script language=javascript> function getSelText() { var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) // FireFox { txt = document.getSelection(); } else if (document.selection) // IE 6/7 { txt = document.selection.createRange().text; } else return; document.aform.selectedtext.value = txt; } </script>[/code] how do i identify the frames?.. …
i got a phpcode as ill like to have as a javascript code if anyone can help me... Php code: [CODE]<?php $now_ho = date("H"); //Daytime(6h~19h) if ($now_ho < 19){ if ($now_ho >= 6){ $vwimg = "hh_entry_oc1"; } } //Night (19h~6h) if ($now_ho <= 24){ if ($now_ho >= 19){ $vwimg = …
I have a select box with information about people in it. When you click on their name in the select box, I'm trying to display information (Name, Address, Height, Weight) about them inside of a <div>. Here is what I have so far: [CODE]<form> <SELECT NAME="list1" MULTIPLE SIZE=20 class="set_width" id='developer'> …
I have a very weired problem (which is not easy to describe.. but I'll do my best): I have a html page with several forms , only one of the got the action="ComputeAndReturn" and the other forms got only name="" tag... the problem is that after i submit the form …
i have been trying to google for a solution on my problem, but no luck yet. i have a ajax modal pop up that i'm using on my asp.net page, but it's not working in Firefox Mozilla or Google Chrome. All seems to be fine with IE. Does anyone have …
hi, i am currently working on aptana studio nokia wrt plugin to develop a mobile widget where i need to retrieve data from database. i've created a java servlet in eclipse to connect and execute query to the ms sql server 2005 database. in aptana, i am using js file …
on the bottom frame is menu.html [CODE]<body><form action='link.php' method='post' name='changer'> <label>URL <input type="text" name="url" /> </label> <label> <input type="submit" name="Submit" value="Submit" /> </label> </form> </body>[/CODE] on the top frame is link.php [CODE]<?php if (isset($_POST['url'])) { header("Location: " . $_POST['url']); } ?> [/CODE] the problem is when i enter a url, …
Hi! Is it possible to refresh only a <script> and not all the page?! i have a <script> that displays google maps... and i show it on my page with other material.. i just wanted to refresh that script (google maps display), and not all the page... i did it …
Hi, was wondering if someone could point me in the right direction. I am currently making a php/html registration page for users in dreamweaver and I want them to check a radio button to confirm they have read the rules, like so. [code]<input type="radio" name="rules" value="radiobutton"> <p>I confirm I have …
Hey there, I'm new to php, but have been using a book to guide me through the code. I have created an order form and have run into this: Parse error: parse error, unexpected T_STRING in /home/content/a/r/t/artdezign/html/new_order/pages/orderreceived.php on line 5 Here is the php code I have used in my …
One of the guys here were nice enough to help us put together a javascript code that displays dynamic information. [CODE]<div id="info"></div> <script type="text/javascript"> var request if(window.XMLHttpRequest){ request=new XMLHttpRequest() }else if(window.ActiveXObject){ request=new ActiveXObject("Microsoft.XMLHTTP")} request.open('GET','http://ourwebsite.com/index.php?get=1',false) request.send(null) document.getElementById('info').innerHTML=request.responseText </script>[/CODE] The problem we are having now is that it does not show the …
i got this javasciptcode: [CODE]<script type="text/javascript"> window.onload = function(){ var now = new Date(); var hour = now.getHours(); var vwimg = ""; if(hour < 19 & hour >= 6){ //Daytime(6h - 19h) vwimg = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) vwimg = "http://www.whatever.com/link2"; …
hello to everyone, I have this code as a Grading System, but whenever I press a key on my keyboard, it shows Not a Number or NaN! Please help! I need this by two days! Please! :( [code=html]<html> <title>Grading System</title> <head> <script type="text/Javascript"> function totalM() { QM1 = parseInt(document.average.QM1.value); QM2 …
Hi, We can code this way to print something if Exit button is clicked. [code] <form action="process.php" method="POST"> <input type="hidden" name="hiddenName" value="Jolly" /> <input type="submit" name="submit" value="Exit" /> </form> if($_POST["submit"] == "Exit") { echo $_POST["hiddenName"]; } [/code] What about if we use this way. How do i check if Exit …
Hi I am new to ajax but i have done one simple menu program using ajax i created one index page with menus if i click each menu i want that linked page in the same window now i am getting as a separate window that is i want to …
Hello everyone, please tell me how to disable print-screen option in mozilla firefox to save my web page.
Hello, I added some filtering and pagination functionality to a large table with JQuery. It runs fine if I access it locally on the server. But it runs very slowly if I access it over the internet. I don't understand this. I thought all javascript execute in the browser. Why …
I've been echoing variables by simply typing "echo" then the variable. For instance: [CODE]<?php $name = "Me"; echo $name; ?>[/CODE] This has been working just fine. I was watchign a tutorial and when he echoed his variable he put his in curly brackets. This is the example: [CODE]<?php $username = …
Hi, I been using a function for past few months that refreshes or redirects a user after xx time, for example after logging in etc. It workes fine in FireFox but notice that in IE7/IE8 and Google Chrome it does not redirect. I checked in IE and it is enabled …
I want to show a menu.As u see in websites,wen we move a mouse over the menu item,Drop down menu appears.How to do that? See in Pic on URL [url]http://www.vbforums.com/newthread.php?do=newthread&f=31[/url]
hi all, I am using one javascript function for confirmation in submitting link in database. As we know there is two option comes for confirmation for YES and NO. But when i am clicking NO button then it is submitting the request . But i want when i click only …
how to get values from datagrid and multiply them and display the results in the third column.please explain with sample code......
hi, i am very new AJAX.i have some assignment. if i am clicking any menus means target location must be in [B]PARENT ITSELF[/B].it should not open another windows.As like frameset,but i dont need to use frameset.I want to use AJAX with javascript............ please give me a sample coding.
I want to write to input and click submit on a form, but don't know how to access the elements, given an id. Help :D
The End.