Click here to Skip to main content
15,894,405 members
Home / Discussions / Web Development
   

Web Development

 
Answerthe 1st (cp.c) Pin
aegis195430-Dec-09 2:34
aegis195430-Dec-09 2:34 
AnswerRe: href Pin
Richard MacCutchan30-Dec-09 3:24
mveRichard MacCutchan30-Dec-09 3:24 
AnswerRe: href Pin
Emilio Garavaglia3-Jan-10 20:12
Emilio Garavaglia3-Jan-10 20:12 
QuestionExporting MySQL data to excel (HTML tags) Pin
Poonam Gandash29-Dec-09 0:04
Poonam Gandash29-Dec-09 0:04 
AnswerRe: Exporting MySQL data to excel (HTML tags) Pin
enhzflep29-Dec-09 2:32
enhzflep29-Dec-09 2:32 
QuestionDynamic forms in a asp.net webapplication in a sharepoint enviroment Pin
Member 414471328-Dec-09 22:09
Member 414471328-Dec-09 22:09 
Questionprogress bar animation (processing.gif) in sync and async mode Pin
Jayapal Chandran28-Dec-09 20:51
Jayapal Chandran28-Dec-09 20:51 
Question? firefox bookmarket script to list urls across frames Pin
halsboss24-Dec-09 0:32
halsboss24-Dec-09 0:32 
Hi, the following Firefox bookmarklet script was supposed to list URLs across all of the frames in the currently loaded web page, but produces nothing more than the heading and the Firefox STOP button has to be clicked to stop it running. (Needless to say, as a bookmarlket it's all on one line in a button in the bookmarks toolbar). Any suggestions on what's going wrong ?
Cheers
javascript:(<br />
function(){<br />
function htmlEscape(s){<br />
    s=s.replace(/&/g,'&');<br />
    s=s.replace(/>/g,'>');<br />
    s=s.replace(/</g,'<');<br />
    return s;<br />
}<br />
function attrQuoteEscape(s){<br />
    s=s.replace(/&/g,'&');<br />
    s=s.replace(/"/g, '"');<br />
    return s;<br />
}<br />
function ListLinksInDoc(doc){<br />
    var z,i;<br />
    nD.writeln('<br><h3>Start of document</h3></br>');<br />
    z = doc.links;<br />
    for (i = 0; i < z.length; ++i) {<br />
        nD.write(i);<br />
        nD.write('. <a href="');<br />
        nD.write(attrQuoteEscape(z[i].href));<br />
        nD.write('">Inner HTML=');<br />
        nD.write(z[i].innerHTML);<br />
        nD.write(' href=');<br />
        nD.write(htmlEscape(z[i].href));<br />
        nD.writeln('</a><br>');<br />
    }<br />
    nD.writeln('<br>End of document</br>');<br />
}<br />
function recurseFrames(doc, callback) {<br />
    if (typeof callback != 'function') return;<br />
    callback(doc);<br />
    var frames = doc.getElementsByTagName("frame");<br />
    for (var i = 0; i < frames.length; i++) {<br />
        var d = frames[i].contentDocument;<br />
        recurseFrames(d, callback);<br />
    }<br />
}<br />
var nD = window.open().document;<br />
nD.writeln('<html><head><title>List of Links in Frames</title><base target="_blank"></head><body>');<br />
nD.write('List of Links in Frames in <a href="'+attrQuoteEscape(location.href)+'">')<br />
nD.write(htmlEscape(location.href))<br />
nD.writeln('</a><br><br><hr><br>');<br />
recurseFrames(top,ListLinksInDoc);<br />
nD.writeln('<br><hr></body></html>');<br />
nD.close();<br />
}<br />
)();

QuestionJavascript related question Pin
Tina P23-Dec-09 17:18
Tina P23-Dec-09 17:18 
AnswerRe: Javascript related question Pin
R. Giskard Reventlov24-Dec-09 0:06
R. Giskard Reventlov24-Dec-09 0:06 
QuestionMinimizing the traffic Pin
msn9222-Dec-09 9:16
msn9222-Dec-09 9:16 
AnswerRe: Minimizing the traffic Pin
Marc Firth23-Dec-09 2:00
Marc Firth23-Dec-09 2:00 
GeneralRe: Minimizing the traffic Pin
msn9224-Dec-09 16:41
msn9224-Dec-09 16:41 
GeneralRe: Minimizing the traffic Pin
Marc Firth3-Jan-10 21:47
Marc Firth3-Jan-10 21:47 
QuestionCannot create instance in a partial class Pin
TALHAKOSEN22-Dec-09 1:33
TALHAKOSEN22-Dec-09 1:33 
GeneralRe: Cannot create instance in a partial class Pin
Estys22-Dec-09 5:21
Estys22-Dec-09 5:21 
GeneralRe: Cannot create instance in a partial class Pin
TALHAKOSEN22-Dec-09 8:54
TALHAKOSEN22-Dec-09 8:54 
GeneralRe: Cannot create instance in a partial class Pin
Estys22-Dec-09 9:52
Estys22-Dec-09 9:52 
GeneralRe: Cannot create instance in a partial class Pin
TALHAKOSEN22-Dec-09 20:32
TALHAKOSEN22-Dec-09 20:32 
GeneralRe: Cannot create instance in a partial class Pin
Estys22-Dec-09 23:20
Estys22-Dec-09 23:20 
GeneralRe: Cannot create instance in a partial class Pin
TALHAKOSEN22-Dec-09 23:43
TALHAKOSEN22-Dec-09 23:43 
GeneralRe: Cannot create instance in a partial class Pin
Estys23-Dec-09 0:04
Estys23-Dec-09 0:04 
GeneralRe: Cannot create instance in a partial class Pin
TALHAKOSEN23-Dec-09 0:34
TALHAKOSEN23-Dec-09 0:34 
GeneralRe: Cannot create instance in a partial class Pin
Estys23-Dec-09 1:45
Estys23-Dec-09 1:45 
GeneralRe: Cannot create instance in a partial class Pin
TALHAKOSEN24-Dec-09 20:27
TALHAKOSEN24-Dec-09 20:27 

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.