15,700 Topics

Member Avatar for
Member Avatar for Virangya

hi, i'm passing a content in a div tag to a url. url looks like [ICODE]index.php?content=texttext & text text[/ICODE] .. so on. when i'm trying to display this string, php only displays content up to & it stops at '&' how can i stop this? i need to change this …

0
108
Member Avatar for patk570

Hello everyone. I seem to be having trouble with the doMath() section of my code. I was wondering if you can help me out... [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Package Plans</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <SCRIPT LANGUAGE="JavaScript"> function …

0
97
Member Avatar for jphillips66

I used from <script> to </script> and the image sections as well. except on my page I have five images a crossed the bottom of the page. So when the image gets larger I want all images to stay in the same spot instead of moving down the page. What …

0
69
Member Avatar for Virangya

hi, i have this jquery page that is included in an html file and in that file i have a function with .dialog() i want to open a normal pop up if this dialog doesn't work.. i was wondering how ca i do this... will try() catch() work on this..? …

Member Avatar for Airshow
0
198
Member Avatar for Troy III

This is my first post of a type: "question", so bare with me... I need to obtain a list of supported events on an encountered browser version programmatically, ie, via script. Since Explorer exposes its events on document object I can do something as simple as this: [CODE];for(x in document)if(/^on/.test(x))alert(x);[/CODE] …

Member Avatar for Troy III
0
112
Member Avatar for BenzZz

Hi, I want to use javascript within my php file. The three drop down boxes involved are: [CODE] <select name="year" width="10"> <option value="<?php echo $curYear ?>"><?php echo $curYear ?></option> <option value="<?php echo $curYear++ ?>"><?php echo $curYear++ ?></option> </select> <select name="month" width="10"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option …

Member Avatar for AleMonteiro
0
157
Member Avatar for Microno

I think I'm about to go mad. For the past few hours I've been trying to get this: [Code]<HTML> <Head> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css"> <Title>IB Physics - Main</Title> </Head> <Body> <img class="source-image"; src="header.jpg";> <table class="Navbar"; style="margin-top: 50px; padding:25px;"> <tr> <td><a href="index.html"; class="Link-images";><img class="Link-images"; src="Main.png"></a></td> <td><a href="forums.html"; class="Link-images";><img class="Link-images"; src="Forum.png"></a></td> <td><a …

Member Avatar for Microno
0
388
Member Avatar for dean8710

i am newbie in javascript... i have problem here, i want to pass the value (date) to database script (php) i want only the matched keyword will be displayed. i try several method but still did not get the right result as desrved. someone please alter my code. tq index.html …

0
93
Member Avatar for sunny_8088

I have one dynamic drop down list from data base (working fine) Use can select random entries from this table & hit "RETRIEVE" On the bottom of the page I should get result set from other table depending on the multiple values selected by user in first drop down list. …

0
32
Member Avatar for Kinetic

I am creating a website that will display the web in an inline frame. I want to be able to drag links from the frame to a text element that acts as an address bar also located in the page. When the items are dragged and dropped into the address …

Member Avatar for fobos
0
116
Member Avatar for Macko888

Hey Peeps! Im not too familiar with jQuery, Ive been wanting to make a tooltip for a "search result grid", each trigger should have a unique comment in the tooltip. so say for instance i have a php call like so: [CODE] <?php $query = mysql_query("SELECT * FROM `Cars` ORDER …

Member Avatar for fobos
0
191
Member Avatar for morrisproject

I want to validate a textbox, currently im using this: [CODE] <script type="text/javascript"> function validate_form (){ var Motor_Frame = document.getElementById('Motor_Frame'); if(Motor_Frame.value == ""){ alert("Please fill in Motor Frame. If no motor please fill in with N/M") document.forms[0].Motor_Frame.focus(); return false;} return true; } </script>[/CODE] but i want it to check a …

Member Avatar for sufyan2011
0
172
Member Avatar for jeraldmuthu

please find the attached file and see the output. And help me out please this code getting system current date and function. but my requirement is get date from database like the clock want to spin. Please help me out to fix the error d3.js [CODE] (function(){if (!Date.now) Date.now = …

0
245
Member Avatar for warlord902

I have 4 buttons on my page and I want each one to make a different http post request on clicking them. I tried using form for each of them but that make them appear in different lines but I want all of them to be horizontally aligned. Is there …

0
157
Member Avatar for javadano

I have successfully converted my .tiff file to a text file. This was a major step. My issue now that i am facing is "capturing" pertinent data. I am attempting to do this by running a JavaScript to create an HTML file from the .txt file. I am having trouble …

Member Avatar for azzhey
0
2K
Member Avatar for jonnyboy12

Hello all. I am trying to get a function call from an onclick used in a html form it looks like this. [CODE] function work(strVal) { alert(strVal); return 1; } [/CODE] and this [CODE] <a href='#' onclick='work('word')'><img src='$RestaurantName' style='border-style: none' height='300' width='300' onMouseOver='mouseOver1()' onMouseOut='mouseOut1()'></a> [/CODE] I don't know javascript very …

Member Avatar for Airshow
0
209
Member Avatar for dsladev

Hey everyone, I am not sure how to ask this, but this is what I am wondering. I am new to JS and am looking at a lot of webpages' sources. The thing that keeps coming up that I can't figure out is when you click a button (whatever it …

Member Avatar for Airshow
0
109
Member Avatar for rakesh1021

hey guys..What's the difference between push and concat in javascript? is there any difference in performance?

Member Avatar for pinkartist
0
175
Member Avatar for hyperjase

I have some drop down boxes which are dynamically created via php, created from a number of either 6, 12, 24 or 36 - also created from a number of check boxes. What I want to do is show the total number of all the drop down boxes (so if …

Member Avatar for hyperjase
0
186
Member Avatar for Morro1980

I have two files One is myprofile.php that makes an AJAX operation with a php script on the server - handleAjax.php When executing the myprofile.php it seems to be everything ok until trying to edit a row. It's supposed to change the "edit" button to "save" and it's properties so …

0
55
Member Avatar for jonnyboy12

I am trying to make a function like this but i need the parameters to be a string . [CODE] function viewrestaurant(int) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && …

Member Avatar for fobos
0
242
Member Avatar for dean8710

Does anyone can share with the javascript how to book a table (restaurant). 1. when user click on image of table (assume) restaurant directory, value will pass to process..

1
130
Member Avatar for ebiti

i am trying to append more than 2 variables in URL using location.href in javascript. Here is the code: [code]location.href='Add_New_Project.php?project_name=' + project_name + '&cat=' + val + '&prj_desc=' + project_desc;[/code] The page is suppose to refresh when the code executes, but it wouldn't. Whereas if i try it with only …

Member Avatar for fobos
0
218
Member Avatar for jonnyboy12

Hello all . I use this code roughly to call some php code then run it in an html container. [CODE] function getVote(int) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 …

Member Avatar for fobos
0
123
Member Avatar for azegurb

Hi all again, i have read tutorial about javascript classical inheritance [B]Douglas Crockford[/B] wrote. But i did an example for the reason practizing as it showed in his page [URL="http://www.crockford.com/javascript/inheritance.html"]http://www.crockford.com/javascript/inheritance.html[/URL] for ex i did the following example. [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 http-equiv="Content-Type" …

Member Avatar for azegurb
0
137
Member Avatar for anubhavk

I am working on improving the visual appeal of table rows. The data in table rows is generated dynamically and has lots of information. There is a column in that table which gives the time when that particular information row was issued. On the basis of the days/months etc before …

Member Avatar for Airshow
0
289
Member Avatar for davy_yg

Hi, I have this jquery slideshow but no navigation. at this point the navigation is numbering 1 2 3 (according to the number of slides). I would like to change it to button nav as attached. Can anyone help me edit the JS file or show me how to (I …

0
59
Member Avatar for azegurb

Hi all, I have taken tutorial from net. but i didnt understand one thing correctly what does this [CODE] done:function(f){ postaction=f || postaction //remember user defined callback functions to be called when images load }[/CODE] and what does || sign mean there. Thanks for attention! here is [CODE]function preloadimages(arr){ var …

Member Avatar for azegurb
0
112
Member Avatar for David Lee

I'm kind of a newb to javascript, so bear with me. I'm working on a site for a college javascript class, but I want to do a little bit more with my class site. I have a very simple slideshow set up( as a pop-up), but I want the images …

Member Avatar for Kyle G
0
264
Member Avatar for Xufyan

I have a basic question regarding javascript, i need to generate the time table of input number, here is the question have a look at the attachment I'm not achieving the desired output , please help me out, here is the code but it isn't working please provide me with …

0
86
Member Avatar for evangelion89

Hi, I am currently learning Google Maps API V3. I want to display an infowindow for each marker on a map and I have written two codes snippets doing the same thing, yet producing completely different results. Version A: Successfully displays an infowindow for each marker. I tried to do …

Member Avatar for Airshow
0
244
Member Avatar for navdeep4887

hii friends i am trying to create a drop down menus in which my 2nd menu will depend on 1st one ...and 3rd on 2nd and so on til 5 dropdown menus. for eg if my 1st menu contain India US Canada and then suppose i select Canada then my …

Member Avatar for navdeep4887
0
447
Member Avatar for davy_yg

Hi, I am attaching a side banner image. I would like that image able to switch it's text automatically or whenever the user press the small white button. Anyone has any idea how to do so ? or any recommended tutorial to create such things ? Thanks.

Member Avatar for davy_yg
0
99
Member Avatar for essential

It performs the toggle function to change the class of the paragraph tags and reverts back to the default class name when user rollout of it. You can embed the CSS style code inside the Head section of your page using HTML style tag. Code is as follows :

Member Avatar for tekagami
0
255
Member Avatar for prachi munjal

hi I am new to AJAX.I am trying to refresh a part of jsp page so that it goes to another jsp page autoamtically after few seconds but i am unable to do this,it remains on the same page and does not get refreshed.Can u please check my code. [CODE] …

0
68
Member Avatar for chandub

hai everybody am new to jsp am using following code to check the value entered in text box with some maximum value. if it's greater then the maximum value i need to display error div instead of alert box.please help me. var max=document.getElementById("max"); if(max.value !=" " && max.value !=null && …

Member Avatar for chandub
0
87
Member Avatar for ajcoder

I want to create a sheet where there is a few math problems. Example: 1+1 or 2+4. And then below it is a box to fill in. You fill in the box and it pops up with a correct or wrong error. At the end, I would need to show …

Member Avatar for ajcoder
0
183
Member Avatar for mikulucky

Hi my problem is that I have a slider that is triggered on an onlick event, on document ready. In all other browsers this works great. However in IE, you click the link and it turns to visited, then click it again and it works. After this it works first …

Member Avatar for @developer
0
189
Member Avatar for Stefan_Lam88

hey guys, I have a problem here. I wish to generate 1 pop out date function. below is my code of javascript..but still I cant get any pop out after I click my textfield..guidance needed...ty [CODE] <link rel="stylesheet" type="text/css" media="all" href="jsDatePick_rtl.min.css" /> <script type="text/javascript" src="img/jsDatePick..min.1.3.js"></script> <script type="text/javascript"> window.onload = function(){ …

Member Avatar for gaurav517
0
112
Member Avatar for Julia25

I saw this script but wondering if this is possible using div instead of image which maintains the ratio whether you adjust browser height or width [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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>maintain height and width</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script …

Member Avatar for Troy III
0
316
Member Avatar for eman neercs

Not sure if this can be done in php or whether I should look at other alternatives. I'm trying to access 4 different sources of data to put on one page - Amazon API, Ebay, our sales data on one server and our inventory data on another server. (Historical reason …

Member Avatar for eman neercs
0
195
Member Avatar for Kinetic

I am trying to create a web page for people with maladies of the hand. They have great difficulty with the double click. I want to be able to drag the links on my page to a "drop bucket". When dropped, the page should navigate to the link destination. Basically, …

Member Avatar for stbuchok
0
75
Member Avatar for Virangya

hi, i need to empty all the divs whic has an id like 'bkoption' eg : my html code is like this [CODE] <div class="subsubsubmenu" id="bkoption1">some content</div> <div class="subsubsubmenu" id="bkoption2">some content</div> <div class="subsubsubmenu" id="bkoption3">some content</div> [/CODE] so when i trigger an on click function i need to empty all of …

Member Avatar for Virangya
0
584
Member Avatar for asif49

I'm kind of new to JavaScript, I know the basic syntax and how it works but I've been hit with this problem that I can't seem to solve... I use the following code to call a file which gets the RSS feed from one site. [CODE] <html> <head> <script type="text/javascript"> …

Member Avatar for asif49
0
193
Member Avatar for RykeTech

Hey all, I am in the beginning stages of developing a new site for a local Chamber of Commerce, does anyone have any interactive mapping ideas? The map will includes various items like lodges, hotels, landmarks, etc. I REALLY like Mapquest's functionality but want their Vibe api, however I don't …

Member Avatar for Airshow
0
62
Member Avatar for Violet_82

Hi there, I am reading a javascript book and I got a little stuck when analysing one of the scripts built as test. This is the one I am talking about [url]http://aharrisbooks.net/jad/chap_08/bounce.html[/url] I went through it but I don’t seem to be able to understandexactly the way it works. Here’s …

Member Avatar for Violet_82
0
120
Member Avatar for bisibee82

[CODE] $query = "SELECT item, description, price, imageData, status, username, item_id FROM items"; $result = mysql_query($query) or die(mysql_error()); $z=0; while($row = mysql_fetch_array($result)) { //echo other columns here// echo "<td><div id=status$z></div></td>"; <script type=text/javascript> function updatestatus(itemnum) { var url="updatestatus.php?auc=<?php echo $row['item_id']; ?>"; jQuery('#status' + itemnum).load(url); } setInterval("updatestatus(<? echo $z?>)", 1000); </script> <? …

Member Avatar for diafol
0
192
Member Avatar for illum11

I want my links to work under My works when JavaScript is disabled. If someone could lead me in the right direction it would greatly be appreciated. Thank You Here is the testing site: [URL="http://illcomputers.comyr.com/portfolio/"]http://illcomputers.comyr.com/portfolio/[/URL] JavaScript and Ajax: [CODE] <script type="text/javascript"> <!-- function show_div1() { document.getElementById('free').style.display = 'none'; document.getElementById('ill').style.display = …

Member Avatar for illum11
0
149
Member Avatar for ivan3510

Hi all! I have this code. Everything works fine except "setTimeout..." function. It's supposed to repeat this function every second (and change the age). Can someone, anyone, help me? Thanks a lot! [CODE]<script type="text/javascript"> function parseDate(input){ var parts = input.match(/(\d+)/g); return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4]); } function calculate(){ var date = new …

Member Avatar for ivan3510
0
123
Member Avatar for patk570

Trying to figure out why this SIMPLE math function will not work. If anyone can help me that would be great....Thanks [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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Calc Price</title> <SCRIPT LANGUAGE="JavaScript"> function doMath() { var one = eval(document.theForm.elements[0].value) var …

Member Avatar for Airshow
0
217

The End.