Advertisement

04.29.2008 at 12:00PM PDT, ID: 23363178
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Mozilla/Firefox IFRAME  reference problem

I just cannot seem to find the Firefox/Mozilla equivalent for:
document.frames(sFrameName).document.forms('form1').elements(sElementName);
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: Silas2
Solution Provided By: b0lsc0tt
Participating Experts: 1
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
04.29.2008 at 01:23PM PDT, ID: 21465875

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 03:39PM PDT, ID: 21466826

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 04:20PM PDT, ID: 21467050

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 04:22PM PDT, ID: 21467061

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.29.2008 at 04:23PM PDT, ID: 21467066

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 07:43AM PDT, ID: 21471146

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 05:48PM PDT, ID: 21475737

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.01.2008 at 01:46AM PDT, ID: 21477177

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.01.2008 at 01:50AM PDT, ID: 21477188

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.01.2008 at 02:24AM PDT, ID: 21477299

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.01.2008 at 11:03AM PDT, ID: 21480979

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.02.2008 at 05:58PM PDT, ID: 21490874

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • Automotive
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Displays / Monitors
  • Handhelds / PDAs
  • Components
  • Peripherals
  • Laptops/Notebooks
  • Servers
  • Misc
  • Apple
  • Embedded Hardware
  • Networking Hardware
  • Storage
  • Desktops
  • New Users
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMware
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Virtualization
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • Web Computing
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Consulting
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMware
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Automation
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Web Services
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Web Computing
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Lounge
  • Business Travel
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
  • Automotive
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
04.29.2008 at 01:23PM PDT, ID: 21465875

Rank: Genius

Silas2,

That is vbscript.  For something that will work in Firefox (and even still work in IE) you want ...

document.frames[sFrameName].document.forms['form1'].elements[sElementName]

I assume sFrameName and sElementName are variables and form1 is the actual value in the name attribute in that form tag.  

Make sure your form tag and inputs use the name attribute and not just ID.  IE will treat the ID value as a name if one is missing but Firefox and others won't.  The name attribute is needed with script like that.

Let me know if you have any questions or need more information.

b0lsc0tt
 
04.29.2008 at 03:39PM PDT, ID: 21466826
VB Script? - I've been running this in JavaScript in IE and its been working OK. Yes, I should have put:
document.frames(sFrameName).document.forms(sFormName).elements(sElementName);
(sFormName instead of "form1").
Re your point: "...IE will treat the ID value as a name if one is missing but Firefox and others won't. ..." I don't know how that fits in with the actual code which runs server-side in asp.net:
"<%=BigFileFrame.ClientID %>" instead of sFrameName. Should I change that for Modzilla?
 
04.29.2008 at 04:20PM PDT, ID: 21467050
Sorry, I've just seen your square brackets - is that the big difference?
 
04.29.2008 at 04:22PM PDT, ID: 21467061

Rank: Genius

>> I've been running this in JavaScript in IE <<

I'd be curious to see the rest of the script because IE is probably automatically treating it as clientside vbscript.  Javascript doesn't use parentheses for the collections/arrays; you need square brackets (as in my example).  Did you try making that change?  Did it work in Firefox now and still work in IE?  You can show me more of the code if you want but Javascript definitely will have a problem with the parentheses as you had them.

>> I don't know how that fits in with the actual code which runs server-side in asp.net: "<%=BigFileFrame.ClientID %>" instead of sFrameName. Should I change that for Modzilla? <<

Look at the html source.  In other words in the browser choose View Source and look at what your server script sends to the browser.

What I meant is if the html in the browser looks like ... ("..." used below is just for other attributes in the tags)

<form id="form1" ... >
<input id="field1" ... >

... you will need to make it ...

<form id="form1" name="form1" ... >
<input id="field1" name="field1" ... >

Notice the name attributes.  They can match what you have for the id.  Depending on your doctype adding the name may make the html invalid.  In that case you will need change the script a bit.  I can help with that if needed.  I hope that clears up what I said.

Let me know if you have a question or need more info.

bol
Accepted Solution
 
04.29.2008 at 04:23PM PDT, ID: 21467066

Rank: Genius

>> is that the big difference? <<

Yes.  That is the key.  Now I understand your comment more.  Sorry that wasn't obvious but those are the key to the problem and fix.

bol
 
