Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
tessthepup
tessthepup's Profile
1
Posts
5
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
How to pass a value to a jquery dialog from oscommerce
[10Replies]
16-Feb-2013 09:30 AM
Forum:
Using jQuery UI
Hi,
I am trying to pass a product name from my oscommerce store product listing into a dialog modal.
The code I have so far which has been put together by a friend as I do not fully understand jquery (yet!)
$prod_list_contents .= '<td width="4%" align="center"><input class="call_hidden" type="hidden" value="' . TEXT_GET_PRICE_PRODUCT . ' ' . $listing['products_name'] . '" /> <a href="' . tep_href_link(FILENAME_CONTACT_US_POPUP) . '" target="_blank" class="a_call">' . TEXT_CALL_FOR_PRICE . '</a></td><td width="1%"> </td>'
and the script:
<div id="contactus" title="<?php echo TEXT_GET_PRICE_PRODUCT . ' ' . $listing['products_name']; ?>">
<?php include(FILENAME_CONTACT_US_POPUP); ?>
</div>
<script type="text/javascript">
$(function(){
$(".a_call").click(function(){
var title = $(this).parent().children('.call_hidden').val();
$("#contactus").attr("title", 'title').dialog("open");
return false;
});
$('#contactus').dialog({
autoOpen: false,
width: 500,
modal:true
});
});
</script>
The dialog opens and contains a contact form but the title of the box should contain the product name, see image.
Any help on solving this problem would be much appreciated.
Thanks
Mark
«Prev
Next »
Moderate user : tessthepup
Forum