Click here to Skip to main content
15,889,816 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How do I insert my own text into this script? Pin
Kornfeld Eliyahu Peter9-Dec-14 20:32
professionalKornfeld Eliyahu Peter9-Dec-14 20:32 
AnswerRe: How do I insert my own text into this script? Pin
S Services12-Dec-14 21:08
S Services12-Dec-14 21:08 
QuestionCan i cache all dynamically generated pages and serve them as pure HTML? Pin
Member 112915226-Dec-14 13:19
Member 112915226-Dec-14 13:19 
AnswerRe: Can i cache all dynamically generated pages and serve them as pure HTML? Pin
Anurag Gandhi31-May-15 2:37
professionalAnurag Gandhi31-May-15 2:37 
Questionvb 2010 web form sql control problem Pin
dcof4-Dec-14 10:17
dcof4-Dec-14 10:17 
AnswerRe: vb 2010 web form sql control problem Pin
Richard Deeming4-Dec-14 10:32
mveRichard Deeming4-Dec-14 10:32 
Questionadding jquery at a joomla's module backend code Pin
isengart3-Dec-14 23:04
isengart3-Dec-14 23:04 
QuestionEditing Elements Using Iframe Pin
MadDashCoder3-Dec-14 19:24
MadDashCoder3-Dec-14 19:24 
Hi, suppose I have a Div on a page and inside of this Div I have a Span, a List, and another Div.

If the page is displayed in an Iframe and if none of the elements has an ID, how would I go about adding a temporary ID when they are clicked using jQuery?

Each time a new element is clicked if it doesn't have an ID it will be assigned the same temporary ID given to the element that was clicked last. So the ID has to be removed from the previous element and then given to the new element.

Obviously I have to first call the load method to load the Iframe then inside the load method I will get the contents of the Iframe and find the body element when the page is clicked. Thus far the code below is what I have inside the load method but I need help in finishing it.

JavaScript
$(this).contents().find("body").on('click', function (e) {
var ClickedElement = $(e.target);

}


Thanks in advance for your help.

modified 4-Dec-14 2:34am.

GeneralMessage Closed Pin
30-Nov-14 2:23
Janak197730-Nov-14 2:23 
GeneralRe: Next milestone in website development Pin
Dave Kreskowiak1-Dec-14 2:36
mveDave Kreskowiak1-Dec-14 2:36 
QuestionLearning & improving web application skills Pin
Angel Hermon27-Nov-14 8:18
Angel Hermon27-Nov-14 8:18 
QuestionPath to CSS Not Working Pin
MadDashCoder24-Nov-14 11:11
MadDashCoder24-Nov-14 11:11 
AnswerRe: Path to CSS Not Working Pin
User 171649224-Nov-14 13:18
professionalUser 171649224-Nov-14 13:18 
GeneralRe: Path to CSS Not Working Pin
MadDashCoder24-Nov-14 16:24
MadDashCoder24-Nov-14 16:24 
AnswerRe: Path to CSS Not Working Pin
MadDashCoder3-Dec-14 18:43
MadDashCoder3-Dec-14 18:43 
QuestionINSPIRATION FOR DESIGN Pin
Member 1122910913-Nov-14 12:16
Member 1122910913-Nov-14 12:16 
AnswerRe: INSPIRATION FOR DESIGN Pin
PIEBALDconsult13-Nov-14 12:41
mvePIEBALDconsult13-Nov-14 12:41 
GeneralRe: INSPIRATION FOR DESIGN Pin
Richard MacCutchan13-Nov-14 22:17
mveRichard MacCutchan13-Nov-14 22:17 
AnswerRe: INSPIRATION FOR DESIGN Pin
Kornfeld Eliyahu Peter13-Nov-14 22:54
professionalKornfeld Eliyahu Peter13-Nov-14 22:54 
AnswerRe: INSPIRATION FOR DESIGN Pin
Nathan Minier14-Nov-14 2:14
professionalNathan Minier14-Nov-14 2:14 
GeneralRe: INSPIRATION FOR DESIGN Pin
Shamim Reza14-Dec-14 4:25
Shamim Reza14-Dec-14 4:25 
AnswerRe: INSPIRATION FOR DESIGN Pin
Rollin Shultz19-Dec-14 5:16
Rollin Shultz19-Dec-14 5:16 
QuestionReport Viewer Configuration Error in RDLC Report Pin
Preety Shah12-Nov-14 3:25
Preety Shah12-Nov-14 3:25 
GeneralRe: Report Viewer Configuration Error in RDLC Report Pin
Sheepings13-Nov-14 4:21
professionalSheepings13-Nov-14 4:21 
AnswerRe: Report Viewer Configuration Error in RDLC Report Pin
jaimin851-Dec-14 23:17
jaimin851-Dec-14 23:17 

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.