Click here to Skip to main content
15,919,613 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Calling tag ? Pin
hifiger200418-Oct-09 5:02
hifiger200418-Oct-09 5:02 
GeneralRe: Calling tag ? Pin
Not Active18-Oct-09 6:14
mentorNot Active18-Oct-09 6:14 
QuestionASP and jquery Pin
gollnick17-Oct-09 7:46
gollnick17-Oct-09 7:46 
AnswerRe: ASP and jquery Pin
Abhijit Jana17-Oct-09 8:14
professionalAbhijit Jana17-Oct-09 8:14 
AnswerRe: ASP and jquery Pin
Not Active17-Oct-09 10:23
mentorNot Active17-Oct-09 10:23 
GeneralRe: ASP and jquery Pin
gollnick17-Oct-09 13:41
gollnick17-Oct-09 13:41 
GeneralRe: ASP and jquery Pin
Not Active17-Oct-09 16:28
mentorNot Active17-Oct-09 16:28 
GeneralRe: ASP and jquery Pin
gollnick18-Oct-09 8:05
gollnick18-Oct-09 8:05 
Ok ... I have identified which images in the datagrid HAVE a thumbnail and a larger image.
(see the first document)
<table class="grouplist" cellspacing="0" cellpadding="3" align="Justify" rules="rows" border="1" id="dgCust" style="background-color:LightGoldenrodYellow;border-color:#E7E7FF;border-width:1px;border-style:None;width:804px;border-collapse:collapse;z-index: 103; position: absolute;
top: 213px">
<tr align="left" style="color:#4A3C8C;background-color:#E7E7FF;">
<td colspan="4"><span>1</span></td>
</tr><tr style="color:#F7F7F7;background-color:#4A3C8C;font-weight:bold;">
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr><tr style="color:#4A3C8C;background-color:#E7E7FF;">
<td>
<p>
<input type="image" name="dgCust$ctl03$Img1" id="dgCust_ctl03_Img1" class="smallImage" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/ALL.jpg" style="height:124px;width:156px;border-width:0px;" />
</p>
<p>
<a id="dgCust_ctl03_lnk1" href="javascript:__doPostBack('dgCust$ctl03$lnk1','')">All Groups of Merchandise </a>

</p>
</td><td>
<input type="image" name="dgCust$ctl03$Img2" id="dgCust_ctl03_Img2" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/AUTO.jpg" style="height:124px;width:156px;border-width:0px;" />
<br />
<br />
<a id="dgCust_ctl03_lnk2" href="javascript:__doPostBack('dgCust$ctl03$lnk2','')">Automobile Parts and Supplies </a>

</td><td>
<input type="image" name="dgCust$ctl03$Img3" id="dgCust_ctl03_Img3" class="smallImage" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/CABLES.jpg" style="height:124px;width:156px;border-width:0px;" />
<br />
<br />
<a id="dgCust_ctl03_lnk3" href="javascript:__doPostBack('dgCust$ctl03$lnk3','')">Cables - big and little </a>

</td><td>
<input type="image" name="dgCust$ctl03$Img4" id="dgCust_ctl03_Img4" class="smallImage" src="http://localhost:1488/Web_Swanson_Shopping/Graphics/ELECTRONICS.jpg" style="height:124px;width:156px;border-width:0px;" />
<br />
<br />
<a id="dgCust_ctl03_lnk4" href="javascript:__doPostBack('dgCust$ctl03$lnk4','')">Electronic parts and supplies </a>

</td>
</tr>


Those WITH a large image have a class
class="smallImage"

The javascript on my page needs to identify which image being hovered over has this class (class="smallImage").
Here is the code I'm trying (and getting very frustrated over)

<script type="text/javascript">
$(document).ready(function(){
$("img#popUpImage").click( function() {
$.modal.close();
$("img#popUpImage").attr("src", "");
});

$("input.smallImage").attr("title", "Hover over to magnify.");
[COLOR="Red"]//trying to make this if statement work right here)[/COLOR]
if ($("input[class=='smallImage' ]"))
{
$("input[ id^='dgCust_ct' ]").hover(function() {
$(this).oneTime( 1500, function() {
// Fetch the image from the current img tag.
var bigImageName = $(this).attr("src");
bigImageName = bigImageName.replace( /\.jpg$/i, "Big.jpg");
$("img#popUpImage").attr("src", bigImageName);

$("div#popUpImageBox").modal({ overlay: 80, closeHTML: "close",
overlayCss: { backgroundColor: "#333" }
});
});
});
}; // added
$("input[ id^='dgCust_ct' ]").mouseleave( function() {
$("input[ id^='dgCust_ct' ]").stopTime();
});
$("input[ id^='dgCust_ct' ]") .click( function() {
$("input[ id^='dgCust_ct' ]").stopTime();
});
});
</script>


help

gollnick

Gollnick

QuestionHow to add theme to master page if theme of master page differrent content page, thank you. Pin
xtplatinum17-Oct-09 2:10
xtplatinum17-Oct-09 2:10 
AnswerRe: How to add theme to master page if theme of master page differrent content page, thank you. Pin
Not Active17-Oct-09 2:49
mentorNot Active17-Oct-09 2:49 
QuestionFlash vs ASP.net Pin
ellllllllie16-Oct-09 23:54
ellllllllie16-Oct-09 23:54 
AnswerRe: Flash vs ASP.net [modified] Pin
Not Active17-Oct-09 2:45
mentorNot Active17-Oct-09 2:45 
QuestionProblem using folder heirarchy in VS2008 [Solved] Pin
OriginalGriff16-Oct-09 23:38
mveOriginalGriff16-Oct-09 23:38 
QuestionLogout issue Pin
K.Safvi16-Oct-09 7:24
K.Safvi16-Oct-09 7:24 
AnswerRe: Logout issue-No reply. Still waiting for a post Pin
K.Safvi16-Oct-09 9:49
K.Safvi16-Oct-09 9:49 
GeneralRe: Logout issue-No reply. Still waiting for a post Pin
Parwej Ahamad16-Oct-09 10:12
professionalParwej Ahamad16-Oct-09 10:12 
GeneralRe: Logout issue-No reply. Still waiting for a post Pin
K.Safvi16-Oct-09 19:42
K.Safvi16-Oct-09 19:42 
GeneralRe: Logout issue-No reply. Still waiting for a post Pin
Parwej Ahamad16-Oct-09 22:22
professionalParwej Ahamad16-Oct-09 22:22 
GeneralRe: Logout issue-No reply. Still waiting for a post Pin
Christian Graus16-Oct-09 10:28
protectorChristian Graus16-Oct-09 10:28 
AnswerRe: Logout issue Pin
Nada Adel16-Oct-09 22:21
Nada Adel16-Oct-09 22:21 
QuestionLogout in ASP.NET? Pin
_Madmatt16-Oct-09 6:31
_Madmatt16-Oct-09 6:31 
AnswerRe: Logout in ASP.NET? Pin
Not Active16-Oct-09 7:42
mentorNot Active16-Oct-09 7:42 
GeneralRe: Logout in ASP.NET? Pin
_Madmatt16-Oct-09 7:51
_Madmatt16-Oct-09 7:51 
GeneralRe: Logout in ASP.NET? Pin
Not Active16-Oct-09 8:17
mentorNot Active16-Oct-09 8:17 
GeneralRe: Logout in ASP.NET? PinPopular
Christian Graus16-Oct-09 10:30
protectorChristian Graus16-Oct-09 10:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.