Jump to content

aneeb

Members
  • Content Count

    48
  • Joined

  • Last visited

Community Reputation

1 Neutral

About aneeb

  • Rank
    Newbie
  1. Hey Everyone! I want to read messages from MSMQ using PHP. I want to send and receive data from MSMQ. Please tell me how can i do it.
  2. Here is the complete JavaScript which i have written. var serviceURL = "http:/localhost/mano/services/";var employees;$('#employeeListPage').bind('pageinit', function(event) {getPromotionList();});function getPromotionList() {//var id = getUrlVars()["id"];var urlVars = getUrlVars();var urlId = '';var urlUserno = '';var urlBrand = '';if (urlVars['id'] != undefined){ urlId = urlVars['id']; var get = ''; get = 'getpromotions.php?id='+urlId; }else if (urlVars['userno'] != undefined){ urlUserno = urlVars['userno']; var get = ''; get = 'getpromotions.php?userno='+urlUserno; }else if (urlVa
  3. I have written a javascript which gets the data in JSON format and appends that data into multiple <li>Here is the code which i have written... $('#employeeList').append('<li><a href="promotiondetails.html?id=' + employee.id + '">' + '<h4>' + employee.brand + ' - ' + employee.code + ' - '+ employee.subcode + '</h4>' + '<p>' + employee.details + '</p>' + '<p>' + employee.address + '</p>' + '</a></li>');
  4. Hey Everyone! i am writing a code in which i am creating multiple <li> and i have given every <li> a different href. When i am running it and when i click on the href it is add the link in the current URL. Like this... <li><a href="promotiondetails.html?id=' + employee.id + '">Some Data</a></li> The current URL is like.. http://localhost/mano/www/promotions.html and this happens when i click on the <li>... http://localhost/mano/www/promotions.html#/mano/www/promotiondetails.html?id=275 I don't know whats going wrong. Please help me....
  5. Hey Everyone! I want to hide my original URL to my dummy URL using htaccess. If i open www.abc.com it shows/opens www.xyz.com and the URL remains the same like www.abc.com. How can i do this, please help me.....
  6. thanks for replying.... Sir you are saying that it won't work on local, so if i upload it on server would it work???? Please reply..
  7. Hey Everyone! i have write this code for sending mail but it is not working. It is echoing the Error message. <?phpinclude "config.php";if(!$_POST) exit;$email = $_POST['email'];if(!preg_match('/\.([^\.]*$)/',$email )){$error.="Invalid email address entered";$errors=1;}if($errors==1) echo $error;else{$values = array ('name','email','message');$required = array('name','email','message'); $your_email = "aneeb@gmail.com";$email_subject = "New Message: ".$_POST['subject'];$email_content = "new message:\n";foreach($values as $key => $value){ if(in_array($value,$required)){ if ($key != '
  8. Thank you sir for your reply. I have done what you mentioned but it is stays on that same page nothing happens.I am doing it like this.. var jsondata;$.fn.serializeObject = function(){ var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o;};$(function() { $('form').submit(function() { jsonData = JSON.stringi
  9. Hey Everyone! i have generated JSON from HTML form data, now i want to send that JSON to a PHP page. I have written this javascript. var jsondata;$.fn.serializeObject = function(){ var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o;};$(function() { $('form').submit(function() { jsondata = $('#result').text(JSON.stringify($('form').serializeObject())); return false;});}) Ple
  10. I have been searching on internet, i found this code which converts the HTML form data to JSON. But the code is not working when i am implementing it. Can somebody tell what is wrong with it.. <!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" /><script type="text/javascript" src="scripts/jquery-1.5.2.js"></script><title>Untitled Document</title><script>$.
  11. I am creating an android app using Phonegap. So i have created this form and want to send data through mobile phone to server.
  12. Hey Everyone! i want to convert my HTML form data to JSON and send that JSON to a PHP page on server. How can i do that. My HTML form is like this.. <!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>Untitled Document</title></head><body id="top"><p>Enter Products</p><form id="form1" name="form1" method="post" action="create_product.php"&
  13. Hey Everyone! i am writing a javascript for a button, when the button is pressed it gets the product id from url and add that product into the cart. The button is working fine but the problem is when i am pressing the button the screen hangs and a flash screen appears which is loading continously. I have also applied css in it for button.here is the javascript which i have written.. $('#detailsPage').live('pageshow', function(event) {var id = getUrlVars()["id"];var serviceURL = "http://localhost:8080/mano2/services/";$.getJSON(serviceURL + 'getmagento1.php?id='+id, displayPromotion);});va
  14. the code works.. :rolleyes:Thank you sir thanks alot for your help.
  15. here is the link for entering products through API.http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.create.html check Request Example SOAP V2
×
×
  • Create New...