04.30.2008 at 07:43AM PDT, ID: 21471146
Sorry for the delay, I spent all this time friggin with Firebug, and I've finally returned to Venkman.  I've taken the JavaScript and HTML, which I am trying to debug, out of the aspx page and put it into an HTML.  (I can include the IFRAME src file if you want).
This code runs in Internet Explorer but I am having problems with both Venkman and Firefox.  See what you think...
(if it looks like VBScript that's because I'm a VB.old  Programmer converting to the web, it is supposed to be JavaScript)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Test Venkman/Load Frame</title>
</head>
<body  onload="SetPageTimeStamp ();" >
<script type="text/javascript" >
function SetPageTimeStamp ()
{
//this code is triggered on body load
    var txtDataTimeStamp=GetLibraryFrame ().document.forms['form1'].elements['txtDataTimeStamp'];
}
function GetLibraryFrame ()
{
    if (BrowserAgnosticFrame ("ctl00_ContentPlaceHolder1_BigFileFrame").document.forms['form1']== null)
    {
       return BrowserAgnosticFrame ("ctl00_ContentPlaceHolder1_LibraryFrame");
    }
    else 
    {
        return BrowserAgnosticFrame ("ctl00_ContentPlaceHolder1_BigFileFrame");
    }
}
function  BrowserAgnosticFrame (sName )
{
    var sNavName = navigator.appName
    debugger;
    if (sNavName=="Microsoft Internet Explorer")
    {return document.frames(sName);}
     else 
    {return document.frames[sName];}//can't properly investigate this in Venkman
}     
 
</script>
 <iframe id="ctl00_ContentPlaceHolder1_LibraryFrame" style="display:block;" src="TempAspxFiles/CS102In350988192.html">If you can see this, your browser doesn't 
understand IFRAME. Contact support.
    </iframe>
        <iframe id="ctl00_ContentPlaceHolder1_BigFileFrame" style="display:none;">If you can see this, your browser doesn't 
understand IFRAME. Contact support.
    </iframe>
</body>
</html>
Open in New Window
 
04.30.2008 at 05:48PM PDT, ID: 21475737

Rank: Genius

I don't really understand your last comment or code.  Did my recommendation fix your problem?

bol
 
05.01.2008 at 01:46AM PDT, ID: 21477177
Two points really, if you load this HTML file into Firefox and you hit the line which I have commented:
{return document.frames[sName];}//can't properly investigate this in Venkman
firstly, for some reason document.frames[sName] causes Firefox a problem, whereas Internet Explorer has no problem with it.  Secondly, I'm having real trouble getting Venkman to show me the value of variables in break mode, I wonder if you could explain to me what I should be doing.
PS I've attached the file "CS102In350988192.html" which is embedded in the frame.(I changeed the  extension to txt  to fiit with his site resttriction)
 
src for ctl00_ContentPlaceHolder1_LibraryFrame
 
 
05.01.2008 at 01:50AM PDT, ID: 21477188
Sorry, would you rather I did it as a link?
 
05.01.2008 at 02:24AM PDT, ID: 21477299
try this
http://testsamples.pipeten.co.uk/htmlpage.htm

When I run it in Venkman, and investigate the value of document.frames[sName] using the console command line I get the "errorTypeError: document.frames has no properties",
 
05.01.2008 at 11:03AM PDT, ID: 21480979
Actually, when I trace the execution through my code it jumps into a JavaScript file called nsMicrosummarysSrvice.js??  When I googled this file name I can't seem to find any formal documentation on it?
It looks like some kind of open source Trojan, bet embedded into Venkman, somehow listening to events but my thread of execution just seems to peter out in the middle of it.
 
05.02.2008 at 05:58PM PDT, ID: 21490874
Sorry I didn't follow your instructions about the id/name issue. You were right,  I resolved it now.
 
 
05.02.2008 at 08:30PM PDT, ID: 21491217
I'm glad that did it.  If they weren't clear from the start I am sorry but glad you gave it another chance.  Thanks for the grade, the points and the fun question.

Regarding your previous comment at http:#21480979 I did see it and made a note to come back to this Q when I had time to look at it and respond.  I don't use Venkman and, since that is a new issue, it is probably best to open a new question for it if you need help.  That will make it easy for experts that can help to see the question.  Let me know if you have a question about doing that.  Good luck with it. :)  I wanted to make sure you didn't think I just ignored your last posts.

bol
 
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628