15,127 Topics

Member Avatar for
Member Avatar for kz13

Hi all...I am new to ajax and facing an uneven problem. I am validating login form and calling the same link (with additional parameters) through xmlhttp.open(). First the form code [CODE]<div id= "login" method="GET" > <form action="" id="contactform"> <input type="image" src="login-button.jpg" name="login_user" id="button" value="Login" alt="Submit button" onclick="loadXMLDoc(username.value, password.value)"/> </form> <span …

Member Avatar for pclfw
0
225
Member Avatar for darkdai

hi, i have this pop up window which i want to make it not re sizable by the user. is that possible?

Member Avatar for javaAddict
0
59
Member Avatar for zakir ali

function main() { if(window.XMLHttpRequest) { ab=new XMLHttpRequest; } else { ab=new ActiveXObject("Microsft.XMLHttp"); } ab.onreadystatechange=function(){ if(ab.readyState==4 && ab.status==200) { document.getElementById("progress").innerHTML=ab.responseText; } } ab.open("GET","querygoogle.php"); ab.send(); } function test(id) { if(window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest; } else { xmlhttp=new ActiveXObject("Microsft.XMLHttp"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("testdiv").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText); } } xmlhttp.open("GET","test.php",0); xmlhttp.send(); } function …

0
158
Member Avatar for newbie14

Dear All, Here is my link [url]http://183.78.169.54/v3/addRoute.php[/url]. I have managed to build up where I can add dynamic rows of combo boxes and remove it. I am now stuck where upon submission I must have minimum 2 rows. Secondly I must make sure all the combo box values are selected. …

0
84
Member Avatar for newbie14

Dear All, I have a page at this link [url]http://183.78.169.54/v3/addTab.php[/url]. Then you can click the Driver Employment tab and add just two rows and press the Add button. Then it will take to Driver Details and show all the fields are required. The problem here is that the Driver Employment …

Member Avatar for Airshow
0
655
Member Avatar for ivan3510

Hi! I have a page, and one part of this page (javascript) reads the duration of song. But what if user's javascript installed on computer doesn't support this? Do all javascript support this function? Here it is: [CODE] //for some browser this function (like IE): duration = document.sound.currentMedia.durationString; //and for …

Member Avatar for twiss
0
743
Member Avatar for Sorcher

Hello. i was wondering if this can be done,personally my knowledge of Java / ajax is bad.. How can i make the submit button unable to be clicked if there is no data in the input (usermsg)? [CODE]<form name="message" action=""> <input name="usermsg" type="text" id="usermsg" size="100" /> <input name="submitmsg" type="submit" id="submitmsg" …

Member Avatar for twiss
0
160
Member Avatar for Hani1991

hello people I saw a button that adds text to where the typing cursor is put.. for example: if the cursor is between the (how) and (you) in the following: how you. when you click the button it adds text between those two words so that it becomes: how are …

Member Avatar for Hani1991
0
58
Member Avatar for cliffcc

[CODE] <style type="text/css"> #marqueecontainer{ position: relative; width: 650px; /*marquee width */ height: 150px; /*marquee height */ background-color: white; overflow: hidden; border: 2px Solid Purple; padding: 2px; padding-left: 4x; } </style> <script type="text/javascript"> /*********************************************** * Cross browser Marquee II- c Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal …

0
74
Member Avatar for lounestor

I have 6 different datatables. I created one massive YUI dialogbox. I need to have different views depending on which datatable is being accessed. I cant seem to be able to call the function? do I need more arguments to point to the 'datatable' first and then to point to …

Member Avatar for tawes01
0
111
Member Avatar for fantasma

