15,127 Topics
| |
Maybe I'm doing this wrong, but here's what I'm trying to do. Ok, so how do I send the URL to a new page? Right now I understand the writing ajax to a div, replacing the contents of the div, appending it etc. But what about if I am using … | |
I need to use a handler that will get from my select option in html a value but not the valeu orm the option I will show my code now ...<form action="" method="POST" class="submit"> <label for="select"> Print copy</label> <select class="select" name="select"> <option>1 copy</option> <option selected="selected">2 copies</option> <option>3 copies</option> <option>4 copies</option> … | |
Hello everyone! I would like of uses a popup Ajax to open a site. For example: The user access the site, open a popup ajax with a warning: "The site is on maintenance. Close the window to use the page index of the site". How to ? Thanks you! | |
Hi guys, I am doing a validation form (3 inputs: number of apple, orange and banana). for example i type: 'a' as input in the form that required only number (apple), it will prompt me error then i type the next input orange: 2 and it will accept it, however … | |
I am having an issue with an external javascript. I've included the code from the web page and the javascript code I have. Instead of opening a website when the selection changes in any of the menus, I get a pop-up message box with the address of the web page. … | |
hey I'm just having some trdouble with an onclick call. its being called before it iss. not really sure whats wrong with it. im also passing it in a function with arg so that the value i is assigned to it for the loop. i tried it without it and … | |
help! I'm trying to figure out how to verify looped form fields by name. This seems like it should work, but it's just skipping right past this verification step. Here's the code: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript'> function myForm(){ // … | |
my coding is working but it is showing html tags from text.html,i want that onmouseover it get data from text.html by tag or div id naem and also by changing in text.html its suddenly chane not on refresh <html> <body> <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(){ var … | |
I am new to usage of jquery.I want to show a confirmation facebox while all my input requirements are true.ie when my form fields are validated a simple facebox should appear showing the forms are validated.How can i do it.Itried a lot.But i didnt get the source for facebox.I didnt … | |
We know we already have built-in [I]Trim methods[/I], but trimming doesn't get rid of internal, (and unwanted) extra spaces. -So this is where Normalize method comes to play. It trims left, it trims right, but most importantly it also trims on the inside, one could say: "it trims inside-out". In … | |
So for my code that i have below the reg.onclick is happening before it is even clicked and I'm not really sure how to fix this. Thanks for the help in advance. function displaySearch(){ var div = document.getElementById('table') var table = document.getElementById('tableSearch') var res = xmlhttp.responseXML var e = res.getElementsByTagName('element') … | |
Hi, I'm trying to use a javascript for loop to write out links with titles from an array, that when clicked will execute a function I have written to pop open a new window, with info on the link clicked, this is the code I'm trying to use (this is … | |
| Hey all! I have to come up with code for taking the contents of an input box on my webpage, use that as the name in my script and then display a message based on the time, say "Good morning Dave!" if it's between 5am and 12pm. I have all … |
HI there, I was wondering if anybody can advise. I am trying to build an unordered list with a few items in a page, and I want this list to be created and displyaed dynamically. So I create an array of strings and then through jquery I want this to … | |
Hi, I am luking for a Collection library much like what we get in java and c# and in my hunt i came across few names like bucket, coffeeblack, js_cols. Which would be most compatible with jQuery? As i got a nice library from sourceforge.net but it is not compatible … | |
please tel me the logic behind the code for find the common aphabets between two words?? ex ... mine mind common letters are : m i n like | |
Ok, so I have a few ajax pieces on my site, and I am trying to include functionality when something is clicked. Basically, lets say like on facebook, when someone makes a comment, then that new comment is created. My return is for the pieces with the ID's pulling in, … | |
so for my code i have i'm trying to pass along the i variable in the for loop but when i pass it on it passes the highest i value. so when it should be one it passes along 10. i am curretnly passing along the cell6 id and splitting … | |
I am trying to use jScrollPane vertically, but it is not working. http://jscrollpane.kelvinluck.com/ I want simple styleable scrollbar alternative for above link or need help to make code work ( **Vertical only :-** http://jscrollpane.kelvinluck.com/arrows.html ) | |
i want to check which radio button is checked in rows of a datalist and compare that radio button value with database feild value using javascript or c# can anyone suggest me idea. i has this code: Code blocks are created by indenting at least 4 spaces ... and can … | |
Hello everyone, I am thinking to create a vertical menu, which may contain sigle level or even multiple levels of submenus. While mouse is hover one main menu item (parent menu), the related submenu items will appear one by one on the right hand side. While click on one of … | |
hi,i would like to add an 'onChange' to my <ext:TextField> to execute a function,but it´s not working.Any ideas? | |
i want to add different javascript to different divs. Is it posible to set .js page's scope to specific <div> ? | |
I am reading the STATUS field from table CONTENT while modal dialog is being active, then after 10 seconds i have to read the same table CONTENT. If status is changed, i have to stop the polling mechanism and inform the user that content was encrypted. If i done these … | |
<form method="POST"> first name <input type="text" name="ab" value="aadi"> <input type="text" name="bb" value="aadi"> <br> <hr> <input type="checkbox" name="same" onclick="this.form.zb.value=(this.checked)? this.form.ab.value: ''; this.form.zs.value=(this.checked)? this.form.as.value: ''; this.form.se.value=(this.checked)? this.form.sel.value: '';"> Same as first name<br> second name <input type="text" name="zb" value=""> <input type="text" name="yb" value=""> <br> </form> This coding can only when click the checkbox. … | |
I have div.js which is for popup in this i define 2 function getPageSize(); and getPageScroll(); and other file a.php and b.php in a.php as below <script language=Javascript src="/div.js"></script> <script language=Javascript> function divOn (aId_task) { var arrayPageSize = getPageSize(); var arrayPageScroll = getPageScroll(); //bgrnd4 = '<div style="position:absolute; top:0; left:0; width:100%; … | |
doing this stuff in js and the css doesn't affect the tags in the js writeln js: `document.writeln("<table><tr><td>Nom</td><td>Prénom</td><td>Code Permanent</td><td>Login</td></tr></table>");` css: `table, td, tr{border:2px, double;}` i know this is simple, what am i missing ? oh yeah, it's an external js file, if that changes anything. thx Dark | |
what am i doing wrong ? i want to fetch what langugage of new users. i've tested and tried: navigator.userLanguage navigator.browserLanguage navigator.systemLanguage and so far it returns: undefined thx Dark | |
| In the following html code, <html> <head> <title>Blogging</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> var tpe; var islogin = 0; var userid; function ajaxFunction() { var xmlhttp1; if(document.getElementById('searchtype1').checked == true) tpe = 1; else tpe = 2; if (window.XMLHttpRequest) xmlhttp1=new XMLHttpRequest(); else xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP"); var searchvalue = document.getElementById("keyword").value; var … |
<?php session_start(); include 'forms.php'; include 'config.php'; include 'lib.php'; ?> <html> <head> <meta charset="UTF-8"> <title>Login</title> <link href="css/main.css" rel="stylesheet" /> </head> <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#check").click(function(){ var username = ("<?= $username ?>"); $.ajax({ url:"ajax.php", data :'username=' +username, success: function(ajax){ $("#ajax").append(ajax); } }); }) }); </script> </body> </html> <?php … |
The End.