473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to get value from a php page called by using ajax

254 100+
Hi

i have a page "newlaunching.php" page on which image is displayed and when user clicks one of thumbnail its larger image comes to this page(newlaunching.php) from "getimage.php"page using ajax and it is working fine! now i want to get the "id" of the larger image from "getimage.php so that i could pass this value to "ADD to CART" button for which the product will be added to cart. By default on "ADD to CART" button by default's image id comes. I tried to pass the id using images name attribute then tried to retrieve it using $_POST['name']; method but it is not working then i tried a hidden input box and passed id to its value attribute and used if(isset('productid')); here productid is the name of hidden input box. but it also did not worked.

how could i do this please suggest !
Dec 20 '08 #1
3 2542
hsriat
1,654 Expert 1GB
I think you need to explain it properly.
Dec 20 '08 #2
mukeshrasm
254 100+
@hsriat
Thanks! Please visit Devotion Supreme: Concious. though in this page when you will click any thumbnail image its larger will come to the that area and I want the id of that product should pass on the
Add to Cart button. currently swaping is done using simple javascript but I have done it locally to swap images using AJAX. so how will I pass the id of the product to Add to Cart button when any thumbnail is clicked.
Dec 24 '08 #3
mukeshrasm
254 100+
@hsriat
Thanks! Please visit Devotion Supreme: Concious. though in this page when you will click any thumbnail image its larger will come to the that area and I want the id of that product should pass on the
Add to Cart button. currently swaping is done using simple javascript but I have done it locally to swap images using AJAX. so how will I pass the id of the product to Add to Cart button when any thumbnail is clicked.
Dec 24 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= | last post by:
To all, I'm trying to use ajax in my web site project but everytime I hit the button on my webform the whole page posts back. The label control that I have in my update panel does what it is...
13
by: Marvin Zhang | last post by:
Hi, I'm not familiar with web programming, but I have a problem here. I have a page. When a user click one button on it, I will use AJAX to request a PHP script which will do a bunch of tasks,...
8
by: Samik R. | last post by:
Hello, I am using the innerHTML property of a div placeholder to update the contents, and the HTML is provided from a perl script on the server side. The perl script gets called through AJAX when I...
1
by: jborg | last post by:
I have a method to send PHP array values via Ajax to another PHP file that processes my request, however I cannot get it to work here. I know this is normally a basic and very general error, but...
7
by: Matthew White | last post by:
Hi all, I'm working on an AJAX site, and I'm using Dojo and Mootools (both Javascript) to provide some interactivity. Dojo has a back button fix, but it requires the use of of a string added...
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
7
by: Microsoft Newsserver | last post by:
Hi Folks. I have an issue I need some help with if thats OK. I am running Framework 2.0 using Windows Integrated Security. For most of the application we manage session timeouts without the...
7
by: vjayis | last post by:
hi i hav a front page from which an ajax page is called and an text field is written in the front page using this ajax page. I need to validate the user access for this page: 1.the ajax page...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.