15,121 Topics
| |
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" … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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('/','÷'); if (event.keyCode==48) key(0); if … | |
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 … | |
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 … | |
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") … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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', … | |
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 … | |
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)"> 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. … | |
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 … | |
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; … | |
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 … | |
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] … | |
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?? | |
| [CODE]<html> <head> <title>An Ajax demo</title> <script language = "javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getData(dataSource, divID) { if(XMLHttpRequestObject) { var obj = document.getElementById(divID); XMLHttpRequestObject.open("GET", dataSource); XMLHttpRequestObject.onreadystatechange = function() { if (XMLHttpRequestObject.readyState == 4 … |
I'm looking for someone who knows Javascript [I]well[/I]. I've posted on other forums and it appears that no one is able to help me with getting a script to work on my page. | |
hi friends i want to apply javascript on the the go-btn so if i do give wrong password the alert box should pop up itryed but i didnt figure it out....please help me out.. below is the code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta … | |
i came across a jquery slide out menubar here [url]http://tympanus.net/Tutorials/UIElements/SlideOutMenu/[/url] . its a mouse over menu bar made with jquery . however i would like to know if the slide out can be brought out through a click rather than a mouse over . here is the source : [CODE]<!DOCTYPE … | |
I am selecting an image as part of a html form. Once selected, jQuery assigns a user-defined attribute of the image to a hidden form variable and passes it to form handler. Neat. Problem is when I dynamically add images that can be selected. I am using live function to … | |
Hi All, I have some trouble getting some javascript code implemented Its basically because I havent used much it before. Its like this: When admin chooses to delete a page from his site via this link: [CODE] <?php echo '<a href="process_delete_page.php?pid=' . $id . '">Delete page!</a>'; ?> [/CODE] Before this … |
The End.