Greetings! I'm having a problem showing a set of records using jQuery. When I click in the designated link, the script only shows the first record that comes from the database. Am I doing something wrong? Here's the code jQuery [CODE]$(document).ready(function() { //hides the slickbox as soon as the DOM …

Member Avatar for fantasma
0
120
Member Avatar for kpsbhuvi

Hai friends I am creating a file upload process, In that process I want to validate whether uploaded file contents are empty or not... i want to validate txt, doc, pdf, xls , ppt, docx, msg these extension files. when a .doc file is created then it has the file …

Member Avatar for tawes01
0
611
Member Avatar for vijaygupta

hello I have been developing a code for changing currency on onclick here is a demo code [CODE]<form id="setCurrency" action="{$request_uri}" method="post"> <select name="language" class="language"> <option value="">Select Currency</option> {foreach from=$currencies key=k item=f_currency} <option value="{$f_currency.name}" OnClick="location.href='javascript:setCurrency({$f_currency.id_currency})';">{$f_currency.sign}{$f_currency.name}</option> {/foreach}</select> <input type="hidden" name="id_currency" id="id_currency" value=""/> <input type="hidden" name="SubmitCurrency" value="" /> </form>[/CODE] .......................... It works fine …

Member Avatar for twiss
0
90
Member Avatar for aidant

So, when i click a button my jQuery dosent change the value of the div, this onaly happens in safari in all other browsers it works! Javascript: [CODE]$(document).keypress(function(){ if (event.keyCode==13) key('='); if (event.keyCode==42) key('*','x'); if (event.keyCode==43) key('+','+'); if (event.keyCode==45) key('-','-'); if (event.keyCode==46) key('.'); if (event.keyCode==47) key('/','&divide;'); if (event.keyCode==48) key(0); if …

Member Avatar for twiss
0
114
Member Avatar for aplee

Hello everyone! I have this problem with the system passed to me by the previous developer. The page is scrollable vertically. Now to be able to click the button, you have to scroll down. The problem is, whenever I click the calendar, the scroll goes back to the top page …

Member Avatar for G_Waddell
0
88
Member Avatar for Sydney123

Hi there, I have X as the value selected in a drop down To X I want to link and display the below value defined in the following arrays. Does anyone know how to link this code to the X value resulting for the drop down selection ? [CODE] <script …

Member Avatar for ivan3510
0
74
Member Avatar for 080346

Hello everybody! i have a problem, i m returning a data from servlet to ajax function and in function i want to compare the response.Text with some String e.g x but it doesnot compare it. i have the following code; function ajaxhandler() { tableHtml=response.Text if(tableHtml=='true') alert("Valid Move"); else alert("invalid move") …

Member Avatar for Luckychap
0
70
Member Avatar for akilapuritha

XMLHttpRequest() function not work with IE 8. But its woking properly with other browsers. Ex: [code=JavaScipt]if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }[/code] I need a code for IE 8 also. Thanks Puritha

Member Avatar for xylude
0
67
Member Avatar for t_anderson

hi i'm using this inline modal window [CODE] <style type="text/css"> #fade { /*--Transparent background layer--*/ display: none; /*--hidden by default--*/ background: #000; position: fixed; left: 0; top: 0; width: 100%; height: 100%; opacity: .80; z-index: 9999; } .popup_block{ display: none; /*--hidden by default--*/ background: #fff; padding: 20px; border: 20px solid …

0
85
Member Avatar for newbie14

Dear All, Below is part of my codes. The problem here is that when the results is generated from the php and send via ajax is not being shown in my page. But in Firefox it can be seen only thing the combo box goes up. But in IE nothing …

0
55
Member Avatar for gambit_1607

hi on my blog page, i'm trying to manually add in group check boxes under groups. initially there is a list of group checkboxes from user's "my groups" to choose from, but i want to add more groups that don't exist in "my groups". drupal code for the form looks …

0
83
Member Avatar for devinodaniel

Hey friends, I have a site that I've put a lot of time and effort into and in the midst have also been using it to learn JavaScript. I'm pretty proficient at PHP so the site was mostly coded in PHP, but now I've decided it would be best use …

Member Avatar for twiss
0
163
Member Avatar for twiss

Hi all, I'm trying to match all PHP reserved keywords in a string, but this string also contains a bunch of \4 characters [i]between[/i] the letters. So, for example, if I have the string [ICODE]'f\4u\4n\4c\4t\4i\4o\4n@@@some other weird characters@@@'[/ICODE] and the array [ICODE]['abstract','and','array','as','break','case','catch','class','clone','const','continue','declare','default','do','else','elseif','enddeclare','endfor','endforeach','endif','endswitch','endwhile','extends','final','for','foreach','function','global','goto','if','implements','interface','instanceof','namespace','new','or','private','protected','public','static','switch','throw','try','use','var','while','xor'][/ICODE] and I want to make 'function' match '\4f\4u\4n\4c\4t\4i\4o\4n\4', …

0
115
Member Avatar for Whilliam

Hello. I have this code.. [code] <input type="hidden" id='sessio' value=<?php echo $_SESSION['iden']; ?>> <script type="text/javascript"> var x = document.getElementById('sessio').value; window.location="index.php?link=2&var=" + x; </script> [/code] It works perfectly fine in IE but it won't work in firefox. Both link and var does not appear in the URL when I get to …

Member Avatar for Airshow
0
179
Member Avatar for manish250

hello all i am using a link on clicking which a new pop up window should open like [CODE]<a href="#" onclick="Popup(f_date,f_date1)">&nbsp;Add more</a>[/CODE] function Popup(date,date1) { var f_date=document.getElementById("f_date").value; var f_date1=document.getElementById("f_date1").value; window.open("multipleSchedule.jsp?date="+f_date+"&date1="+f_date1, "window", "toolbar=no,scrollbars=no,height=220,width=510"); } it is workin fine in ie6 and ie8 but in firefox on clicking it nothing is happening. …

Member Avatar for @developer
0
110
Member Avatar for stupidenator

Hey all. I have been messing around with javascript for a while now and I am not all too good with it. I built a little javascript program that takes the input from a text box and depending on what's in there, it goes to a certain page. I am …

Member Avatar for almostbob
0
3K
Member Avatar for supriyabirje

hi.. just started learning ajax.. could you all please help me with this code.. when i execute i get this Resource id #3 I have posted the code below. there are two files.. 1) getvendorname.php 2) sales.htm (containing the javascript function) [CODE]<script type='text/javascript'> function getname() { var vendorID = document.getElementById("idvid").value; …

Member Avatar for urtrivedi
0
2K
Member Avatar for benjaminFowl87

Hi My problem is. I'll break down the problem to make it clear. [CODE] <html> <head> <body> <!-- ajax call that opens a jQuery UI Dialog box --> <a href="#" onclick="$.ajax({beforeSend:function(request){$('#onboarding_accounts').show();}, complete:function(request){$('#onboarding_accounts').hide();}, data:'', dataType:'script', type:'post', url:'/proxy/account/load_create_account?method=get'}); return false;">Create New Account</a> </body> </html> [/CODE] It should be noted that the dialog …

Member Avatar for benjaminFowl87
0
1K
Member Avatar for gambit_1607

hi i'm using a jQuery Inline Modal Window. the code for it can be found here [url]http://www.sohtanaka.com/web-design/inline-modal-window-w-css-and-jquery/[/url] i currently have an array within a function in javascript. when i click on the appropriate link for the inline modal, the inline modal window appears. my function looks something like this [CODE] …

Member Avatar for gambit_1607
0
156
Member Avatar for Hani1991

hello i think i made small mistake in the following code but i dont know what it is exactly: [CODE]<script language="JavaScript"> function doType(id,typewhat) { var doc=document.getElementById(id); doc.innerHTMl = typewhat; } </script>[/CODE] could u plz help??

Member Avatar for Pro2000
0
90

The End.