Click here to Skip to main content
15,885,767 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: connection string for webserver Pin
Christian Graus20-Sep-09 14:30
protectorChristian Graus20-Sep-09 14:30 
Questioncreating a webchat: help needed !!! [modified] Pin
abduscorner20-Sep-09 4:59
abduscorner20-Sep-09 4:59 
AnswerRe: creating a webchat: help needed !!! Pin
Richard MacCutchan20-Sep-09 7:28
mveRichard MacCutchan20-Sep-09 7:28 
GeneralRe: creating a webchat: help needed !!! Pin
abduscorner21-Sep-09 6:45
abduscorner21-Sep-09 6:45 
GeneralRe: creating a webchat: help needed !!! Pin
Richard MacCutchan21-Sep-09 11:09
mveRichard MacCutchan21-Sep-09 11:09 
QuestionWrite to html frame from within js file? Pin
AlainMesias19-Sep-09 4:13
AlainMesias19-Sep-09 4:13 
AnswerRe: Write to html frame from within js file? Pin
Abhishek Sur20-Sep-09 6:06
professionalAbhishek Sur20-Sep-09 6:06 
GeneralRe: Write to html frame from within js file? Pin
AlainMesias20-Sep-09 15:56
AlainMesias20-Sep-09 15:56 
Hi Abhishek,

Unfortunately still doesn't work for me.

Based on your comments I should be able to write from the tree.js file to my banner frame using the parent call.   I have even tried the following:

parent.banner.document.write("Hello");

Which I know it will write the entire document, just as a test.   Still won't write to it. Frown | :(

I also tried the second comment:

onclick="javascript:parent.banner.document.getElementById('yourspanid').innerHTML = folder.desc;";

And doesn't work for me.

The following are the changes I have done to try the code:

Added to the top frame the following code:

<td width="100%" height="58" align="center" valign="middle"   bordercolor="#FFFFFF" bgcolor="#4FA600">
   <span id="SpanDesc" style="background-color:#4FA600;font-family:verdana;color:white;font-size:20px"></span>
   </td>


The main document clearly defines the frame name, as follow:

<frame name="banner" scrolling="no" noresize target="contents" src="Myheader.html">


That should provide me a good reference to reach from anywhere on the active html document.


I then added the code you mention to the "tree.js" file within the function that clicks the node on the tree view:

onclick="javascript:parent.banner.document.getElementById('SpanDesc').innerHTML = folder.desc;"


Since that didn't work, I tried to remove the onclick event, thinking that only applies to java scrpit within HTML, and tried the following:

parent.banner.document.getElementById('SpanDesc').innerHTML = folder.desc;


Which doesn't work neither.

The following is the function of the existing "tree.js" file that gets called every time the user clicks a node:

function propagateChangesInState(folder)
{  
   var i=0

   if (folder.isOpen)
   {
      if (folder.nodeImg)
         if (folder.isLastNode)
            folder.nodeImg.src = "tree/ftv2mlastnode.gif"
         else
        folder.nodeImg.src = "tree/ftv2mnode.gif"
      folder.iconImg.src = "tree/ftv2folderopen.gif"
      for (i=0; i&lt;folder.nChildren; i++)
         folder.children[i].display()
   }
   else
   {
      if (folder.nodeImg)
         if (folder.isLastNode)
            folder.nodeImg.src = "tree/ftv2plastnode.gif"
         else
        folder.nodeImg.src = "tree/ftv2pnode.gif"
      folder.iconImg.src = "tree/ftv2folderclosed.gif"
      for (i=0; i&lt;folder.nChildren; i++)
         folder.children[i].hide()
   }  
window.status=(folder.desc);

}  


I added the last entry on the file as a test, and it writes the descriptions to the IE status bar successfully.

Yet it won't write to my top frame... Frown | :(

Any ideas?

Thanks for your help.

Alain
Questionpaging Pin
rajiv_kadam18-Sep-09 21:28
rajiv_kadam18-Sep-09 21:28 
AnswerRe: paging Pin
Christian Graus18-Sep-09 22:27
protectorChristian Graus18-Sep-09 22:27 
Questionasp(scripting language) Pin
rajiv_kadam18-Sep-09 19:39
rajiv_kadam18-Sep-09 19:39 
AnswerRe: asp(scripting language) Pin
Christian Graus18-Sep-09 20:20
protectorChristian Graus18-Sep-09 20:20 
AnswerRe: asp(scripting language) Pin
Expert Coming18-Sep-09 20:21
Expert Coming18-Sep-09 20:21 
GeneralRe: asp(scripting language) Pin
Christian Graus18-Sep-09 22:27
protectorChristian Graus18-Sep-09 22:27 
Questionlogic (website) Pin
rajiv_kadam18-Sep-09 19:37
rajiv_kadam18-Sep-09 19:37 
AnswerRe: logic (website) Pin
Christian Graus18-Sep-09 20:18
protectorChristian Graus18-Sep-09 20:18 
Questionhow to make a div tag transparent Pin
tagyurit18-Sep-09 14:43
tagyurit18-Sep-09 14:43 
AnswerRe: how to make a div tag transparent Pin
Christian Graus18-Sep-09 15:23
protectorChristian Graus18-Sep-09 15:23 
QuestionTwo flash movies, layers/divs, how to shut one off Pin
seejay7518-Sep-09 9:05
seejay7518-Sep-09 9:05 
QuestionRollover javascript menus ... Pin
devboycpp18-Sep-09 6:07
devboycpp18-Sep-09 6:07 
AnswerRe: Rollover javascript menus ... Pin
Abhishek Sur18-Sep-09 12:02
professionalAbhishek Sur18-Sep-09 12:02 
QuestionBulk data insertion Pin
murali_utr18-Sep-09 1:46
murali_utr18-Sep-09 1:46 
QuestionTips for selecting right web development company Pin
rohittripathi18-Sep-09 0:03
rohittripathi18-Sep-09 0:03 
AnswerRe: Tips for selecting right web development company Pin
Christian Graus18-Sep-09 0:11
protectorChristian Graus18-Sep-09 0:11 
GeneralRe: Tips for selecting right web development company Pin
rohittripathi18-Sep-09 0:28
rohittripathi18-Sep-09 0:28 

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.