920 Topics

Member Avatar for
Member Avatar for stacyjoseph

I am uploading a form with file and other inputs and all that is working fine. But the problem is that it is loading a new page i.e www.mywebsite.com/controller/function. My code :- <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script src="http://malsup.github.com/jquery.form.js"></script> <script type="text/javascript"> $(document).ready(function() { var options = { clearForm: true, resetForm: true …

Member Avatar for LastMitch
0
201
Member Avatar for erum

hi to all I have a scanerio thai need to be resolved .. I have grid and it shows certain record on searching ..and have few columsn like transactionID .Stauts etc etc ..also it have ModalPopupExtender under the panel (asp panel ) when i click on status column ..it should …

Member Avatar for LastMitch
0
294
Member Avatar for participantjava

Hi, I have one jsp page , in that jsp page i have four <div>'s .I want to load the <div> with some dynamic data retrieving from database. When i open the page one <div> should show the data once that data is completed another <div> should show the data. …

Member Avatar for JorgeM
0
116
Member Avatar for code_rum

Hi, I am working on a tooltip which shows the content in tooltip if present. But the code I am using shows the empty tooltip even the content returned is empty. I don't want to show tooltip or qtip when the content is empty.. :( Here's my code HTML echo …

Member Avatar for Troy III
0
383
Member Avatar for chr.s

Hi, I'm using the big cartel framework to build a site, and am trying to make an AJAX call - currently without success. My code is as follows: jQ('body').on('click','#closeDetails',function(){ // If necessary condition met if (jQ('#productDetails').attr('class') != undefined){ // Store appropriate category var destCategory = jQ('#productDetails').attr('class').toLowerCase(); // Attempt to alert …

Member Avatar for chr.s
0
294
Member Avatar for OsaMasw

I have single input to be enterded into database I want to use ajax to do this The problem that I already have form to do something else so I can't put from inside form how can I achive somthing like this without touching the original form ![ssss](/attachments/large/3/ssss.jpg "ssss") when …

Member Avatar for OsaMasw
0
207
Member Avatar for dados

I use this function http://goo.gl/Luxkx to create Fetching Posts by Category with jQuery , but the problem is that I need pagination. For example, I have in some categories more than 10 posts. The first 6 posts show up okay, but I need pagination to show the rest. You can …

Member Avatar for LastMitch
0
411
Member Avatar for pucivogel

How do i reference to a folder? I'm want the photos in folder 'gallery1' to be shown when i click on it, this htm code is in the same directory with folder gallery1 i've done this: <a href="gallery1" onclick="return false" onmousedown="ajax_json_gallery('gallery1')">Gallery 1</a><br> but nothing shows when i click on it

Member Avatar for stbuchok
0
244
Member Avatar for pucivogel

How can i make an ajax request through a link, i mean when i click on link <a href=.... it sends an ajax request to a php file which shows in my case a table?

Member Avatar for JorgeM
0
382
Member Avatar for pucivogel

Is there anyway to view/download binary files from a folder in my server with Ajax? If not in ajax, in php? Can you show me any tutorial or page which shows this?

Member Avatar for AleMonteiro
0
224
Member Avatar for guyinpv

Hi guys, I'm looking for comments and suggestions regarding the use and place of jquery/ajax in site development. I know jquery allows a lot of cool stuff and so does ajax, but when a site becomes heavily based on these tools, the use of PHP dwindles. I am used to …

Member Avatar for guyinpv
1
448
Member Avatar for SMode55

Hello, here's my problem. I am building an administration page that displays the users where you can edit or delete them. This page is built using jquery's $.Post ajax function and I am trying to nun jquery inside the page that is called by $.post but it doesn't work at …

Member Avatar for SMode55
0
381
Member Avatar for pucivogel

can anyone show me how to upload a binary file using Ajax (and php of course) I mean the html and js ?

Member Avatar for stbuchok
0
3K
Member Avatar for Rizi004

Hi there, I m using jquery ajax function to get the data from server and i m getting the data in associative array on success, but now i want to convert that associative array in javascript, how i can convert PHP associative array in javascript array. Waiting for your quick …

Member Avatar for Rizi004
0
661
Member Avatar for yaragalla_mural

Hi i am working with an web application. in my webapp on the browser i am intiating an ajax call to update part of the page. I get the response as html from the server and i will insert the complete response into the div which displays it. I got …

Member Avatar for yaragalla_mural
0
322
Member Avatar for pucivogel

I have this part of code, ajax will call a function saveContact with parameters name, phone, email, address, is this code ok? $.ajax({ url: 'addressbook.php', data: 'action=saveContact()','&name='+name+'&phone='+phone+'&email='+email+'&adresa='+adresa; dataType: 'json', type: 'post'

Member Avatar for AleMonteiro
0
2K
Member Avatar for pucivogel

Can anyone explain me better the conpcept of the webservice. I'm using wamp for a school project, i'm creating an adress-book with JSON and AJAX. The Deitel's one if you have encounteered it before. I have the deitel's code and simply want to implement it in my website. It's requesting …

Member Avatar for gon1387
0
234
Member Avatar for code_rum

Hi, Below is my ajax code along with html and php code. I am getting an error "title is not defined".. Ajax ------ function callAjax() { $.ajax ({ type: "POST", url: "get.php", data: "title=" + title, success: function(msg) { alert(msg); }, error: function(msg){ alert(msg); }, }); } HTML ------ <form …

Member Avatar for radhakrishna.p
0
391
Member Avatar for jtok

Sorry for everything being marked as code. It wouldn't let me post it unless I did (and, yes, I did try using the Inline Code option as you can see by the single quotes around much of what is written here). I have a page with an updatepanel that contains …

Member Avatar for jtok
0
790
Member Avatar for otengkwaku

<?php header('Content-Type: application/xml'); $tmpFile = 'tmpFile.txt'; $val = $_GET["http://rss.news.yahoo.com/rss/us.rss"]; echo ($val); $curlHandle = curl_init($val); $filePointer = fopen($tmpFile, "w"); curl_setopt($curlHandle, CURLOPT_FILE, $filePointer); curl_exec($curlHandle); curl_close($curlHandle); fclose($filePointer); $linesArr = file($tmpFile); foreach($linesArr as $eachLine){ echo($eachLine); } ?> I don't know why this code is not working. Can someone help me

Member Avatar for diafol
0
325
Member Avatar for SMode55

Hello, I am using Jquery's ajax $.POST to insert a form into the database.I'm having 2 issues: For some reason the radio input on the gender won't insert into the database.The other input fields do work. And then II can't display the data after insertion into a div . The …

Member Avatar for gon1387
0
591
Member Avatar for brave_demo

<?php //email signup ajax call if($_GET['action'] == 'signup'){ mysql_connect('localhost','root',''); mysql_select_db('newsletter'); //sanitize data $email = mysql_real_escape_string($_POST['signup-email']); //validate email address - check if input was empty if(empty($email)){ $status = "error"; $message = "You did not enter an email address!"; } else if(!preg_match('/^[^\W][a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\@[a-zA-Z0-9_]+(\.[a-zA-Z0-9_]+)*\.[a-zA-Z]{2,4}$/', $email)){ //validate email address - check if is a valid …

Member Avatar for brave_demo
0
414
Member Avatar for unikorndesigns

Hi I have modified the dropbox script with the following <script type="text/javascript"> $(function(){ var dropbox = $('#dropbox'), message = $('.message', dropbox); dropbox.filedrop({ // The name of the $_FILES entry: paramname:'userfile', maxfiles: 10, maxfilesize: 50, url: '<?php echo base_url();?>ajax/post_file.php', uploadFinished:function(i,file,response){ $.data(file).addClass('done'); // response is the JSON object that post_file.php returns }, …

Member Avatar for LastMitch
0
371
Member Avatar for subrata_ushasi

hi all , I want to display partner list from database which is done.Now I want to display it's customers list by clicking on each parter using ajax. here is ajax code : <script language="javascript" type="text/javascript"> function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; try{ xmlhttp=new …

Member Avatar for subrata_ushasi
0
212
Member Avatar for eburlea

Hi all. I have 2 pages: 1. that provides data from mysql in json encoding if a correct "key" is provided, in my case the "key" sent by method post should be "1". Link: http://semaffiliate.local/public/api/getemployees Code in Zend: public function getemployeesAction() { $key = $this->getRequest()->getPost('key'); if (isset($key)) { if ($key …

Member Avatar for eburlea
0
346
Member Avatar for piso_mojado

running into an issue haven't seen this before where content during the encoding and decoding of an image looses byte count. I have an app taking the photo image and sending the file via: ----------------------- byte[] imageBytes = new byte[(int) imageFile.length()]; inputFile = new RandomAccessFile(imageFile, "r"); inputFile.read(imageBytes); String base64String = …

0
177
Member Avatar for eburlea

Hi all. I am a beginner in Zend and I am wondering if there is any good book or tutorial for developing applications with Zend Framework, using json for data encoding and decoding and how to use jquery with Zend. Thanks.

Member Avatar for eburlea
0
236
Member Avatar for hackit

Hello guys.. i am developing a "College" website for my college project. I want to use validator as are in www.techrepublic.com on the input fields. please help me by providing guidelines.

Member Avatar for AleMonteiro
0
140
Member Avatar for shasta90

Hi, I cannot load a URL into a DIV tag using javascript and ajax, all that occurs is the original div text remains in place: <html> <head> <title>Ajax Example</title> </head> <body> <center /> <h1>Loading a web page into a DIV</h1> <div id='info'>This sentence will be replaced</div> <script> params = "url=google.com" …

Member Avatar for shasta90
0
477
Member Avatar for asrsmunna

Dear admins..!! i am sorry for my previous post, but, now i am asking you this because i am poor in JS scripting.... i have seen a [website](http://max.jsrhost.com/ajaxify/demo.php). Here the menu and content are displayed in two different DIVs, but, i cant understand how to use that, i have concerned …

Member Avatar for radhakrishna.p
0
927

The End.