15,688 Topics

Member Avatar for
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('/','÷'); 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
180
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
Member Avatar for TechySafi

[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 …

Member Avatar for ivan3510
0
127
Member Avatar for Siberian

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.

Member Avatar for Siberian
0
65
Member Avatar for extemer

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 …

Member Avatar for urtrivedi
0
149
Member Avatar for newbi11

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 …

Member Avatar for kekkaishi
0
220
Member Avatar for thekiddy

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 …

Member Avatar for Airshow
0
675
Member Avatar for klemme

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 …

Member Avatar for klemme
0
137
Member Avatar for anilashanbhag

The script is used in my newest chrome app [url]https://chrome.google.com/webstore/developer/detail/bomkcodcgmbjjhogdjophonfhgpegoni/[/url] Site: [url]http://codestrix.co.cc/pixels/[/url] The above script is a good to get stated with HTML5 canvas. Much of it is named so as to be self explanatory but any doubts you are more than welcome to post it here.

Member Avatar for anilashanbhag
1
652
Member Avatar for MKWeb

I have a form that contains multiple dropdowns that are dynamically populated using AJAX not CSS, dependent upon the form above it. The page works fine in FF and Safari, but when I try it in IE, the first dropdown is populated, but the others remain greyed out. Here is …

0
79
Member Avatar for Cold Shot

Hello community, I was really hoping to get some guidance on a little issue I'm having. I am in the process of building a site for my aunt, I'm mostly self taught and plugging away at building out my first multi page site. Alas I have encountered a problem: I …

Member Avatar for Cold Shot
0
101
Member Avatar for Julia25

I found this cool script but i dont know how to modify it. i want the notification to fade in after 1 second automatically without clicking on the link [CODE] $(function(){ $('#add-sticky').click(function(){ var unique_id = $.gritter.add({ title: 'This is a sticky notice!', text: 'Lorem ipsum dolor sit amet, consectetur adipiscing …

0
49
Member Avatar for ivan3510

Hi! I made a page where users can listen to music (with javascrip). I add a popup where they can choose what music to play, and when they choose it, this popup window close itself, and two hidden fields get the song information. In the script (you can see it …

Member Avatar for ivan3510
0
107
Member Avatar for olajfm

Hello, My project is: 2 Panels with images, where one moves inside the other. I get the position of the second panel and make an image in the hard drive with them overlapping. If I use a simple Web Form there is no problem, all works just fine. MY PROBLEM …

0
44
Member Avatar for manish250

hello all i have a jsp page in which i am opening a pop up window using following code.Now i want not to include toolbar,scrollbar in my pop up window. [COLOR="Red"]window.open("multipleSchedule.jsp?date="+f_date+"&date1="+f_date1);[/COLOR] please tell me the way.I know i have to use toolbar=no but where to use in this code.i have …

Member Avatar for twiss
0
135

The End.