15,698 Topics

Member Avatar for
Member Avatar for MARKAND911

I have several radiobuttons. I have attached my jquery to this radio buttons When i call this jquery i want the control's id from which this jquery is called. i tried following technique $(this).attr('id'); but i failed. How to find this. Thank you

Member Avatar for Airshow
0
82
Member Avatar for jakizak

I am having trouble returning things from this function. Below is the function. [CODE] function switchframeAQUA(v) { if (v == "0") { document.getElementById("picframe").src = "/frames/cod-liver-oil_pic.html"; document.getElementById("blurbframe").src = "/frames/cod-liver-oil_blurb.html"; } else if (v == "1") { document.getElementById("picframe").src = "/frames/fish-oil_pic.html"; document.getElementById("blurbframe").src = "/frames/fish-oil_blurb.html"; } else if (v == "2") { } else …

Member Avatar for Airshow
0
120
Member Avatar for newbie14

I have page here [url]http://183.78.169.53/tm/addTyreSwap2.php[/url] where when I select the drop down list value it will reassign the drag and drop function but it behave differently from this link [url]http://183.78.169.53/tm/getTyreLayoutDetails1.php?l=3[/url] where it drag and drop only on the picture and the drag image does not disappear?

0
74
Member Avatar for ibivobarn

OK, first off let me say that I know that javascript is a client side language and that php is a server side language. I've read that you can't assign javascript variables to php variables too. But I'm still absolutely stumped as to WHY my code below doesn't work. Perhaps …

Member Avatar for ibivobarn
0
384
Member Avatar for vibhaJ

Hi Friends, I am working on php from builder, where user can add text-box, text-area, chekbox, radio-button etc field using jQuery. Now i am ready with html code of form. Next step is to save each attributes(i.e. name, optionstags, label, title, tooltip, class etc) in mysql database. How can i …

Member Avatar for vibhaJ
0
213
Member Avatar for dhani09

Good day everyone.. I'm very very new to javascript, i found this tutorial i was reading and it said to insert the below javascript code to a HTML document between the <body> </body> tags. The code is : <script language=“JavaScript”> <!- - document.writeln(“Hello, welcome to my page.” ); //--> </script> …

Member Avatar for jakizak
0
180
Member Avatar for Marshmallows

I am very new to JavaScript/JQuery and would really appreciate some help. I have javascript code for a ui slider in a base template, I then have a separate template that extends the base for my web page. I am having a problem getting the slider value variable displayed to …

0
51
Member Avatar for stoopkid

I've been at this for about a week now, and still can't get my Google Map to properly number the markers. Any help would be greatly appreciated. I've done enough "googling" on the subject matter, and finally needed to make a forum thread. My JavaScript code: [CODE]<script type="text/javascript"> function load() …

Member Avatar for Airshow
0
125
Member Avatar for gotboots

Hi I have started this code but i cant get it to work. new to javascript, but not sure how it works. im trying to make an alert for a text box "rrp" that alerts when it is less than the list price, therefore stopping an incorrect price being lodged. …

Member Avatar for extemer
0
2K
Member Avatar for jeraldmuthu

Hi i have generating xml file for chart(fusion chart). that chart having swf format file for each chart. i'm creating xml in case statement( case 1 for horizontal bar xml(file),case 2 for verical bar xml(file)) i have created that file by giving straight path it is not servlet it is …

0
130
Member Avatar for Behseini

Hi, Could you please take a look at following link and let me know how I can add a loop to my script in order to repeat the animate() function for example for every 30 seconds? [URL="http://www.geoca.com/Mover/"]http://www.geoca.com/Mover/[/URL] as you can see the animate function just runs for one time but …

Member Avatar for Airshow
0
152
Member Avatar for kaizokupuffball

Hi! I am animating on click, and when i click the element a box fades in, but i got a problem. Inside my div tag i fetch user info from a database, now if i try to click a member named Test i get the info from the Test user, …

Member Avatar for kaizokupuffball
0
186
Member Avatar for rakwel10

Hi! I have this code that adds field when the user hit the "add new field" button. The problem here is, once you added an input field, then fill it out, then add a new field again, the info in the first field be erased. As how the code runs, …

Member Avatar for Morta
0
152
Member Avatar for krishna501

[CODE] Holidays.jsp: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert Holidays Data</title> <script src="HolidaysValidation.js" type="text/javascript"></script> <style type="text/css"> #hihint{ position:absolute; right:350px; top:85px; } #hnhint{ position:absolute; right:450px; top:110px; } #mhint{ position:absolute; right:450px; top:130px; } #hdhint{ position:absolute; right:330px; top:160px; } …

0
48
Member Avatar for tcollins412

i am trying to submit a form in jquery without refreshing it. for my jquery code i have this: [CODE] $(function() { $(".submitbuttonsend").click(function() { var dataString = 'reqtoid=<?php echo $uid; ?>&reqfromid=<?php echo $id; ?>'; $.ajax({ type: "POST", url: "proccess.php", data: dataString, success: function() { $('#freekk').html("<div id='message' style='color: #4f4f4f; font-size: 12px; …

Member Avatar for AleMonteiro
0
121
Member Avatar for miriam159

Hi I have implemented an iframe that contains several links to other pages. I can't change the content of the iframe because it's on another server. Here you can see an example of the code for one link in the iframe: [CODE] <a href="javascript: void(0);" onclick="openUrl('http://www.streambeam.org');" title="">Link 1</a> [/CODE] Now …

Member Avatar for AleMonteiro
0
3K
Member Avatar for extemer

hi i want to validate my id field that if someone enter data other than id in the id field it show message that its not id.i have little bit of logic to validate but i am not getting the point that how to validate that it only accept numeric …

Member Avatar for ddymacek
0
107
Member Avatar for DILO3D

I describe my problem with following simple example. [CODE] function show(str) { if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","data.php?q="+str,true); xmlhttp.send(); } [/CODE] here,i am getting some responsetext or result from data.php file through my request. In my …

Member Avatar for Sorcher
0
327
Member Avatar for G_Waddell

Hi All, I have to deliver a secure web ASP.net site that after 20 minutes of inactivity wipes the users sessions and forces then to login again. I have set up all the necessary timeouts on the server and at the top of each of my master pages I have …

Member Avatar for Airshow
0
641
Member Avatar for jacob21

Hi, I am using google custom search & getting result on the same page. I am trying to show search result on the new tab. Need suggestion..

Member Avatar for gotboots
0
64
Member Avatar for rejisha

hi all.... i want to add 01+1 and my desired output is 02. my code is var t=01; var t2=t+1; alert(t2); the alert value is 2. I want 02....what will i do? thanks in advance....

Member Avatar for revathyrace
0
110
Member Avatar for ankit.pandey3

[CODE]<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]"> <head> <meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" /> <title>Micro Customer Care</title> <style type="text/css"> body { padding:0; margin:0; } </style> [STYLE_SHEETS/] <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="css/ie5-6.css"/> <![endif]--> <script src="js/chat.js" type="text/javascript" charset="UTF-8"></script> <script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script> …

0
68
Member Avatar for johnniegee

I am reading data from a mysql db to my webpage. I wish to make a google pi-chart but have no idea how to pass the data from php (html?) to javascript(?) to populate the graph. I'm reading the rows into the html page ok, they are dispaying in a …

Member Avatar for Ichcha
0
211
Member Avatar for dimasalang

hi experts.. I'm new to javascript/ajax and i need to upload a picture to a server then the server will send a preview without redreshing the page..how can i do that? any suggestion? or sites for tutorials? thanks for help.. i need this ASAP..

Member Avatar for dimasalang
0
105
Member Avatar for siina

I need to make javascript code where i ask question from user and if he answers yes he will get new question but if he answers no he will only get third question not second. Then i need to save answers to database. How to start writing this code?

Member Avatar for mrnutty
0
77
Member Avatar for rakwel10

Hi! I have this code that adds field when the user hit the "add new field" button. The problem here is, once you added an input field, then fill it out, then add a new field again, the info in the first field be erased. As how the code runs, …

0
121
Member Avatar for samsnov

Please I am searching for a script that will ask the search engine to place the item searched at a particular place in a page ,my need is how can I describe such script to search engine if I am to search for it online, dose it has a name. …

Member Avatar for pritaeas
0
43
Member Avatar for Nahiyan

Hello, I am experiencing a problem with running javascript code when ajax calls a file. I have a file named 'index.php' which simply loads some comments by using the file 'comment.inc.php' and run some javascript code to change the id of some div. I don't know how to let the …

Member Avatar for Nahiyan
0
519
Member Avatar for niche1

Can someone work createElement into this script to demo its use? I think the two can work together, but I don't know how. [CODE]<html> <head> <script type="text/javascript"> function myFunction(anid) { var cssatr = document.getElementById(anid).getAttribute('style'); // get the value of "style" var htmlanid = document.getElementById(anid).innerHTML; // get html code return ('css …

Member Avatar for niche1
0
122
Member Avatar for niche1

how do I get the css and the html into the function? [code]<html> <head> <script type="text/javascript"> function myFunction() { return ("Hello world!"); } </script> </head> <body> <div style="float:right;"> <script type="text/javascript"> document.write(myFunction()) </script> </div> </body> </html>[/code]

Member Avatar for niche1
0
123

The End.