LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2004, 02:43 PM   #1
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Rep: Reputation: 15
Strange html (web server) issue


this is such a strange problem, i hardly know how/what to ask
Thumb Nail Viewer

i have a dirctory, under a Virtual site.
in that directory, are some images, config.js file, with an array of the pictures, and an index.html file, with 2 frames named "win1" and "win2"

win1's src is a javascript, that draws thumbnails on the left pain(win1) , and the large picture, in the right (win2).... win2 has NO src

if i attempt to execute the index.html, A line in the thumnail js file

alert("before with");
with(parent.win2.document) {
alert("after with");
open();
alert ("after open");


FAILS (never prints "After with") ..... (i have an alert, before and after)

MAKEING NO change, other then executing the SAME
index.html, from

www/var/html/test/index.html (called from the MAIN HOME site), works just fine.....

there is something about this "Virtual" page, as opposed to the "Main site"
that causes the with(parent......) to fail.....

any help ????


And thanks.....
 
Old 01-06-2004, 10:44 AM   #2
lenlutz
Member
 
Registered: May 2003
Location: philadelhpia pa
Posts: 92

Original Poster
Rep: Reputation: 15
the solution was stranger then the problem:
i put a BLANK_FILE in /var/www/html/blank.html , and set src="http://www.mysite.com/blank.html" and it worked....

it seems, for some unexplainable (at least to me),
that parent.win2.document, was undefined (did not exist)....
ill never figure out, why it does (more or less), from an index.html, which appears
UNDER /var/www/html, but not a users virtual document root......
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help, Adding New HD to Web Server HTML folder jtyler Linux - General 1 10-27-2005 09:59 AM
Run C++ on the Web (with HTML)!?! Hady Programming 7 08-19-2005 01:49 AM
Transperant Proxy and web server on one machine = issue ... sys7em Linux - Networking 2 06-16-2005 02:29 PM
Web Server / Firewall Issue JohnLocke Linux - Newbie 3 03-10-2005 02:16 PM
Consistent web UI w/o duplicating HTML ugenn Programming 0 08-23-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration