15,127 Topics

Member Avatar for
Member Avatar for rouse

I need to iterate through a JSON object in JavaScript or jQuery that is returned from a PHP file with the a json_encode function call: echo json_encode ($varDump); The beginning of the JSON objects looks like the following: ["date","Rescription",{"date":"1715-05-03","description":"Edmund Halley observes total eclipse phenomenon \"Baily's Beads\""},{"date":"1765-05-03","description":"1st US Medical school opened"},{"date":"1797-05-03","description":"Jamaica …

Member Avatar for rouse
0
349
Member Avatar for miweiser

I'm just going to post my pages here if someone will take a look and let me know where to go from here...sorry, I could have attached files if you would prefer. I am not sure what needs to be in my VB page if anything more is required nor …

Member Avatar for miweiser
0
190
Member Avatar for mstatdaniweb

Hello, I'm trying to pass a $counter2 value from php loop to javascript, but $counter2 is incremented so I'm passing the highest value of $counter2, which i not what I want to do. Is there a way to combine values with html identifiers and pass them to js?I would be …

Member Avatar for mstatdaniweb
0
90
Member Avatar for gskoli

Dear all , Following i have provided piece of ajax code, Where i am inserting a row at top of table but it is working fine in all other Browser Except IE ... <code> if (self.xmlHttpReq.readyState == 4) { if (self.xmlHttpReq.status == 200) { var result = self.xmlHttpReq.responseText; if(result != …

Member Avatar for gskoli
0
73
Member Avatar for rs25

Hi, I'm having some requirement where i need to show some value in div tags and latter parse it to save in database. the value which is html escape char are getting translated when in div thus making the input wrong. like some where i'm using & and < they …

Member Avatar for rs25
0
193
Member Avatar for mustafizulallif

i wonder how to do a popup like this daniweb. i mean when your not a member and not login then u click this link. daniweb will display an image to join this forum and lock the page behind it. what is the code? is it using java script? [url]http://www.daniweb.com/forums/thread100886.html#[/url]

Member Avatar for sureronald
0
91
Member Avatar for aditya61

Please help me... not able to figure out what is wrong with this code! <?php if($_POST == "submitted") { echo ' <script type="text/javascript"> // Used them both and to my horror, none of them work!!! document.BPC.postback.innerHTML = "postback"; document.getElementById("postback").innerHTML = "postback"; </script> '; } ?> <html> <head> <title> Help me! …

Member Avatar for aditya61
0
84
Member Avatar for tbrambor

I am trying to get some data off a Brazilian government website. The data is accessible through a form with some javascript. I am able to get the form and fill it out, but have trouble submitting it (a button needs to be clicked). I am using the library mechanize …

Member Avatar for tbrambor
0
4K
Member Avatar for twilitegxa

I'm trying to develop a little game and I have run into a problem. Currently I have the user log in, choose their character, and then go to a page where they can fight random monsters. When they get to the page to fight with the random monsters, the character's …

Member Avatar for almostbob
0
141
Member Avatar for mundee
0
65
Member Avatar for Froger93

Hello all, I am having some real issues with internet explorer. I have created a jQuery image rotator (flick along a selection of images). Everything works on everything but internet explorer. So much so that Internet Explorer doesn't even display the first image even before the transition. Instead I just …

Member Avatar for kflorida78
0
401
Member Avatar for bsewell

Hi all, I wondered if this was possible. i have a div, which I would like some images to rotate as the background-image so it is a slideshow. In additional, I want a fade in/out effect between the image transition. Basicly, what I'm asking is, how do I do it? …

Member Avatar for pritaeas
0
174
Member Avatar for collizz

Hi I have a basic PHP contact form using JS validation for empty fields, format checks, etc, which all work fine. I now need to add a mail() using the user input. I've made a version work, using some basic validation in PHP and comment out the JS, but I …

Member Avatar for Monster Killer
0
656
Member Avatar for Shanny Chong

can anyone tell me how to print out datagrid to paper using web control? i am using asp.net in vb.net.... is it need to use javascript to write at the html part? can someone kindly teach me pls? i need to know the print function....thanks...

Member Avatar for arrowgunz
0
86
Member Avatar for bidbul

hello, can you please help me? i wanted some clickable texts which opens not 1 but 2 urls in 2 different iframes. this code works on ie and opera but not on ff. i don't know what to do. 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"> …

Member Avatar for bidbul
0
172
Member Avatar for nonshatter

Hey, I have been trying to devise a way to insert a formatted PHP date() variable ($expires) into a publicly available javascript countdown clock. Obviously, this is made difficult because PHP is server-side and Javascript is client-side. This first piece of code is me adding a number of days to …

Member Avatar for BeachyUK
0
236
Member Avatar for shd64

Hello, I have two cfselects set up so that selecting an option in one populates the options of the 2nd select. It works perfectly on my local environment, but when I test it on our QA server, it gives the error: "Bind failed, element not found: sltBiz" where sltBiz is …

Member Avatar for arrgh
0
307
Member Avatar for Dhanish

i need to validate a form using only JavaScript all the validations seem to work except that when it runs the function validateform() it doesn't return anything if all validations have been passed [CODE] <html> <head> <script language = "Javascript" type = "text/javascript"> function echeck(str) { var at = "@" …

Member Avatar for Dhanish
0
2K
Member Avatar for nonshatter

Hey guys, I am in need of a live real-time clock to count down to zero depending on the length of days specified in a database (Like an auction count-down timer). For example, I can retrieve the length of time specified in the database, somehow put that value into the …

Member Avatar for nonshatter
0
705
Member Avatar for sarkar.manab

i have button in javascript, when i click ,it calls a CGI perl script and returns a download popup to me. Prob--> When javascript calling the script it starts a new thread redirecting to perl script and end. So i m not getting any action or response inside javascript. What …

Member Avatar for mitchems
1
1K
Member Avatar for danale

Hello, I am writing an ASP.NET application using javascript. It uses a modal dialog which has a button. When pressing the button another window is opened. I'd like to perform the action on submit without opening a new window. Here is some code for example: [B]code for first.aspx:[/B] [CODE] <html …

Member Avatar for saulat78
0
678
Member Avatar for xirian

I don't know why sometimes in the page url's there is some kind of "get" attached like this: [url]http://localhost/web_marketing/prova/campaign.php?titolo_campagna=sdfsdf&descrizione_campagna=sdfsdf&registrati.x=41&registrati.y=18[/url] Even if i use post in the ajax request.There must be something wrong with my code, if someone could help me please. [CODE=javascript] <script type="text/javascript" > var XMLHttpRequestObject=false; if(window.XMLHttpRequest){ XMLHttpRequestObject=new XMLHttpRequest(); …

0
56
Member Avatar for xirian

Hello to everyone.Sorry if the question has been already made, but is like i need to waste 1 day to find what i'm lookin for so if someone could tell me please how to pass data from ajax to a php page in resonable way(meaning that i don't need to …

Member Avatar for xirian
0
105
Member Avatar for kjelle392

Hello all. I'm sorry if this question has been answered before, but I'm a real noob trying to understand Ajax and JavaScript. Therefore I need a (simple) explanation how to pass multiple selections from a list to my Ajax-script - if there are any simple solutions. I'm not using any …

Member Avatar for kjelle392
0
131
Member Avatar for filch

I had a working ticket purchase page and I have done something to break it but cannot find what I did to do so. I have the following javascript functions: [CODE]<script type="text/javascript"> function newqty( what ) { price = document.getElementById( what + "_cost" ).innerHTML.replace( "$", "" ); var qty = …

Member Avatar for fxm
0
131
Member Avatar for jazz_vill

Hi I have this table inside a form and in this form Im also fetching data from a csv file to display product informations in a table. I want a javascript code that when a user inserts a quantity value of the product he wants to buy the total column …

Member Avatar for parry_kulk
0
120
Member Avatar for vishal18
Member Avatar for KPooja
0
53
Member Avatar for jino

Dear all, I have a date time picker and i have to trigger an event when the text box for that date is filled with the date. if textbox id print_date something like ...... $("#print_date").'......'(function(){ alert("Date is entered using date picker"); });

Member Avatar for fxm
0
73
Member Avatar for QWaz

Hi, I am very very new to JavaScript, and really am just starting to learn how it works. I found some useful code that I have used on another site, however now I want to use it twice on the same page, but for a different image gallery. it obviously …

0
64
Member Avatar for urtrivedi

I have some doubt regarding jquery and ajax. What is the difference between jquery and ajax? Do jquery accesses server resource or its just do the things at client side? while solving a problem what to choose out of these two?

Member Avatar for urtrivedi
0
138

The End.