Click here to Skip to main content
14,543,273 members

JavaScript

 
QuestionUnable to switch events in jquery Pin
vmann30-Nov-18 18:45
Membervmann30-Nov-18 18:45 
SuggestionRe: Unable to switch events in jquery Pin
ZurdoDev4-Dec-18 2:28
mveZurdoDev4-Dec-18 2:28 
QuestionError on line 45 Pin
ghazabaz30-Nov-18 13:38
Memberghazabaz30-Nov-18 13:38 
AnswerRe: Error on line 45 Pin
ZurdoDev4-Dec-18 2:29
mveZurdoDev4-Dec-18 2:29 
AnswerRe: Error on line 45 Pin
maryam.saboor4-Dec-18 23:54
professionalmaryam.saboor4-Dec-18 23:54 
Questiondata transfer in two dimensional array format Pin
Member 1406088822-Nov-18 20:31
MemberMember 1406088822-Nov-18 20:31 
QuestionRe: data transfer in two dimensional array format Pin
ZurdoDev4-Dec-18 2:29
mveZurdoDev4-Dec-18 2:29 
QuestionJavascript syntax Pin
ghazabaz22-Nov-18 15:48
Memberghazabaz22-Nov-18 15:48 
Hey guys,

I need assistance with 2 blocks of code that I am getting error. Here they are:

var gameReport = "<h1>" + itemTitle + "</h1>" +
        "<h2>By:" + itemManufacturer + "</h2>" +
                 // also getting an error below here at the img section
				 "<img src="hg_id.png" alt="id" id=" + gameImg + " />" +
				 "<table>" 
				   "<tr><th>Product ID</th><td>" + itemID + "</td></tr>" +
				   "<tr><th>List Price</th><td>" + itemPrice + "</td></tr>" +
				   "<tr>Platform</th><td>" + itemPlatform + "</td></tr>" +
				   "<tr><th>ESRB Rating</th><td>" + itemESRB + "</td></tr>" +
				   "<tr><th>Condition</th><td>" + itemCondition + "</td></tr>" +
				   "<tr><th>Release</th><td>" + itemRelease + "</td></tr>" +
				 "</table>" +
				  itemSummary; // is this the correct method for inserting variable?


And this:

for (var i = 0; i < 3; i++) {

// getting a "missing semicolon" error below
ratingReport += "<div class="review"><h1>" + ratingTitles + "</h1><table><tr><th>By</th><td>" + ratingAuthors + "</td></tr><tr><th>Review Date</th><td>" +ratingDate+   "</td></tr>""<tr><th>Rating</th><td>";
					for (var i = 1; i < ratingsAvg.length; i++) {
						ratingReport += "<img src="hg_star.png" />"; // also getting an error here at the img section
					}
					
					ratingReport += "</td></tr</table>" + ratingSummaries + "</div>";

//thanks 
								
}


Thanks for any help Thumbs Up | :thumbsup:
AnswerRe: Javascript syntax Pin
Graham Breach22-Nov-18 21:36
MemberGraham Breach22-Nov-18 21:36 
AnswerRe: Javascript syntax Pin
NithyaKumarJai25-Nov-18 18:23
MemberNithyaKumarJai25-Nov-18 18:23 
Questionunexpected result function autocomplete() Jquery Pin
serenimus21-Nov-18 7:15
Memberserenimus21-Nov-18 7:15 
AnswerRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming21-Nov-18 8:16
mveRichard Deeming21-Nov-18 8:16 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 6:11
Memberserenimus22-Nov-18 6:11 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus22-Nov-18 6:13
Memberserenimus22-Nov-18 6:13 
GeneralRe: unexpected result function autocomplete() Jquery Pin
Richard Deeming22-Nov-18 8:41
mveRichard Deeming22-Nov-18 8:41 
GeneralRe: unexpected result function autocomplete() Jquery Pin
serenimus1-Dec-18 0:19
Memberserenimus1-Dec-18 0:19 
QuestionHello Pin
Member 1406106620-Nov-18 8:15
MemberMember 1406106620-Nov-18 8:15 
QuestionJavascript help Pin
ghazabaz8-Nov-18 15:54
Memberghazabaz8-Nov-18 15:54 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 3:49
mveRichard Deeming9-Nov-18 3:49 
QuestionRe: Javascript help Pin
ghazabaz9-Nov-18 5:55
Memberghazabaz9-Nov-18 5:55 
AnswerRe: Javascript help Pin
Richard Deeming9-Nov-18 7:48
mveRichard Deeming9-Nov-18 7:48 
Generalguidence for the begginners Pin
Kshitiz Thapa2-Nov-18 3:16
MemberKshitiz Thapa2-Nov-18 3:16 
GeneralRe: guidence for the begginners Pin
Richard MacCutchan2-Nov-18 4:00
mveRichard MacCutchan2-Nov-18 4:00 
GeneralMessage Closed Pin
15-Nov-18 21:42
Membermohit gite15-Nov-18 21:42 
SuggestionRe: guidence for the begginners Pin
CHill6015-Nov-18 21:46
mveCHill6015-Nov-18 21:46 

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.